--- /srv/rebuilderd/tmp/rebuilderdZq4w4b/inputs/ssg-debian_0.1.82-1_all.deb +++ /srv/rebuilderd/tmp/rebuilderdZq4w4b/out/ssg-debian_0.1.82-1_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2026-09-07 19:17:46.000000 debian-binary │ -rw-r--r-- 0 0 0 2736 2026-09-07 19:17:46.000000 control.tar.xz │ --rw-r--r-- 0 0 0 3456164 2026-09-07 19:17:46.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 3456216 2026-09-07 19:17:46.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_average.html │ │ │ @@ -20899,128 +20899,128 @@ │ │ │ 00051a20: 6172 6765 743d 2223 6964 3330 2220 7461 arget="#id30" ta │ │ │ 00051a30: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 00051a40: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 00051a50: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 00051a60: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 00051a70: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 00051a80: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -00051a90: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00051aa0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -00051af0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00051b00: 6520 3d20 2273 7973 6c6f 672d 6e67 220a  e = "syslog-ng".
│ │ │ -00051b10: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -00051bd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00051be0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00051bf0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -00051c70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00051c80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00051ca0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00051cc0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00051cd0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00051d10: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00051d20: 6520 696e 7374 616c 6c5f 7379 736c 6f67 e install_syslog │ │ │ -00051d30: 2d6e 670a 0a63 6c61 7373 2069 6e73 7461 -ng..class insta │ │ │ -00051d40: 6c6c 5f73 7973 6c6f 672d 6e67 207b 0a20 ll_syslog-ng {. │ │ │ -00051d50: 2070 6163 6b61 6765 207b 2027 7379 736c package { 'sysl │ │ │ -00051d60: 6f67 2d6e 6727 3a0a 2020 2020 656e 7375 og-ng':. ensu │ │ │ -00051d70: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -00051d80: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.
< │ │ │ -00051da0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00051db0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00051dc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00051dd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00051de0: 6433 3222 2074 6162 696e 6465 783d 2230 d32" tabindex="0 │ │ │ -00051df0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00051e00: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00051e10: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00051e20: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00051e30: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00051e40: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00051e50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00051f00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00051f20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00051f50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00051ee0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00051ef0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00051f10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00051f30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00051f40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00051f90: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00051fa0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00051fb0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00051fc0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00051fd0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00051fe0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00051ff0: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -00052000: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00052010: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00052020: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -00052030: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -00052040: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00052050: 2020 2d20 7061 636b 6167 655f 7379 736c - package_sysl │ │ │ -00052060: 6f67 6e67 5f69 6e73 7461 6c6c 6564 0a0a ogng_installed.. │ │ │ -00052070: 2d20 6e61 6d65 3a20 456e 7375 7265 2073 - name: Ensure s │ │ │ -00052080: 7973 6c6f 672d 6e67 2069 7320 696e 7374 yslog-ng is inst │ │ │ -00052090: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ -000520a0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -000520b0: 0a20 2020 206e 616d 653a 2073 7973 6c6f . name: syslo │ │ │ -000520c0: 672d 6e67 0a20 2020 2073 7461 7465 3a20 g-ng. state: │ │ │ -000520d0: 7072 6573 656e 740a 2020 7768 656e 3a20 present. when: │ │ │ -000520e0: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -000520f0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00052100: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ -00052110: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00052120: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ -00052130: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00052140: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00052150: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00052160: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00052170: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00052180: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00052190: 7061 636b 6167 655f 7379 736c 6f67 6e67 package_syslogng │ │ │ -000521a0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

│ │ │ +00051b20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00051b40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00051b90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00051bc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00051be0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00051bf0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00051c00: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00051c10: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00051c20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00051c30: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00051c40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00051c50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00051c60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00051c70: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00051c80: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00051c90: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00051ca0: 6b61 6765 5f73 7973 6c6f 676e 675f 696e  kage_syslogng_in
│ │ │ +00051cb0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00051cc0: 2045 6e73 7572 6520 7379 736c 6f67 2d6e   Ensure syslog-n
│ │ │ +00051cd0: 6720 6973 2069 6e73 7461 6c6c 6564 0a20  g is installed. 
│ │ │ +00051ce0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00051cf0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00051d00: 6d65 3a20 7379 736c 6f67 2d6e 670a 2020  me: syslog-ng.  
│ │ │ +00051d10: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00051d20: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00051d30: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00051d40: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00051d50: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +00051d60: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00051d70: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00051d80: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00051d90: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00051da0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00051db0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00051dc0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00051dd0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00051de0: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +00051df0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation P │ │ │ +00051eb0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00051ec0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +00051b30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00051b50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00051ba0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00051bb0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +00051f90: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00051fa0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00051ff0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00052000: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ +00052010: 2069 6e73 7461 6c6c 5f73 7973 6c6f 672d   install_syslog-
│ │ │ +00052020: 6e67 207b 0a20 2070 6163 6b61 6765 207b  ng {.  package {
│ │ │ +00052030: 2027 7379 736c 6f67 2d6e 6727 3a0a 2020   'syslog-ng':.  
│ │ │ +00052040: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00052050: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +00052060: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00052070: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +00052120: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00052130: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +00052180: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +00052190: 2022 7379 736c 6f67 2d6e 6722 0a76 6572   "syslog-ng".ver
│ │ │ +000521a0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediati │ │ │ -00053240: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00053250: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00053260: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizatio
│ │ │ -000532b0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -000532c0: 626c 6564 203d 205b 2273 7973 6c6f 672d  bled = ["syslog-
│ │ │ -000532d0: 6e67 225d 0a3c 2f63 6f64 653e 3c2f 7072  ng"].
Remediation │ │ │ -00053390: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000533a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +00051f70: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00051f80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00051fc0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00051fd0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00053420: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00053440: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00053490: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -000534e0: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ -000534f0: 2065 6e61 626c 655f 7379 736c 6f67 2d6e   enable_syslog-n
│ │ │ -00053500: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ -00053510: 7379 736c 6f67 2d6e 6727 3a0a 2020 2020  syslog-ng':.    
│ │ │ -00053520: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ -00053530: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00053540: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ -00053550: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -00053610: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -00053620: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low
Disr │ │ │ -00053450: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00053460: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000534a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000534b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -000536a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000536c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00053710: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00053740: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00053760: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00053770: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00053780: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00053790: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -000537a0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -000537b0: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -000537c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000537d0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000537e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000537f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00053800: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00053810: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00053820: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00053830: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ -00053840: 6c6f 676e 675f 656e 6162 6c65 640a 0a2d  logng_enabled..-
│ │ │ -00053850: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ -00053860: 736c 6f67 2d6e 6720 5365 7276 6963 6520  slog-ng Service 
│ │ │ -00053870: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -00053880: 2073 7973 6c6f 672d 6e67 0a20 2062 6c6f   syslog-ng.  blo
│ │ │ -00053890: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -000538a0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000538b0: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -000538c0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000538d0: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -000538e0: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -000538f0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -00053900: 2073 7973 6c6f 672d 6e67 2053 6572 7669   syslog-ng Servi
│ │ │ -00053910: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ -00053920: 6963 6520 7379 736c 6f67 2d6e 670a 2020  ice syslog-ng.  
│ │ │ -00053930: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00053940: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00053950: 206e 616d 653a 2073 7973 6c6f 672d 6e67   name: syslog-ng
│ │ │ -00053960: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00053970: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -00053980: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -00053990: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -000539a0: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -000539b0: 7379 736c 6f67 2d6e 6722 2069 6e20 616e  syslog-ng" in an
│ │ │ -000539c0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000539d0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000539e0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -000539f0: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -00053a00: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00053a10: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00053a20: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00053a30: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00053a40: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00053a50: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00053a60: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00053a70: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ -00053a80: 6c6f 676e 675f 656e 6162 6c65 640a 2020  logng_enabled.  
│ │ │ -00053a90: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00053aa0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00053ab0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00053ac0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00053ad0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00053240: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +00053250: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +000532d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00053310: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -000536b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000536d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00053720: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00053730: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ +000532e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00053300: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00053330: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00053350: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00053380: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00053390: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +000533a0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +000533b0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +000533c0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +000533d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000533e0: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ +000533f0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00053400: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00053410: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00053420: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00053430: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00053440: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00053450: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00053460: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00053470: 7379 736c 6f67 6e67 5f65 6e61 626c 6564  syslogng_enabled
│ │ │ +00053480: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +00053490: 2073 7973 6c6f 672d 6e67 2053 6572 7669   syslog-ng Servi
│ │ │ +000534a0: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ +000534b0: 6963 6520 7379 736c 6f67 2d6e 670a 2020  ice syslog-ng.  
│ │ │ +000534c0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +000534d0: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +000534e0: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +000534f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00053500: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00053510: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00053520: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +00053530: 626c 6520 7379 736c 6f67 2d6e 6720 5365  ble syslog-ng Se
│ │ │ +00053540: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ +00053550: 6572 7669 6365 2073 7973 6c6f 672d 6e67  ervice syslog-ng
│ │ │ +00053560: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00053570: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00053580: 2020 2020 6e61 6d65 3a20 7379 736c 6f67      name: syslog
│ │ │ +00053590: 2d6e 670a 2020 2020 2020 656e 6162 6c65  -ng.      enable
│ │ │ +000535a0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +000535b0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +000535c0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +000535d0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +000535e0: 2027 2273 7973 6c6f 672d 6e67 2220 696e   '"syslog-ng" in
│ │ │ +000535f0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00053600: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00053610: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00053620: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ +00053630: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00053640: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00053650: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00053660: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00053670: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00053680: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00053690: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000536a0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +000536b0: 7379 736c 6f67 6e67 5f65 6e61 626c 6564  syslogng_enabled
│ │ │ +000536c0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +000536d0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +000536e0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +000536f0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00053700: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00053720: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00053730: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00053740: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00053750: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00053760: 6433 3622 2074 6162 696e 6465 783d 2230 d36" tabindex="0 │ │ │ +00053770: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00053780: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00053790: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +000537a0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +000537b0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +000537c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000537d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00053810: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00053880: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000538a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000538d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000538f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00053860: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00053870: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000538b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000538c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00053910: 656e 6162 6c65 5f73 7973 6c6f 672d 6e67 enable_syslog-ng │ │ │ +00053920: 0a0a 636c 6173 7320 656e 6162 6c65 5f73 ..class enable_s │ │ │ +00053930: 7973 6c6f 672d 6e67 207b 0a20 2073 6572 yslog-ng {. ser │ │ │ +00053940: 7669 6365 207b 2773 7973 6c6f 672d 6e67 vice {'syslog-ng │ │ │ +00053950: 273a 0a20 2020 2065 6e61 626c 6520 3d26 ':. enable =& │ │ │ +00053960: 6774 3b20 7472 7565 2c0a 2020 2020 656e gt; true,. en │ │ │ +00053970: 7375 7265 203d 2667 743b 2027 7275 6e6e sure => 'runn │ │ │ +00053980: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f ing',. }.}.
< │ │ │ +000539a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000539b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000539c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000539d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000539e0: 6433 3722 2074 6162 696e 6465 783d 2230 d37" tabindex="0 │ │ │ +000539f0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00053a00: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00053a10: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00053a20: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00053a30: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00053a40: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00053a50: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00053a60: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ +00053aa0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00053ab0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00053ac0: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ +00053ad0: 6c6f 672d 6e67 225d 0a3c 2f63 6f64 653e  log-ng"].
│ │ │  00053ae0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation │ │ │ -00054c20: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00054c30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -00054c80: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00054c90: 6520 3d20 2272 7379 736c 6f67 220a 7665  e = "rsyslog".ve
│ │ │ -00054ca0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -00054cc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00054cd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00054ce0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00054cf0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00054d00: 6434 3122 2074 6162 696e 6465 783d 2230 d41" tabindex="0 │ │ │ -00054d10: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00054d20: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00054d30: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00054d40: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00054d50: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00054d60: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00054d70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00054db0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00054e20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00054e40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00054e70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00054e90: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00054e00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00054e10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00054e50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00054e60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00054eb0: 696e 7374 616c 6c5f 7273 7973 6c6f 670a install_rsyslog. │ │ │ -00054ec0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f72 .class install_r │ │ │ -00054ed0: 7379 736c 6f67 207b 0a20 2070 6163 6b61 syslog {. packa │ │ │ -00054ee0: 6765 207b 2027 7273 7973 6c6f 6727 3a0a ge { 'rsyslog':. │ │ │ -00054ef0: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ -00054f00: 2027 696e 7374 616c 6c65 6427 2c0a 2020 'installed',. │ │ │ -00054f10: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation A │ │ │ -00054fd0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00054fe0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ -00055060: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00055080: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000550d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -00055120: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00055130: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00055140: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00055150: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00055160: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00055170: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00055180: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00055190: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000551a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000551b0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000551c0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000551d0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000551e0: 6167 655f 7273 7973 6c6f 675f 696e 7374  age_rsyslog_inst
│ │ │ -000551f0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -00055200: 6e73 7572 6520 7273 7973 6c6f 6720 6973  nsure rsyslog is
│ │ │ -00055210: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -00055220: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00055230: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00055240: 7273 7973 6c6f 670a 2020 2020 7374 6174  rsyslog.    stat
│ │ │ -00055250: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -00055260: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00055270: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00055280: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00055290: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -000552a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -000552b0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000552c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000552d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000552e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000552f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00055300: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00055310: 202d 2070 6163 6b61 6765 5f72 7379 736c   - package_rsysl
│ │ │ -00055320: 6f67 5f69 6e73 7461 6c6c 6564 0a3c 2f63  og_installed.
low
Disr │ │ │ -00055090: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000550a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000550e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000550f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00054cb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00054cd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00054d20: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00054d50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00054d70: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00054d80: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00054d90: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00054da0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00054db0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00054dc0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00054dd0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00054de0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00054df0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00054e00: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00054e10: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00054e20: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00054e30: 6b61 6765 5f72 7379 736c 6f67 5f69 6e73  kage_rsyslog_ins
│ │ │ +00054e40: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00054e50: 456e 7375 7265 2072 7379 736c 6f67 2069  Ensure rsyslog i
│ │ │ +00054e60: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +00054e70: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00054e80: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00054e90: 2072 7379 736c 6f67 0a20 2020 2073 7461   rsyslog.    sta
│ │ │ +00054ea0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +00054eb0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00054ec0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00054ed0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00054ee0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00054ef0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00054f00: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00054f10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00054f20: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00054f30: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00054f40: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00054f50: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00054f60: 2020 2d20 7061 636b 6167 655f 7273 7973    - package_rsys
│ │ │ +00054f70: 6c6f 675f 696e 7374 616c 6c65 640a 3c2f  log_installed.
Rem │ │ │ +00055030: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00055040: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00055050: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +00054cc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00054ce0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00054d30: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00054d40: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Comp │ │ │ +000550d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000550e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00055100: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00055120: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00055130: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00055170: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00055180: 6520 696e 7374 616c 6c5f 7273 7973 6c6f e install_rsyslo │ │ │ +00055190: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ +000551a0: 5f72 7379 736c 6f67 207b 0a20 2070 6163 _rsyslog {. pac │ │ │ +000551b0: 6b61 6765 207b 2027 7273 7973 6c6f 6727 kage { 'rsyslog' │ │ │ +000551c0: 3a0a 2020 2020 656e 7375 7265 203d 2667 :. ensure =&g │ │ │ +000551d0: 743b 2027 696e 7374 616c 6c65 6427 2c0a t; 'installed',. │ │ │ +000551e0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ +000552a0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +000552b0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ +00055300: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +00055310: 6d65 203d 2022 7273 7973 6c6f 6722 0a76  me = "rsyslog".v
│ │ │ +00055320: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 00055340: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Remediation │ │ │ -00056540: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00056550: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -000565a0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -000565b0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -000565c0: 6564 203d 205b 2272 7379 736c 6f67 225d  ed = ["rsyslog"]
│ │ │ -000565d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -00056680: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00056690: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -00056730: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00056740: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00056790: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -000567d0: 6c75 6465 2065 6e61 626c 655f 7273 7973  lude enable_rsys
│ │ │ -000567e0: 6c6f 670a 0a63 6c61 7373 2065 6e61 626c  log..class enabl
│ │ │ -000567f0: 655f 7273 7973 6c6f 6720 7b0a 2020 7365  e_rsyslog {.  se
│ │ │ -00056800: 7276 6963 6520 7b27 7273 7973 6c6f 6727  rvice {'rsyslog'
│ │ │ -00056810: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00056820: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -00056830: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -00056840: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remedi │ │ │ -00056900: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00056910: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00056950: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -00056720: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00056750: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00056760: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000567a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000567b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -000569c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000569e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00056a10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00056a30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000569a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000569b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000569f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00056a00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00056a50: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00056a60: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00056a70: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00056a80: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00056a90: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00056aa0: 2d35 332d 4155 2d34 2831 290a 2020 2d20 -53-AU-4(1). - │ │ │ -00056ab0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -00056ac0: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ -00056ad0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00056ae0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00056af0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00056b00: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00056b10: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00056b20: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -00056b30: 6365 5f72 7379 736c 6f67 5f65 6e61 626c ce_rsyslog_enabl │ │ │ -00056b40: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ -00056b50: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ -00056b60: 6365 202d 2045 6e61 626c 6520 7365 7276 ce - Enable serv │ │ │ -00056b70: 6963 6520 7273 7973 6c6f 670a 2020 626c ice rsyslog. bl │ │ │ -00056b80: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -00056b90: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00056ba0: 6765 2066 6163 7473 0a20 2020 2061 6e73 ge facts. ans │ │ │ -00056bb0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -00056bc0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00056bd0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a manager: auto. │ │ │ -00056be0: 0a20 202d 206e 616d 653a 2045 6e61 626c . - name: Enabl │ │ │ -00056bf0: 6520 7273 7973 6c6f 6720 5365 7276 6963 e rsyslog Servic │ │ │ -00056c00: 6520 2d20 456e 6162 6c65 2053 6572 7669 e - Enable Servi │ │ │ -00056c10: 6365 2072 7379 736c 6f67 0a20 2020 2061 ce rsyslog. a │ │ │ -00056c20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ -00056c30: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ -00056c40: 6d65 3a20 7273 7973 6c6f 670a 2020 2020 me: rsyslog. │ │ │ -00056c50: 2020 656e 6162 6c65 643a 2074 7275 650a enabled: true. │ │ │ -00056c60: 2020 2020 2020 7374 6174 653a 2073 7461 state: sta │ │ │ -00056c70: 7274 6564 0a20 2020 2020 206d 6173 6b65 rted. maske │ │ │ -00056c80: 643a 2066 616c 7365 0a20 2020 2077 6865 d: false. whe │ │ │ -00056c90: 6e3a 0a20 2020 202d 2027 2272 7379 736c n:. - '"rsysl │ │ │ -00056ca0: 6f67 2220 696e 2061 6e73 6962 6c65 5f66 og" in ansible_f │ │ │ -00056cb0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ -00056cc0: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ -00056cd0: 3830 302d 3533 2d41 552d 3428 3129 0a20 800-53-AU-4(1). │ │ │ -00056ce0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -00056cf0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c M-6(a). - enabl │ │ │ -00056d00: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00056d10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00056d20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00056d30: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00056d40: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -00056d50: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ -00056d60: 7276 6963 655f 7273 7973 6c6f 675f 656e rvice_rsyslog_en │ │ │ -00056d70: 6162 6c65 640a 2020 2d20 7370 6563 6961 abled. - specia │ │ │ -00056d80: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a l_service_block. │ │ │ -00056d90: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00056da0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00056db0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00056540: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00056550: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ +000565e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00056600: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00056620: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00056650: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00056660: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00056670: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +00056690: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000566a0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000566b0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +000566c0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +000566d0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +000566e0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +000566f0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00056700: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00056710: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00056720: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00056730: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00056740: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00056750: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00056760: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ +00056770: 7973 6c6f 675f 656e 6162 6c65 640a 0a2d  yslog_enabled..-
│ │ │ +00056780: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ +00056790: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ +000567a0: 456e 6162 6c65 2073 6572 7669 6365 2072  Enable service r
│ │ │ +000567b0: 7379 736c 6f67 0a20 2062 6c6f 636b 3a0a  syslog.  block:.
│ │ │ +000567c0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +000567d0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000567e0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +000567f0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +00056800: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +00056810: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +00056820: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ +00056830: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ +00056840: 6e61 626c 6520 5365 7276 6963 6520 7273  nable Service rs
│ │ │ +00056850: 7973 6c6f 670a 2020 2020 616e 7369 626c  yslog.    ansibl
│ │ │ +00056860: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00056870: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ +00056880: 7379 736c 6f67 0a20 2020 2020 2065 6e61  syslog.      ena
│ │ │ +00056890: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +000568a0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +000568b0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +000568c0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +000568d0: 2020 2d20 2722 7273 7973 6c6f 6722 2069    - '"rsyslog" i
│ │ │ +000568e0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000568f0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00056900: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00056910: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +00056920: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00056930: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00056940: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00056950: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00056960: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00056970: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00056980: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00056990: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000569a0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ +000569b0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +000569c0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +000569d0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +000569e0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +000569f0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00056a10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00056a20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00056a30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00056a40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00056a50: 6434 3622 2074 6162 696e 6465 783d 2230 d46" tabindex="0 │ │ │ +00056a60: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00056a70: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00056a80: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00056a90: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00056aa0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00056ab0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00056ac0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00056b00: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00056b70: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00056b90: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00056bc0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00056be0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00056b50: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00056b60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00056ba0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00056bb0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00056c00: 656e 6162 6c65 5f72 7379 736c 6f67 0a0a enable_rsyslog.. │ │ │ +00056c10: 636c 6173 7320 656e 6162 6c65 5f72 7379 class enable_rsy │ │ │ +00056c20: 736c 6f67 207b 0a20 2073 6572 7669 6365 slog {. service │ │ │ +00056c30: 207b 2772 7379 736c 6f67 273a 0a20 2020 {'rsyslog':. │ │ │ +00056c40: 2065 6e61 626c 6520 3d26 6774 3b20 7472 enable => tr │ │ │ +00056c50: 7565 2c0a 2020 2020 656e 7375 7265 203d ue,. ensure = │ │ │ +00056c60: 2667 743b 2027 7275 6e6e 696e 6727 2c0a > 'running',. │ │ │ +00056c70: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ +00056d30: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00056d40: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ +00056d90: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00056da0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00056db0: 6564 203d 205b 2272 7379 736c 6f67 225d  ed = ["rsyslog"]
│ │ │  00056dc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedia │ │ │ -00078bb0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00078bc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00078bd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00078be0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00078bf0: 7365 2220 6964 3d22 6964 3130 3322 3e3c se" id="id103">< │ │ │ -00078c00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00078c10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00078c20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00078c30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00078c40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00078c50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00078c60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00078ca0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00078cb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00078cd0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00078ce0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -00078d00: 2072 656d 6f76 655f 696e 6574 7574 696c remove_inetutil │ │ │ -00078d10: 732d 7465 6c6e 6574 640a 0a63 6c61 7373 s-telnetd..class │ │ │ -00078d20: 2072 656d 6f76 655f 696e 6574 7574 696c remove_inetutil │ │ │ -00078d30: 732d 7465 6c6e 6574 6420 7b0a 2020 7061 s-telnetd {. pa │ │ │ -00078d40: 636b 6167 6520 7b20 2769 6e65 7475 7469 ckage { 'inetuti │ │ │ -00078d50: 6c73 2d74 656c 6e65 7464 273a 0a20 2020 ls-telnetd':. │ │ │ -00078d60: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -00078d70: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Re │ │ │ -00078e30: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00078e40: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00078ee0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00078ef0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00078f40: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00078f80: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00078f90: 2074 6865 2069 6e65 742d 6261 7365 6420   the inet-based 
│ │ │ -00078fa0: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ -00078fb0: 6e73 7572 6520 696e 6574 7574 696c 732d  nsure inetutils-
│ │ │ -00078fc0: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ -00078fd0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00078fe0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00078ff0: 2020 206e 616d 653a 2069 6e65 7475 7469     name: inetuti
│ │ │ -00079000: 6c73 2d74 656c 6e65 7464 0a20 2020 2073  ls-telnetd.    s
│ │ │ -00079010: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00079020: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00079030: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00079040: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00079050: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00079060: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -00079070: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00079080: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ -00079090: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ -000790a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000790b0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -000790c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000790d0: 202d 2070 6163 6b61 6765 5f69 6e65 7475   - package_inetu
│ │ │ -000790e0: 7469 6c73 2d74 656c 6e65 7464 5f72 656d  tils-telnetd_rem
│ │ │ -000790f0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +00078bd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00078c00: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -00078ed0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00078f00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00078f10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00078f50: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00078f60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00078c70: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00078c90: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00078cc0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00078c50: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00078c60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00078ca0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00078cb0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00078d00: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ +00078d10: 696e 6574 2d62 6173 6564 2074 656c 6e65 inet-based telne │ │ │ +00078d20: 7420 7365 7276 6572 3a20 456e 7375 7265 t server: Ensure │ │ │ +00078d30: 2069 6e65 7475 7469 6c73 2d74 656c 6e65 inetutils-telne │ │ │ +00078d40: 7464 2069 7320 7265 6d6f 7665 6427 0a20 td is removed'. │ │ │ +00078d50: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00078d60: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +00078d70: 6d65 3a20 696e 6574 7574 696c 732d 7465 me: inetutils-te │ │ │ +00078d80: 6c6e 6574 640a 2020 2020 7374 6174 653a lnetd. state: │ │ │ +00078d90: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ +00078da0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00078db0: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ +00078dc0: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ +00078dd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00078de0: 434d 2d37 2862 290a 2020 2d20 6469 7361 CM-7(b). - disa │ │ │ +00078df0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00078e00: 2068 6967 685f 7365 7665 7269 7479 0a20 high_severity. │ │ │ +00078e10: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +00078e20: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +00078e30: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ +00078e40: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +00078e50: 636b 6167 655f 696e 6574 7574 696c 732d ckage_inetutils- │ │ │ +00078e60: 7465 6c6e 6574 645f 7265 6d6f 7665 640a telnetd_removed. │ │ │ +00078e70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ +00078f20: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00078f30: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...

│ │ │ +00078fd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00079070: 696e 636c 7564 6520 7265 6d6f 7665 5f69  include remove_i
│ │ │ +00079080: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +00079090: 0a0a 636c 6173 7320 7265 6d6f 7665 5f69  ..class remove_i
│ │ │ +000790a0: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +000790b0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000790c0: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ +000790d0: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +000790e0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +000790f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation Pup
│ │ │ -00079d70: 7065 7420 736e 6970 7065 7420 e287 b23c  pet snippet ...<
│ │ │ -00079d80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
│ │ │ +00078fc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00078ff0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00079000: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00079040: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00079050: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00079e50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00079e60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00079eb0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00079ec0: 6e69 730a 0a63 6c61 7373 2072 656d 6f76  nis..class remov
│ │ │ -00079ed0: 655f 6e69 7320 7b0a 2020 7061 636b 6167  e_nis {.  packag
│ │ │ -00079ee0: 6520 7b20 276e 6973 273a 0a20 2020 2065  e { 'nis':.    e
│ │ │ -00079ef0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00079f00: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00079f20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00079f30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00079f40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00079f50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00079f60: 6431 3038 2220 7461 6269 6e64 6578 3d22 d108" tabindex=" │ │ │ -00079f70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00079f80: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00079f90: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00079fa0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00079fb0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00079fc0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00079fd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00079fe0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -00079e30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00079e40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00079e80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00079e90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0007a060: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007a090: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007a0b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007a0c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007a0e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007a0f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0007a110: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -0007a120: 6865 206e 6973 2070 6163 6b61 6765 3a20  he nis package: 
│ │ │ -0007a130: 456e 7375 7265 206e 6973 2069 7320 7265  Ensure nis is re
│ │ │ -0007a140: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0007a150: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007a160: 3a0a 2020 2020 6e61 6d65 3a20 6e69 730a  :.    name: nis.
│ │ │ -0007a170: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007a180: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ -0007a190: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0007a1a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0007a1b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0007a1c0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0007a1d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0007a1e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0007a1f0: 6163 6b61 6765 5f6e 6973 5f72 656d 6f76  ackage_nis_remov
│ │ │ -0007a200: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00079d60: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00079d70: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00079d80: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00079e50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00079e60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00079ec0: 616c 6c20 7468 6520 6e69 7320 7061 636b  all the nis pack
│ │ │ +00079ed0: 6167 653a 2045 6e73 7572 6520 6e69 7320  age: Ensure nis 
│ │ │ +00079ee0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00079ef0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00079f00: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00079f10: 206e 6973 0a20 2020 2073 7461 7465 3a20   nis.    state: 
│ │ │ +00079f20: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00079f30: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00079f40: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00079f50: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00079f60: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00079f70: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00079f80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00079f90: 2020 2d20 7061 636b 6167 655f 6e69 735f    - package_nis_
│ │ │ +00079fa0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00079fb0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0007a060: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +0007a070: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +0007a0f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0007a180: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0007a190: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00079e30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00079e40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00079e80: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00079e90: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +0007a100: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007a110: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0007a150: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007a160: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +0007a1b0: 7265 6d6f 7665 5f6e 6973 0a0a 636c 6173  remove_nis..clas
│ │ │ +0007a1c0: 7320 7265 6d6f 7665 5f6e 6973 207b 0a20  s remove_nis {. 
│ │ │ +0007a1d0: 2070 6163 6b61 6765 207b 2027 6e69 7327   package { 'nis'
│ │ │ +0007a1e0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0007a1f0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0007a200: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0007a210: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Rem │ │ │ -0007ae30: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0007ae40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007ae50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007aed0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007af00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007af20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007af30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007af50: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007af60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0007af80: 6c75 6465 2072 656d 6f76 655f 6e74 7064  lude remove_ntpd
│ │ │ -0007af90: 6174 650a 0a63 6c61 7373 2072 656d 6f76  ate..class remov
│ │ │ -0007afa0: 655f 6e74 7064 6174 6520 7b0a 2020 7061  e_ntpdate {.  pa
│ │ │ -0007afb0: 636b 6167 6520 7b20 276e 7470 6461 7465  ckage { 'ntpdate
│ │ │ -0007afc0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0007afd0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0007afe0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0007b0a0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0007b0b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0007b140: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0007b160: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0007b180: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0007b1b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007b1c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0007b1f0: 6e73 7461 6c6c 2074 6865 206e 7470 6461  nstall the ntpda
│ │ │ -0007b200: 7465 2070 6163 6b61 6765 3a20 456e 7375  te package: Ensu
│ │ │ -0007b210: 7265 206e 7470 6461 7465 2069 7320 7265  re ntpdate is re
│ │ │ -0007b220: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0007b230: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007b240: 3a0a 2020 2020 6e61 6d65 3a20 6e74 7064  :.    name: ntpd
│ │ │ -0007b250: 6174 650a 2020 2020 7374 6174 653a 2061  ate.    state: a
│ │ │ -0007b260: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -0007b270: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0007b280: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0007b290: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0007b2a0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -0007b2b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0007b2c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0007b2d0: 202d 2070 6163 6b61 6765 5f6e 7470 6461   - package_ntpda
│ │ │ -0007b2e0: 7465 5f72 656d 6f76 6564 0a3c 2f63 6f64  te_removed.
│ │ │ +0007ae50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0007aef0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007af40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0007af80: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +0007af90: 7468 6520 6e74 7064 6174 6520 7061 636b  the ntpdate pack
│ │ │ +0007afa0: 6167 653a 2045 6e73 7572 6520 6e74 7064  age: Ensure ntpd
│ │ │ +0007afb0: 6174 6520 6973 2072 656d 6f76 6564 270a  ate is removed'.
│ │ │ +0007afc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0007afd0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0007afe0: 616d 653a 206e 7470 6461 7465 0a20 2020  ame: ntpdate.   
│ │ │ +0007aff0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0007b000: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +0007b010: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0007b020: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0007b030: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0007b040: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +0007b050: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0007b060: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0007b070: 6167 655f 6e74 7064 6174 655f 7265 6d6f  age_ntpdate_remo
│ │ │ +0007b080: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0007b140: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0007b150: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +0007aed0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007af00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007af20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007af30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007af50: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007af60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0007b1d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007b1f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007b240: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007b270: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007b1e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007b200: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007b250: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007b260: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0007b290: 7665 5f6e 7470 6461 7465 0a0a 636c 6173  ve_ntpdate..clas
│ │ │ +0007b2a0: 7320 7265 6d6f 7665 5f6e 7470 6461 7465  s remove_ntpdate
│ │ │ +0007b2b0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0007b2c0: 6e74 7064 6174 6527 3a0a 2020 2020 656e  ntpdate':.    en
│ │ │ +0007b2d0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0007b2e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -0007c670: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0007c680: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007c690: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007c6c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0007c730: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007c750: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007c780: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0007c710: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007c720: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007c760: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007c770: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -0007c7c0: 6520 7265 6d6f 7665 5f74 656c 6e65 7464 e remove_telnetd │ │ │ -0007c7d0: 2d73 736c 0a0a 636c 6173 7320 7265 6d6f -ssl..class remo │ │ │ -0007c7e0: 7665 5f74 656c 6e65 7464 2d73 736c 207b ve_telnetd-ssl { │ │ │ -0007c7f0: 0a20 2070 6163 6b61 6765 207b 2027 7465 . package { 'te │ │ │ -0007c800: 6c6e 6574 642d 7373 6c27 3a0a 2020 2020 lnetd-ssl':. │ │ │ -0007c810: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ -0007c820: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.

│ │ │ -0007c840: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0007c8e0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0007c8f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007c900: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0007c9a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007c9f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0007ca30: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0007ca40: 7468 6520 7373 6c20 636f 6d70 6c69 616e  the ssl complian
│ │ │ -0007ca50: 7420 7465 6c6e 6574 2073 6572 7665 723a  t telnet server:
│ │ │ -0007ca60: 2045 6e73 7572 6520 7465 6c6e 6574 642d   Ensure telnetd-
│ │ │ -0007ca70: 7373 6c20 6973 2072 656d 6f76 6564 270a  ssl is removed'.
│ │ │ -0007ca80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0007ca90: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0007caa0: 616d 653a 2074 656c 6e65 7464 2d73 736c  ame: telnetd-ssl
│ │ │ -0007cab0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0007cac0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -0007cad0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0007cae0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0007caf0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0007cb00: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0007cb10: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0007cb20: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0007cb30: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0007cb40: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0007cb50: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0007cb60: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007cb70: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0007cb80: 5f74 656c 6e65 7464 2d73 736c 5f72 656d  _telnetd-ssl_rem
│ │ │ -0007cb90: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Co │ │ │ -0007c980: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007c9b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007c9d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007c9e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007ca00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007ca10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0007c730: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0007c750: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0007c780: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0007c710: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0007c720: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0007c740: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0007c760: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0007c770: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0007c7b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0007c7c0: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ +0007c7d0: 2073 736c 2063 6f6d 706c 6961 6e74 2074 ssl compliant t │ │ │ +0007c7e0: 656c 6e65 7420 7365 7276 6572 3a20 456e elnet server: En │ │ │ +0007c7f0: 7375 7265 2074 656c 6e65 7464 2d73 736c sure telnetd-ssl │ │ │ +0007c800: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ +0007c810: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +0007c820: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +0007c830: 3a20 7465 6c6e 6574 642d 7373 6c0a 2020 : telnetd-ssl. │ │ │ +0007c840: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0007c850: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0007c860: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0007c870: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0007c880: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +0007c890: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +0007c8a0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0007c8b0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ +0007c8c0: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ +0007c8d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +0007c8e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +0007c8f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +0007c900: 640a 2020 2d20 7061 636b 6167 655f 7465 d. - package_te │ │ │ +0007c910: 6c6e 6574 642d 7373 6c5f 7265 6d6f 7665 lnetd-ssl_remove │ │ │ +0007c920: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0007c930: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0007c9e0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0007c9f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0007cac0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0007cad0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0007cb30: 5f74 656c 6e65 7464 2d73 736c 0a0a 636c  _telnetd-ssl..cl
│ │ │ +0007cb40: 6173 7320 7265 6d6f 7665 5f74 656c 6e65  ass remove_telne
│ │ │ +0007cb50: 7464 2d73 736c 207b 0a20 2070 6163 6b61  td-ssl {.  packa
│ │ │ +0007cb60: 6765 207b 2027 7465 6c6e 6574 642d 7373  ge { 'telnetd-ss
│ │ │ +0007cb70: 6c27 3a0a 2020 2020 656e 7375 7265 203d  l':.    ensure =
│ │ │ +0007cb80: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0007cb90: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -0007df30: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ -0007df40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ +0007caa0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0007cab0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0007caf0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0007cb00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0007dfc0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007dfe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007e030: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007e060: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007dfd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007dff0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007e040: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007e050: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0007e080: 7665 5f74 656c 6e65 7464 0a0a 636c 6173  ve_telnetd..clas
│ │ │ -0007e090: 7320 7265 6d6f 7665 5f74 656c 6e65 7464  s remove_telnetd
│ │ │ -0007e0a0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -0007e0b0: 7465 6c6e 6574 6427 3a0a 2020 2020 656e  telnetd':.    en
│ │ │ -0007e0c0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0007e0d0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0007e190: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0007e1a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0007e230: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007e240: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007e260: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007e280: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007e290: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007e2d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007e2e0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -0007e2f0: 6520 7465 6c6e 6574 2073 6572 7665 723a  e telnet server:
│ │ │ -0007e300: 2045 6e73 7572 6520 7465 6c6e 6574 6420   Ensure telnetd 
│ │ │ -0007e310: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -0007e320: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0007e330: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0007e340: 2074 656c 6e65 7464 0a20 2020 2073 7461   telnetd.    sta
│ │ │ -0007e350: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0007e360: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0007e370: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0007e380: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0007e390: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0007e3a0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0007e3b0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0007e3c0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -0007e3d0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0007e3e0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0007e3f0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0007e400: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0007e410: 2070 6163 6b61 6765 5f74 656c 6e65 7464   package_telnetd
│ │ │ -0007e420: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007df30: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +0007df40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity: │ │ │ +0007dfd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0007dff0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0007e010: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0007e040: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007e050: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0007e080: 6e73 7461 6c6c 2074 6865 2074 656c 6e65  nstall the telne
│ │ │ +0007e090: 7420 7365 7276 6572 3a20 456e 7375 7265  t server: Ensure
│ │ │ +0007e0a0: 2074 656c 6e65 7464 2069 7320 7265 6d6f   telnetd is remo
│ │ │ +0007e0b0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0007e0c0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0007e0d0: 2020 2020 6e61 6d65 3a20 7465 6c6e 6574      name: telnet
│ │ │ +0007e0e0: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ +0007e0f0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0007e100: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0007e110: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0007e120: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +0007e130: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0007e140: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +0007e150: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +0007e160: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +0007e170: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0007e180: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0007e190: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0007e1a0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0007e1b0: 655f 7465 6c6e 6574 645f 7265 6d6f 7665  e_telnetd_remove
│ │ │ +0007e1c0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0007e1d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0007e280: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0007e290: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0007e360: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0007e370: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0007e3d0: 5f74 656c 6e65 7464 0a0a 636c 6173 7320  _telnetd..class 
│ │ │ +0007e3e0: 7265 6d6f 7665 5f74 656c 6e65 7464 207b  remove_telnetd {
│ │ │ +0007e3f0: 0a20 2070 6163 6b61 6765 207b 2027 7465  .  package { 'te
│ │ │ +0007e400: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ +0007e410: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +0007e420: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  0007e430: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediati │ │ │ -00080610: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00080620: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00080630: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00080680: 0a6e 616d 6520 3d20 226e 7470 220a 7665  .name = "ntp".ve
│ │ │ -00080690: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -000806b0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000806c0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000806d0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000806e0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000806f0: 6431 3234 2220 7461 6269 6e64 6578 3d22 d124" tabindex=" │ │ │ -00080700: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00080710: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00080720: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00080730: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00080740: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00080750: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00080760: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +0007e340: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0007e350: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0007e390: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0007e3a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -000807f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00080800: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00080820: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00080840: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00080850: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00080890: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -000808a0: 6520 696e 7374 616c 6c5f 6e74 700a 0a63 e install_ntp..c │ │ │ -000808b0: 6c61 7373 2069 6e73 7461 6c6c 5f6e 7470 lass install_ntp │ │ │ -000808c0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -000808d0: 6e74 7027 3a0a 2020 2020 656e 7375 7265 ntp':. ensure │ │ │ -000808e0: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ -000808f0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ -000809b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -000809c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00080a70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00080a90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00080ac0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00080a50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00080a60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00080a80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00080aa0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00080ab0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00080b00: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00080b10: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00080b20: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00080b30: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00080b40: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00080b50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00080b60: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -00080b70: 340a 2020 2d20 656e 6162 6c65 5f73 7472 4. - enable_str │ │ │ -00080b80: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ -00080b90: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ -00080ba0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00080bb0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00080bc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -00080bd0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e ed. - package_n │ │ │ -00080be0: 7470 5f69 6e73 7461 6c6c 6564 0a0a 2d20 tp_installed..- │ │ │ -00080bf0: 6e61 6d65 3a20 456e 7375 7265 206e 7470 name: Ensure ntp │ │ │ -00080c00: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ -00080c10: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00080c20: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ -00080c30: 653a 206e 7470 0a20 2020 2073 7461 7465 e: ntp. state │ │ │ -00080c40: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ -00080c50: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -00080c60: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00080c70: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ -00080c80: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ -00080c90: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -00080ca0: 4349 2d44 5353 2d52 6571 2d31 302e 340a CI-DSS-Req-10.4. │ │ │ -00080cb0: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ -00080cc0: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ -00080cd0: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ -00080ce0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -00080cf0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -00080d00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00080d10: 0a20 202d 2070 6163 6b61 6765 5f6e 7470 . - package_ntp │ │ │ -00080d20: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.
│ │ │ +000806a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000806b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000806c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00080700: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00080710: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00080730: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +00080750: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00080760: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00080770: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00080780: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00080790: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000807a0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000807b0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +000807c0: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +000807d0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000807e0: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +000807f0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +00080800: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00080810: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00080820: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00080830: 2020 2d20 7061 636b 6167 655f 6e74 705f    - package_ntp_
│ │ │ +00080840: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00080850: 653a 2045 6e73 7572 6520 6e74 7020 6973  e: Ensure ntp is
│ │ │ +00080860: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00080870: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00080880: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00080890: 6e74 700a 2020 2020 7374 6174 653a 2070  ntp.    state: p
│ │ │ +000808a0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000808b0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000808c0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000808d0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +000808e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000808f0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00080900: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +00080910: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00080920: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +00080930: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +00080940: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00080950: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00080960: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00080970: 2d20 7061 636b 6167 655f 6e74 705f 696e  - package_ntp_in
│ │ │ +00080980: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00080990: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00080a40: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00080a50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00080ad0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00080ae0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00080af0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00080b30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00080b40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00080b60: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00080b80: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00080b90: 7374 616c 6c5f 6e74 700a 0a63 6c61 7373  stall_ntp..class
│ │ │ +00080ba0: 2069 6e73 7461 6c6c 5f6e 7470 207b 0a20   install_ntp {. 
│ │ │ +00080bb0: 2070 6163 6b61 6765 207b 2027 6e74 7027   package { 'ntp'
│ │ │ +00080bc0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00080bd0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +00080be0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00080ca0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00080cb0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00080cc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +00080d10: 6e61 6d65 203d 2022 6e74 7022 0a76 6572  name = "ntp".ver
│ │ │ +00080d20: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2016,14 +1999,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2053,31 +2053,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2114,14 +2097,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2153,31 +2153,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2200,14 +2183,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2239,31 +2239,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2300,14 +2283,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4584,27 +4584,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4617,14 +4604,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4657,27 +4657,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4686,14 +4673,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -4728,27 +4728,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4757,14 +4744,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -4816,27 +4816,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -4849,14 +4836,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -4908,27 +4908,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4940,14 +4927,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -5041,31 +5041,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5090,14 +5073,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_high.html │ │ │ @@ -21517,129 +21517,129 @@ │ │ │ 000540c0: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 000540d0: 6765 743d 2223 6964 3333 2220 7461 6269 get="#id33" tabi │ │ │ 000540e0: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 000540f0: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 00054100: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 00054110: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 00054120: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -00054130: 223e 5265 6d65 6469 6174 696f 6e20 4f53 ">Remediation OS │ │ │ -00054140: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00054150: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00054160: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ -000541a0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000541b0: 3d20 2273 7973 6c6f 672d 6e67 220a 7665  = "syslog-ng".ve
│ │ │ -000541c0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -000541e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000541f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00054200: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00054210: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00054220: 6433 3422 2074 6162 696e 6465 783d 2230 d34" tabindex="0 │ │ │ -00054230: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00054240: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00054250: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00054260: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00054270: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00054280: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00054290: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000542d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00054340: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00054360: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00054390: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000543b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00054320: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00054330: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00054370: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00054380: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000543d0: 696e 7374 616c 6c5f 7379 736c 6f67 2d6e install_syslog-n │ │ │ -000543e0: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ -000543f0: 5f73 7973 6c6f 672d 6e67 207b 0a20 2070 _syslog-ng {. p │ │ │ -00054400: 6163 6b61 6765 207b 2027 7379 736c 6f67 ackage { 'syslog │ │ │ -00054410: 2d6e 6727 3a0a 2020 2020 656e 7375 7265 -ng':. ensure │ │ │ -00054420: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ -00054430: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedia │ │ │ -000544f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00054500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00054510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00054540: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00054550: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00054560: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00054570: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00054580: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00054590: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000545a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000545e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000545f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00054610: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00054620: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00054640: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00054650: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00054660: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00054670: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00054680: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00054690: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -000546a0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000546b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000546c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000546d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000546e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000546f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00054700: 2d20 7061 636b 6167 655f 7379 736c 6f67  - package_syslog
│ │ │ -00054710: 6e67 5f69 6e73 7461 6c6c 6564 0a0a 2d20  ng_installed..- 
│ │ │ -00054720: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ -00054730: 6c6f 672d 6e67 2069 7320 696e 7374 616c  log-ng is instal
│ │ │ -00054740: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -00054750: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00054760: 2020 206e 616d 653a 2073 7973 6c6f 672d     name: syslog-
│ │ │ -00054770: 6e67 0a20 2020 2073 7461 7465 3a20 7072  ng.    state: pr
│ │ │ -00054780: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00054790: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -000547a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000547b0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000547c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000547d0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -000547e0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000547f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00054800: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00054810: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00054820: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00054830: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00054840: 636b 6167 655f 7379 736c 6f67 6e67 5f69  ckage_syslogng_i
│ │ │ -00054850: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00054130: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +00054140: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00054150: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity: │ │ │ +00054220: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00054230: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00054280: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00054290: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000542a0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000542b0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000542c0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000542d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +000542e0: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +000542f0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00054300: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00054310: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00054320: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00054330: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00054340: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00054350: 6765 5f73 7973 6c6f 676e 675f 696e 7374  ge_syslogng_inst
│ │ │ +00054360: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +00054370: 6e73 7572 6520 7379 736c 6f67 2d6e 6720  nsure syslog-ng 
│ │ │ +00054380: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +00054390: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000543a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000543b0: 3a20 7379 736c 6f67 2d6e 670a 2020 2020  : syslog-ng.    
│ │ │ +000543c0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +000543d0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +000543e0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +000543f0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00054400: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00054410: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00054420: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00054430: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00054440: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00054450: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00054460: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00054470: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00054480: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +00054490: 7973 6c6f 676e 675f 696e 7374 616c 6c65  yslogng_installe
│ │ │ +000544a0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000544b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +00054560: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00054570: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +00054200: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00054210: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00054250: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00054260: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00054600: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000546a0: 636c 7564 6520 696e 7374 616c 6c5f 7379  clude install_sy
│ │ │ +000546b0: 736c 6f67 2d6e 670a 0a63 6c61 7373 2069  slog-ng..class i
│ │ │ +000546c0: 6e73 7461 6c6c 5f73 7973 6c6f 672d 6e67  nstall_syslog-ng
│ │ │ +000546d0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000546e0: 7379 736c 6f67 2d6e 6727 3a0a 2020 2020  syslog-ng':.    
│ │ │ +000546f0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +00054700: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +00054710: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +000547c0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +000547d0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +000547e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000547f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00054820: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +00054830: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +00054840: 7379 736c 6f67 2d6e 6722 0a76 6572 7369 syslog-ng".versi │ │ │ +00054850: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e on = "*". │ │ │ 00054860: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remediation │ │ │ -000558f0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00055900: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -00055950: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00055960: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -00055970: 6564 203d 205b 2273 7973 6c6f 672d 6e67  ed = ["syslog-ng
│ │ │ -00055980: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00055990: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -00055a40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00055a50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +000545f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00054620: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00054630: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00054670: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00054680: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00055b20: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00055b30: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00055b80: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ -00055b90: 736c 6f67 2d6e 670a 0a63 6c61 7373 2065  slog-ng..class e
│ │ │ -00055ba0: 6e61 626c 655f 7379 736c 6f67 2d6e 6720  nable_syslog-ng 
│ │ │ -00055bb0: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ -00055bc0: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ -00055bd0: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ -00055be0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00055bf0: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ -00055c00: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00055c10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -00055cc0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00055cd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ -00055b00: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00055b10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00055b50: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00055b60: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -00055da0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00055db0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00055e00: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00055e10: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00055e20: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00055e30: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00055e40: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00055e50: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -00055e60: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00055e70: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00055e80: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00055e90: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00055ea0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00055eb0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00055ec0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00055ed0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00055ee0: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ -00055ef0: 676e 675f 656e 6162 6c65 640a 0a2d 206e  gng_enabled..- n
│ │ │ -00055f00: 616d 653a 2045 6e61 626c 6520 7379 736c  ame: Enable sysl
│ │ │ -00055f10: 6f67 2d6e 6720 5365 7276 6963 6520 2d20  og-ng Service - 
│ │ │ -00055f20: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ -00055f30: 7973 6c6f 672d 6e67 0a20 2062 6c6f 636b  yslog-ng.  block
│ │ │ -00055f40: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -00055f50: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00055f60: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -00055f70: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00055f80: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -00055f90: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -00055fa0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -00055fb0: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ -00055fc0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00055fd0: 6520 7379 736c 6f67 2d6e 670a 2020 2020  e syslog-ng.    
│ │ │ -00055fe0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00055ff0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00056000: 616d 653a 2073 7973 6c6f 672d 6e67 0a20  ame: syslog-ng. 
│ │ │ -00056010: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -00056020: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -00056030: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -00056040: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -00056050: 7768 656e 3a0a 2020 2020 2d20 2722 7379  when:.    - '"sy
│ │ │ -00056060: 736c 6f67 2d6e 6722 2069 6e20 616e 7369  slog-ng" in ansi
│ │ │ -00056070: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00056080: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00056090: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -000560a0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -000560b0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -000560c0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000560d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000560e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000560f0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00056100: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00056110: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00056120: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ -00056130: 676e 675f 656e 6162 6c65 640a 2020 2d20  gng_enabled.  - 
│ │ │ -00056140: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -00056150: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -00056160: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00056170: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00056180: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
low< │ │ │ +000559d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00055a20: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -00055d80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00055d90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00055dd0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00055de0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00055990: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000559b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00055a00: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00055a10: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +00055a40: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00055a50: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00055a60: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00055a70: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00055a80: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00055a90: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +00055aa0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00055ab0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00055ac0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00055ad0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00055ae0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00055af0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00055b00: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00055b10: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +00055b20: 736c 6f67 6e67 5f65 6e61 626c 6564 0a0a  slogng_enabled..
│ │ │ +00055b30: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +00055b40: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ +00055b50: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ +00055b60: 6520 7379 736c 6f67 2d6e 670a 2020 626c  e syslog-ng.  bl
│ │ │ +00055b70: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00055b80: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00055b90: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00055ba0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00055bb0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00055bc0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00055bd0: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +00055be0: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ +00055bf0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +00055c00: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ +00055c10: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00055c20: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00055c30: 2020 6e61 6d65 3a20 7379 736c 6f67 2d6e    name: syslog-n
│ │ │ +00055c40: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ +00055c50: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00055c60: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +00055c70: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +00055c80: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +00055c90: 2273 7973 6c6f 672d 6e67 2220 696e 2061  "syslog-ng" in a
│ │ │ +00055ca0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00055cb0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00055cc0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00055cd0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +00055ce0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00055cf0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00055d00: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00055d10: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00055d20: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00055d30: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00055d40: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00055d50: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +00055d60: 736c 6f67 6e67 5f65 6e61 626c 6564 0a20  slogng_enabled. 
│ │ │ +00055d70: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00055d80: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00055d90: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00055da0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00055db0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedia │ │ │ +00055e70: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00055e80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00055e90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00055ea0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00055eb0: 7365 2220 6964 3d22 6964 3339 223e 3c74 se" id="id39"> │ │ │ +00055f00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00055f10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00055f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00055f60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00055f70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00055f90: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00055fb0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +00055fc0: 6162 6c65 5f73 7973 6c6f 672d 6e67 0a0a  able_syslog-ng..
│ │ │ +00055fd0: 636c 6173 7320 656e 6162 6c65 5f73 7973  class enable_sys
│ │ │ +00055fe0: 6c6f 672d 6e67 207b 0a20 2073 6572 7669  log-ng {.  servi
│ │ │ +00055ff0: 6365 207b 2773 7973 6c6f 672d 6e67 273a  ce {'syslog-ng':
│ │ │ +00056000: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00056010: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ +00056020: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ +00056030: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedia │ │ │ +000560f0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00056100: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00056110: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[customizat
│ │ │ +00056160: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +00056170: 6e61 626c 6564 203d 205b 2273 7973 6c6f  nabled = ["syslo
│ │ │ +00056180: 672d 6e67 225d 0a3c 2f63 6f64 653e 3c2f  g-ng"].
Remediation OS │ │ │ -000572d0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000572e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000572f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ -00057330: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -00057340: 3d20 2272 7379 736c 6f67 220a 7665 7273  = "rsyslog".vers
│ │ │ -00057350: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -00057410: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00057420: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00057430: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00057440: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00057450: 7365 2220 6964 3d22 6964 3434 223e 3c74 se" id="id44"> │ │ │ -000574a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000574b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000574c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00057500: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00057510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00057530: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00057550: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00057560: 7374 616c 6c5f 7273 7973 6c6f 670a 0a63  stall_rsyslog..c
│ │ │ -00057570: 6c61 7373 2069 6e73 7461 6c6c 5f72 7379  lass install_rsy
│ │ │ -00057580: 736c 6f67 207b 0a20 2070 6163 6b61 6765  slog {.  package
│ │ │ -00057590: 207b 2027 7273 7973 6c6f 6727 3a0a 2020   { 'rsyslog':.  
│ │ │ -000575a0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000575b0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -000575c0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000575d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -00057680: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00057690: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00057760: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00057770: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000577c0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000577d0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000577e0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000577f0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00057800: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00057810: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00057820: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00057830: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00057840: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00057850: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00057860: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00057870: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00057880: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00057890: 655f 7273 7973 6c6f 675f 696e 7374 616c  e_rsyslog_instal
│ │ │ -000578a0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -000578b0: 7572 6520 7273 7973 6c6f 6720 6973 2069  ure rsyslog is i
│ │ │ -000578c0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000578d0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000578e0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ -000578f0: 7973 6c6f 670a 2020 2020 7374 6174 653a  yslog.    state:
│ │ │ -00057900: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00057910: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00057920: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00057930: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00057940: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00057950: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00057960: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00057970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00057980: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00057990: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000579a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000579b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000579c0: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ -000579d0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.Remediation An
│ │ │ +000572d0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000572e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity:low
Disrup │ │ │ -00057740: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00057750: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00057790: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000577a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +000573b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000573c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00057410: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00057420: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00057430: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00057440: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00057450: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00057460: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00057470: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +00057480: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00057490: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000574a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000574b0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000574c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000574d0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000574e0: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ +000574f0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +00057500: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ +00057510: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +00057520: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00057530: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +00057540: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ +00057550: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +00057560: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00057570: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00057580: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +00057590: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000575a0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +000575b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000575c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000575d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000575e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000575f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00057600: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00057610: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +00057620: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.
< │ │ │ +00057640: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00057650: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00057660: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00057670: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00057680: 6434 3422 2074 6162 696e 6465 783d 2230 d44" tabindex="0 │ │ │ +00057690: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +000576a0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +000576b0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +000576c0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +000576d0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +000576e0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000576f0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00057730: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +00057390: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000573a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000573e0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000573f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000577a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000577c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000577f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00057810: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00057780: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00057790: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000577d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000577e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00057830: 696e 7374 616c 6c5f 7273 7973 6c6f 670a install_rsyslog. │ │ │ +00057840: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f72 .class install_r │ │ │ +00057850: 7379 736c 6f67 207b 0a20 2070 6163 6b61 syslog {. packa │ │ │ +00057860: 6765 207b 2027 7273 7973 6c6f 6727 3a0a ge { 'rsyslog':. │ │ │ +00057870: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +00057880: 2027 696e 7374 616c 6c65 6427 2c0a 2020 'installed',. │ │ │ +00057890: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation O │ │ │ +00057950: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00057960: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00057970: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +000579b0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +000579c0: 203d 2022 7273 7973 6c6f 6722 0a76 6572   = "rsyslog".ver
│ │ │ +000579d0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediation O │ │ │ -00058bf0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00058c00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00058c10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -00058c50: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -00058c60: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -00058c70: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │ -00058c80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -00058d30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00058d40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00058d50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -00058dd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00058e00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00058e20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00058e30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00058e50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00058e70: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00058e80: 6465 2065 6e61 626c 655f 7273 7973 6c6f  de enable_rsyslo
│ │ │ -00058e90: 670a 0a63 6c61 7373 2065 6e61 626c 655f  g..class enable_
│ │ │ -00058ea0: 7273 7973 6c6f 6720 7b0a 2020 7365 7276  rsyslog {.  serv
│ │ │ -00058eb0: 6963 6520 7b27 7273 7973 6c6f 6727 3a0a  ice {'rsyslog':.
│ │ │ -00058ec0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -00058ed0: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ -00058ee0: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ -00058ef0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00058f00: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00058fb0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00058fc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00058fd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00058fe0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00058ff0: 7365 2220 6964 3d22 6964 3530 223e 3c74 se" id="id50"> │ │ │ -00059040: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00059050: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00059060: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000590a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000590b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000590d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000590f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00059100: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00059110: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00059120: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00059130: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00059140: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00059150: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -00059160: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00059170: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -00059180: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00059190: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000591a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000591b0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000591c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000591d0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -000591e0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -000591f0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ -00059200: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ -00059210: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -00059220: 6520 7273 7973 6c6f 670a 2020 626c 6f63  e rsyslog.  bloc
│ │ │ -00059230: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -00059240: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00059250: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -00059260: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00059270: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -00059280: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -00059290: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -000592a0: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -000592b0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -000592c0: 2072 7379 736c 6f67 0a20 2020 2061 6e73   rsyslog.    ans
│ │ │ -000592d0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000592e0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000592f0: 3a20 7273 7973 6c6f 670a 2020 2020 2020  : rsyslog.      
│ │ │ -00059300: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -00059310: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -00059320: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -00059330: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -00059340: 0a20 2020 202d 2027 2272 7379 736c 6f67  .    - '"rsyslog
│ │ │ -00059350: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00059360: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00059370: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00059380: 302d 3533 2d41 552d 3428 3129 0a20 202d  0-53-AU-4(1).  -
│ │ │ -00059390: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000593a0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000593b0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000593c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000593d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000593e0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000593f0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00059400: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00059410: 6963 655f 7273 7973 6c6f 675f 656e 6162  ice_rsyslog_enab
│ │ │ -00059420: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00059430: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00059440: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00059450: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00059460: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00058be0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00058bf0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00058c00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
< │ │ │ +00058c80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00058ca0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00058cf0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00058d40: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00058d50: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00058d60: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00058d70: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00058d80: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00058d90: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +00058da0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00058db0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00058dc0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00058dd0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00058de0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00058df0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00058e00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00058e10: 2020 2d20 7365 7276 6963 655f 7273 7973    - service_rsys
│ │ │ +00058e20: 6c6f 675f 656e 6162 6c65 640a 0a2d 206e  log_enabled..- n
│ │ │ +00058e30: 616d 653a 2045 6e61 626c 6520 7273 7973  ame: Enable rsys
│ │ │ +00058e40: 6c6f 6720 5365 7276 6963 6520 2d20 456e  log Service - En
│ │ │ +00058e50: 6162 6c65 2073 6572 7669 6365 2072 7379  able service rsy
│ │ │ +00058e60: 736c 6f67 0a20 2062 6c6f 636b 3a0a 0a20  slog.  block:.. 
│ │ │ +00058e70: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00058e80: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00058e90: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00058ea0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00058eb0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00058ec0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00058ed0: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ +00058ee0: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ +00058ef0: 626c 6520 5365 7276 6963 6520 7273 7973  ble Service rsys
│ │ │ +00058f00: 6c6f 670a 2020 2020 616e 7369 626c 652e  log.    ansible.
│ │ │ +00058f10: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00058f20: 0a20 2020 2020 206e 616d 653a 2072 7379  .      name: rsy
│ │ │ +00058f30: 736c 6f67 0a20 2020 2020 2065 6e61 626c  slog.      enabl
│ │ │ +00058f40: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00058f50: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00058f60: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +00058f70: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +00058f80: 2d20 2722 7273 7973 6c6f 6722 2069 6e20  - '"rsyslog" in 
│ │ │ +00058f90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00058fa0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00058fb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00058fc0: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +00058fd0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00058fe0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00058ff0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00059000: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00059010: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00059020: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00059030: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00059040: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +00059050: 7379 736c 6f67 5f65 6e61 626c 6564 0a20  syslog_enabled. 
│ │ │ +00059060: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00059070: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00059080: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00059090: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000590a0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedia │ │ │ +00059160: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00059170: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00059180: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00059190: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000591a0: 7365 2220 6964 3d22 6964 3439 223e 3c74 se" id="id49"> │ │ │ +000591f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +00059280: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disr │ │ │ +00058cb0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00058cc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00058d00: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00058d10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +00059200: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00059210: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00059250: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00059260: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +000592a0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +000592b0: 6162 6c65 5f72 7379 736c 6f67 0a0a 636c  able_rsyslog..cl
│ │ │ +000592c0: 6173 7320 656e 6162 6c65 5f72 7379 736c  ass enable_rsysl
│ │ │ +000592d0: 6f67 207b 0a20 2073 6572 7669 6365 207b  og {.  service {
│ │ │ +000592e0: 2772 7379 736c 6f67 273a 0a20 2020 2065  'rsyslog':.    e
│ │ │ +000592f0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +00059300: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +00059310: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +00059320: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +000593e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000593f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00059400: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +00059440: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00059450: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +00059460: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │  00059470: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -0007b3a0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0007b3b0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -0007b410: 616d 6520 3d20 2263 726f 6e22 0a76 6572  ame = "cron".ver
│ │ │ -0007b420: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -0007b4e0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0007b4f0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007b5a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007b5c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007b5f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007b580: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007b590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007b5b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007b5d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007b5e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0007b630: 2069 6e73 7461 6c6c 5f63 726f 6e0a 0a63 install_cron..c │ │ │ -0007b640: 6c61 7373 2069 6e73 7461 6c6c 5f63 726f lass install_cro │ │ │ -0007b650: 6e20 7b0a 2020 7061 636b 6167 6520 7b20 n {. package { │ │ │ -0007b660: 2763 726f 6e27 3a0a 2020 2020 656e 7375 'cron':. ensu │ │ │ -0007b670: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -0007b680: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ -0007b6a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007b6b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007b6c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007b6d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007b6e0: 6431 3038 2220 7461 6269 6e64 6578 3d22 d108" tabindex=" │ │ │ -0007b6f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007b700: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007b710: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007b720: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007b730: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007b740: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0007b750: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007b760: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007b7e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007b810: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007b830: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007b840: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007b860: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0007b880: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007b890: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0007b8a0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0007b8b0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0007b8c0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0007b8d0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0007b8e0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0007b8f0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0007b900: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0007b910: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ -0007b920: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0007b930: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007b940: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007b950: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0007b960: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0007b970: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0007b980: 6167 655f 6372 6f6e 5f69 6e73 7461 6c6c  age_cron_install
│ │ │ -0007b990: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -0007b9a0: 7265 2063 726f 6e20 6973 2069 6e73 7461  re cron is insta
│ │ │ -0007b9b0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -0007b9c0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0007b9d0: 2020 2020 6e61 6d65 3a20 6372 6f6e 0a20      name: cron. 
│ │ │ -0007b9e0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -0007b9f0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -0007ba00: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0007ba10: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0007ba20: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -0007ba30: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0007ba40: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ -0007ba50: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0007ba60: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ -0007ba70: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0007ba80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0007ba90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0007baa0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0007bab0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0007bac0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0007bad0: 7061 636b 6167 655f 6372 6f6e 5f69 6e73  package_cron_ins
│ │ │ -0007bae0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Complexity │ │ │ +0007b440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0007b460: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0007b470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007b480: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0007b490: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0007b4b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0007b4f0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0007b500: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0007b510: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0007b520: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0007b530: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0007b540: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +0007b550: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +0007b560: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +0007b570: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0007b580: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0007b590: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0007b5a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0007b5b0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0007b5c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007b5d0: 0a20 202d 2070 6163 6b61 6765 5f63 726f  .  - package_cro
│ │ │ +0007b5e0: 6e5f 696e 7374 616c 6c65 640a 0a2d 206e  n_installed..- n
│ │ │ +0007b5f0: 616d 653a 2045 6e73 7572 6520 6372 6f6e  ame: Ensure cron
│ │ │ +0007b600: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +0007b610: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0007b620: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0007b630: 653a 2063 726f 6e0a 2020 2020 7374 6174  e: cron.    stat
│ │ │ +0007b640: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +0007b650: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +0007b660: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0007b670: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +0007b680: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0007b690: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0007b6a0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0007b6b0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0007b6c0: 360a 2020 2d20 656e 6162 6c65 5f73 7472  6.  - enable_str
│ │ │ +0007b6d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0007b6e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0007b6f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0007b700: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0007b710: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0007b720: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0007b730: 5f63 726f 6e5f 696e 7374 616c 6c65 640a  _cron_installed.
│ │ │ +0007b740: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0007b7f0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0007b800: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0007b8a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0007b940: 636c 7564 6520 696e 7374 616c 6c5f 6372  clude install_cr
│ │ │ +0007b950: 6f6e 0a0a 636c 6173 7320 696e 7374 616c  on..class instal
│ │ │ +0007b960: 6c5f 6372 6f6e 207b 0a20 2070 6163 6b61  l_cron {.  packa
│ │ │ +0007b970: 6765 207b 2027 6372 6f6e 273a 0a20 2020  ge { 'cron':.   
│ │ │ +0007b980: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +0007b990: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +0007b9a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +0007ba60: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0007ba70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +0007bac0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +0007bad0: 3d20 2263 726f 6e22 0a76 6572 7369 6f6e  = "cron".version
│ │ │ +0007bae0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Reme │ │ │ -0007d020: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0007d030: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0007b890: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007b8c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007b8d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007b910: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0007b920: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -0007d0c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007d0d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007d0f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007d110: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007d120: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007d160: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0007d170: 7564 6520 7265 6d6f 7665 5f69 6e65 7475  ude remove_inetu
│ │ │ -0007d180: 7469 6c73 2d74 656c 6e65 7464 0a0a 636c  tils-telnetd..cl
│ │ │ -0007d190: 6173 7320 7265 6d6f 7665 5f69 6e65 7475  ass remove_inetu
│ │ │ -0007d1a0: 7469 6c73 2d74 656c 6e65 7464 207b 0a20  tils-telnetd {. 
│ │ │ -0007d1b0: 2070 6163 6b61 6765 207b 2027 696e 6574   package { 'inet
│ │ │ -0007d1c0: 7574 696c 732d 7465 6c6e 6574 6427 3a0a  utils-telnetd':.
│ │ │ -0007d1d0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0007d1e0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -0007d1f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0007d2b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0007d2c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0007d390: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0007d3a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -0007d400: 616c 6c20 7468 6520 696e 6574 2d62 6173  all the inet-bas
│ │ │ -0007d410: 6564 2074 656c 6e65 7420 7365 7276 6572  ed telnet server
│ │ │ -0007d420: 3a20 456e 7375 7265 2069 6e65 7475 7469  : Ensure inetuti
│ │ │ -0007d430: 6c73 2d74 656c 6e65 7464 2069 7320 7265  ls-telnetd is re
│ │ │ -0007d440: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0007d450: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007d460: 3a0a 2020 2020 6e61 6d65 3a20 696e 6574  :.    name: inet
│ │ │ -0007d470: 7574 696c 732d 7465 6c6e 6574 640a 2020  utils-telnetd.  
│ │ │ -0007d480: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -0007d490: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0007d4a0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0007d4b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0007d4c0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -0007d4d0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -0007d4e0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0007d4f0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -0007d500: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -0007d510: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0007d520: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0007d530: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0007d540: 640a 2020 2d20 7061 636b 6167 655f 696e  d.  - package_in
│ │ │ -0007d550: 6574 7574 696c 732d 7465 6c6e 6574 645f  etutils-telnetd_
│ │ │ -0007d560: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +0007d020: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0007d030: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0007d040: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disru │ │ │ -0007d370: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0007d380: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0007d3c0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0007d3d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +0007d0c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007d0f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007d110: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007d120: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007d140: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007d150: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007d170: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +0007d180: 6865 2069 6e65 742d 6261 7365 6420 7465  he inet-based te
│ │ │ +0007d190: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ +0007d1a0: 7572 6520 696e 6574 7574 696c 732d 7465  ure inetutils-te
│ │ │ +0007d1b0: 6c6e 6574 6420 6973 2072 656d 6f76 6564  lnetd is removed
│ │ │ +0007d1c0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0007d1d0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0007d1e0: 206e 616d 653a 2069 6e65 7475 7469 6c73   name: inetutils
│ │ │ +0007d1f0: 2d74 656c 6e65 7464 0a20 2020 2073 7461  -telnetd.    sta
│ │ │ +0007d200: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +0007d210: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0007d220: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0007d230: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0007d240: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0007d250: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0007d260: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0007d270: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +0007d280: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0007d290: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0007d2a0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0007d2b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0007d2c0: 2070 6163 6b61 6765 5f69 6e65 7475 7469   package_inetuti
│ │ │ +0007d2d0: 6c73 2d74 656c 6e65 7464 5f72 656d 6f76  ls-telnetd_remov
│ │ │ +0007d2e0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007d2f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0007d3a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0007d3b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007d430: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007d450: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007d4a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007d4d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0007d4f0: 655f 696e 6574 7574 696c 732d 7465 6c6e  e_inetutils-teln
│ │ │ +0007d500: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ +0007d510: 655f 696e 6574 7574 696c 732d 7465 6c6e  e_inetutils-teln
│ │ │ +0007d520: 6574 6420 7b0a 2020 7061 636b 6167 6520  etd {.  package 
│ │ │ +0007d530: 7b20 2769 6e65 7475 7469 6c73 2d74 656c  { 'inetutils-tel
│ │ │ +0007d540: 6e65 7464 273a 0a20 2020 2065 6e73 7572  netd':.    ensur
│ │ │ +0007d550: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +0007d560: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  0007d570: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediation 
│ │ │ -0007e1e0: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ -0007e1f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disr │ │ │ +0007d460: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007d470: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007d4b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007d4c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -0007e270: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007e290: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007e2e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007e310: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007e280: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007e2a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007e2f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007e300: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0007e330: 7665 5f6e 6973 0a0a 636c 6173 7320 7265  ve_nis..class re
│ │ │ -0007e340: 6d6f 7665 5f6e 6973 207b 0a20 2070 6163  move_nis {.  pac
│ │ │ -0007e350: 6b61 6765 207b 2027 6e69 7327 3a0a 2020  kage { 'nis':.  
│ │ │ -0007e360: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0007e370: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0007e380: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0007e430: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0007e440: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0007e4e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0007e580: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -0007e590: 6c20 7468 6520 6e69 7320 7061 636b 6167  l the nis packag
│ │ │ -0007e5a0: 653a 2045 6e73 7572 6520 6e69 7320 6973  e: Ensure nis is
│ │ │ -0007e5b0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0007e5c0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0007e5d0: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ -0007e5e0: 6973 0a20 2020 2073 7461 7465 3a20 6162  is.    state: ab
│ │ │ -0007e5f0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0007e600: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0007e610: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0007e620: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0007e630: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -0007e640: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0007e650: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0007e660: 2d20 7061 636b 6167 655f 6e69 735f 7265  - package_nis_re
│ │ │ -0007e670: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


low< │ │ │ +0007e2c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -0007e4d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007e500: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007e510: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007e550: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007e560: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +0007e280: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0007e2a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0007e2f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007e300: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0007e330: 6e73 7461 6c6c 2074 6865 206e 6973 2070  nstall the nis p
│ │ │ +0007e340: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ +0007e350: 6973 2069 7320 7265 6d6f 7665 6427 0a20  is is removed'. 
│ │ │ +0007e360: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0007e370: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0007e380: 6d65 3a20 6e69 730a 2020 2020 7374 6174  me: nis.    stat
│ │ │ +0007e390: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0007e3a0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0007e3b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0007e3c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0007e3d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0007e3e0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +0007e3f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007e400: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ +0007e410: 6973 5f72 656d 6f76 6564 0a3c 2f63 6f64  is_removed.
Remed │ │ │ +0007e4d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0007e4e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0007e590: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0007e5b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0007e5e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0007e570: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0007e580: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0007e5a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0007e5c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0007e5d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0007e610: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0007e620: 6465 2072 656d 6f76 655f 6e69 730a 0a63 de remove_nis..c │ │ │ +0007e630: 6c61 7373 2072 656d 6f76 655f 6e69 7320 lass remove_nis │ │ │ +0007e640: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ +0007e650: 6973 273a 0a20 2020 2065 6e73 7572 6520 is':. ensure │ │ │ +0007e660: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +0007e670: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

│ │ │ -0007f2a0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0007f2b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0007f350: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0007f3f0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ -0007f400: 7470 6461 7465 0a0a 636c 6173 7320 7265  tpdate..class re
│ │ │ -0007f410: 6d6f 7665 5f6e 7470 6461 7465 207b 0a20  move_ntpdate {. 
│ │ │ -0007f420: 2070 6163 6b61 6765 207b 2027 6e74 7064   package { 'ntpd
│ │ │ -0007f430: 6174 6527 3a0a 2020 2020 656e 7375 7265  ate':.    ensure
│ │ │ -0007f440: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0007f450: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0007f510: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0007f520: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0007f5a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0007f630: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007f640: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -0007f340: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007f370: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007f380: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007f3c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007f3d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0007f5b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007f5c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0007f600: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007f610: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -0007f660: 556e 696e 7374 616c 6c20 7468 6520 6e74  Uninstall the nt
│ │ │ -0007f670: 7064 6174 6520 7061 636b 6167 653a 2045  pdate package: E
│ │ │ -0007f680: 6e73 7572 6520 6e74 7064 6174 6520 6973  nsure ntpdate is
│ │ │ -0007f690: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0007f6a0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0007f6b0: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ -0007f6c0: 7470 6461 7465 0a20 2020 2073 7461 7465  tpdate.    state
│ │ │ -0007f6d0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -0007f6e0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0007f6f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0007f700: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0007f710: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0007f720: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0007f730: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0007f740: 640a 2020 2d20 7061 636b 6167 655f 6e74  d.  - package_nt
│ │ │ -0007f750: 7064 6174 655f 7265 6d6f 7665 640a 3c2f  pdate_removed.
< │ │ │ +0007f390: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007f3a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007f3f0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0007f400: 6c6c 2074 6865 206e 7470 6461 7465 2070  ll the ntpdate p
│ │ │ +0007f410: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ +0007f420: 7470 6461 7465 2069 7320 7265 6d6f 7665  tpdate is remove
│ │ │ +0007f430: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0007f440: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0007f450: 2020 6e61 6d65 3a20 6e74 7064 6174 650a    name: ntpdate.
│ │ │ +0007f460: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0007f470: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ +0007f480: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0007f490: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0007f4a0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0007f4b0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +0007f4c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0007f4d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0007f4e0: 6163 6b61 6765 5f6e 7470 6461 7465 5f72  ackage_ntpdate_r
│ │ │ +0007f4f0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0007f5b0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0007f5c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0007f640: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0007f680: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +0007f370: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007f380: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007f3c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007f3d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +0007f650: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0007f670: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0007f6a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0007f6c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0007f6f0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0007f700: 656d 6f76 655f 6e74 7064 6174 650a 0a63  emove_ntpdate..c
│ │ │ +0007f710: 6c61 7373 2072 656d 6f76 655f 6e74 7064  lass remove_ntpd
│ │ │ +0007f720: 6174 6520 7b0a 2020 7061 636b 6167 6520  ate {.  package 
│ │ │ +0007f730: 7b20 276e 7470 6461 7465 273a 0a20 2020  { 'ntpdate':.   
│ │ │ +0007f740: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0007f750: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Rem │ │ │ -00080ae0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00080af0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00080b00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00080b80: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00080bb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00080bd0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00080be0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00080c00: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00080c10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00080c30: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ -00080c40: 6574 642d 7373 6c0a 0a63 6c61 7373 2072  etd-ssl..class r
│ │ │ -00080c50: 656d 6f76 655f 7465 6c6e 6574 642d 7373  emove_telnetd-ss
│ │ │ -00080c60: 6c20 7b0a 2020 7061 636b 6167 6520 7b20  l {.  package { 
│ │ │ -00080c70: 2774 656c 6e65 7464 2d73 736c 273a 0a20  'telnetd-ssl':. 
│ │ │ -00080c80: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00080c90: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00080ca0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00080d50: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00080d60: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00080d70: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00080e40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00080e50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00080ea0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00080eb0: 6c6c 2074 6865 2073 736c 2063 6f6d 706c  ll the ssl compl
│ │ │ -00080ec0: 6961 6e74 2074 656c 6e65 7420 7365 7276  iant telnet serv
│ │ │ -00080ed0: 6572 3a20 456e 7375 7265 2074 656c 6e65  er: Ensure telne
│ │ │ -00080ee0: 7464 2d73 736c 2069 7320 7265 6d6f 7665  td-ssl is remove
│ │ │ -00080ef0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00080f00: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00080f10: 2020 6e61 6d65 3a20 7465 6c6e 6574 642d    name: telnetd-
│ │ │ -00080f20: 7373 6c0a 2020 2020 7374 6174 653a 2061  ssl.    state: a
│ │ │ -00080f30: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00080f40: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00080f50: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00080f60: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00080f70: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00080f80: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00080f90: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -00080fa0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -00080fb0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00080fc0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00080fd0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00080fe0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00080ff0: 6167 655f 7465 6c6e 6574 642d 7373 6c5f  age_telnetd-ssl_
│ │ │ -00081000: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00080ae0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00080af0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00080b00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
Complexity:low
Disrup │ │ │ -00080e20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00080e30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00080e70: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00080e80: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +00080ba0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00080bf0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00080c30: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00080c40: 7468 6520 7373 6c20 636f 6d70 6c69 616e  the ssl complian
│ │ │ +00080c50: 7420 7465 6c6e 6574 2073 6572 7665 723a  t telnet server:
│ │ │ +00080c60: 2045 6e73 7572 6520 7465 6c6e 6574 642d   Ensure telnetd-
│ │ │ +00080c70: 7373 6c20 6973 2072 656d 6f76 6564 270a  ssl is removed'.
│ │ │ +00080c80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00080c90: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00080ca0: 616d 653a 2074 656c 6e65 7464 2d73 736c  ame: telnetd-ssl
│ │ │ +00080cb0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00080cc0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00080cd0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00080ce0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00080cf0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00080d00: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00080d10: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +00080d20: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +00080d30: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +00080d40: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00080d50: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00080d60: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00080d70: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00080d80: 5f74 656c 6e65 7464 2d73 736c 5f72 656d  _telnetd-ssl_rem
│ │ │ +00080d90: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation
│ │ │ +00080e50: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +00080e60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +00080f30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Co │ │ │ +00080b80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00080bb0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00080bd0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00080be0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00080c00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00080c10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +00080ef0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00080f10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00080f60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00080f70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00080fa0: 6f76 655f 7465 6c6e 6574 642d 7373 6c0a  ove_telnetd-ssl.
│ │ │ +00080fb0: 0a63 6c61 7373 2072 656d 6f76 655f 7465  .class remove_te
│ │ │ +00080fc0: 6c6e 6574 642d 7373 6c20 7b0a 2020 7061  lnetd-ssl {.  pa
│ │ │ +00080fd0: 636b 6167 6520 7b20 2774 656c 6e65 7464  ckage { 'telnetd
│ │ │ +00080fe0: 2d73 736c 273a 0a20 2020 2065 6e73 7572  -ssl':.    ensur
│ │ │ +00080ff0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00081000: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00081010: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -000823a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000823b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00082430: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00082440: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00082460: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00082470: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00082490: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000824b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -000824e0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -000824f0: 656d 6f76 655f 7465 6c6e 6574 640a 0a63  emove_telnetd..c
│ │ │ -00082500: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -00082510: 6574 6420 7b0a 2020 7061 636b 6167 6520  etd {.  package 
│ │ │ -00082520: 7b20 2774 656c 6e65 7464 273a 0a20 2020  { 'telnetd':.   
│ │ │ -00082530: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00082540: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -00082600: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00082610: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -000826b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000826c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00082710: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00082750: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00082760: 2074 6865 2074 656c 6e65 7420 7365 7276   the telnet serv
│ │ │ -00082770: 6572 3a20 456e 7375 7265 2074 656c 6e65  er: Ensure telne
│ │ │ -00082780: 7464 2069 7320 7265 6d6f 7665 6427 0a20  td is removed'. 
│ │ │ -00082790: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000827a0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -000827b0: 6d65 3a20 7465 6c6e 6574 640a 2020 2020  me: telnetd.    
│ │ │ -000827c0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -000827d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -000827e0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000827f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00082800: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -00082810: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -00082820: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00082830: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -00082840: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -00082850: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00082860: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00082870: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00082880: 2020 2d20 7061 636b 6167 655f 7465 6c6e    - package_teln
│ │ │ -00082890: 6574 645f 7265 6d6f 7665 640a 3c2f 636f  etd_removed.
│ │ │ +00082430: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +000824c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +000824d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -000826a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000826d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000826e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00082720: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00082730: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +00082440: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00082450: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00082490: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000824a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ +000824f0: 556e 696e 7374 616c 6c20 7468 6520 7465  Uninstall the te
│ │ │ +00082500: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ +00082510: 7572 6520 7465 6c6e 6574 6420 6973 2072  ure telnetd is r
│ │ │ +00082520: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00082530: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00082540: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ +00082550: 6e65 7464 0a20 2020 2073 7461 7465 3a20  netd.    state: 
│ │ │ +00082560: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00082570: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00082580: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00082590: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +000825a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000825b0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +000825c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000825d0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +000825e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000825f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00082600: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00082610: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00082620: 6b61 6765 5f74 656c 6e65 7464 5f72 656d  kage_telnetd_rem
│ │ │ +00082630: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +000826f0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00082700: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00082790: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000827b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000827d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00082800: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00082810: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00082840: 6f76 655f 7465 6c6e 6574 640a 0a63 6c61  ove_telnetd..cla
│ │ │ +00082850: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ +00082860: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +00082870: 2774 656c 6e65 7464 273a 0a20 2020 2065  'telnetd':.    e
│ │ │ +00082880: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00082890: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 000828b0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000828c0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000828d0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000828e0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000828f0: 6431 3239 2220 7461 6269 6e64 6578 3d22 d129" tabindex=" │ │ │ 00082900: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -33954,128 +33954,128 @@ │ │ │ 00084a10: 6174 612d 7461 7267 6574 3d22 2369 6431 ata-target="#id1 │ │ │ 00084a20: 3331 2220 7461 6269 6e64 6578 3d22 3022 31" tabindex="0" │ │ │ 00084a30: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 00084a40: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 00084a50: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 00084a60: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 00084a70: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -00084a80: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00084a90: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00084aa0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00084ae0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -00084af0: 735d 5d0a 6e61 6d65 203d 2022 6e74 7022  s]].name = "ntp"
│ │ │ -00084b00: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -00084b10: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00084bc0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00084bd0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00084c70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00084c80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00084cd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00084d10: 6c75 6465 2069 6e73 7461 6c6c 5f6e 7470  lude install_ntp
│ │ │ -00084d20: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -00084d30: 6e74 7020 7b0a 2020 7061 636b 6167 6520  ntp {.  package 
│ │ │ -00084d40: 7b20 276e 7470 273a 0a20 2020 2065 6e73  { 'ntp':.    ens
│ │ │ -00084d50: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -00084d60: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -00084d80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00084e20: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00084e30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00084e40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ -00084c60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00084c90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00084ca0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00084ce0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00084cf0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -00084ee0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00084f30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00084ec0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00084ef0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00084f10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00084f20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00084f40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00084f50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00084f70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00084f80: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00084f90: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00084fa0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00084fb0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00084fc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00084fd0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -00084fe0: 3130 2e34 0a20 202d 2065 6e61 626c 655f  10.4.  - enable_
│ │ │ -00084ff0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -00085000: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -00085010: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00085020: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00085030: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00085040: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00085050: 655f 6e74 705f 696e 7374 616c 6c65 640a  e_ntp_installed.
│ │ │ -00085060: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -00085070: 6e74 7020 6973 2069 6e73 7461 6c6c 6564  ntp is installed
│ │ │ -00085080: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00085090: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -000850a0: 6e61 6d65 3a20 6e74 700a 2020 2020 7374  name: ntp.    st
│ │ │ -000850b0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000850c0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000850d0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000850e0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000850f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00085100: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00085110: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -00085120: 2e34 0a20 202d 2065 6e61 626c 655f 7374  .4.  - enable_st
│ │ │ -00085130: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -00085140: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -00085150: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00085160: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00085170: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00085180: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00085190: 6e74 705f 696e 7374 616c 6c65 640a 3c2f  ntp_installed.
│ │ │ +00084b40: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00084b60: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00084b90: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00084b20: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00084b30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00084b50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00084b70: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00084b80: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +00084bd0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00084be0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00084bf0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00084c00: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00084c10: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00084c20: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00084c30: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ +00084c40: 340a 2020 2d20 656e 6162 6c65 5f73 7472 4. - enable_str │ │ │ +00084c50: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ +00084c60: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ +00084c70: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00084c80: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00084c90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ +00084ca0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e ed. - package_n │ │ │ +00084cb0: 7470 5f69 6e73 7461 6c6c 6564 0a0a 2d20 tp_installed..- │ │ │ +00084cc0: 6e61 6d65 3a20 456e 7375 7265 206e 7470 name: Ensure ntp │ │ │ +00084cd0: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ +00084ce0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00084cf0: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +00084d00: 653a 206e 7470 0a20 2020 2073 7461 7465 e: ntp. state │ │ │ +00084d10: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ +00084d20: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +00084d30: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +00084d40: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ +00084d50: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +00084d60: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ +00084d70: 4349 2d44 5353 2d52 6571 2d31 302e 340a CI-DSS-Req-10.4. │ │ │ +00084d80: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ +00084d90: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ +00084da0: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ +00084db0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00084dc0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00084dd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00084de0: 0a20 202d 2070 6163 6b61 6765 5f6e 7470 . - package_ntp │ │ │ +00084df0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

Remed │ │ │ +00084eb0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00084ec0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00084f70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00084f90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00084fc0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00084f50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00084f60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00084f80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00084fa0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00084fb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00085000: 2069 6e73 7461 6c6c 5f6e 7470 0a0a 636c install_ntp..cl │ │ │ +00085010: 6173 7320 696e 7374 616c 6c5f 6e74 7020 ass install_ntp │ │ │ +00085020: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ +00085030: 7470 273a 0a20 2020 2065 6e73 7572 6520 tp':. ensure │ │ │ +00085040: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ +00085050: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +00085060: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ +00085110: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00085120: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00085130: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +00085170: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +00085180: 5d5d 0a6e 616d 6520 3d20 226e 7470 220a  ]].name = "ntp".
│ │ │ +00085190: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediat │ │ │ -00086340: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00086350: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00086360: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -000863b0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -000863c0: 6e61 626c 6564 203d 205b 226e 7470 225d  nabled = ["ntp"]
│ │ │ -000863d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00086490: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000864a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00086570: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00086580: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000865d0: 6e63 6c75 6465 2065 6e61 626c 655f 6e74  nclude enable_nt
│ │ │ -000865e0: 700a 0a63 6c61 7373 2065 6e61 626c 655f  p..class enable_
│ │ │ -000865f0: 6e74 7020 7b0a 2020 7365 7276 6963 6520  ntp {.  service 
│ │ │ -00086600: 7b27 6e74 7027 3a0a 2020 2020 656e 6162  {'ntp':.    enab
│ │ │ -00086610: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -00086620: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00086630: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -00086640: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00086700: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00086710: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ -00086550: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00086560: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000865a0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000865b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -000867e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000867f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00086840: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00086850: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00086860: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00086870: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00086880: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00086890: 4e49 5354 2d38 3030 2d35 332d 4155 2d38  NIST-800-53-AU-8
│ │ │ -000868a0: 2831 2928 6129 0a20 202d 204e 4953 542d  (1)(a).  - NIST-
│ │ │ -000868b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000868c0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -000868d0: 302e 340a 2020 2d20 5043 492d 4453 5376  0.4.  - PCI-DSSv
│ │ │ -000868e0: 342d 3130 2e36 0a20 202d 2050 4349 2d44  4-10.6.  - PCI-D
│ │ │ -000868f0: 5353 7634 2d31 302e 362e 310a 2020 2d20  SSv4-10.6.1.  - 
│ │ │ -00086900: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00086910: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -00086920: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00086930: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00086940: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00086950: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00086960: 2073 6572 7669 6365 5f6e 7470 5f65 6e61   service_ntp_ena
│ │ │ -00086970: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -00086980: 6162 6c65 2074 6865 204e 5450 2044 6165  able the NTP Dae
│ │ │ -00086990: 6d6f 6e20 2d20 456e 6162 6c65 2073 6572  mon - Enable ser
│ │ │ -000869a0: 7669 6365 206e 7470 0a20 2062 6c6f 636b  vice ntp.  block
│ │ │ -000869b0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -000869c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000869d0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -000869e0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000869f0: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -00086a00: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -00086a10: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074  - name: Enable t
│ │ │ -00086a20: 6865 204e 5450 2044 6165 6d6f 6e20 2d20  he NTP Daemon - 
│ │ │ -00086a30: 456e 6162 6c65 2053 6572 7669 6365 206e  Enable Service n
│ │ │ -00086a40: 7470 0a20 2020 2061 6e73 6962 6c65 2e62  tp.    ansible.b
│ │ │ -00086a50: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00086a60: 2020 2020 2020 6e61 6d65 3a20 6e74 700a        name: ntp.
│ │ │ -00086a70: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ -00086a80: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ -00086a90: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ -00086aa0: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ -00086ab0: 2077 6865 6e3a 0a20 2020 202d 2027 226e   when:.    - '"n
│ │ │ -00086ac0: 7470 2220 696e 2061 6e73 6962 6c65 5f66  tp" in ansible_f
│ │ │ -00086ad0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00086ae0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00086af0: 3830 302d 3533 2d41 552d 3828 3129 2861  800-53-AU-8(1)(a
│ │ │ -00086b00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00086b10: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00086b20: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ -00086b30: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00086b40: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ -00086b50: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ -00086b60: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -00086b70: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -00086b80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00086b90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00086ba0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00086bb0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00086bc0: 6963 655f 6e74 705f 656e 6162 6c65 640a  ice_ntp_enabled.
│ │ │ -00086bd0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -00086be0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ -00086bf0: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261  :.  - '"linux-ba
│ │ │ -00086c00: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00086c10: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00086c20: 202d 2027 226e 7470 2220 696e 2061 6e73   - '"ntp" in ans
│ │ │ -00086c30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00086c40: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
< │ │ │ +00086360: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00086370: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00086380: 7365 2220 6964 3d22 6964 3133 3622 3e3c se" id="id136">< │ │ │ +00086390: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000863a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000863b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000863c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000863d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00086460: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00086470: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ -000867c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000867d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00086810: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00086820: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ +000863e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000863f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00086430: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00086440: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +00086490: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000864a0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000864b0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000864c0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000864d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000864e0: 3533 2d41 552d 3828 3129 2861 290a 2020  53-AU-8(1)(a).  
│ │ │ +000864f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00086500: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00086510: 532d 5265 712d 3130 2e34 0a20 202d 2050  S-Req-10.4.  - P
│ │ │ +00086520: 4349 2d44 5353 7634 2d31 302e 360a 2020  CI-DSSv4-10.6.  
│ │ │ +00086530: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ +00086540: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ +00086550: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +00086560: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +00086570: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00086580: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00086590: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000865a0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +000865b0: 6e74 705f 656e 6162 6c65 640a 0a2d 206e  ntp_enabled..- n
│ │ │ +000865c0: 616d 653a 2045 6e61 626c 6520 7468 6520  ame: Enable the 
│ │ │ +000865d0: 4e54 5020 4461 656d 6f6e 202d 2045 6e61  NTP Daemon - Ena
│ │ │ +000865e0: 626c 6520 7365 7276 6963 6520 6e74 700a  ble service ntp.
│ │ │ +000865f0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00086600: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00086610: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ +00086620: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00086630: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ +00086640: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ +00086650: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ +00086660: 6e61 626c 6520 7468 6520 4e54 5020 4461  nable the NTP Da
│ │ │ +00086670: 656d 6f6e 202d 2045 6e61 626c 6520 5365  emon - Enable Se
│ │ │ +00086680: 7276 6963 6520 6e74 700a 2020 2020 616e  rvice ntp.    an
│ │ │ +00086690: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +000866a0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +000866b0: 653a 206e 7470 0a20 2020 2020 2065 6e61  e: ntp.      ena
│ │ │ +000866c0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +000866d0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +000866e0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +000866f0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +00086700: 2020 2d20 2722 6e74 7022 2069 6e20 616e    - '"ntp" in an
│ │ │ +00086710: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00086720: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00086730: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00086740: 2d38 2831 2928 6129 0a20 202d 204e 4953  -8(1)(a).  - NIS
│ │ │ +00086750: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00086760: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +00086770: 2d31 302e 340a 2020 2d20 5043 492d 4453  -10.4.  - PCI-DS
│ │ │ +00086780: 5376 342d 3130 2e36 0a20 202d 2050 4349  Sv4-10.6.  - PCI
│ │ │ +00086790: 2d44 5353 7634 2d31 302e 362e 310a 2020  -DSSv4-10.6.1.  
│ │ │ +000867a0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000867b0: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +000867c0: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +000867d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000867e0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +000867f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00086800: 202d 2073 6572 7669 6365 5f6e 7470 5f65   - service_ntp_e
│ │ │ +00086810: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ +00086820: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00086830: 0a20 2077 6865 6e3a 0a20 202d 2027 226c  .  when:.  - '"l
│ │ │ +00086840: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00086850: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00086860: 6167 6573 270a 2020 2d20 2722 6e74 7022  ages'.  - '"ntp"
│ │ │ +00086870: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00086880: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +000868a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000868b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000868c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000868d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000868e0: 6431 3337 2220 7461 6269 6e64 6578 3d22 d137" tabindex=" │ │ │ +000868f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00086900: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00086910: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00086920: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00086930: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00086940: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00086950: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000869e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000869f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00086a10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00086a30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00086a40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00086a80: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00086a90: 6520 656e 6162 6c65 5f6e 7470 0a0a 636c e enable_ntp..cl │ │ │ +00086aa0: 6173 7320 656e 6162 6c65 5f6e 7470 207b ass enable_ntp { │ │ │ +00086ab0: 0a20 2073 6572 7669 6365 207b 276e 7470 . service {'ntp │ │ │ +00086ac0: 273a 0a20 2020 2065 6e61 626c 6520 3d26 ':. enable =& │ │ │ +00086ad0: 6774 3b20 7472 7565 2c0a 2020 2020 656e gt; true,. en │ │ │ +00086ae0: 7375 7265 203d 2667 743b 2027 7275 6e6e sure => 'runn │ │ │ +00086af0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f ing',. }.}.
< │ │ │ +00086b10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00086b20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00086b30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00086b40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00086b50: 6431 3338 2220 7461 6269 6e64 6578 3d22 d138" tabindex=" │ │ │ +00086b60: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00086b70: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00086b80: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00086b90: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00086ba0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00086bb0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00086bc0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00086bd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +00086c20: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00086c30: 735d 0a65 6e61 626c 6564 203d 205b 226e s].enabled = ["n │ │ │ +00086c40: 7470 225d 0a3c 2f63 6f64 653e 3c2f 7072 tp"].
Remedia │ │ │ -00095310: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00095320: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00095330: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -00095370: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -00095380: 5d5d 0a6e 616d 6520 3d20 2261 7564 6974  ]].name = "audit
│ │ │ -00095390: 6422 0a76 6572 7369 6f6e 203d 2022 2a22  d".version = "*"
│ │ │ -000953a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00095460: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00095470: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00095540: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00095550: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000955a0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ -000955b0: 7564 6974 640a 0a63 6c61 7373 2069 6e73  uditd..class ins
│ │ │ -000955c0: 7461 6c6c 5f61 7564 6974 6420 7b0a 2020  tall_auditd {.  
│ │ │ -000955d0: 7061 636b 6167 6520 7b20 2761 7564 6974  package { 'audit
│ │ │ -000955e0: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -000955f0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00095600: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00095610: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -000956c0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -000956d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -000956e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000956f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00095700: 7365 2220 6964 3d22 6964 3135 3822 3e3c se" id="id158">< │ │ │ -00095710: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00095720: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00095730: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00095740: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00095750: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -000957e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -000957f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -00095520: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00095530: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00095570: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00095580: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -00095760: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00095770: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -000957b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000957c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -00095810: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00095820: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00095830: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00095840: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00095850: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00095860: 3533 2d41 432d 3728 6129 0a20 202d 204e  53-AC-7(a).  - N
│ │ │ -00095870: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ -00095880: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ -00095890: 2d35 332d 4155 2d31 340a 2020 2d20 4e49  -53-AU-14.  - NI
│ │ │ -000958a0: 5354 2d38 3030 2d35 332d 4155 2d32 2861  ST-800-53-AU-2(a
│ │ │ -000958b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000958c0: 332d 4155 2d37 2831 290a 2020 2d20 4e49  3-AU-7(1).  - NI
│ │ │ -000958d0: 5354 2d38 3030 2d35 332d 4155 2d37 2832  ST-800-53-AU-7(2
│ │ │ -000958e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000958f0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00095900: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -00095910: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00095920: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00095930: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -00095940: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00095950: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00095960: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00095970: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00095980: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00095990: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000959a0: 636b 6167 655f 6175 6469 745f 696e 7374  ckage_audit_inst
│ │ │ -000959b0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000959c0: 6e73 7572 6520 6175 6469 7464 2069 7320  nsure auditd is 
│ │ │ -000959d0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000959e0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000959f0: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -00095a00: 7564 6974 640a 2020 2020 7374 6174 653a  uditd.    state:
│ │ │ -00095a10: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00095a20: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00095a30: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00095a40: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00095a50: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00095a60: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ -00095a70: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00095a80: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ -00095a90: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ -00095aa0: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ -00095ab0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00095ac0: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ -00095ad0: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ -00095ae0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00095af0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00095b00: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -00095b10: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -00095b20: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00095b30: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -00095b40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00095b50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00095b60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00095b70: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00095b80: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00095b90: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00095ba0: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ -00095bb0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
│ │ │ +00095330: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00095360: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000953d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000953f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00095420: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00095440: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000953b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000953c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00095400: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00095410: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00095460: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00095470: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00095480: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00095490: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000954a0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +000954b0: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ +000954c0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ +000954d0: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ +000954e0: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ +000954f0: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ +00095500: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +00095510: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ +00095520: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ +00095530: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ +00095540: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ +00095550: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ +00095560: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ +00095570: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +00095580: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ +00095590: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +000955a0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +000955b0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +000955c0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +000955d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +000955e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +000955f0: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ +00095600: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 talled..- name: │ │ │ +00095610: 456e 7375 7265 2061 7564 6974 6420 6973 Ensure auditd is │ │ │ +00095620: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ +00095630: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +00095640: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +00095650: 6175 6469 7464 0a20 2020 2073 7461 7465 auditd. state │ │ │ +00095660: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ +00095670: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +00095680: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +00095690: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ +000956a0: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +000956b0: 3533 2d41 432d 3728 6129 0a20 202d 204e 53-AC-7(a). - N │ │ │ +000956c0: 4953 542d 3830 302d 3533 2d41 552d 3132 IST-800-53-AU-12 │ │ │ +000956d0: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ +000956e0: 2d35 332d 4155 2d31 340a 2020 2d20 4e49 -53-AU-14. - NI │ │ │ +000956f0: 5354 2d38 3030 2d35 332d 4155 2d32 2861 ST-800-53-AU-2(a │ │ │ +00095700: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00095710: 332d 4155 2d37 2831 290a 2020 2d20 4e49 3-AU-7(1). - NI │ │ │ +00095720: 5354 2d38 3030 2d35 332d 4155 2d37 2832 ST-800-53-AU-7(2 │ │ │ +00095730: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00095740: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +00095750: 492d 4453 532d 5265 712d 3130 2e31 0a20 I-DSS-Req-10.1. │ │ │ +00095760: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ +00095770: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +00095780: 3130 2e32 2e31 0a20 202d 2065 6e61 626c 10.2.1. - enabl │ │ │ +00095790: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +000957a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +000957b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +000957c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +000957d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +000957e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +000957f0: 636b 6167 655f 6175 6469 745f 696e 7374 ckage_audit_inst │ │ │ +00095800: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +000958c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000958d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00095960: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00095980: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00095990: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000959a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000959b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000959d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +00095a10: 616c 6c5f 6175 6469 7464 0a0a 636c 6173  all_auditd..clas
│ │ │ +00095a20: 7320 696e 7374 616c 6c5f 6175 6469 7464  s install_auditd
│ │ │ +00095a30: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00095a40: 6175 6469 7464 273a 0a20 2020 2065 6e73  auditd':.    ens
│ │ │ +00095a50: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00095a60: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00095a80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00095b20: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00095b30: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00095b40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +00095b90: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +00095ba0: 7564 6974 6422 0a76 6572 7369 6f6e 203d uditd".version = │ │ │ +00095bb0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".

Remediatio │ │ │ -000977f0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00097800: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00097810: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -00097860: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -00097870: 626c 6564 203d 205b 2261 7564 6974 6422  bled = ["auditd"
│ │ │ -00097880: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00097890: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ -00097940: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00097950: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00097a20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00097a30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00097a80: 696e 636c 7564 6520 656e 6162 6c65 5f61  include enable_a
│ │ │ -00097a90: 7564 6974 640a 0a63 6c61 7373 2065 6e61  uditd..class ena
│ │ │ -00097aa0: 626c 655f 6175 6469 7464 207b 0a20 2073  ble_auditd {.  s
│ │ │ -00097ab0: 6572 7669 6365 207b 2761 7564 6974 6427  ervice {'auditd'
│ │ │ -00097ac0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00097ad0: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -00097ae0: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -00097af0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ -00097bb0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00097bc0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ -00097a00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00097a10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00097a50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00097a60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -00097c50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00097c60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00097c80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00097ca0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00097cb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00097cf0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00097d00: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00097d10: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00097d20: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00097d30: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00097d40: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ -00097d50: 2e34 2e31 2e31 0a20 202d 204e 4953 542d .4.1.1. - NIST- │ │ │ -00097d60: 3830 302d 3137 312d 332e 332e 310a 2020 800-171-3.3.1. │ │ │ -00097d70: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -00097d80: 2e33 2e32 0a20 202d 204e 4953 542d 3830 .3.2. - NIST-80 │ │ │ -00097d90: 302d 3137 312d 332e 332e 360a 2020 2d20 0-171-3.3.6. - │ │ │ -00097da0: 4e49 5354 2d38 3030 2d35 332d 4143 2d32 NIST-800-53-AC-2 │ │ │ -00097db0: 2867 290a 2020 2d20 4e49 5354 2d38 3030 (g). - NIST-800 │ │ │ -00097dc0: 2d35 332d 4143 2d36 2839 290a 2020 2d20 -53-AC-6(9). - │ │ │ -00097dd0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ -00097de0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35 0. - NIST-800-5 │ │ │ -00097df0: 332d 4155 2d31 3228 6329 0a20 202d 204e 3-AU-12(c). - N │ │ │ -00097e00: 4953 542d 3830 302d 3533 2d41 552d 3134 IST-800-53-AU-14 │ │ │ -00097e10: 2831 290a 2020 2d20 4e49 5354 2d38 3030 (1). - NIST-800 │ │ │ -00097e20: 2d35 332d 4155 2d32 2864 290a 2020 2d20 -53-AU-2(d). - │ │ │ -00097e30: 4e49 5354 2d38 3030 2d35 332d 4155 2d33 NIST-800-53-AU-3 │ │ │ -00097e40: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00097e50: 2d43 4d2d 3628 6129 0a20 202d 204e 4953 -CM-6(a). - NIS │ │ │ -00097e60: 542d 3830 302d 3533 2d53 492d 3428 3233 T-800-53-SI-4(23 │ │ │ -00097e70: 290a 2020 2d20 5043 492d 4453 532d 5265 ). - PCI-DSS-Re │ │ │ -00097e80: 712d 3130 2e31 0a20 202d 2050 4349 2d44 q-10.1. - PCI-D │ │ │ -00097e90: 5353 7634 2d31 302e 320a 2020 2d20 5043 SSv4-10.2. - PC │ │ │ -00097ea0: 492d 4453 5376 342d 3130 2e32 2e31 0a20 I-DSSv4-10.2.1. │ │ │ -00097eb0: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ -00097ec0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00097ed0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00097ee0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -00097ef0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -00097f00: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00097f10: 640a 2020 2d20 7365 7276 6963 655f 6175 d. - service_au │ │ │ -00097f20: 6469 7464 5f65 6e61 626c 6564 0a0a 2d20 ditd_enabled..- │ │ │ -00097f30: 6e61 6d65 3a20 456e 6162 6c65 2061 7564 name: Enable aud │ │ │ -00097f40: 6974 6420 5365 7276 6963 6520 2d20 456e itd Service - En │ │ │ -00097f50: 6162 6c65 2073 6572 7669 6365 2061 7564 able service aud │ │ │ -00097f60: 6974 640a 2020 626c 6f63 6b3a 0a0a 2020 itd. block:.. │ │ │ -00097f70: 2d20 6e61 6d65 3a20 4761 7468 6572 2074 - name: Gather t │ │ │ -00097f80: 6865 2070 6163 6b61 6765 2066 6163 7473 he package facts │ │ │ -00097f90: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00097fa0: 6c74 696e 2e70 6163 6b61 6765 5f66 6163 ltin.package_fac │ │ │ -00097fb0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765 ts:. manage │ │ │ -00097fc0: 723a 2061 7574 6f0a 0a20 202d 206e 616d r: auto.. - nam │ │ │ -00097fd0: 653a 2045 6e61 626c 6520 6175 6469 7464 e: Enable auditd │ │ │ -00097fe0: 2053 6572 7669 6365 202d 2045 6e61 626c Service - Enabl │ │ │ -00097ff0: 6520 5365 7276 6963 6520 6175 6469 7464 e Service auditd │ │ │ -00098000: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00098010: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -00098020: 2020 2020 6e61 6d65 3a20 6175 6469 7464 name: auditd │ │ │ -00098030: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -00098040: 7472 7565 0a20 2020 2020 2073 7461 7465 true. state │ │ │ -00098050: 3a20 7374 6172 7465 640a 2020 2020 2020 : started. │ │ │ -00098060: 6d61 736b 6564 3a20 6661 6c73 650a 2020 masked: false. │ │ │ -00098070: 2020 7768 656e 3a0a 2020 2020 2d20 2722 when:. - '" │ │ │ -00098080: 6175 6469 7464 2220 696e 2061 6e73 6962 auditd" in ansib │ │ │ -00098090: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -000980a0: 7327 0a20 2074 6167 733a 0a20 202d 2043 s'. tags:. - C │ │ │ -000980b0: 4a49 532d 352e 342e 312e 310a 2020 2d20 JIS-5.4.1.1. - │ │ │ -000980c0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33 NIST-800-171-3.3 │ │ │ -000980d0: 2e31 0a20 202d 204e 4953 542d 3830 302d .1. - NIST-800- │ │ │ -000980e0: 3137 312d 332e 332e 320a 2020 2d20 4e49 171-3.3.2. - NI │ │ │ -000980f0: 5354 2d38 3030 2d31 3731 2d33 2e33 2e36 ST-800-171-3.3.6 │ │ │ -00098100: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00098110: 2d41 432d 3228 6729 0a20 202d 204e 4953 -AC-2(g). - NIS │ │ │ -00098120: 542d 3830 302d 3533 2d41 432d 3628 3929 T-800-53-AC-6(9) │ │ │ -00098130: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00098140: 2d41 552d 3130 0a20 202d 204e 4953 542d -AU-10. - NIST- │ │ │ -00098150: 3830 302d 3533 2d41 552d 3132 2863 290a 800-53-AU-12(c). │ │ │ -00098160: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00098170: 4155 2d31 3428 3129 0a20 202d 204e 4953 AU-14(1). - NIS │ │ │ -00098180: 542d 3830 302d 3533 2d41 552d 3228 6429 T-800-53-AU-2(d) │ │ │ -00098190: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -000981a0: 2d41 552d 330a 2020 2d20 4e49 5354 2d38 -AU-3. - NIST-8 │ │ │ -000981b0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -000981c0: 2d20 4e49 5354 2d38 3030 2d35 332d 5349 - NIST-800-53-SI │ │ │ -000981d0: 2d34 2832 3329 0a20 202d 2050 4349 2d44 -4(23). - PCI-D │ │ │ -000981e0: 5353 2d52 6571 2d31 302e 310a 2020 2d20 SS-Req-10.1. - │ │ │ -000981f0: 5043 492d 4453 5376 342d 3130 2e32 0a20 PCI-DSSv4-10.2. │ │ │ -00098200: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ -00098210: 322e 310a 2020 2d20 656e 6162 6c65 5f73 2.1. - enable_s │ │ │ -00098220: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00098230: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00098240: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00098250: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00098260: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00098270: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -00098280: 6365 5f61 7564 6974 645f 656e 6162 6c65 ce_auditd_enable │ │ │ -00098290: 640a 2020 2d20 7370 6563 6961 6c5f 7365 d. - special_se │ │ │ -000982a0: 7276 6963 655f 626c 6f63 6b0a 2020 7768 rvice_block. wh │ │ │ -000982b0: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d en:. - '"linux- │ │ │ -000982c0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -000982d0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -000982e0: 0a20 202d 2027 2261 7564 6974 6422 2069 . - '"auditd" i │ │ │ -000982f0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -00098300: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'.
< │ │ │ +00097880: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00097890: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000978b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000978c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000978e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00097900: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00097930: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00097940: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00097950: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00097960: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00097970: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00097980: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ +00097990: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ +000979a0: 3731 2d33 2e33 2e31 0a20 202d 204e 4953  71-3.3.1.  - NIS
│ │ │ +000979b0: 542d 3830 302d 3137 312d 332e 332e 320a  T-800-171-3.3.2.
│ │ │ +000979c0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +000979d0: 2d33 2e33 2e36 0a20 202d 204e 4953 542d  -3.3.6.  - NIST-
│ │ │ +000979e0: 3830 302d 3533 2d41 432d 3228 6729 0a20  800-53-AC-2(g). 
│ │ │ +000979f0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00097a00: 432d 3628 3929 0a20 202d 204e 4953 542d  C-6(9).  - NIST-
│ │ │ +00097a10: 3830 302d 3533 2d41 552d 3130 0a20 202d  800-53-AU-10.  -
│ │ │ +00097a20: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00097a30: 3132 2863 290a 2020 2d20 4e49 5354 2d38  12(c).  - NIST-8
│ │ │ +00097a40: 3030 2d35 332d 4155 2d31 3428 3129 0a20  00-53-AU-14(1). 
│ │ │ +00097a50: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00097a60: 552d 3228 6429 0a20 202d 204e 4953 542d  U-2(d).  - NIST-
│ │ │ +00097a70: 3830 302d 3533 2d41 552d 330a 2020 2d20  800-53-AU-3.  - 
│ │ │ +00097a80: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00097a90: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00097aa0: 2d35 332d 5349 2d34 2832 3329 0a20 202d  -53-SI-4(23).  -
│ │ │ +00097ab0: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ +00097ac0: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ +00097ad0: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ +00097ae0: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ +00097af0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00097b00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00097b10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00097b20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00097b30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00097b40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00097b50: 2073 6572 7669 6365 5f61 7564 6974 645f   service_auditd_
│ │ │ +00097b60: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +00097b70: 2045 6e61 626c 6520 6175 6469 7464 2053   Enable auditd S
│ │ │ +00097b80: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +00097b90: 7365 7276 6963 6520 6175 6469 7464 0a20  service auditd. 
│ │ │ +00097ba0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00097bb0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00097bc0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00097bd0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00097be0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00097bf0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00097c00: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00097c10: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ +00097c20: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +00097c30: 7669 6365 2061 7564 6974 640a 2020 2020  vice auditd.    
│ │ │ +00097c40: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00097c50: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00097c60: 616d 653a 2061 7564 6974 640a 2020 2020  ame: auditd.    
│ │ │ +00097c70: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +00097c80: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +00097c90: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +00097ca0: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +00097cb0: 6e3a 0a20 2020 202d 2027 2261 7564 6974  n:.    - '"audit
│ │ │ +00097cc0: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ +00097cd0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00097ce0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35  tags:.  - CJIS-5
│ │ │ +00097cf0: 2e34 2e31 2e31 0a20 202d 204e 4953 542d  .4.1.1.  - NIST-
│ │ │ +00097d00: 3830 302d 3137 312d 332e 332e 310a 2020  800-171-3.3.1.  
│ │ │ +00097d10: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00097d20: 2e33 2e32 0a20 202d 204e 4953 542d 3830  .3.2.  - NIST-80
│ │ │ +00097d30: 302d 3137 312d 332e 332e 360a 2020 2d20  0-171-3.3.6.  - 
│ │ │ +00097d40: 4e49 5354 2d38 3030 2d35 332d 4143 2d32  NIST-800-53-AC-2
│ │ │ +00097d50: 2867 290a 2020 2d20 4e49 5354 2d38 3030  (g).  - NIST-800
│ │ │ +00097d60: 2d35 332d 4143 2d36 2839 290a 2020 2d20  -53-AC-6(9).  - 
│ │ │ +00097d70: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +00097d80: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +00097d90: 332d 4155 2d31 3228 6329 0a20 202d 204e  3-AU-12(c).  - N
│ │ │ +00097da0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ +00097db0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00097dc0: 2d35 332d 4155 2d32 2864 290a 2020 2d20  -53-AU-2(d).  - 
│ │ │ +00097dd0: 4e49 5354 2d38 3030 2d35 332d 4155 2d33  NIST-800-53-AU-3
│ │ │ +00097de0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00097df0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00097e00: 542d 3830 302d 3533 2d53 492d 3428 3233  T-800-53-SI-4(23
│ │ │ +00097e10: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +00097e20: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ +00097e30: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ +00097e40: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ +00097e50: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00097e60: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00097e70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00097e80: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00097e90: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00097ea0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00097eb0: 640a 2020 2d20 7365 7276 6963 655f 6175  d.  - service_au
│ │ │ +00097ec0: 6469 7464 5f65 6e61 626c 6564 0a20 202d  ditd_enabled.  -
│ │ │ +00097ed0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00097ee0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ +00097ef0: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ +00097f00: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00097f10: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ +00097f20: 2722 6175 6469 7464 2220 696e 2061 6e73  '"auditd" in ans
│ │ │ +00097f30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00097f40: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediation │ │ │ +00098000: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00098010: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000980a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000980c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000980e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00098110: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00098120: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00098130: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ +00098150: 655f 6175 6469 7464 0a0a 636c 6173 7320  e_auditd..class 
│ │ │ +00098160: 656e 6162 6c65 5f61 7564 6974 6420 7b0a  enable_auditd {.
│ │ │ +00098170: 2020 7365 7276 6963 6520 7b27 6175 6469    service {'audi
│ │ │ +00098180: 7464 273a 0a20 2020 2065 6e61 626c 6520  td':.    enable 
│ │ │ +00098190: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000981a0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000981b0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +00098270: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00098280: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00098290: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000982a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000982b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000982c0: 7365 2220 6964 3d22 6964 3136 3322 3e3c se" id="id163">< │ │ │ +000982d0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000982e0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000982f0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +00098300: 2261 7564 6974 6422 5d0a 3c2f 636f 6465 "auditd"].
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2214,14 +2197,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2251,31 +2251,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2312,14 +2295,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2351,31 +2351,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2398,14 +2381,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2437,31 +2437,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2498,14 +2481,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4785,31 +4785,14 @@ │ │ │ │ SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4836,14 +4819,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4882,27 +4882,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4915,14 +4902,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4955,27 +4955,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4984,14 +4971,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -5026,27 +5026,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5055,14 +5042,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -5114,27 +5114,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -5147,14 +5134,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -5206,27 +5206,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5238,14 +5225,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -5339,31 +5339,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5388,14 +5371,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -5429,31 +5429,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5498,14 +5481,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ntp"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6421,31 +6421,14 @@ │ │ │ │ 000351-GPOS-00139, SRG-OS-000352-GPOS-00140, SRG-OS- │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6486,14 +6469,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6564,31 +6564,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6655,14 +6638,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_minimal.html │ │ │ @@ -15698,129 +15698,129 @@ │ │ │ 0003d510: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0003d520: 6431 3322 2074 6162 696e 6465 783d 2230 d13" tabindex="0 │ │ │ 0003d530: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 0003d540: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 0003d550: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 0003d560: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 0003d570: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003d580: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0003d590: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0003d5a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ -0003d5e0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -0003d5f0: 735d 5d0a 6e61 6d65 203d 2022 7379 736c  s]].name = "sysl
│ │ │ -0003d600: 6f67 2d6e 6722 0a76 6572 7369 6f6e 203d  og-ng".version =
│ │ │ -0003d610: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -0003d6d0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0003d6e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ -0003d760: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0003d780: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0003d7d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -0003d820: 5f73 7973 6c6f 672d 6e67 0a0a 636c 6173  _syslog-ng..clas
│ │ │ -0003d830: 7320 696e 7374 616c 6c5f 7379 736c 6f67  s install_syslog
│ │ │ -0003d840: 2d6e 6720 7b0a 2020 7061 636b 6167 6520  -ng {.  package 
│ │ │ -0003d850: 7b20 2773 7973 6c6f 672d 6e67 273a 0a20  { 'syslog-ng':. 
│ │ │ -0003d860: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0003d870: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -0003d880: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0003d890: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -0003d940: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0003d950: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -0003d790: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0003d7a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0003d7e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0003d7f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -0003da20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003da30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003da80: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0003da90: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0003daa0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0003dab0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0003dac0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0003dad0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0003dae0: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -0003daf0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0003db00: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0003db10: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0003db20: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0003db30: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0003db40: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0003db50: 6765 5f73 7973 6c6f 676e 675f 696e 7374  ge_syslogng_inst
│ │ │ -0003db60: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0003db70: 6e73 7572 6520 7379 736c 6f67 2d6e 6720  nsure syslog-ng 
│ │ │ -0003db80: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0003db90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0003dba0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0003dbb0: 3a20 7379 736c 6f67 2d6e 670a 2020 2020  : syslog-ng.    
│ │ │ -0003dbc0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -0003dbd0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0003dbe0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0003dbf0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -0003dc00: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0003dc10: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0003dc20: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0003dc30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0003dc40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0003dc50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0003dc60: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0003dc70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0003dc80: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -0003dc90: 7973 6c6f 676e 675f 696e 7374 616c 6c65  yslogng_installe
│ │ │ -0003dca0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0003d580: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +0003d590: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ -0003da00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003da10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003da50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003da60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0003d640: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0003d660: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0003d690: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0003d620: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0003d630: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0003d650: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0003d670: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0003d680: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +0003d6d0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0003d6e0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0003d6f0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0003d700: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0003d710: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0003d720: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0003d730: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +0003d740: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0003d750: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0003d760: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +0003d770: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +0003d780: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0003d790: 2020 2d20 7061 636b 6167 655f 7379 736c - package_sysl │ │ │ +0003d7a0: 6f67 6e67 5f69 6e73 7461 6c6c 6564 0a0a ogng_installed.. │ │ │ +0003d7b0: 2d20 6e61 6d65 3a20 456e 7375 7265 2073 - name: Ensure s │ │ │ +0003d7c0: 7973 6c6f 672d 6e67 2069 7320 696e 7374 yslog-ng is inst │ │ │ +0003d7d0: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ +0003d7e0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +0003d7f0: 0a20 2020 206e 616d 653a 2073 7973 6c6f . name: syslo │ │ │ +0003d800: 672d 6e67 0a20 2020 2073 7461 7465 3a20 g-ng. state: │ │ │ +0003d810: 7072 6573 656e 740a 2020 7768 656e 3a20 present. when: │ │ │ +0003d820: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +0003d830: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +0003d840: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ +0003d850: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +0003d860: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ +0003d870: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +0003d880: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +0003d890: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +0003d8a0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +0003d8b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +0003d8c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +0003d8d0: 7061 636b 6167 655f 7379 736c 6f67 6e67 package_syslogng │ │ │ +0003d8e0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

Remedi │ │ │ +0003d9a0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0003d9b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0003d9c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0003d9f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0003da00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0003da10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0003da20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0003da30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0003da40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0003da50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0003da90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0003daa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0003dac0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0003dad0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +0003daf0: 6e73 7461 6c6c 5f73 7973 6c6f 672d 6e67  nstall_syslog-ng
│ │ │ +0003db00: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +0003db10: 7379 736c 6f67 2d6e 6720 7b0a 2020 7061  syslog-ng {.  pa
│ │ │ +0003db20: 636b 6167 6520 7b20 2773 7973 6c6f 672d  ckage { 'syslog-
│ │ │ +0003db30: 6e67 273a 0a20 2020 2065 6e73 7572 6520  ng':.    ensure 
│ │ │ +0003db40: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +0003db50: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0003db60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +0003dc10: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0003dc20: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0003dc30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]]
│ │ │ +0003dc80: 0a6e 616d 6520 3d20 2273 7973 6c6f 672d  .name = "syslog-
│ │ │ +0003dc90: 6e67 220a 7665 7273 696f 6e20 3d20 222a  ng".version = "*
│ │ │ +0003dca0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 0003dcb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -0003ed30: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0003ed40: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0003ed50: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0003ed60: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0003ed70: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0003ed80: 7365 2220 6964 3d22 6964 3138 223e 3c70 se" id="id18">

.[custo │ │ │ -0003eda0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -0003edb0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -0003edc0: 7379 736c 6f67 2d6e 6722 5d0a 3c2f 636f syslog-ng"].

< │ │ │ -0003ede0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003edf0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003ee00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003ee10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003ee20: 6431 3922 2074 6162 696e 6465 783d 2230 d19" tabindex="0 │ │ │ -0003ee30: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003ee40: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003ee50: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003ee60: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003ee70: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003ee80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0003ee90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0003eed0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0003ef40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0003ef60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0003ef90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0003efb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0003ef20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0003ef30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0003ef70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0003ef80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0003efd0: 656e 6162 6c65 5f73 7973 6c6f 672d 6e67 enable_syslog-ng │ │ │ -0003efe0: 0a0a 636c 6173 7320 656e 6162 6c65 5f73 ..class enable_s │ │ │ -0003eff0: 7973 6c6f 672d 6e67 207b 0a20 2073 6572 yslog-ng {. ser │ │ │ -0003f000: 7669 6365 207b 2773 7973 6c6f 672d 6e67 vice {'syslog-ng │ │ │ -0003f010: 273a 0a20 2020 2065 6e61 626c 6520 3d26 ':. enable =& │ │ │ -0003f020: 6774 3b20 7472 7565 2c0a 2020 2020 656e gt; true,. en │ │ │ -0003f030: 7375 7265 203d 2667 743b 2027 7275 6e6e sure => 'runn │ │ │ -0003f040: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f ing',. }.}.
< │ │ │ -0003f060: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003f070: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003f080: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003f090: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003f0a0: 6432 3022 2074 6162 696e 6465 783d 2230 d20" tabindex="0 │ │ │ -0003f0b0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003f0c0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003f0d0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003f0e0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003f0f0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003f100: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0003f110: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0003f1c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003f1e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003f210: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003f1a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003f1b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003f1d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003f1f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003f200: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0003f250: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0003f260: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0003f270: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0003f280: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0003f290: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0003f2a0: 302d 3533 2d41 552d 3428 3129 0a20 202d 0-53-AU-4(1). - │ │ │ -0003f2b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0003f2c0: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -0003f2d0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0003f2e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0003f2f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0003f300: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -0003f310: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -0003f320: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -0003f330: 6963 655f 7379 736c 6f67 6e67 5f65 6e61 ice_syslogng_ena │ │ │ -0003f340: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e bled..- name: En │ │ │ -0003f350: 6162 6c65 2073 7973 6c6f 672d 6e67 2053 able syslog-ng S │ │ │ -0003f360: 6572 7669 6365 202d 2045 6e61 626c 6520 ervice - Enable │ │ │ -0003f370: 7365 7276 6963 6520 7379 736c 6f67 2d6e service syslog-n │ │ │ -0003f380: 670a 2020 626c 6f63 6b3a 0a0a 2020 2d20 g. block:.. - │ │ │ -0003f390: 6e61 6d65 3a20 4761 7468 6572 2074 6865 name: Gather the │ │ │ -0003f3a0: 2070 6163 6b61 6765 2066 6163 7473 0a20 package facts. │ │ │ -0003f3b0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0003f3c0: 696e 2e70 6163 6b61 6765 5f66 6163 7473 in.package_facts │ │ │ -0003f3d0: 3a0a 2020 2020 2020 6d61 6e61 6765 723a :. manager: │ │ │ -0003f3e0: 2061 7574 6f0a 0a20 202d 206e 616d 653a auto.. - name: │ │ │ -0003f3f0: 2045 6e61 626c 6520 7379 736c 6f67 2d6e Enable syslog-n │ │ │ -0003f400: 6720 5365 7276 6963 6520 2d20 456e 6162 g Service - Enab │ │ │ -0003f410: 6c65 2053 6572 7669 6365 2073 7973 6c6f le Service syslo │ │ │ -0003f420: 672d 6e67 0a20 2020 2061 6e73 6962 6c65 g-ng. ansible │ │ │ -0003f430: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -0003f440: 3a0a 2020 2020 2020 6e61 6d65 3a20 7379 :. name: sy │ │ │ -0003f450: 736c 6f67 2d6e 670a 2020 2020 2020 656e slog-ng. en │ │ │ -0003f460: 6162 6c65 643a 2074 7275 650a 2020 2020 abled: true. │ │ │ -0003f470: 2020 7374 6174 653a 2073 7461 7274 6564 state: started │ │ │ -0003f480: 0a20 2020 2020 206d 6173 6b65 643a 2066 . masked: f │ │ │ -0003f490: 616c 7365 0a20 2020 2077 6865 6e3a 0a20 alse. when:. │ │ │ -0003f4a0: 2020 202d 2027 2273 7973 6c6f 672d 6e67 - '"syslog-ng │ │ │ -0003f4b0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -0003f4c0: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -0003f4d0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0003f4e0: 302d 3533 2d41 552d 3428 3129 0a20 202d 0-53-AU-4(1). - │ │ │ -0003f4f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0003f500: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -0003f510: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0003f520: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0003f530: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0003f540: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -0003f550: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -0003f560: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -0003f570: 6963 655f 7379 736c 6f67 6e67 5f65 6e61 ice_syslogng_ena │ │ │ -0003f580: 626c 6564 0a20 202d 2073 7065 6369 616c bled. - special │ │ │ -0003f590: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20 _service_block. │ │ │ -0003f5a0: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ -0003f5b0: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -0003f5c0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +0003ed30: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +0003ed40: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...

low< │ │ │ +0003edf0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0003ee40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0003edd0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0003ee00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0003ee20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0003ee30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0003ee50: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0003ee60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0003ee80: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0003ee90: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0003eea0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0003eeb0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0003eec0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0003eed0: 2d38 3030 2d35 332d 4155 2d34 2831 290a  -800-53-AU-4(1).
│ │ │ +0003eee0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0003eef0: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +0003ef00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0003ef10: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0003ef20: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0003ef30: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0003ef40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0003ef50: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0003ef60: 6572 7669 6365 5f73 7973 6c6f 676e 675f  ervice_syslogng_
│ │ │ +0003ef70: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +0003ef80: 2045 6e61 626c 6520 7379 736c 6f67 2d6e   Enable syslog-n
│ │ │ +0003ef90: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ +0003efa0: 6c65 2073 6572 7669 6365 2073 7973 6c6f  le service syslo
│ │ │ +0003efb0: 672d 6e67 0a20 2062 6c6f 636b 3a0a 0a20  g-ng.  block:.. 
│ │ │ +0003efc0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +0003efd0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0003efe0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +0003eff0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +0003f000: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +0003f010: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +0003f020: 6d65 3a20 456e 6162 6c65 2073 7973 6c6f  me: Enable syslo
│ │ │ +0003f030: 672d 6e67 2053 6572 7669 6365 202d 2045  g-ng Service - E
│ │ │ +0003f040: 6e61 626c 6520 5365 7276 6963 6520 7379  nable Service sy
│ │ │ +0003f050: 736c 6f67 2d6e 670a 2020 2020 616e 7369  slog-ng.    ansi
│ │ │ +0003f060: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0003f070: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0003f080: 2073 7973 6c6f 672d 6e67 0a20 2020 2020   syslog-ng.     
│ │ │ +0003f090: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +0003f0a0: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +0003f0b0: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +0003f0c0: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +0003f0d0: 3a0a 2020 2020 2d20 2722 7379 736c 6f67  :.    - '"syslog
│ │ │ +0003f0e0: 2d6e 6722 2069 6e20 616e 7369 626c 655f  -ng" in ansible_
│ │ │ +0003f0f0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0003f100: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0003f110: 2d38 3030 2d35 332d 4155 2d34 2831 290a  -800-53-AU-4(1).
│ │ │ +0003f120: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0003f130: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +0003f140: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0003f150: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0003f160: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0003f170: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0003f180: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0003f190: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0003f1a0: 6572 7669 6365 5f73 7973 6c6f 676e 675f  ervice_syslogng_
│ │ │ +0003f1b0: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ +0003f1c0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +0003f1d0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +0003f1e0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0003f1f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0003f200: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +0003f210: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +0003f2c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0003f2d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0003f3a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0003f3b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0003f400: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ +0003f410: 736c 6f67 2d6e 670a 0a63 6c61 7373 2065  slog-ng..class e
│ │ │ +0003f420: 6e61 626c 655f 7379 736c 6f67 2d6e 6720  nable_syslog-ng 
│ │ │ +0003f430: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ +0003f440: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ +0003f450: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +0003f460: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0003f470: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +0003f480: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0003f490: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation OS │ │ │ +0003f540: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0003f550: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0003f560: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ +0003f5a0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +0003f5b0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +0003f5c0: 3d20 5b22 7379 736c 6f67 2d6e 6722 5d0a  = ["syslog-ng"].
│ │ │  0003f5d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remed │ │ │ -00040710: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00040720: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00040730: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ -00040770: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -00040780: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ -00040790: 6c6f 6722 0a76 6572 7369 6f6e 203d 2022  log".version = "
│ │ │ -000407a0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000407b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -00040860: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00040870: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +0003f380: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0003f390: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0003f3d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0003f3e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00040940: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00040950: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000409a0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ -000409b0: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ -000409c0: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ -000409d0: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ -000409e0: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ -000409f0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00040a00: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -00040ac0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00040ad0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00040b10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -00040920: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00040930: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00040970: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00040980: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00040b80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00040ba0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00040bd0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00040bf0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00040b60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00040b70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00040bb0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00040bc0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00040c10: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00040c20: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00040c30: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00040c40: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00040c50: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00040c60: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00040c70: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -00040c80: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -00040c90: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -00040ca0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -00040cb0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00040cc0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00040cd0: 202d 2070 6163 6b61 6765 5f72 7379 736c - package_rsysl │ │ │ -00040ce0: 6f67 5f69 6e73 7461 6c6c 6564 0a0a 2d20 og_installed..- │ │ │ -00040cf0: 6e61 6d65 3a20 456e 7375 7265 2072 7379 name: Ensure rsy │ │ │ -00040d00: 736c 6f67 2069 7320 696e 7374 616c 6c65 slog is installe │ │ │ -00040d10: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -00040d20: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -00040d30: 206e 616d 653a 2072 7379 736c 6f67 0a20 name: rsyslog. │ │ │ -00040d40: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -00040d50: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ -00040d60: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -00040d70: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -00040d80: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ -00040d90: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00040da0: 6129 0a20 202d 2065 6e61 626c 655f 7374 a). - enable_st │ │ │ -00040db0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00040dc0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00040dd0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00040de0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00040df0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00040e00: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00040e10: 655f 7273 7973 6c6f 675f 696e 7374 616c e_rsyslog_instal │ │ │ -00040e20: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
│ │ │ +000407d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000407f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00040820: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000407b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000407c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000407e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00040800: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00040810: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +00040860: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00040870: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00040880: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00040890: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000408a0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000408b0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +000408c0: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +000408d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +000408e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +000408f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +00040900: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +00040910: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00040920: 2020 2d20 7061 636b 6167 655f 7273 7973 - package_rsys │ │ │ +00040930: 6c6f 675f 696e 7374 616c 6c65 640a 0a2d log_installed..- │ │ │ +00040940: 206e 616d 653a 2045 6e73 7572 6520 7273 name: Ensure rs │ │ │ +00040950: 7973 6c6f 6720 6973 2069 6e73 7461 6c6c yslog is install │ │ │ +00040960: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ +00040970: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +00040980: 2020 6e61 6d65 3a20 7273 7973 6c6f 670a name: rsyslog. │ │ │ +00040990: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ +000409a0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e nt. when: '"lin │ │ │ +000409b0: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ +000409c0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +000409d0: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +000409e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +000409f0: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +00040a00: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00040a10: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00040a20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00040a30: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00040a40: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00040a50: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +00040a60: 6765 5f72 7379 736c 6f67 5f69 6e73 7461 ge_rsyslog_insta │ │ │ +00040a70: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.

Remediation │ │ │ +00040b30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00040b40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +00040bc0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00040be0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00040c30: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00040c80: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +00040c90: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ +00040ca0: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +00040cb0: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ +00040cc0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00040cd0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00040cf0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00040d90: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00040da0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00040db0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ +00040e00: 6573 5d5d 0a6e 616d 6520 3d20 2272 7379  es]].name = "rsy
│ │ │ +00040e10: 736c 6f67 220a 7665 7273 696f 6e20 3d20  slog".version = 
│ │ │ +00040e20: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Reme │ │ │ -00042030: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00042040: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00042050: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ -000420a0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -000420b0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7273  ].enabled = ["rs
│ │ │ -000420c0: 7973 6c6f 6722 5d0a 3c2f 636f 6465 3e3c  yslog"].<
│ │ │ -000420d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ -00042180: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ -00042190: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ -00042250: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00042260: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +00040bf0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00040c00: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00040c40: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00040c50: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00042220: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00042240: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00042270: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00042290: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ -000422d0: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ -000422e0: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ -000422f0: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ -00042300: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ -00042310: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -00042320: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00042330: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -00042340: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00042350: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -00042400: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00042410: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -000424e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000424f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00042540: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00042550: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00042560: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00042570: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00042580: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00042590: 4953 542d 3830 302d 3533 2d41 552d 3428  IST-800-53-AU-4(
│ │ │ -000425a0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -000425b0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -000425c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000425d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000425e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000425f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00042600: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00042610: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00042620: 2d20 7365 7276 6963 655f 7273 7973 6c6f  - service_rsyslo
│ │ │ -00042630: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ -00042640: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ -00042650: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ -00042660: 6c65 2073 6572 7669 6365 2072 7379 736c  le service rsysl
│ │ │ -00042670: 6f67 0a20 2062 6c6f 636b 3a0a 0a20 202d  og.  block:..  -
│ │ │ -00042680: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00042690: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000426a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -000426b0: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -000426c0: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -000426d0: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -000426e0: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ -000426f0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -00042700: 6520 5365 7276 6963 6520 7273 7973 6c6f  e Service rsyslo
│ │ │ -00042710: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ -00042720: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00042730: 2020 2020 206e 616d 653a 2072 7379 736c       name: rsysl
│ │ │ -00042740: 6f67 0a20 2020 2020 2065 6e61 626c 6564  og.      enabled
│ │ │ -00042750: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -00042760: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -00042770: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -00042780: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -00042790: 2722 7273 7973 6c6f 6722 2069 6e20 616e  '"rsyslog" in an
│ │ │ -000427a0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000427b0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000427c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -000427d0: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -000427e0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000427f0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00042800: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00042810: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00042820: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00042830: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00042840: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00042850: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -00042860: 736c 6f67 5f65 6e61 626c 6564 0a20 202d  slog_enabled.  -
│ │ │ -00042870: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00042880: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -00042890: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000428a0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000428b0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00042030: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00042040: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00042050: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -000424c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000424d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00042510: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00042520: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +000420d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000420e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00042100: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00042120: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00042130: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00042170: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00042180: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00042190: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000421a0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000421b0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000421c0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +000421d0: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +000421e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +000421f0: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +00042200: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00042210: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00042220: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00042230: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00042240: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00042250: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00042260: 7669 6365 5f72 7379 736c 6f67 5f65 6e61 vice_rsyslog_ena │ │ │ +00042270: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e bled..- name: En │ │ │ +00042280: 6162 6c65 2072 7379 736c 6f67 2053 6572 able rsyslog Ser │ │ │ +00042290: 7669 6365 202d 2045 6e61 626c 6520 7365 vice - Enable se │ │ │ +000422a0: 7276 6963 6520 7273 7973 6c6f 670a 2020 rvice rsyslog. │ │ │ +000422b0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +000422c0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000422d0: 6b61 6765 2066 6163 7473 0a20 2020 2061 kage facts. a │ │ │ +000422e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +000422f0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020 ackage_facts:. │ │ │ +00042300: 2020 2020 6d61 6e61 6765 723a 2061 7574 manager: aut │ │ │ +00042310: 6f0a 0a20 202d 206e 616d 653a 2045 6e61 o.. - name: Ena │ │ │ +00042320: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ +00042330: 6963 6520 2d20 456e 6162 6c65 2053 6572 ice - Enable Ser │ │ │ +00042340: 7669 6365 2072 7379 736c 6f67 0a20 2020 vice rsyslog. │ │ │ +00042350: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00042360: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +00042370: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020 name: rsyslog. │ │ │ +00042380: 2020 2020 656e 6162 6c65 643a 2074 7275 enabled: tru │ │ │ +00042390: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +000423a0: 7461 7274 6564 0a20 2020 2020 206d 6173 tarted. mas │ │ │ +000423b0: 6b65 643a 2066 616c 7365 0a20 2020 2077 ked: false. w │ │ │ +000423c0: 6865 6e3a 0a20 2020 202d 2027 2272 7379 hen:. - '"rsy │ │ │ +000423d0: 736c 6f67 2220 696e 2061 6e73 6962 6c65 slog" in ansible │ │ │ +000423e0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +000423f0: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +00042400: 542d 3830 302d 3533 2d41 552d 3428 3129 T-800-53-AU-4(1) │ │ │ +00042410: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00042420: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ +00042430: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00042440: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +00042450: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00042460: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +00042470: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +00042480: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00042490: 7365 7276 6963 655f 7273 7973 6c6f 675f service_rsyslog_ │ │ │ +000424a0: 656e 6162 6c65 640a 2020 2d20 7370 6563 enabled. - spec │ │ │ +000424b0: 6961 6c5f 7365 7276 6963 655f 626c 6f63 ial_service_bloc │ │ │ +000424c0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75 k. when: '"linu │ │ │ +000424d0: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ +000424e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +000424f0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e s'. │ │ │ +00042500: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +000425b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000425c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00042690: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000426a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000426f0: 6e63 6c75 6465 2065 6e61 626c 655f 7273  nclude enable_rs
│ │ │ +00042700: 7973 6c6f 670a 0a63 6c61 7373 2065 6e61  yslog..class ena
│ │ │ +00042710: 626c 655f 7273 7973 6c6f 6720 7b0a 2020  ble_rsyslog {.  
│ │ │ +00042720: 7365 7276 6963 6520 7b27 7273 7973 6c6f  service {'rsyslo
│ │ │ +00042730: 6727 3a0a 2020 2020 656e 6162 6c65 203d  g':.    enable =
│ │ │ +00042740: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +00042750: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +00042760: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +00042780: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00042820: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00042830: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00042840: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ +00042890: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +000428a0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7273  ].enabled = ["rs
│ │ │ +000428b0: 7973 6c6f 6722 5d0a 3c2f 636f 6465 3e3c  yslog"].<
│ │ │  000428c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remed
│ │ │ -000584d0: 6961 7469 6f6e 2050 7570 7065 7420 736e  iation Puppet sn
│ │ │ -000584e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ -00058520: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +00042670: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00042680: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000426c0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000426d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00058590: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000585b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000585e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00058570: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00058580: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000585c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000585d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -00058620: 6520 7265 6d6f 7665 5f69 6e65 7475 7469 e remove_inetuti │ │ │ -00058630: 6c73 2d74 656c 6e65 7464 0a0a 636c 6173 ls-telnetd..clas │ │ │ -00058640: 7320 7265 6d6f 7665 5f69 6e65 7475 7469 s remove_inetuti │ │ │ -00058650: 6c73 2d74 656c 6e65 7464 207b 0a20 2070 ls-telnetd {. p │ │ │ -00058660: 6163 6b61 6765 207b 2027 696e 6574 7574 ackage { 'inetut │ │ │ -00058670: 696c 732d 7465 6c6e 6574 6427 3a0a 2020 ils-telnetd':. │ │ │ -00058680: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00058690: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ -000586a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>Re │ │ │ -00058750: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00058760: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...

low< │ │ │ -00058810: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00058860: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -000588a0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -000588b0: 7468 6520 696e 6574 2d62 6173 6564 2074  the inet-based t
│ │ │ -000588c0: 656c 6e65 7420 7365 7276 6572 3a20 456e  elnet server: En
│ │ │ -000588d0: 7375 7265 2069 6e65 7475 7469 6c73 2d74  sure inetutils-t
│ │ │ -000588e0: 656c 6e65 7464 2069 7320 7265 6d6f 7665  elnetd is remove
│ │ │ -000588f0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00058900: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00058910: 2020 6e61 6d65 3a20 696e 6574 7574 696c    name: inetutil
│ │ │ -00058920: 732d 7465 6c6e 6574 640a 2020 2020 7374  s-telnetd.    st
│ │ │ -00058930: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00058940: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00058950: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00058960: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00058970: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00058980: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00058990: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -000589a0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -000589b0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -000589c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000589d0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -000589e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000589f0: 2d20 7061 636b 6167 655f 696e 6574 7574  - package_inetut
│ │ │ -00058a00: 696c 732d 7465 6c6e 6574 645f 7265 6d6f  ils-telnetd_remo
│ │ │ -00058a10: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Co │ │ │ -000587f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00058820: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00058840: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00058850: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00058870: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00058880: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00058590: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000585b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000585e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00058570: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00058580: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000585a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000585c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000585d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00058610: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00058620: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ +00058630: 2069 6e65 742d 6261 7365 6420 7465 6c6e inet-based teln │ │ │ +00058640: 6574 2073 6572 7665 723a 2045 6e73 7572 et server: Ensur │ │ │ +00058650: 6520 696e 6574 7574 696c 732d 7465 6c6e e inetutils-teln │ │ │ +00058660: 6574 6420 6973 2072 656d 6f76 6564 270a etd is removed'. │ │ │ +00058670: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00058680: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ +00058690: 616d 653a 2069 6e65 7475 7469 6c73 2d74 ame: inetutils-t │ │ │ +000586a0: 656c 6e65 7464 0a20 2020 2073 7461 7465 elnetd. state │ │ │ +000586b0: 3a20 6162 7365 6e74 0a20 2074 6167 733a : absent. tags: │ │ │ +000586c0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +000586d0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953 -CM-6(a). - NIS │ │ │ +000586e0: 542d 3830 302d 3533 2d43 4d2d 3728 6129 T-800-53-CM-7(a) │ │ │ +000586f0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00058700: 2d43 4d2d 3728 6229 0a20 202d 2064 6973 -CM-7(b). - dis │ │ │ +00058710: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00058720: 2d20 6869 6768 5f73 6576 6572 6974 790a - high_severity. │ │ │ +00058730: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +00058740: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +00058750: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562 ption. - no_reb │ │ │ +00058760: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +00058770: 6163 6b61 6765 5f69 6e65 7475 7469 6c73 ackage_inetutils │ │ │ +00058780: 2d74 656c 6e65 7464 5f72 656d 6f76 6564 -telnetd_removed │ │ │ +00058790: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f . │ │ │ +00058840: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00058850: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +000588f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00058900: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00058950: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00058990: 6e63 6c75 6465 2072 656d 6f76 655f 696e  nclude remove_in
│ │ │ +000589a0: 6574 7574 696c 732d 7465 6c6e 6574 640a  etutils-telnetd.
│ │ │ +000589b0: 0a63 6c61 7373 2072 656d 6f76 655f 696e  .class remove_in
│ │ │ +000589c0: 6574 7574 696c 732d 7465 6c6e 6574 6420  etutils-telnetd 
│ │ │ +000589d0: 7b0a 2020 7061 636b 6167 6520 7b20 2769  {.  package { 'i
│ │ │ +000589e0: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +000589f0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00058a00: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00058a10: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Reme │ │ │ -00059680: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00059690: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +000588e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00058910: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00058920: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00058960: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00058970: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00059740: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00059760: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00059790: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00059720: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00059730: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00059750: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00059770: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00059780: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000597c0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -000597d0: 6465 2072 656d 6f76 655f 6e69 730a 0a63 de remove_nis..c │ │ │ -000597e0: 6c61 7373 2072 656d 6f76 655f 6e69 7320 lass remove_nis │ │ │ -000597f0: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ -00059800: 6973 273a 0a20 2020 2065 6e73 7572 6520 is':. ensure │ │ │ -00059810: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ -00059820: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -000598e0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000598f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -00059980: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000599a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000599c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000599f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00059a00: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00059a30: 6e73 7461 6c6c 2074 6865 206e 6973 2070  nstall the nis p
│ │ │ -00059a40: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -00059a50: 6973 2069 7320 7265 6d6f 7665 6427 0a20  is is removed'. 
│ │ │ -00059a60: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00059a70: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00059a80: 6d65 3a20 6e69 730a 2020 2020 7374 6174  me: nis.    stat
│ │ │ -00059a90: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00059aa0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00059ab0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00059ac0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00059ad0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00059ae0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00059af0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00059b00: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -00059b10: 6973 5f72 656d 6f76 6564 0a3c 2f63 6f64  is_removed.<
│ │ │ +000596a0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +00059720: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00059730: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00059750: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00059770: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00059780: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +000597c0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000597d0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +000597e0: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ +000597f0: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ +00059800: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00059810: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00059820: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ +00059830: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00059840: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00059850: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00059860: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00059870: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00059880: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +00059890: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000598a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000598b0: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ +000598c0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000598d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +00059980: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00059990: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00059a20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00059ac0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +00059ad0: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ +00059ae0: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ +00059af0: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ +00059b00: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00059b10: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Re │ │ │ -0005ae80: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0005ae90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0005aea0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +00059a10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00059a40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00059a50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00059a90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00059aa0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -0005af20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0005af50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0005af70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0005af80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0005afa0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0005afb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0005afd0: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ -0005afe0: 6574 642d 7373 6c0a 0a63 6c61 7373 2072  etd-ssl..class r
│ │ │ -0005aff0: 656d 6f76 655f 7465 6c6e 6574 642d 7373  emove_telnetd-ss
│ │ │ -0005b000: 6c20 7b0a 2020 7061 636b 6167 6520 7b20  l {.  package { 
│ │ │ -0005b010: 2774 656c 6e65 7464 2d73 736c 273a 0a20  'telnetd-ssl':. 
│ │ │ -0005b020: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0005b030: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0005b040: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0005b0f0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0005b100: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -0005b1a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0005b1b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0005b200: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0005b240: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0005b250: 2074 6865 2073 736c 2063 6f6d 706c 6961   the ssl complia
│ │ │ -0005b260: 6e74 2074 656c 6e65 7420 7365 7276 6572  nt telnet server
│ │ │ -0005b270: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ -0005b280: 2d73 736c 2069 7320 7265 6d6f 7665 6427  -ssl is removed'
│ │ │ -0005b290: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0005b2a0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0005b2b0: 6e61 6d65 3a20 7465 6c6e 6574 642d 7373  name: telnetd-ss
│ │ │ -0005b2c0: 6c0a 2020 2020 7374 6174 653a 2061 6273  l.    state: abs
│ │ │ -0005b2d0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0005b2e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0005b2f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0005b300: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0005b310: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0005b320: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0005b330: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -0005b340: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -0005b350: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0005b360: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0005b370: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0005b380: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0005b390: 655f 7465 6c6e 6574 642d 7373 6c5f 7265  e_telnetd-ssl_re
│ │ │ -0005b3a0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


C │ │ │ -0005b190: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0005b1c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0005b1d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0005b210: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0005b220: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +0005af40: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0005af90: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0005afd0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +0005afe0: 7468 6520 7373 6c20 636f 6d70 6c69 616e  the ssl complian
│ │ │ +0005aff0: 7420 7465 6c6e 6574 2073 6572 7665 723a  t telnet server:
│ │ │ +0005b000: 2045 6e73 7572 6520 7465 6c6e 6574 642d   Ensure telnetd-
│ │ │ +0005b010: 7373 6c20 6973 2072 656d 6f76 6564 270a  ssl is removed'.
│ │ │ +0005b020: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0005b030: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0005b040: 616d 653a 2074 656c 6e65 7464 2d73 736c  ame: telnetd-ssl
│ │ │ +0005b050: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0005b060: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0005b070: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0005b080: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0005b090: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0005b0a0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0005b0b0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0005b0c0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0005b0d0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0005b0e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0005b0f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0005b100: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0005b110: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0005b120: 5f74 656c 6e65 7464 2d73 736c 5f72 656d  _telnetd-ssl_rem
│ │ │ +0005b130: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation 
│ │ │ +0005b1f0: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +0005b200: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Co │ │ │ +0005af20: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0005af50: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0005af70: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0005af80: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0005afa0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0005afb0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0005b280: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0005b2a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0005b2f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0005b320: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0005b340: 655f 7465 6c6e 6574 642d 7373 6c0a 0a63  e_telnetd-ssl..c
│ │ │ +0005b350: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ +0005b360: 6574 642d 7373 6c20 7b0a 2020 7061 636b  etd-ssl {.  pack
│ │ │ +0005b370: 6167 6520 7b20 2774 656c 6e65 7464 2d73  age { 'telnetd-s
│ │ │ +0005b380: 736c 273a 0a20 2020 2065 6e73 7572 6520  sl':.    ensure 
│ │ │ +0005b390: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0005b3a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation Pup │ │ │ -0005c740: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0005c750: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +0005b2b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0005b2c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0005b300: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0005b310: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -0005c7e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0005c880: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -0005c890: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ -0005c8a0: 6d6f 7665 5f74 656c 6e65 7464 207b 0a20  move_telnetd {. 
│ │ │ -0005c8b0: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -0005c8c0: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -0005c8d0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0005c8e0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediatio
│ │ │ -0005c9a0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -0005c9b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ -0005ca70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0005ca80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ -0005c7d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0005c800: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0005c810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0005c850: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0005c860: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ -0005ca40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0005ca60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0005ca90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0005cab0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0005cae0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0005caf0: 696e 7374 616c 6c20 7468 6520 7465 6c6e  install the teln
│ │ │ -0005cb00: 6574 2073 6572 7665 723a 2045 6e73 7572  et server: Ensur
│ │ │ -0005cb10: 6520 7465 6c6e 6574 6420 6973 2072 656d  e telnetd is rem
│ │ │ -0005cb20: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0005cb30: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0005cb40: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ -0005cb50: 7464 0a20 2020 2073 7461 7465 3a20 6162  td.    state: ab
│ │ │ -0005cb60: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0005cb70: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0005cb80: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0005cb90: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0005cba0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0005cbb0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -0005cbc0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -0005cbd0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -0005cbe0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0005cbf0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0005cc00: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0005cc10: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0005cc20: 6765 5f74 656c 6e65 7464 5f72 656d 6f76  ge_telnetd_remov
│ │ │ -0005cc30: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0005c730: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +0005c740: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0005c750: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0005c820: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0005c830: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0005c880: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0005c890: 6c6c 2074 6865 2074 656c 6e65 7420 7365  ll the telnet se
│ │ │ +0005c8a0: 7276 6572 3a20 456e 7375 7265 2074 656c  rver: Ensure tel
│ │ │ +0005c8b0: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ +0005c8c0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0005c8d0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0005c8e0: 6e61 6d65 3a20 7465 6c6e 6574 640a 2020  name: telnetd.  
│ │ │ +0005c8f0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0005c900: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0005c910: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0005c920: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0005c930: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0005c940: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0005c950: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0005c960: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +0005c970: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +0005c980: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0005c990: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0005c9a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0005c9b0: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ +0005c9c0: 6c6e 6574 645f 7265 6d6f 7665 640a 3c2f  lnetd_removed.
Rem │ │ │ +0005ca80: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0005ca90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0005caa0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +0005c800: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0005c810: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0005c850: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0005c860: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +0005cb20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0005cb30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0005cb50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0005cb70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0005cb80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0005cbc0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0005cbd0: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ +0005cbe0: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ +0005cbf0: 5f74 656c 6e65 7464 207b 0a20 2070 6163  _telnetd {.  pac
│ │ │ +0005cc00: 6b61 6765 207b 2027 7465 6c6e 6574 6427  kage { 'telnetd'
│ │ │ +0005cc10: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0005cc20: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0005cc30: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0005cc40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -363,14 +346,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -400,31 +400,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -461,14 +444,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -500,31 +500,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -547,14 +530,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -586,31 +586,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -647,14 +630,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -1878,27 +1878,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -1911,14 +1898,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -1951,27 +1951,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -1980,14 +1967,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -2039,27 +2039,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -2072,14 +2059,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -2131,27 +2131,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -2163,14 +2150,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_restrictive.html │ │ │ @@ -20909,129 +20909,129 @@ │ │ │ 00051ac0: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 00051ad0: 743d 2223 6964 3330 2220 7461 6269 6e64 t="#id30" tabind │ │ │ 00051ae0: 6578 3d22 3022 2072 6f6c 653d 2262 7574 ex="0" role="but │ │ │ 00051af0: 746f 6e22 2061 7269 612d 6578 7061 6e64 ton" aria-expand │ │ │ 00051b00: 6564 3d22 6661 6c73 6522 2074 6974 6c65 ed="false" title │ │ │ 00051b10: 3d22 4163 7469 7661 7465 2074 6f20 7265 ="Activate to re │ │ │ 00051b20: 7665 616c 2220 6872 6566 3d22 2321 223e veal" href="#!"> │ │ │ -00051b30: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00051b40: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00051b50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00051b90: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00051ba0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00051bb0: 2273 7973 6c6f 672d 6e67 220a 7665 7273  "syslog-ng".vers
│ │ │ -00051bc0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -00051c80: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00051c90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00051ca0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00051cb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00051cc0: 7365 2220 6964 3d22 6964 3331 223e 3c74 se" id="id31"> │ │ │ -00051d10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00051d20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00051d30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00051d70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00051d80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00051da0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00051dc0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00051dd0: 7374 616c 6c5f 7379 736c 6f67 2d6e 670a  stall_syslog-ng.
│ │ │ -00051de0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ -00051df0: 7973 6c6f 672d 6e67 207b 0a20 2070 6163  yslog-ng {.  pac
│ │ │ -00051e00: 6b61 6765 207b 2027 7379 736c 6f67 2d6e  kage { 'syslog-n
│ │ │ -00051e10: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ -00051e20: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00051e30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00051e40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00051ef0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00051f00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00051f80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00051f90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00051fb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00051fc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00051fe0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00052000: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00052030: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00052040: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00052050: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00052060: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00052070: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00052080: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00052090: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -000520a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000520b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000520c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000520d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000520e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000520f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00052100: 7061 636b 6167 655f 7379 736c 6f67 6e67  package_syslogng
│ │ │ -00052110: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -00052120: 6d65 3a20 456e 7375 7265 2073 7973 6c6f  me: Ensure syslo
│ │ │ -00052130: 672d 6e67 2069 7320 696e 7374 616c 6c65  g-ng is installe
│ │ │ -00052140: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -00052150: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00052160: 206e 616d 653a 2073 7973 6c6f 672d 6e67   name: syslog-ng
│ │ │ -00052170: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -00052180: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -00052190: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -000521a0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000521b0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -000521c0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000521d0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000521e0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000521f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00052200: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00052210: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00052220: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00052230: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00052240: 6167 655f 7379 736c 6f67 6e67 5f69 6e73  age_syslogng_ins
│ │ │ -00052250: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +00051be0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00051c80: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00051c90: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00051ca0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00051cb0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00051cc0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00051cd0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00051ce0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00051cf0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00051d00: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00051d10: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00051d20: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00051d30: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00051d40: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00051d50: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +00051d60: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00051d70: 7572 6520 7379 736c 6f67 2d6e 6720 6973  ure syslog-ng is
│ │ │ +00051d80: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00051d90: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00051da0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00051db0: 7379 736c 6f67 2d6e 670a 2020 2020 7374  syslog-ng.    st
│ │ │ +00051dc0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00051dd0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00051de0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00051df0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00051e00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00051e10: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00051e20: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00051e30: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00051e40: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00051e50: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00051e60: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00051e70: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00051e80: 0a20 202d 2070 6163 6b61 6765 5f73 7973  .  - package_sys
│ │ │ +00051e90: 6c6f 676e 675f 696e 7374 616c 6c65 640a  logng_installed.
│ │ │ +00051ea0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +00051f50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00051f60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00051bd0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00051c00: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00051c10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00051c50: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00051c60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00052010: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00052060: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00051ff0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00052020: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00052040: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00052050: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00052070: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00052080: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000520a0: 7564 6520 696e 7374 616c 6c5f 7379 736c  ude install_sysl
│ │ │ +000520b0: 6f67 2d6e 670a 0a63 6c61 7373 2069 6e73  og-ng..class ins
│ │ │ +000520c0: 7461 6c6c 5f73 7973 6c6f 672d 6e67 207b  tall_syslog-ng {
│ │ │ +000520d0: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ +000520e0: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ +000520f0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +00052100: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +000521c0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000521d0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000521e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +00052230: 6765 735d 5d0a 6e61 6d65 203d 2022 7379 ges]].name = "sy │ │ │ +00052240: 736c 6f67 2d6e 6722 0a76 6572 7369 6f6e slog-ng".version │ │ │ +00052250: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Remediation O │ │ │ -000532f0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00053300: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00053310: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -00053350: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -00053360: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -00053370: 203d 205b 2273 7973 6c6f 672d 6e67 225d   = ["syslog-ng"]
│ │ │ -00053380: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -00053430: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00053440: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -000534e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000534f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00053540: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00053580: 6c75 6465 2065 6e61 626c 655f 7379 736c  lude enable_sysl
│ │ │ -00053590: 6f67 2d6e 670a 0a63 6c61 7373 2065 6e61  og-ng..class ena
│ │ │ -000535a0: 626c 655f 7379 736c 6f67 2d6e 6720 7b0a  ble_syslog-ng {.
│ │ │ -000535b0: 2020 7365 7276 6963 6520 7b27 7379 736c    service {'sysl
│ │ │ -000535c0: 6f67 2d6e 6727 3a0a 2020 2020 656e 6162  og-ng':.    enab
│ │ │ -000535d0: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -000535e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000535f0: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -00053600: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -000536b0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000536c0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000536d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -000534d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00053500: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00053510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00053550: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00053560: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00053760: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00053800: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00053810: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00053820: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00053830: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00053840: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00053850: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ -00053860: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00053870: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00053880: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00053890: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000538a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000538b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000538c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000538d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000538e0: 2073 6572 7669 6365 5f73 7973 6c6f 676e   service_syslogn
│ │ │ -000538f0: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ -00053900: 653a 2045 6e61 626c 6520 7379 736c 6f67  e: Enable syslog
│ │ │ -00053910: 2d6e 6720 5365 7276 6963 6520 2d20 456e  -ng Service - En
│ │ │ -00053920: 6162 6c65 2073 6572 7669 6365 2073 7973  able service sys
│ │ │ -00053930: 6c6f 672d 6e67 0a20 2062 6c6f 636b 3a0a  log-ng.  block:.
│ │ │ -00053940: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00053950: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00053960: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00053970: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00053980: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00053990: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -000539a0: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ -000539b0: 6c6f 672d 6e67 2053 6572 7669 6365 202d  log-ng Service -
│ │ │ -000539c0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -000539d0: 7379 736c 6f67 2d6e 670a 2020 2020 616e  syslog-ng.    an
│ │ │ -000539e0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -000539f0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00053a00: 653a 2073 7973 6c6f 672d 6e67 0a20 2020  e: syslog-ng.   
│ │ │ -00053a10: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -00053a20: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00053a30: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -00053a40: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -00053a50: 656e 3a0a 2020 2020 2d20 2722 7379 736c  en:.    - '"sysl
│ │ │ -00053a60: 6f67 2d6e 6722 2069 6e20 616e 7369 626c  og-ng" in ansibl
│ │ │ -00053a70: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00053a80: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -00053a90: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ -00053aa0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00053ab0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00053ac0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00053ad0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00053ae0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00053af0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00053b00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00053b10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00053b20: 2073 6572 7669 6365 5f73 7973 6c6f 676e   service_syslogn
│ │ │ -00053b30: 675f 656e 6162 6c65 640a 2020 2d20 7370  g_enabled.  - sp
│ │ │ -00053b40: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -00053b50: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -00053b60: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00053b70: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00053b80: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation A
│ │ │ +000532f0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00053300: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ -00053750: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00053780: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00053790: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000537d0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000537e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00053380: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000533a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000533f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00053440: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00053450: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00053460: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00053470: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00053480: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00053490: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +000534a0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +000534b0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000534c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000534d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000534e0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000534f0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00053500: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00053510: 2020 2d20 7365 7276 6963 655f 7379 736c    - service_sysl
│ │ │ +00053520: 6f67 6e67 5f65 6e61 626c 6564 0a0a 2d20  ogng_enabled..- 
│ │ │ +00053530: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ +00053540: 6c6f 672d 6e67 2053 6572 7669 6365 202d  log-ng Service -
│ │ │ +00053550: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00053560: 7379 736c 6f67 2d6e 670a 2020 626c 6f63  syslog-ng.  bloc
│ │ │ +00053570: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ +00053580: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00053590: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ +000535a0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +000535b0: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ +000535c0: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ +000535d0: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ +000535e0: 7379 736c 6f67 2d6e 6720 5365 7276 6963  syslog-ng Servic
│ │ │ +000535f0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +00053600: 6365 2073 7973 6c6f 672d 6e67 0a20 2020  ce syslog-ng.   
│ │ │ +00053610: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00053620: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00053630: 6e61 6d65 3a20 7379 736c 6f67 2d6e 670a  name: syslog-ng.
│ │ │ +00053640: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +00053650: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +00053660: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +00053670: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +00053680: 2077 6865 6e3a 0a20 2020 202d 2027 2273   when:.    - '"s
│ │ │ +00053690: 7973 6c6f 672d 6e67 2220 696e 2061 6e73  yslog-ng" in ans
│ │ │ +000536a0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000536b0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +000536c0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000536d0: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +000536e0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +000536f0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00053700: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00053710: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00053720: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00053730: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00053740: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00053750: 2020 2d20 7365 7276 6963 655f 7379 736c    - service_sysl
│ │ │ +00053760: 6f67 6e67 5f65 6e61 626c 6564 0a20 202d  ogng_enabled.  -
│ │ │ +00053770: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00053780: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00053790: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000537a0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000537b0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +000537c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ +00053870: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00053880: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00053940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00053950: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +000533b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000533c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00053400: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00053410: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +00053910: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00053930: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00053960: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00053980: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +000539c0: 6c65 5f73 7973 6c6f 672d 6e67 0a0a 636c  le_syslog-ng..cl
│ │ │ +000539d0: 6173 7320 656e 6162 6c65 5f73 7973 6c6f  ass enable_syslo
│ │ │ +000539e0: 672d 6e67 207b 0a20 2073 6572 7669 6365  g-ng {.  service
│ │ │ +000539f0: 207b 2773 7973 6c6f 672d 6e67 273a 0a20   {'syslog-ng':. 
│ │ │ +00053a00: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00053a10: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ +00053a20: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ +00053a30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00053a40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +00053af0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00053b00: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00053b10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizatio
│ │ │ +00053b60: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +00053b70: 626c 6564 203d 205b 2273 7973 6c6f 672d  bled = ["syslog-
│ │ │ +00053b80: 6e67 225d 0a3c 2f63 6f64 653e 3c2f 7072  ng"].
│ │ │ -00054cc0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00054cd0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00054ce0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00054d20: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00054d30: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00054d40: 2272 7379 736c 6f67 220a 7665 7273 696f  "rsyslog".versio
│ │ │ -00054d50: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -00054d60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00054e10: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00054e20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -00054eb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00054ed0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00054ee0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00054ef0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00054f00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00054f20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -00054f60: 616c 6c5f 7273 7973 6c6f 670a 0a63 6c61  all_rsyslog..cla
│ │ │ -00054f70: 7373 2069 6e73 7461 6c6c 5f72 7379 736c  ss install_rsysl
│ │ │ -00054f80: 6f67 207b 0a20 2070 6163 6b61 6765 207b  og {.  package {
│ │ │ -00054f90: 2027 7273 7973 6c6f 6727 3a0a 2020 2020   'rsyslog':.    
│ │ │ -00054fa0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -00054fb0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -00054fc0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00055070: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00055080: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -00055120: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00055130: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00055180: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000551c0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000551d0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000551e0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000551f0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00055200: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00055210: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00055220: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00055230: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00055240: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00055250: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00055260: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00055270: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00055280: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00055290: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ -000552a0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -000552b0: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ -000552c0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -000552d0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000552e0: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ -000552f0: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ -00055300: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -00055310: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00055320: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00055330: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00055340: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00055350: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ -00055360: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00055370: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00055380: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00055390: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000553a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000553b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000553c0: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ -000553d0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00054cc0: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +00054cd0: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +00054ce0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
C │ │ │ -00055110: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00055140: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00055150: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00055190: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000551a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00054d70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00054e10: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00054e20: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00054e30: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00054e40: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00054e50: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00054e60: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00054e70: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00054e80: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00054e90: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00054ea0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00054eb0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00054ec0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00054ed0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00054ee0: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ +00054ef0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +00054f00: 7265 2072 7379 736c 6f67 2069 7320 696e  re rsyslog is in
│ │ │ +00054f10: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +00054f20: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00054f30: 653a 0a20 2020 206e 616d 653a 2072 7379  e:.    name: rsy
│ │ │ +00054f40: 736c 6f67 0a20 2020 2073 7461 7465 3a20  slog.    state: 
│ │ │ +00054f50: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +00054f60: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00054f70: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00054f80: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00054f90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00054fa0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +00054fb0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00054fc0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00054fd0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00054fe0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00054ff0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00055000: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00055010: 7061 636b 6167 655f 7273 7973 6c6f 675f  package_rsyslog_
│ │ │ +00055020: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remedia │ │ │ +000550e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000550f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00055100: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00055110: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00055120: 7365 2220 6964 3d22 6964 3431 223e 3c74 se" id="id41"> │ │ │ +00055170: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +00055200: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00054d60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00054d90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00054da0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00054de0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00054df0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +00055180: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00055190: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +000551d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000551e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +00055220: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00055230: 7374 616c 6c5f 7273 7973 6c6f 670a 0a63  stall_rsyslog..c
│ │ │ +00055240: 6c61 7373 2069 6e73 7461 6c6c 5f72 7379  lass install_rsy
│ │ │ +00055250: 736c 6f67 207b 0a20 2070 6163 6b61 6765  slog {.  package
│ │ │ +00055260: 207b 2027 7273 7973 6c6f 6727 3a0a 2020   { 'rsyslog':.  
│ │ │ +00055270: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00055280: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +00055290: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000552a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +00055350: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00055360: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +000553b0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000553c0: 2022 7273 7973 6c6f 6722 0a76 6572 7369   "rsyslog".versi
│ │ │ +000553d0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  000553e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OSB │ │ │ -000565f0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00056600: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[cu
│ │ │ -00056650: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -00056660: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ -00056670: 205b 2272 7379 736c 6f67 225d 0a3c 2f63   ["rsyslog"].
│ │ │ -00056690: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -00056730: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00056740: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -000567f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00056810: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00056840: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000567d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000567e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00056800: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00056820: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00056830: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00056880: 2065 6e61 626c 655f 7273 7973 6c6f 670a enable_rsyslog. │ │ │ -00056890: 0a63 6c61 7373 2065 6e61 626c 655f 7273 .class enable_rs │ │ │ -000568a0: 7973 6c6f 6720 7b0a 2020 7365 7276 6963 yslog {. servic │ │ │ -000568b0: 6520 7b27 7273 7973 6c6f 6727 3a0a 2020 e {'rsyslog':. │ │ │ -000568c0: 2020 656e 6162 6c65 203d 2667 743b 2074 enable => t │ │ │ -000568d0: 7275 652c 0a20 2020 2065 6e73 7572 6520 rue,. ensure │ │ │ -000568e0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c => 'running', │ │ │ -000568f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediatio │ │ │ -000569b0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000569c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -00056a50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00056a70: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00056a80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00056a90: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00056aa0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00056ac0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -00056b00: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00056b10: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00056b20: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00056b30: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00056b40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00056b50: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ -00056b60: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00056b70: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00056b80: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00056b90: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00056ba0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00056bb0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00056bc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00056bd0: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ -00056be0: 7379 736c 6f67 5f65 6e61 626c 6564 0a0a  syslog_enabled..
│ │ │ -00056bf0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ -00056c00: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ -00056c10: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -00056c20: 7273 7973 6c6f 670a 2020 626c 6f63 6b3a  rsyslog.  block:
│ │ │ -00056c30: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -00056c40: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00056c50: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -00056c60: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00056c70: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -00056c80: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -00056c90: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ -00056ca0: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ -00056cb0: 456e 6162 6c65 2053 6572 7669 6365 2072  Enable Service r
│ │ │ -00056cc0: 7379 736c 6f67 0a20 2020 2061 6e73 6962  syslog.    ansib
│ │ │ -00056cd0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00056ce0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00056cf0: 7273 7973 6c6f 670a 2020 2020 2020 656e  rsyslog.      en
│ │ │ -00056d00: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ -00056d10: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ -00056d20: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ -00056d30: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ -00056d40: 2020 202d 2027 2272 7379 736c 6f67 2220     - '"rsyslog" 
│ │ │ -00056d50: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00056d60: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00056d70: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00056d80: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -00056d90: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00056da0: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00056db0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00056dc0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00056dd0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00056de0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00056df0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00056e00: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00056e10: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ -00056e20: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00056e30: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -00056e40: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00056e50: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00056e60: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.Remediation Ans
│ │ │ +000565f0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00056600: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +000566d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000566e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +00056730: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00056740: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00056750: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00056760: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00056770: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00056780: 4953 542d 3830 302d 3533 2d41 552d 3428  IST-800-53-AU-4(
│ │ │ +00056790: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +000567a0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +000567b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000567c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000567d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000567e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000567f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00056800: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00056810: 2d20 7365 7276 6963 655f 7273 7973 6c6f  - service_rsyslo
│ │ │ +00056820: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ +00056830: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ +00056840: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ +00056850: 6c65 2073 6572 7669 6365 2072 7379 736c  le service rsysl
│ │ │ +00056860: 6f67 0a20 2062 6c6f 636b 3a0a 0a20 202d  og.  block:..  -
│ │ │ +00056870: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00056880: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00056890: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +000568a0: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ +000568b0: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ +000568c0: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ +000568d0: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ +000568e0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +000568f0: 6520 5365 7276 6963 6520 7273 7973 6c6f  e Service rsyslo
│ │ │ +00056900: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ +00056910: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00056920: 2020 2020 206e 616d 653a 2072 7379 736c       name: rsysl
│ │ │ +00056930: 6f67 0a20 2020 2020 2065 6e61 626c 6564  og.      enabled
│ │ │ +00056940: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ +00056950: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ +00056960: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ +00056970: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ +00056980: 2722 7273 7973 6c6f 6722 2069 6e20 616e  '"rsyslog" in an
│ │ │ +00056990: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000569a0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000569b0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +000569c0: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ +000569d0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +000569e0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000569f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00056a00: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00056a10: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00056a20: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00056a30: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00056a40: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ +00056a50: 736c 6f67 5f65 6e61 626c 6564 0a20 202d  slog_enabled.  -
│ │ │ +00056a60: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00056a70: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00056a80: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00056a90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00056aa0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00056ab0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ +00056b60: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00056b70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00056c30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00056c40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +000566b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000566c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00056700: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00056710: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +00056c00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00056c20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00056c50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00056c70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00056cb0: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ +00056cc0: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ +00056cd0: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ +00056ce0: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ +00056cf0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00056d00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00056d10: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00056d20: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00056d30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +00056de0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00056df0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[cu
│ │ │ +00056e40: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00056e50: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +00056e60: 205b 2272 7379 736c 6f67 225d 0a3c 2f63   ["rsyslog"].
│ │ │ 00056e80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00078d90: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00078da0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00078db0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00078dc0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00078dd0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00078de0: 7365 2220 6964 3d22 6964 3130 3322 3e3c se" id="id103">< │ │ │ -00078df0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00078e00: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00078e10: 6372 6f6e 220a 7665 7273 696f 6e20 3d20 cron".version = │ │ │ -00078e20: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation │ │ │ -00078ee0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00078ef0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00078f70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00078f90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00078fe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00079010: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -00079030: 6c5f 6372 6f6e 0a0a 636c 6173 7320 696e  l_cron..class in
│ │ │ -00079040: 7374 616c 6c5f 6372 6f6e 207b 0a20 2070  stall_cron {.  p
│ │ │ -00079050: 6163 6b61 6765 207b 2027 6372 6f6e 273a  ackage { 'cron':
│ │ │ -00079060: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00079070: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -00079080: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -00079140: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -00079150: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00079210: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00079220: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:< │ │ │ -00078f80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00078fa0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00078ff0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00079000: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity │ │ │ -000791e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00079200: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00079230: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00079250: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -00079290: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000792a0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -000792b0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -000792c0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -000792d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000792e0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -000792f0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00079300: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -00079310: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00079320: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00079330: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00079340: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00079350: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00079360: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00079370: 0a20 202d 2070 6163 6b61 6765 5f63 726f  .  - package_cro
│ │ │ -00079380: 6e5f 696e 7374 616c 6c65 640a 0a2d 206e  n_installed..- n
│ │ │ -00079390: 616d 653a 2045 6e73 7572 6520 6372 6f6e  ame: Ensure cron
│ │ │ -000793a0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000793b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000793c0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000793d0: 653a 2063 726f 6e0a 2020 2020 7374 6174  e: cron.    stat
│ │ │ -000793e0: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -000793f0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00079400: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00079410: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00079420: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00079430: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00079440: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -00079450: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -00079460: 360a 2020 2d20 656e 6162 6c65 5f73 7472  6.  - enable_str
│ │ │ -00079470: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00079480: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00079490: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000794a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000794b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000794c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000794d0: 5f63 726f 6e5f 696e 7374 616c 6c65 640a  _cron_installed.
│ │ │ +00078d90: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +00078da0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +00078e40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00078e50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00078ea0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00078ee0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00078ef0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00078f00: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00078f10: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00078f20: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00078f30: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00078f40: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00078f50: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00078f60: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c  -2.2.6.  - enabl
│ │ │ +00078f70: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00078f80: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00078f90: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00078fa0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00078fb0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00078fc0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00078fd0: 636b 6167 655f 6372 6f6e 5f69 6e73 7461  ckage_cron_insta
│ │ │ +00078fe0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +00078ff0: 7375 7265 2063 726f 6e20 6973 2069 6e73  sure cron is ins
│ │ │ +00079000: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00079010: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00079020: 3a0a 2020 2020 6e61 6d65 3a20 6372 6f6e  :.    name: cron
│ │ │ +00079030: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +00079040: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00079050: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00079060: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00079070: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00079080: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00079090: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +000790a0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +000790b0: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ +000790c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000790d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000790e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000790f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00079100: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00079110: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00079120: 2d20 7061 636b 6167 655f 6372 6f6e 5f69  - package_cron_i
│ │ │ +00079130: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00079140: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000791f0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00079200: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00079210: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00079220: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00079230: 7365 2220 6964 3d22 6964 3130 3422 3e3c se" id="id104">< │ │ │ +00079240: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00079250: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00079260: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00079270: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00079280: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +00079310: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00079320: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +00078e30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00078e60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00078e70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00078eb0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00078ec0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +00079290: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000792a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000792e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000792f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +00079340: 6e73 7461 6c6c 5f63 726f 6e0a 0a63 6c61  nstall_cron..cla
│ │ │ +00079350: 7373 2069 6e73 7461 6c6c 5f63 726f 6e20  ss install_cron 
│ │ │ +00079360: 7b0a 2020 7061 636b 6167 6520 7b20 2763  {.  package { 'c
│ │ │ +00079370: 726f 6e27 3a0a 2020 2020 656e 7375 7265  ron':.    ensure
│ │ │ +00079380: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +00079390: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +00079450: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00079460: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00079470: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000794b0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000794c0: 735d 5d0a 6e61 6d65 203d 2022 6372 6f6e  s]].name = "cron
│ │ │ +000794d0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  000794e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -0007aa20: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0007aa30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0007aac0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0007aae0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0007ab00: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0007ab30: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007ab40: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0007ab70: 6f76 655f 696e 6574 7574 696c 732d 7465  ove_inetutils-te
│ │ │ -0007ab80: 6c6e 6574 640a 0a63 6c61 7373 2072 656d  lnetd..class rem
│ │ │ -0007ab90: 6f76 655f 696e 6574 7574 696c 732d 7465  ove_inetutils-te
│ │ │ -0007aba0: 6c6e 6574 6420 7b0a 2020 7061 636b 6167  lnetd {.  packag
│ │ │ -0007abb0: 6520 7b20 2769 6e65 7475 7469 6c73 2d74  e { 'inetutils-t
│ │ │ -0007abc0: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ -0007abd0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0007abe0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0007aca0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0007acb0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007ad60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007ad80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007adb0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007ad40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007ad50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007ad70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007ad90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007ada0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007ade0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0007adf0: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -0007ae00: 2069 6e65 742d 6261 7365 6420 7465 6c6e inet-based teln │ │ │ -0007ae10: 6574 2073 6572 7665 723a 2045 6e73 7572 et server: Ensur │ │ │ -0007ae20: 6520 696e 6574 7574 696c 732d 7465 6c6e e inetutils-teln │ │ │ -0007ae30: 6574 6420 6973 2072 656d 6f76 6564 270a etd is removed'. │ │ │ -0007ae40: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0007ae50: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ -0007ae60: 616d 653a 2069 6e65 7475 7469 6c73 2d74 ame: inetutils-t │ │ │ -0007ae70: 656c 6e65 7464 0a20 2020 2073 7461 7465 elnetd. state │ │ │ -0007ae80: 3a20 6162 7365 6e74 0a20 2074 6167 733a : absent. tags: │ │ │ -0007ae90: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0007aea0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953 -CM-6(a). - NIS │ │ │ -0007aeb0: 542d 3830 302d 3533 2d43 4d2d 3728 6129 T-800-53-CM-7(a) │ │ │ -0007aec0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0007aed0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973 -CM-7(b). - dis │ │ │ -0007aee0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0007aef0: 2d20 6869 6768 5f73 6576 6572 6974 790a - high_severity. │ │ │ -0007af00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0007af10: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0007af20: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562 ption. - no_reb │ │ │ -0007af30: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -0007af40: 6163 6b61 6765 5f69 6e65 7475 7469 6c73 ackage_inetutils │ │ │ -0007af50: 2d74 656c 6e65 7464 5f72 656d 6f76 6564 -telnetd_removed │ │ │ +0007aa20: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0007aa30: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0007aac0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0007aae0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0007aaf0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007ab00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0007ab10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0007ab30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0007ab60: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0007ab70: 696e 7374 616c 6c20 7468 6520 696e 6574  install the inet
│ │ │ +0007ab80: 2d62 6173 6564 2074 656c 6e65 7420 7365  -based telnet se
│ │ │ +0007ab90: 7276 6572 3a20 456e 7375 7265 2069 6e65  rver: Ensure ine
│ │ │ +0007aba0: 7475 7469 6c73 2d74 656c 6e65 7464 2069  tutils-telnetd i
│ │ │ +0007abb0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0007abc0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0007abd0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0007abe0: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ +0007abf0: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ +0007ac00: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0007ac10: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0007ac20: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0007ac30: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +0007ac40: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0007ac50: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +0007ac60: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +0007ac70: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +0007ac80: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0007ac90: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0007aca0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0007acb0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0007acc0: 655f 696e 6574 7574 696c 732d 7465 6c6e  e_inetutils-teln
│ │ │ +0007acd0: 6574 645f 7265 6d6f 7665 640a 3c2f 636f  etd_removed.
< │ │ │ +0007acf0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0007ad00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0007ad10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0007ad20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0007ad30: 6431 3039 2220 7461 6269 6e64 6578 3d22 d109" tabindex=" │ │ │ +0007ad40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0007ad50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0007ad60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0007ad70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0007ad80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0007ad90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0007ada0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0007ae30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0007ae40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0007ae60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0007ae80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0007ae90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0007aed0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0007aee0: 7564 6520 7265 6d6f 7665 5f69 6e65 7475  ude remove_inetu
│ │ │ +0007aef0: 7469 6c73 2d74 656c 6e65 7464 0a0a 636c  tils-telnetd..cl
│ │ │ +0007af00: 6173 7320 7265 6d6f 7665 5f69 6e65 7475  ass remove_inetu
│ │ │ +0007af10: 7469 6c73 2d74 656c 6e65 7464 207b 0a20  tils-telnetd {. 
│ │ │ +0007af20: 2070 6163 6b61 6765 207b 2027 696e 6574   package { 'inet
│ │ │ +0007af30: 7574 696c 732d 7465 6c6e 6574 6427 3a0a  utils-telnetd':.
│ │ │ +0007af40: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0007af50: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0007af60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Rem │ │ │ -0007bbd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0007bbe0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007bbf0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007bc70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007bca0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007bcc0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007bcd0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007bcf0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007bd00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0007bd20: 6c75 6465 2072 656d 6f76 655f 6e69 730a  lude remove_nis.
│ │ │ -0007bd30: 0a63 6c61 7373 2072 656d 6f76 655f 6e69  .class remove_ni
│ │ │ -0007bd40: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -0007bd50: 276e 6973 273a 0a20 2020 2065 6e73 7572  'nis':.    ensur
│ │ │ -0007bd60: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0007bd70: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0007bd80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0007be30: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0007be40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0007be50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007be60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007be70: 7365 2220 6964 3d22 6964 3131 3322 3e3c se" id="id113">< │ │ │ -0007be80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007be90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007bea0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007beb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007bec0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0007bed0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007bee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0007bf20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007bf30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0007bf50: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0007bf60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0007bf80: 2755 6e69 6e73 7461 6c6c 2074 6865 206e 'Uninstall the n │ │ │ -0007bf90: 6973 2070 6163 6b61 6765 3a20 456e 7375 is package: Ensu │ │ │ -0007bfa0: 7265 206e 6973 2069 7320 7265 6d6f 7665 re nis is remove │ │ │ -0007bfb0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -0007bfc0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -0007bfd0: 2020 6e61 6d65 3a20 6e69 730a 2020 2020 name: nis. │ │ │ -0007bfe0: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -0007bff0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -0007c000: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -0007c010: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0007c020: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0007c030: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ -0007c040: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -0007c050: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0007c060: 6765 5f6e 6973 5f72 656d 6f76 6564 0a3c ge_nis_removed.< │ │ │ +0007bbd0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +0007bbe0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007bbf0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0007bc90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007bce0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0007bd20: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +0007bd30: 7468 6520 6e69 7320 7061 636b 6167 653a  the nis package:
│ │ │ +0007bd40: 2045 6e73 7572 6520 6e69 7320 6973 2072   Ensure nis is r
│ │ │ +0007bd50: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +0007bd60: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0007bd70: 653a 0a20 2020 206e 616d 653a 206e 6973  e:.    name: nis
│ │ │ +0007bd80: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0007bd90: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +0007bda0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0007bdb0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0007bdc0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0007bdd0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0007bde0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0007bdf0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0007be00: 7061 636b 6167 655f 6e69 735f 7265 6d6f  package_nis_remo
│ │ │ +0007be10: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0007bed0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0007bee0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +0007bc70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007bca0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007bcc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007bcd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007bcf0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007bd00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0007bf60: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007bf80: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007bfd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007c000: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007bf70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007bf90: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007bfe0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007bff0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0007c020: 7665 5f6e 6973 0a0a 636c 6173 7320 7265  ve_nis..class re
│ │ │ +0007c030: 6d6f 7665 5f6e 6973 207b 0a20 2070 6163  move_nis {.  pac
│ │ │ +0007c040: 6b61 6765 207b 2027 6e69 7327 3a0a 2020  kage { 'nis':.  
│ │ │ +0007c050: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0007c060: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0007c070: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remedia │ │ │ -0007cca0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0007ccb0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0007ccc0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007ccd0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007cce0: 7365 2220 6964 3d22 6964 3131 3622 3e3c se" id="id116">< │ │ │ -0007ccf0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007cd00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007cd10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007cd20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007cd30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0007cd40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007cd50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0007cd90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007cda0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0007cdc0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0007cdd0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0007cdf0: 2072 656d 6f76 655f 6e74 7064 6174 650a remove_ntpdate. │ │ │ -0007ce00: 0a63 6c61 7373 2072 656d 6f76 655f 6e74 .class remove_nt │ │ │ -0007ce10: 7064 6174 6520 7b0a 2020 7061 636b 6167 pdate {. packag │ │ │ -0007ce20: 6520 7b20 276e 7470 6461 7465 273a 0a20 e { 'ntpdate':. │ │ │ -0007ce30: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -0007ce40: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ -0007ce50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ -0007cf00: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0007cf10: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0007cf20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0007cff0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007d000: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0007d050: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -0007d060: 6c6c 2074 6865 206e 7470 6461 7465 2070  ll the ntpdate p
│ │ │ -0007d070: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -0007d080: 7470 6461 7465 2069 7320 7265 6d6f 7665  tpdate is remove
│ │ │ -0007d090: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -0007d0a0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0007d0b0: 2020 6e61 6d65 3a20 6e74 7064 6174 650a    name: ntpdate.
│ │ │ -0007d0c0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007d0d0: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ -0007d0e0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0007d0f0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0007d100: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0007d110: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0007d120: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0007d130: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0007d140: 6163 6b61 6765 5f6e 7470 6461 7465 5f72  ackage_ntpdate_r
│ │ │ -0007d150: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
│ │ │ +0007ccc0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007ccf0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -0007cfd0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007cfe0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007d020: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0007d030: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0007cd60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007cd80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007cdb0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0007cd40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007cd50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007cd90: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007cda0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0007cdf0: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ +0007ce00: 6e74 7064 6174 6520 7061 636b 6167 653a ntpdate package: │ │ │ +0007ce10: 2045 6e73 7572 6520 6e74 7064 6174 6520 Ensure ntpdate │ │ │ +0007ce20: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ +0007ce30: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +0007ce40: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ +0007ce50: 206e 7470 6461 7465 0a20 2020 2073 7461 ntpdate. sta │ │ │ +0007ce60: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ +0007ce70: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ +0007ce80: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0007ce90: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0007cea0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0007ceb0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ +0007cec0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +0007ced0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +0007cee0: 6e74 7064 6174 655f 7265 6d6f 7665 640a ntpdate_removed. │ │ │ +0007cef0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

│ │ │ +0007cfa0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0007cfb0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0007d050: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +0007d0f0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +0007d100: 7470 6461 7465 0a0a 636c 6173 7320 7265  tpdate..class re
│ │ │ +0007d110: 6d6f 7665 5f6e 7470 6461 7465 207b 0a20  move_ntpdate {. 
│ │ │ +0007d120: 2070 6163 6b61 6765 207b 2027 6e74 7064   package { 'ntpd
│ │ │ +0007d130: 6174 6527 3a0a 2020 2020 656e 7375 7265  ate':.    ensure
│ │ │ +0007d140: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0007d150: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediatio
│ │ │ -0007e4e0: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ -0007e4f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -0007e5b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007e5c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +0007d040: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007d070: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007d080: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007d0c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007d0d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ -0007e580: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0007e5a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0007e5d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0007e5f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0007e620: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -0007e630: 6d6f 7665 5f74 656c 6e65 7464 2d73 736c  move_telnetd-ssl
│ │ │ -0007e640: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ -0007e650: 656c 6e65 7464 2d73 736c 207b 0a20 2070  elnetd-ssl {.  p
│ │ │ -0007e660: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ -0007e670: 642d 7373 6c27 3a0a 2020 2020 656e 7375  d-ssl':.    ensu
│ │ │ -0007e680: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0007e690: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0007e6a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0007e750: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0007e760: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007e770: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007e7a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0007e810: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007e830: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007e860: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0007e7f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007e800: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007e840: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007e850: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0007e8a0: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ -0007e8b0: 7373 6c20 636f 6d70 6c69 616e 7420 7465 ssl compliant te │ │ │ -0007e8c0: 6c6e 6574 2073 6572 7665 723a 2045 6e73 lnet server: Ens │ │ │ -0007e8d0: 7572 6520 7465 6c6e 6574 642d 7373 6c20 ure telnetd-ssl │ │ │ -0007e8e0: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ -0007e8f0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -0007e900: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -0007e910: 2074 656c 6e65 7464 2d73 736c 0a20 2020 telnetd-ssl. │ │ │ -0007e920: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -0007e930: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ -0007e940: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -0007e950: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -0007e960: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ -0007e970: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ -0007e980: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ -0007e990: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ -0007e9a0: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ -0007e9b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0007e9c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0007e9d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0007e9e0: 0a20 202d 2070 6163 6b61 6765 5f74 656c . - package_tel │ │ │ -0007e9f0: 6e65 7464 2d73 736c 5f72 656d 6f76 6564 netd-ssl_removed │ │ │ +0007e4e0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +0007e4f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0007e570: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0007e580: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0007e5a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0007e5b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0007e5d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0007e5f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable

│ │ │ +0007e620: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +0007e630: 6e69 6e73 7461 6c6c 2074 6865 2073 736c  ninstall the ssl
│ │ │ +0007e640: 2063 6f6d 706c 6961 6e74 2074 656c 6e65   compliant telne
│ │ │ +0007e650: 7420 7365 7276 6572 3a20 456e 7375 7265  t server: Ensure
│ │ │ +0007e660: 2074 656c 6e65 7464 2d73 736c 2069 7320   telnetd-ssl is 
│ │ │ +0007e670: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +0007e680: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0007e690: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +0007e6a0: 6c6e 6574 642d 7373 6c0a 2020 2020 7374  lnetd-ssl.    st
│ │ │ +0007e6b0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0007e6c0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0007e6d0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0007e6e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0007e6f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0007e700: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0007e710: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0007e720: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +0007e730: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +0007e740: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007e750: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0007e760: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007e770: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +0007e780: 642d 7373 6c5f 7265 6d6f 7665 640a 3c2f  d-ssl_removed.
Re │ │ │ +0007e840: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0007e850: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007e860: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0007e900: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007e950: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0007e990: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ +0007e9a0: 6e65 7464 2d73 736c 0a0a 636c 6173 7320  netd-ssl..class 
│ │ │ +0007e9b0: 7265 6d6f 7665 5f74 656c 6e65 7464 2d73  remove_telnetd-s
│ │ │ +0007e9c0: 736c 207b 0a20 2070 6163 6b61 6765 207b  sl {.  package {
│ │ │ +0007e9d0: 2027 7465 6c6e 6574 642d 7373 6c27 3a0a   'telnetd-ssl':.
│ │ │ +0007e9e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0007e9f0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0007ea00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0007fd90: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0007fda0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Co │ │ │ +0007e8e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007e910: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007e930: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007e940: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007e960: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007e970: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0007fe40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0007fee0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -0007fef0: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ -0007ff00: 6d6f 7665 5f74 656c 6e65 7464 207b 0a20  move_telnetd {. 
│ │ │ -0007ff10: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -0007ff20: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -0007ff30: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0007ff40: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -00080000: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -00080010: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -00080090: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00080120: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00080130: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -0007fe30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007fe60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007fe70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007feb0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007fec0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -000800a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000800b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000800f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00080100: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -00080150: 556e 696e 7374 616c 6c20 7468 6520 7465  Uninstall the te
│ │ │ -00080160: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ -00080170: 7572 6520 7465 6c6e 6574 6420 6973 2072  ure telnetd is r
│ │ │ -00080180: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00080190: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000801a0: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -000801b0: 6e65 7464 0a20 2020 2073 7461 7465 3a20  netd.    state: 
│ │ │ -000801c0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -000801d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000801e0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -000801f0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00080200: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00080210: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -00080220: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00080230: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -00080240: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00080250: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00080260: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00080270: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00080280: 6b61 6765 5f74 656c 6e65 7464 5f72 656d  kage_telnetd_rem
│ │ │ -00080290: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +0007fe80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007fe90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007fee0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0007fef0: 6c6c 2074 6865 2074 656c 6e65 7420 7365  ll the telnet se
│ │ │ +0007ff00: 7276 6572 3a20 456e 7375 7265 2074 656c  rver: Ensure tel
│ │ │ +0007ff10: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ +0007ff20: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0007ff30: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0007ff40: 6e61 6d65 3a20 7465 6c6e 6574 640a 2020  name: telnetd.  
│ │ │ +0007ff50: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0007ff60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0007ff70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0007ff80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0007ff90: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0007ffa0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0007ffb0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0007ffc0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +0007ffd0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +0007ffe0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0007fff0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00080000: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00080010: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ +00080020: 6c6e 6574 645f 7265 6d6f 7665 640a 3c2f  lnetd_removed.
Re │ │ │ +000800e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000800f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00080100: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +0007fe60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007fe70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007feb0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007fec0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +000801a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000801f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00080230: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ +00080240: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ +00080250: 7665 5f74 656c 6e65 7464 207b 0a20 2070  ve_telnetd {.  p
│ │ │ +00080260: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ +00080270: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +00080280: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00080290: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation O
│ │ │ -00082480: 5342 7569 6c64 2042 6c75 6570 7269 6e74  SBuild Blueprint
│ │ │ -00082490: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ -000824a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
.
│ │ │ -000824e0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -000824f0: 6520 3d20 226e 7470 220a 7665 7273 696f  e = "ntp".versio
│ │ │ -00082500: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -00082510: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000825c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000825d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00082650: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000826e0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Co │ │ │ +00080180: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000801b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000801d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000801e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00080200: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00080210: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00082660: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00082670: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000826b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000826c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -00082700: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00082710: 7374 616c 6c5f 6e74 700a 0a63 6c61 7373  stall_ntp..class
│ │ │ -00082720: 2069 6e73 7461 6c6c 5f6e 7470 207b 0a20   install_ntp {. 
│ │ │ -00082730: 2070 6163 6b61 6765 207b 2027 6e74 7027   package { 'ntp'
│ │ │ -00082740: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00082750: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00082760: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00082820: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00082830: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000828b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000828c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000828e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000828f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00082910: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00082930: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00082960: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00082970: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00082980: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00082990: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000829a0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000829b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000829c0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -000829d0: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ -000829e0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000829f0: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ -00082a00: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ -00082a10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00082a20: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -00082a30: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00082a40: 202d 2070 6163 6b61 6765 5f6e 7470 5f69   - package_ntp_i
│ │ │ -00082a50: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -00082a60: 3a20 456e 7375 7265 206e 7470 2069 7320  : Ensure ntp is 
│ │ │ -00082a70: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00082a80: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00082a90: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ -00082aa0: 7470 0a20 2020 2073 7461 7465 3a20 7072  tp.    state: pr
│ │ │ -00082ab0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00082ac0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00082ad0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00082ae0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00082af0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00082b00: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00082b10: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ -00082b20: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00082b30: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -00082b40: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00082b50: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00082b60: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00082b70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00082b80: 2070 6163 6b61 6765 5f6e 7470 5f69 6e73   package_ntp_ins
│ │ │ -00082b90: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediation A
│ │ │ +00082480: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00082490: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +00082510: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00082530: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00082580: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000825b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +000825d0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +000825e0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +000825f0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00082600: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00082610: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00082620: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00082630: 532d 5265 712d 3130 2e34 0a20 202d 2065  S-Req-10.4.  - e
│ │ │ +00082640: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00082650: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +00082660: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00082670: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00082680: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00082690: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000826a0: 7061 636b 6167 655f 6e74 705f 696e 7374  package_ntp_inst
│ │ │ +000826b0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +000826c0: 6e73 7572 6520 6e74 7020 6973 2069 6e73  nsure ntp is ins
│ │ │ +000826d0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000826e0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000826f0: 3a0a 2020 2020 6e61 6d65 3a20 6e74 700a  :.    name: ntp.
│ │ │ +00082700: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +00082710: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00082720: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00082730: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00082740: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00082750: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00082760: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +00082770: 5265 712d 3130 2e34 0a20 202d 2065 6e61  Req-10.4.  - ena
│ │ │ +00082780: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00082790: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +000827a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000827b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000827c0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +000827d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000827e0: 636b 6167 655f 6e74 705f 696e 7374 616c  ckage_ntp_instal
│ │ │ +000827f0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +000828b0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000828c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ +00082520: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00082540: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00082590: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000825a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +00082940: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00082960: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000829b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000829e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00082a00: 6c5f 6e74 700a 0a63 6c61 7373 2069 6e73  l_ntp..class ins
│ │ │ +00082a10: 7461 6c6c 5f6e 7470 207b 0a20 2070 6163  tall_ntp {.  pac
│ │ │ +00082a20: 6b61 6765 207b 2027 6e74 7027 3a0a 2020  kage { 'ntp':.  
│ │ │ +00082a30: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00082a40: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +00082a50: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00082a60: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00082b10: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00082b20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00082b30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00082b70: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00082b80: 203d 2022 6e74 7022 0a76 6572 7369 6f6e   = "ntp".version
│ │ │ +00082b90: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation OSB │ │ │ -00083d40: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00083d50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -00083da0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00083db0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -00083dc0: 3d20 5b22 6e74 7022 5d0a 3c2f 636f 6465  = ["ntp"].
Remedi │ │ │ -00083e80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00083e90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00083ea0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00083ed0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:< │ │ │ +00082950: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00082970: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000829c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000829d0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00083f40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00083f60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00083f90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00083fb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00083f20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00083f30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00083f70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00083f80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00083fd0: 656e 6162 6c65 5f6e 7470 0a0a 636c 6173 enable_ntp..clas │ │ │ -00083fe0: 7320 656e 6162 6c65 5f6e 7470 207b 0a20 s enable_ntp {. │ │ │ -00083ff0: 2073 6572 7669 6365 207b 276e 7470 273a service {'ntp': │ │ │ -00084000: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ -00084010: 3b20 7472 7565 2c0a 2020 2020 656e 7375 ; true,. ensu │ │ │ -00084020: 7265 203d 2667 743b 2027 7275 6e6e 696e re => 'runnin │ │ │ -00084030: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 g',. }.}.
Remedi │ │ │ -000840f0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00084100: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000841b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000841d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00084200: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00084190: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000841a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000841c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000841e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000841f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00084240: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00084250: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00084260: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00084270: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00084280: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00084290: 302d 3533 2d41 552d 3828 3129 2861 290a 0-53-AU-8(1)(a). │ │ │ -000842a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -000842b0: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -000842c0: 4453 532d 5265 712d 3130 2e34 0a20 202d DSS-Req-10.4. - │ │ │ -000842d0: 2050 4349 2d44 5353 7634 2d31 302e 360a PCI-DSSv4-10.6. │ │ │ -000842e0: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ -000842f0: 2e36 2e31 0a20 202d 2065 6e61 626c 655f .6.1. - enable_ │ │ │ -00084300: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -00084310: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -00084320: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00084330: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00084340: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00084350: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -00084360: 655f 6e74 705f 656e 6162 6c65 640a 0a2d e_ntp_enabled..- │ │ │ -00084370: 206e 616d 653a 2045 6e61 626c 6520 7468 name: Enable th │ │ │ -00084380: 6520 4e54 5020 4461 656d 6f6e 202d 2045 e NTP Daemon - E │ │ │ -00084390: 6e61 626c 6520 7365 7276 6963 6520 6e74 nable service nt │ │ │ -000843a0: 700a 2020 626c 6f63 6b3a 0a0a 2020 2d20 p. block:.. - │ │ │ -000843b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865 name: Gather the │ │ │ -000843c0: 2070 6163 6b61 6765 2066 6163 7473 0a20 package facts. │ │ │ -000843d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -000843e0: 696e 2e70 6163 6b61 6765 5f66 6163 7473 in.package_facts │ │ │ -000843f0: 3a0a 2020 2020 2020 6d61 6e61 6765 723a :. manager: │ │ │ -00084400: 2061 7574 6f0a 0a20 202d 206e 616d 653a auto.. - name: │ │ │ -00084410: 2045 6e61 626c 6520 7468 6520 4e54 5020 Enable the NTP │ │ │ -00084420: 4461 656d 6f6e 202d 2045 6e61 626c 6520 Daemon - Enable │ │ │ -00084430: 5365 7276 6963 6520 6e74 700a 2020 2020 Service ntp. │ │ │ -00084440: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00084450: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00084460: 616d 653a 206e 7470 0a20 2020 2020 2065 ame: ntp. e │ │ │ -00084470: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ -00084480: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ -00084490: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ -000844a0: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ -000844b0: 2020 2020 2d20 2722 6e74 7022 2069 6e20 - '"ntp" in │ │ │ -000844c0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -000844d0: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -000844e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -000844f0: 4155 2d38 2831 2928 6129 0a20 202d 204e AU-8(1)(a). - N │ │ │ -00084500: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00084510: 6129 0a20 202d 2050 4349 2d44 5353 2d52 a). - PCI-DSS-R │ │ │ -00084520: 6571 2d31 302e 340a 2020 2d20 5043 492d eq-10.4. - PCI- │ │ │ -00084530: 4453 5376 342d 3130 2e36 0a20 202d 2050 DSSv4-10.6. - P │ │ │ -00084540: 4349 2d44 5353 7634 2d31 302e 362e 310a CI-DSSv4-10.6.1. │ │ │ -00084550: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ -00084560: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ -00084570: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ -00084580: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -00084590: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -000845a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -000845b0: 0a20 202d 2073 6572 7669 6365 5f6e 7470 . - service_ntp │ │ │ -000845c0: 5f65 6e61 626c 6564 0a20 202d 2073 7065 _enabled. - spe │ │ │ -000845d0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f cial_service_blo │ │ │ -000845e0: 636b 0a20 2077 6865 6e3a 0a20 202d 2027 ck. when:. - ' │ │ │ -000845f0: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -00084600: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00084610: 636b 6167 6573 270a 2020 2d20 2722 6e74 ckages'. - '"nt │ │ │ -00084620: 7022 2069 6e20 616e 7369 626c 655f 6661 p" in ansible_fa │ │ │ -00084630: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.Remediation Ans │ │ │ +00083d40: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00083d50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity: │ │ │ +00083e20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00083e30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00083e80: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00083e90: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00083ea0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00083eb0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00083ec0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00083ed0: 4e49 5354 2d38 3030 2d35 332d 4155 2d38  NIST-800-53-AU-8
│ │ │ +00083ee0: 2831 2928 6129 0a20 202d 204e 4953 542d  (1)(a).  - NIST-
│ │ │ +00083ef0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00083f00: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +00083f10: 302e 340a 2020 2d20 5043 492d 4453 5376  0.4.  - PCI-DSSv
│ │ │ +00083f20: 342d 3130 2e36 0a20 202d 2050 4349 2d44  4-10.6.  - PCI-D
│ │ │ +00083f30: 5353 7634 2d31 302e 362e 310a 2020 2d20  SSv4-10.6.1.  - 
│ │ │ +00083f40: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00083f50: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00083f60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00083f70: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00083f80: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00083f90: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00083fa0: 2073 6572 7669 6365 5f6e 7470 5f65 6e61   service_ntp_ena
│ │ │ +00083fb0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ +00083fc0: 6162 6c65 2074 6865 204e 5450 2044 6165  able the NTP Dae
│ │ │ +00083fd0: 6d6f 6e20 2d20 456e 6162 6c65 2073 6572  mon - Enable ser
│ │ │ +00083fe0: 7669 6365 206e 7470 0a20 2062 6c6f 636b  vice ntp.  block
│ │ │ +00083ff0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ +00084000: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00084010: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ +00084020: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00084030: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ +00084040: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ +00084050: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074  - name: Enable t
│ │ │ +00084060: 6865 204e 5450 2044 6165 6d6f 6e20 2d20  he NTP Daemon - 
│ │ │ +00084070: 456e 6162 6c65 2053 6572 7669 6365 206e  Enable Service n
│ │ │ +00084080: 7470 0a20 2020 2061 6e73 6962 6c65 2e62  tp.    ansible.b
│ │ │ +00084090: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +000840a0: 2020 2020 2020 6e61 6d65 3a20 6e74 700a        name: ntp.
│ │ │ +000840b0: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +000840c0: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +000840d0: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +000840e0: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +000840f0: 2077 6865 6e3a 0a20 2020 202d 2027 226e   when:.    - '"n
│ │ │ +00084100: 7470 2220 696e 2061 6e73 6962 6c65 5f66  tp" in ansible_f
│ │ │ +00084110: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00084120: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00084130: 3830 302d 3533 2d41 552d 3828 3129 2861  800-53-AU-8(1)(a
│ │ │ +00084140: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00084150: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00084160: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +00084170: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00084180: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ +00084190: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ +000841a0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +000841b0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +000841c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000841d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000841e0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +000841f0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00084200: 6963 655f 6e74 705f 656e 6162 6c65 640a  ice_ntp_enabled.
│ │ │ +00084210: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +00084220: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +00084230: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261  :.  - '"linux-ba
│ │ │ +00084240: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00084250: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00084260: 202d 2027 226e 7470 2220 696e 2061 6e73   - '"ntp" in ans
│ │ │ +00084270: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00084280: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation
│ │ │ +00084340: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +00084350: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +00084420: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00084470: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +00083e00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00083e10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00083e50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00083e60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +000843e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00084400: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00084450: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00084460: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ +00084490: 655f 6e74 700a 0a63 6c61 7373 2065 6e61  e_ntp..class ena
│ │ │ +000844a0: 626c 655f 6e74 7020 7b0a 2020 7365 7276  ble_ntp {.  serv
│ │ │ +000844b0: 6963 6520 7b27 6e74 7027 3a0a 2020 2020  ice {'ntp':.    
│ │ │ +000844c0: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ +000844d0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +000844e0: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ +000844f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +000845b0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +000845c0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +00084620: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +00084630: 6c65 6420 3d20 5b22 6e74 7022 5d0a 3c2f  led = ["ntp"].
Remediation OS │ │ │ -00092d10: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00092d20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00092d30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -00092d70: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -00092d80: 203d 2022 6175 6469 7464 220a 7665 7273   = "auditd".vers
│ │ │ -00092d90: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -00092e50: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00092e60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00092e70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00092ea0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00092f10: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00092f30: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00092f60: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00092f80: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00092ef0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00092f00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00092f40: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00092f50: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00092fa0: 696e 7374 616c 6c5f 6175 6469 7464 0a0a install_auditd.. │ │ │ -00092fb0: 636c 6173 7320 696e 7374 616c 6c5f 6175 class install_au │ │ │ -00092fc0: 6469 7464 207b 0a20 2070 6163 6b61 6765 ditd {. package │ │ │ -00092fd0: 207b 2027 6175 6469 7464 273a 0a20 2020 { 'auditd':. │ │ │ -00092fe0: 2065 6e73 7572 6520 3d26 6774 3b20 2769 ensure => 'i │ │ │ -00092ff0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d nstalled',. }.} │ │ │ -00093000: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Ans │ │ │ -000930c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000930d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000931a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000931b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00093200: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00093210: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00093220: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00093230: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00093240: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00093250: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ -00093260: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00093270: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ -00093280: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00093290: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ -000932a0: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ -000932b0: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ -000932c0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -000932d0: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ -000932e0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -000932f0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00093300: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ -00093310: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ -00093320: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ -00093330: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00093340: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00093350: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00093360: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00093370: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00093380: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00093390: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -000933a0: 7564 6974 5f69 6e73 7461 6c6c 6564 0a0a  udit_installed..
│ │ │ -000933b0: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -000933c0: 7564 6974 6420 6973 2069 6e73 7461 6c6c  uditd is install
│ │ │ -000933d0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000933e0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000933f0: 2020 6e61 6d65 3a20 6175 6469 7464 0a20    name: auditd. 
│ │ │ -00093400: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -00093410: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -00093420: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00093430: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00093440: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -00093450: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ -00093460: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00093470: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ -00093480: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -00093490: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ -000934a0: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ -000934b0: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ -000934c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000934d0: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ -000934e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000934f0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00093500: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -00093510: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -00093520: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -00093530: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00093540: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00093550: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00093560: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00093570: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00093580: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00093590: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ -000935a0: 6469 745f 696e 7374 616c 6c65 640a 3c2f  dit_installed.Remediation An
│ │ │ +00092d10: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00092d20: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disru │ │ │ -00093180: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00093190: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000931d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000931e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00092da0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00092dc0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00092e10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00092e60: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00092e70: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00092e80: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00092e90: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00092ea0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00092eb0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00092ec0: 302d 3533 2d41 552d 3132 2832 290a 2020  0-53-AU-12(2).  
│ │ │ +00092ed0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00092ee0: 2d31 340a 2020 2d20 4e49 5354 2d38 3030  -14.  - NIST-800
│ │ │ +00092ef0: 2d35 332d 4155 2d32 2861 290a 2020 2d20  -53-AU-2(a).  - 
│ │ │ +00092f00: 4e49 5354 2d38 3030 2d35 332d 4155 2d37  NIST-800-53-AU-7
│ │ │ +00092f10: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00092f20: 2d35 332d 4155 2d37 2832 290a 2020 2d20  -53-AU-7(2).  - 
│ │ │ +00092f30: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00092f40: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +00092f50: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ +00092f60: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ +00092f70: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ +00092f80: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00092f90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00092fa0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00092fb0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00092fc0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00092fd0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00092fe0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00092ff0: 6175 6469 745f 696e 7374 616c 6c65 640a  audit_installed.
│ │ │ +00093000: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00093010: 6175 6469 7464 2069 7320 696e 7374 616c  auditd is instal
│ │ │ +00093020: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +00093030: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00093040: 2020 206e 616d 653a 2061 7564 6974 640a     name: auditd.
│ │ │ +00093050: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +00093060: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00093070: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00093080: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00093090: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000930a0: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ +000930b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +000930c0: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ +000930d0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000930e0: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ +000930f0: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ +00093100: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ +00093110: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +00093120: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ +00093130: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00093140: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00093150: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +00093160: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +00093170: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +00093180: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00093190: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000931a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000931b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000931c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000931d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000931e0: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +000931f0: 7564 6974 5f69 6e73 7461 6c6c 6564 0a3c  udit_installed.<
│ │ │ +00093200: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000932b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000932c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00092dd0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00092de0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00092e20: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00092e30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +00093360: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00093370: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000933c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00093400: 6c75 6465 2069 6e73 7461 6c6c 5f61 7564  lude install_aud
│ │ │ +00093410: 6974 640a 0a63 6c61 7373 2069 6e73 7461  itd..class insta
│ │ │ +00093420: 6c6c 5f61 7564 6974 6420 7b0a 2020 7061  ll_auditd {.  pa
│ │ │ +00093430: 636b 6167 6520 7b20 2761 7564 6974 6427  ckage { 'auditd'
│ │ │ +00093440: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00093450: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +00093460: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00093520: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00093530: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00093540: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +00093590: 6e61 6d65 203d 2022 6175 6469 7464 220a  name = "auditd".
│ │ │ +000935a0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
R │ │ │ -000951e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000951f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00095200: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00095210: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00095240: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00095250: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00095260: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -00095270: 5b22 6175 6469 7464 225d 0a3c 2f63 6f64  ["auditd"].
Remed │ │ │ -00095330: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00095340: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +00093350: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00093380: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00093390: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000933d0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000933e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -000953f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00095410: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00095440: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000953d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000953e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00095400: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00095420: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00095430: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00095480: 2065 6e61 626c 655f 6175 6469 7464 0a0a enable_auditd.. │ │ │ -00095490: 636c 6173 7320 656e 6162 6c65 5f61 7564 class enable_aud │ │ │ -000954a0: 6974 6420 7b0a 2020 7365 7276 6963 6520 itd {. service │ │ │ -000954b0: 7b27 6175 6469 7464 273a 0a20 2020 2065 {'auditd':. e │ │ │ -000954c0: 6e61 626c 6520 3d26 6774 3b20 7472 7565 nable => true │ │ │ -000954d0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -000954e0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020 t; 'running',. │ │ │ -000954f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -000955b0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000955c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00095650: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00095670: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00095690: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000956c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000956d0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000956e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -00095700: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00095710: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00095720: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00095730: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00095740: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ -00095750: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -00095760: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ -00095770: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ -00095780: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -00095790: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ -000957a0: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ -000957b0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -000957c0: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ -000957d0: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ -000957e0: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ -000957f0: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ -00095800: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ -00095810: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00095820: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ -00095830: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ -00095840: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00095850: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00095860: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ -00095870: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ -00095880: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00095890: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -000958a0: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ -000958b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000958c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000958d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000958e0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000958f0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00095900: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00095910: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ -00095920: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ -00095930: 6e61 626c 6520 6175 6469 7464 2053 6572  nable auditd Ser
│ │ │ -00095940: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -00095950: 7276 6963 6520 6175 6469 7464 0a20 2062  rvice auditd.  b
│ │ │ -00095960: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -00095970: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -00095980: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -00095990: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000959a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000959b0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000959c0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -000959d0: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -000959e0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -000959f0: 6365 2061 7564 6974 640a 2020 2020 616e  ce auditd.    an
│ │ │ -00095a00: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00095a10: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00095a20: 653a 2061 7564 6974 640a 2020 2020 2020  e: auditd.      
│ │ │ -00095a30: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -00095a40: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -00095a50: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -00095a60: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -00095a70: 0a20 2020 202d 2027 2261 7564 6974 6422  .    - '"auditd"
│ │ │ -00095a80: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00095a90: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00095aa0: 6773 3a0a 2020 2d20 434a 4953 2d35 2e34  gs:.  - CJIS-5.4
│ │ │ -00095ab0: 2e31 2e31 0a20 202d 204e 4953 542d 3830  .1.1.  - NIST-80
│ │ │ -00095ac0: 302d 3137 312d 332e 332e 310a 2020 2d20  0-171-3.3.1.  - 
│ │ │ -00095ad0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -00095ae0: 2e32 0a20 202d 204e 4953 542d 3830 302d  .2.  - NIST-800-
│ │ │ -00095af0: 3137 312d 332e 332e 360a 2020 2d20 4e49  171-3.3.6.  - NI
│ │ │ -00095b00: 5354 2d38 3030 2d35 332d 4143 2d32 2867  ST-800-53-AC-2(g
│ │ │ -00095b10: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00095b20: 332d 4143 2d36 2839 290a 2020 2d20 4e49  3-AC-6(9).  - NI
│ │ │ -00095b30: 5354 2d38 3030 2d35 332d 4155 2d31 300a  ST-800-53-AU-10.
│ │ │ -00095b40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00095b50: 4155 2d31 3228 6329 0a20 202d 204e 4953  AU-12(c).  - NIS
│ │ │ -00095b60: 542d 3830 302d 3533 2d41 552d 3134 2831  T-800-53-AU-14(1
│ │ │ -00095b70: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00095b80: 332d 4155 2d32 2864 290a 2020 2d20 4e49  3-AU-2(d).  - NI
│ │ │ -00095b90: 5354 2d38 3030 2d35 332d 4155 2d33 0a20  ST-800-53-AU-3. 
│ │ │ -00095ba0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00095bb0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00095bc0: 3830 302d 3533 2d53 492d 3428 3233 290a  800-53-SI-4(23).
│ │ │ -00095bd0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -00095be0: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ -00095bf0: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ -00095c00: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ -00095c10: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00095c20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00095c30: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00095c40: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00095c50: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00095c60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00095c70: 2020 2d20 7365 7276 6963 655f 6175 6469    - service_audi
│ │ │ -00095c80: 7464 5f65 6e61 626c 6564 0a20 202d 2073  td_enabled.  - s
│ │ │ -00095c90: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00095ca0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -00095cb0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00095cc0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00095cd0: 7061 636b 6167 6573 270a 2020 2d20 2722  packages'.  - '"
│ │ │ -00095ce0: 6175 6469 7464 2220 696e 2061 6e73 6962  auditd" in ansib
│ │ │ -00095cf0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00095d00: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +000951e0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +000951f0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +00095290: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00095330: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00095340: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00095350: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00095360: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00095370: 6f0a 2020 7461 6773 3a0a 2020 2d20 434a  o.  tags:.  - CJ
│ │ │ +00095380: 4953 2d35 2e34 2e31 2e31 0a20 202d 204e  IS-5.4.1.1.  - N
│ │ │ +00095390: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +000953a0: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ +000953b0: 3731 2d33 2e33 2e32 0a20 202d 204e 4953  71-3.3.2.  - NIS
│ │ │ +000953c0: 542d 3830 302d 3137 312d 332e 332e 360a  T-800-171-3.3.6.
│ │ │ +000953d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000953e0: 4143 2d32 2867 290a 2020 2d20 4e49 5354  AC-2(g).  - NIST
│ │ │ +000953f0: 2d38 3030 2d35 332d 4143 2d36 2839 290a  -800-53-AC-6(9).
│ │ │ +00095400: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00095410: 4155 2d31 300a 2020 2d20 4e49 5354 2d38  AU-10.  - NIST-8
│ │ │ +00095420: 3030 2d35 332d 4155 2d31 3228 6329 0a20  00-53-AU-12(c). 
│ │ │ +00095430: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00095440: 552d 3134 2831 290a 2020 2d20 4e49 5354  U-14(1).  - NIST
│ │ │ +00095450: 2d38 3030 2d35 332d 4155 2d32 2864 290a  -800-53-AU-2(d).
│ │ │ +00095460: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00095470: 4155 2d33 0a20 202d 204e 4953 542d 3830  AU-3.  - NIST-80
│ │ │ +00095480: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00095490: 204e 4953 542d 3830 302d 3533 2d53 492d   NIST-800-53-SI-
│ │ │ +000954a0: 3428 3233 290a 2020 2d20 5043 492d 4453  4(23).  - PCI-DS
│ │ │ +000954b0: 532d 5265 712d 3130 2e31 0a20 202d 2050  S-Req-10.1.  - P
│ │ │ +000954c0: 4349 2d44 5353 7634 2d31 302e 320a 2020  CI-DSSv4-10.2.  
│ │ │ +000954d0: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +000954e0: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ +000954f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00095500: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00095510: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00095520: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00095530: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00095540: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00095550: 655f 6175 6469 7464 5f65 6e61 626c 6564  e_auditd_enabled
│ │ │ +00095560: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +00095570: 2061 7564 6974 6420 5365 7276 6963 6520   auditd Service 
│ │ │ +00095580: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +00095590: 2061 7564 6974 640a 2020 626c 6f63 6b3a   auditd.  block:
│ │ │ +000955a0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +000955b0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000955c0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +000955d0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000955e0: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +000955f0: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +00095600: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ +00095610: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ +00095620: 6e61 626c 6520 5365 7276 6963 6520 6175  nable Service au
│ │ │ +00095630: 6469 7464 0a20 2020 2061 6e73 6962 6c65  ditd.    ansible
│ │ │ +00095640: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00095650: 3a0a 2020 2020 2020 6e61 6d65 3a20 6175  :.      name: au
│ │ │ +00095660: 6469 7464 0a20 2020 2020 2065 6e61 626c  ditd.      enabl
│ │ │ +00095670: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00095680: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00095690: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +000956a0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +000956b0: 2d20 2722 6175 6469 7464 2220 696e 2061  - '"auditd" in a
│ │ │ +000956c0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +000956d0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +000956e0: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ +000956f0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +00095700: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ +00095710: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ +00095720: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00095730: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ +00095740: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ +00095750: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00095760: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ +00095770: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ +00095780: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +00095790: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ +000957a0: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ +000957b0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000957c0: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ +000957d0: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ +000957e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000957f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00095800: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ +00095810: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ +00095820: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +00095830: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00095840: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ +00095850: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00095860: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00095870: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00095880: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00095890: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000958a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000958b0: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ +000958c0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +000958d0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +000958e0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +000958f0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00095900: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00095910: 6765 7327 0a20 202d 2027 2261 7564 6974  ges'.  - '"audit
│ │ │ +00095920: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ +00095930: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +000959f0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00095a00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00095a10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +00095280: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000952b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000952c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00095300: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00095310: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00095ab0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00095b00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00095a90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00095ac0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00095ae0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00095af0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00095b10: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00095b20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00095b40: 7564 6520 656e 6162 6c65 5f61 7564 6974  ude enable_audit
│ │ │ +00095b50: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ +00095b60: 6175 6469 7464 207b 0a20 2073 6572 7669  auditd {.  servi
│ │ │ +00095b70: 6365 207b 2761 7564 6974 6427 3a0a 2020  ce {'auditd':.  
│ │ │ +00095b80: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +00095b90: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +00095ba0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +00095bb0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +00095c70: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00095c80: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00095c90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +00095ce0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +00095cf0: 6162 6c65 6420 3d20 5b22 6175 6469 7464  abled = ["auditd
│ │ │ +00095d00: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00095d10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2018,14 +2001,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2055,31 +2055,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2116,14 +2099,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2155,31 +2155,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2202,14 +2185,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2241,31 +2241,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2302,14 +2285,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4589,31 +4589,14 @@ │ │ │ │ SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4640,14 +4623,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4686,27 +4686,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4719,14 +4706,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4759,27 +4759,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4788,14 +4775,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -4830,27 +4830,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4859,14 +4846,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -4918,27 +4918,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -4951,14 +4938,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -5010,27 +5010,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5042,14 +5029,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -5143,31 +5143,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5192,14 +5175,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -5233,31 +5233,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5302,14 +5285,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ntp"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6225,31 +6225,14 @@ │ │ │ │ 000351-GPOS-00139, SRG-OS-000352-GPOS-00140, SRG-OS- │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6290,14 +6273,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6368,31 +6368,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6459,14 +6442,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-standard.html │ │ │ @@ -19982,127 +19982,127 @@ │ │ │ 0004e0d0: 7461 7267 6574 3d22 2369 6432 3422 2074 target="#id24" t │ │ │ 0004e0e0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0004e0f0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0004e100: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0004e110: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0004e120: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0004e130: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0004e140: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0004e150: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -0004e1a0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -0004e1b0: 6d65 203d 2022 7273 7973 6c6f 6722 0a76  me = "rsyslog".v
│ │ │ -0004e1c0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0004e1e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Reme │ │ │ -0004e280: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0004e290: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0004e340: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0004e360: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0004e390: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0004e320: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0004e330: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0004e350: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0004e370: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0004e380: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0004e3d0: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67 install_rsyslog │ │ │ -0004e3e0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ -0004e3f0: 7273 7973 6c6f 6720 7b0a 2020 7061 636b rsyslog {. pack │ │ │ -0004e400: 6167 6520 7b20 2772 7379 736c 6f67 273a age { 'rsyslog': │ │ │ -0004e410: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -0004e420: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20 ; 'installed',. │ │ │ -0004e430: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ -0004e4f0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0004e500: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0004e580: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0004e5a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0004e5f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0004e620: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0004e640: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0004e650: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0004e660: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0004e670: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0004e680: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0004e690: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -0004e6a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0004e6b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0004e6c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0004e6d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0004e6e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0004e6f0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0004e700: 6b61 6765 5f72 7379 736c 6f67 5f69 6e73  kage_rsyslog_ins
│ │ │ -0004e710: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -0004e720: 456e 7375 7265 2072 7379 736c 6f67 2069  Ensure rsyslog i
│ │ │ -0004e730: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -0004e740: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0004e750: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0004e760: 2072 7379 736c 6f67 0a20 2020 2073 7461   rsyslog.    sta
│ │ │ -0004e770: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -0004e780: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0004e790: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0004e7a0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0004e7b0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0004e7c0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0004e7d0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0004e7e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0004e7f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0004e800: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0004e810: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0004e820: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0004e830: 2020 2d20 7061 636b 6167 655f 7273 7973    - package_rsys
│ │ │ -0004e840: 6c6f 675f 696e 7374 616c 6c65 640a 3c2f  log_installed.
low< │ │ │ +0004e220: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +0004e270: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0004e590: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0004e5b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0004e600: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0004e610: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +0004e1e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0004e200: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0004e250: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0004e260: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +0004e290: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0004e2a0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0004e2b0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0004e2c0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0004e2d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0004e2e0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +0004e2f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0004e300: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0004e310: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0004e320: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0004e330: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0004e340: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0004e350: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ +0004e360: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +0004e370: 2045 6e73 7572 6520 7273 7973 6c6f 6720   Ensure rsyslog 
│ │ │ +0004e380: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +0004e390: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0004e3a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0004e3b0: 3a20 7273 7973 6c6f 670a 2020 2020 7374  : rsyslog.    st
│ │ │ +0004e3c0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0004e3d0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0004e3e0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0004e3f0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0004e400: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0004e410: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0004e420: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0004e430: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0004e440: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0004e450: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0004e460: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0004e470: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0004e480: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ +0004e490: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a3c  slog_installed.<
│ │ │ +0004e4a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0004e550: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0004e560: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0004e570: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +0004e5f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0004e620: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0004e640: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0004e650: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0004e670: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0004e690: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0004e6a0: 6465 2069 6e73 7461 6c6c 5f72 7379 736c  de install_rsysl
│ │ │ +0004e6b0: 6f67 0a0a 636c 6173 7320 696e 7374 616c  og..class instal
│ │ │ +0004e6c0: 6c5f 7273 7973 6c6f 6720 7b0a 2020 7061  l_rsyslog {.  pa
│ │ │ +0004e6d0: 636b 6167 6520 7b20 2772 7379 736c 6f67  ckage { 'rsyslog
│ │ │ +0004e6e0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0004e6f0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +0004e700: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +0004e7c0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0004e7d0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0004e7e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ +0004e830: 616d 6520 3d20 2272 7379 736c 6f67 220a  ame = "rsyslog".
│ │ │ +0004e840: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediatio │ │ │ -0004fa60: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0004fa70: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0004fa80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ -0004fad0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -0004fae0: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ -0004faf0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0004fb00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pup │ │ │ -0004fbb0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0004fbc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -0004fc50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0004fcf0: 636c 7564 6520 656e 6162 6c65 5f72 7379  clude enable_rsy
│ │ │ -0004fd00: 736c 6f67 0a0a 636c 6173 7320 656e 6162  slog..class enab
│ │ │ -0004fd10: 6c65 5f72 7379 736c 6f67 207b 0a20 2073  le_rsyslog {.  s
│ │ │ -0004fd20: 6572 7669 6365 207b 2772 7379 736c 6f67  ervice {'rsyslog
│ │ │ -0004fd30: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -0004fd40: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -0004fd50: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -0004fd60: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -0004fd80: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0004fd90: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0004fda0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0004fdb0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0004fdc0: 6433 3122 2074 6162 696e 6465 783d 2230 d31" tabindex="0 │ │ │ -0004fdd0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0004fde0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0004fdf0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0004fe00: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0004fe10: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0004fe20: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0004fe30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0004fc40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0004fc70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0004fc80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0004fcc0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0004fcd0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0004fee0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0004ff00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0004ff30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0004fec0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0004fed0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0004fef0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0004ff10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0004ff20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0004ff70: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0004ff80: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0004ff90: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0004ffa0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0004ffb0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0004ffc0: 302d 3533 2d41 552d 3428 3129 0a20 202d 0-53-AU-4(1). - │ │ │ -0004ffd0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0004ffe0: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -0004fff0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00050000: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00050010: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00050020: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00050030: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00050040: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -00050050: 6963 655f 7273 7973 6c6f 675f 656e 6162 ice_rsyslog_enab │ │ │ -00050060: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ -00050070: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ -00050080: 6963 6520 2d20 456e 6162 6c65 2073 6572 ice - Enable ser │ │ │ -00050090: 7669 6365 2072 7379 736c 6f67 0a20 2062 vice rsyslog. b │ │ │ -000500a0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ -000500b0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -000500c0: 6167 6520 6661 6374 730a 2020 2020 616e age facts. an │ │ │ -000500d0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -000500e0: 636b 6167 655f 6661 6374 733a 0a20 2020 ckage_facts:. │ │ │ -000500f0: 2020 206d 616e 6167 6572 3a20 6175 746f manager: auto │ │ │ -00050100: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162 .. - name: Enab │ │ │ -00050110: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ -00050120: 6365 202d 2045 6e61 626c 6520 5365 7276 ce - Enable Serv │ │ │ -00050130: 6963 6520 7273 7973 6c6f 670a 2020 2020 ice rsyslog. │ │ │ -00050140: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00050150: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00050160: 616d 653a 2072 7379 736c 6f67 0a20 2020 ame: rsyslog. │ │ │ -00050170: 2020 2065 6e61 626c 6564 3a20 7472 7565 enabled: true │ │ │ -00050180: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -00050190: 6172 7465 640a 2020 2020 2020 6d61 736b arted. mask │ │ │ -000501a0: 6564 3a20 6661 6c73 650a 2020 2020 7768 ed: false. wh │ │ │ -000501b0: 656e 3a0a 2020 2020 2d20 2722 7273 7973 en:. - '"rsys │ │ │ -000501c0: 6c6f 6722 2069 6e20 616e 7369 626c 655f log" in ansible_ │ │ │ -000501d0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -000501e0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -000501f0: 2d38 3030 2d35 332d 4155 2d34 2831 290a -800-53-AU-4(1). │ │ │ -00050200: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00050210: 434d 2d36 2861 290a 2020 2d20 656e 6162 CM-6(a). - enab │ │ │ -00050220: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00050230: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00050240: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00050250: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -00050260: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -00050270: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ -00050280: 6572 7669 6365 5f72 7379 736c 6f67 5f65 ervice_rsyslog_e │ │ │ -00050290: 6e61 626c 6564 0a20 202d 2073 7065 6369 nabled. - speci │ │ │ -000502a0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b al_service_block │ │ │ -000502b0: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ -000502c0: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ -000502d0: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -000502e0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c '.< │ │ │ +0004fa60: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +0004fa70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +0004fb00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0004fb20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0004fb30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0004fb40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0004fb50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0004fb70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable

- name: Gath
│ │ │ +0004fbb0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0004fbc0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0004fbd0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0004fbe0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0004fbf0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0004fc00: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +0004fc10: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0004fc20: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0004fc30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0004fc40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0004fc50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0004fc60: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0004fc70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0004fc80: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +0004fc90: 7379 736c 6f67 5f65 6e61 626c 6564 0a0a  syslog_enabled..
│ │ │ +0004fca0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ +0004fcb0: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ +0004fcc0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +0004fcd0: 7273 7973 6c6f 670a 2020 626c 6f63 6b3a  rsyslog.  block:
│ │ │ +0004fce0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +0004fcf0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0004fd00: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +0004fd10: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0004fd20: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +0004fd30: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +0004fd40: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ +0004fd50: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ +0004fd60: 456e 6162 6c65 2053 6572 7669 6365 2072  Enable Service r
│ │ │ +0004fd70: 7379 736c 6f67 0a20 2020 2061 6e73 6962  syslog.    ansib
│ │ │ +0004fd80: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0004fd90: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0004fda0: 7273 7973 6c6f 670a 2020 2020 2020 656e  rsyslog.      en
│ │ │ +0004fdb0: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +0004fdc0: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +0004fdd0: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +0004fde0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +0004fdf0: 2020 202d 2027 2272 7379 736c 6f67 2220     - '"rsyslog" 
│ │ │ +0004fe00: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0004fe10: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0004fe20: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0004fe30: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ +0004fe40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0004fe50: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +0004fe60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0004fe70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0004fe80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0004fe90: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0004fea0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0004feb0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0004fec0: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ +0004fed0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0004fee0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +0004fef0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0004ff00: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0004ff10: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +0004ff30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0004ffd0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0004ffe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00050090: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000500b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000500e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00050070: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00050080: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000500a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000500c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000500d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00050120: 2065 6e61 626c 655f 7273 7973 6c6f 670a enable_rsyslog. │ │ │ +00050130: 0a63 6c61 7373 2065 6e61 626c 655f 7273 .class enable_rs │ │ │ +00050140: 7973 6c6f 6720 7b0a 2020 7365 7276 6963 yslog {. servic │ │ │ +00050150: 6520 7b27 7273 7973 6c6f 6727 3a0a 2020 e {'rsyslog':. │ │ │ +00050160: 2020 656e 6162 6c65 203d 2667 743b 2074 enable => t │ │ │ +00050170: 7275 652c 0a20 2020 2065 6e73 7572 6520 rue,. ensure │ │ │ +00050180: 3d26 6774 3b20 2772 756e 6e69 6e67 272c => 'running', │ │ │ +00050190: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediatio │ │ │ +00050250: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00050260: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00050270: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ +000502c0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +000502d0: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ +000502e0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 000502f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remedia │ │ │ -00070fe0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00070ff0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00071000: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ -00071050: 5d0a 6e61 6d65 203d 2022 6372 6f6e 220a  ].name = "cron".
│ │ │ -00071060: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -00071120: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00071130: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00071140: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -000711c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000711d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000711f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00071210: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00071220: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00071260: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00071270: 6520 696e 7374 616c 6c5f 6372 6f6e 0a0a e install_cron.. │ │ │ -00071280: 636c 6173 7320 696e 7374 616c 6c5f 6372 class install_cr │ │ │ -00071290: 6f6e 207b 0a20 2070 6163 6b61 6765 207b on {. package { │ │ │ -000712a0: 2027 6372 6f6e 273a 0a20 2020 2065 6e73 'cron':. ens │ │ │ -000712b0: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ -000712c0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ -000712e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -00071380: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00071390: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000713a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -00071420: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00071430: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00071450: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00071470: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00071480: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000714c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000714d0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000714e0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -000714f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00071500: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00071510: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00071520: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00071530: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -00071540: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -00071550: 322e 360a 2020 2d20 656e 6162 6c65 5f73 2.6. - enable_s │ │ │ -00071560: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00071570: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00071580: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00071590: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -000715a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -000715b0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -000715c0: 6765 5f63 726f 6e5f 696e 7374 616c 6c65 ge_cron_installe │ │ │ -000715d0: 640a 0a2d 206e 616d 653a 2045 6e73 7572 d..- name: Ensur │ │ │ -000715e0: 6520 6372 6f6e 2069 7320 696e 7374 616c e cron is instal │ │ │ -000715f0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -00071600: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00071610: 2020 206e 616d 653a 2063 726f 6e0a 2020 name: cron. │ │ │ -00071620: 2020 7374 6174 653a 2070 7265 7365 6e74 state: present │ │ │ -00071630: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ -00071640: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ -00071650: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -00071660: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ -00071670: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -00071680: 290a 2020 2d20 5043 492d 4453 5376 342d ). - PCI-DSSv4- │ │ │ -00071690: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ -000716a0: 342d 322e 322e 360a 2020 2d20 656e 6162 4-2.2.6. - enab │ │ │ -000716b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -000716c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -000716d0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -000716e0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -000716f0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -00071700: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -00071710: 6163 6b61 6765 5f63 726f 6e5f 696e 7374 ackage_cron_inst │ │ │ -00071720: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


│ │ │ +00071000: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00071030: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00071040: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00071050: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00071060: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00071070: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00071080: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00071090: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000710d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000710e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00071100: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00071110: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00071130: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00071140: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00071150: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00071160: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00071170: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00071180: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +00071190: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +000711a0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +000711b0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000711c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000711d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000711e0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000711f0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00071200: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00071210: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00071220: 6372 6f6e 5f69 6e73 7461 6c6c 6564 0a0a  cron_installed..
│ │ │ +00071230: 2d20 6e61 6d65 3a20 456e 7375 7265 2063  - name: Ensure c
│ │ │ +00071240: 726f 6e20 6973 2069 6e73 7461 6c6c 6564  ron is installed
│ │ │ +00071250: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00071260: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00071270: 6e61 6d65 3a20 6372 6f6e 0a20 2020 2073  name: cron.    s
│ │ │ +00071280: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +00071290: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000712a0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000712b0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000712c0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +000712d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +000712e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +000712f0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00071300: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ +00071310: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00071320: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00071330: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00071340: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00071350: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00071360: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00071370: 6167 655f 6372 6f6e 5f69 6e73 7461 6c6c  age_cron_install
│ │ │ +00071380: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00071390: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +00071440: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00071450: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00071520: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00071530: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00071580: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f63  nclude install_c
│ │ │ +00071590: 726f 6e0a 0a63 6c61 7373 2069 6e73 7461  ron..class insta
│ │ │ +000715a0: 6c6c 5f63 726f 6e20 7b0a 2020 7061 636b  ll_cron {.  pack
│ │ │ +000715b0: 6167 6520 7b20 2763 726f 6e27 3a0a 2020  age { 'cron':.  
│ │ │ +000715c0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000715d0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000715e0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000715f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +000716a0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000716b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +00071700: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +00071710: 2022 6372 6f6e 220a 7665 7273 696f 6e20   "cron".version 
│ │ │ +00071720: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remedi │ │ │ -000728e0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000728f0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00072900: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -00072940: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00072950: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00072960: 656e 6162 6c65 6420 3d20 5b22 6372 6f6e  enabled = ["cron
│ │ │ -00072970: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00072980: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -00072a30: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00072a40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +00071500: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00071510: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00071550: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00071560: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00072b10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00072b20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00072b70: 6e63 6c75 6465 2065 6e61 626c 655f 6372  nclude enable_cr
│ │ │ -00072b80: 6f6e 0a0a 636c 6173 7320 656e 6162 6c65  on..class enable
│ │ │ -00072b90: 5f63 726f 6e20 7b0a 2020 7365 7276 6963  _cron {.  servic
│ │ │ -00072ba0: 6520 7b27 6372 6f6e 273a 0a20 2020 2065  e {'cron':.    e
│ │ │ -00072bb0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -00072bc0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00072bd0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -00072be0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation A │ │ │ -00072ca0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00072cb0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ -00072af0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00072b00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00072b40: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00072b50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00072d30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00072d50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00072da0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -00072df0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00072e00: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00072e10: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00072e20: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00072e30: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00072e40: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00072e50: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00072e60: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00072e70: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00072e80: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00072e90: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00072ea0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00072eb0: 6963 655f 6372 6f6e 5f65 6e61 626c 6564  ice_cron_enabled
│ │ │ -00072ec0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ -00072ed0: 2063 726f 6e20 5365 7276 6963 6520 2d20   cron Service - 
│ │ │ -00072ee0: 456e 6162 6c65 2073 6572 7669 6365 2063  Enable service c
│ │ │ -00072ef0: 726f 6e0a 2020 626c 6f63 6b3a 0a0a 2020  ron.  block:..  
│ │ │ -00072f00: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00072f10: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00072f20: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00072f30: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -00072f40: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -00072f50: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -00072f60: 653a 2045 6e61 626c 6520 6372 6f6e 2053  e: Enable cron S
│ │ │ -00072f70: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -00072f80: 5365 7276 6963 6520 6372 6f6e 0a20 2020  Service cron.   
│ │ │ -00072f90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00072fa0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00072fb0: 6e61 6d65 3a20 6372 6f6e 0a20 2020 2020  name: cron.     
│ │ │ -00072fc0: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ -00072fd0: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ -00072fe0: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ -00072ff0: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ -00073000: 3a0a 2020 2020 2d20 2722 6372 6f6e 2220  :.    - '"cron" 
│ │ │ -00073010: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00073020: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00073030: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00073040: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00073050: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00073060: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00073070: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00073080: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00073090: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000730a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000730b0: 2d20 7365 7276 6963 655f 6372 6f6e 5f65  - service_cron_e
│ │ │ -000730c0: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ -000730d0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -000730e0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -000730f0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00073100: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00073110: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +000728e0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +000728f0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00072930: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -00072d60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00072d70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00072db0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00072dc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +000729a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000729c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000729f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00072a10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00072980: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00072990: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000729d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000729e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00072a30: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00072a40: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00072a50: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00072a60: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00072a70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00072a80: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +00072a90: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +00072aa0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +00072ab0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +00072ac0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +00072ad0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +00072ae0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +00072af0: 202d 2073 6572 7669 6365 5f63 726f 6e5f - service_cron_ │ │ │ +00072b00: 656e 6162 6c65 640a 0a2d 206e 616d 653a enabled..- name: │ │ │ +00072b10: 2045 6e61 626c 6520 6372 6f6e 2053 6572 Enable cron Ser │ │ │ +00072b20: 7669 6365 202d 2045 6e61 626c 6520 7365 vice - Enable se │ │ │ +00072b30: 7276 6963 6520 6372 6f6e 0a20 2062 6c6f rvice cron. blo │ │ │ +00072b40: 636b 3a0a 0a20 202d 206e 616d 653a 2047 ck:.. - name: G │ │ │ +00072b50: 6174 6865 7220 7468 6520 7061 636b 6167 ather the packag │ │ │ +00072b60: 6520 6661 6374 730a 2020 2020 616e 7369 e facts. ansi │ │ │ +00072b70: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +00072b80: 6167 655f 6661 6374 733a 0a20 2020 2020 age_facts:. │ │ │ +00072b90: 206d 616e 6167 6572 3a20 6175 746f 0a0a manager: auto.. │ │ │ +00072ba0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65 - name: Enable │ │ │ +00072bb0: 2063 726f 6e20 5365 7276 6963 6520 2d20 cron Service - │ │ │ +00072bc0: 456e 6162 6c65 2053 6572 7669 6365 2063 Enable Service c │ │ │ +00072bd0: 726f 6e0a 2020 2020 616e 7369 626c 652e ron. ansible. │ │ │ +00072be0: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ +00072bf0: 0a20 2020 2020 206e 616d 653a 2063 726f . name: cro │ │ │ +00072c00: 6e0a 2020 2020 2020 656e 6162 6c65 643a n. enabled: │ │ │ +00072c10: 2074 7275 650a 2020 2020 2020 7374 6174 true. stat │ │ │ +00072c20: 653a 2073 7461 7274 6564 0a20 2020 2020 e: started. │ │ │ +00072c30: 206d 6173 6b65 643a 2066 616c 7365 0a20 masked: false. │ │ │ +00072c40: 2020 2077 6865 6e3a 0a20 2020 202d 2027 when:. - ' │ │ │ +00072c50: 2263 726f 6e22 2069 6e20 616e 7369 626c "cron" in ansibl │ │ │ +00072c60: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +00072c70: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ +00072c80: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +00072c90: 290a 2020 2d20 656e 6162 6c65 5f73 7472 ). - enable_str │ │ │ +00072ca0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +00072cb0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00072cc0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00072cd0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +00072ce0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +00072cf0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +00072d00: 5f63 726f 6e5f 656e 6162 6c65 640a 2020 _cron_enabled. │ │ │ +00072d10: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +00072d20: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ +00072d30: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +00072d40: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00072d50: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00072d60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remediat │ │ │ +00072e10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00072e20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00072ea0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00072eb0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00072ed0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00072ee0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00072f00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00072f20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00072f50: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +00072f60: 626c 655f 6372 6f6e 0a0a 636c 6173 7320  ble_cron..class 
│ │ │ +00072f70: 656e 6162 6c65 5f63 726f 6e20 7b0a 2020  enable_cron {.  
│ │ │ +00072f80: 7365 7276 6963 6520 7b27 6372 6f6e 273a  service {'cron':
│ │ │ +00072f90: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00072fa0: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ +00072fb0: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ +00072fc0: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedia │ │ │ +00073080: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00073090: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000730a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[customizat
│ │ │ +000730f0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +00073100: 6e61 626c 6564 203d 205b 2263 726f 6e22  nabled = ["cron"
│ │ │ +00073110: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00073120: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ -000746e0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000746f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -000747c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000747d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00074830: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -00074840: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ -00074850: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -00074860: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ -00074870: 2027 696e 6574 7574 696c 732d 7465 6c6e   'inetutils-teln
│ │ │ -00074880: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -00074890: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -000748a0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediatio
│ │ │ -00074960: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -00074970: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ -00074a30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00074a40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ -000747a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000747b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000747f0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00074800: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00074a00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00074a20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00074a50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00074a70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00074aa0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00074ab0: 696e 7374 616c 6c20 7468 6520 696e 6574  install the inet
│ │ │ -00074ac0: 2d62 6173 6564 2074 656c 6e65 7420 7365  -based telnet se
│ │ │ -00074ad0: 7276 6572 3a20 456e 7375 7265 2069 6e65  rver: Ensure ine
│ │ │ -00074ae0: 7475 7469 6c73 2d74 656c 6e65 7464 2069  tutils-telnetd i
│ │ │ -00074af0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00074b00: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00074b10: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00074b20: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00074b30: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ -00074b40: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -00074b50: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00074b60: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00074b70: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00074b80: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00074b90: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -00074ba0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -00074bb0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -00074bc0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00074bd0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00074be0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00074bf0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00074c00: 655f 696e 6574 7574 696c 732d 7465 6c6e  e_inetutils-teln
│ │ │ -00074c10: 6574 645f 7265 6d6f 7665 640a 3c2f 636f  etd_removed.Remediation A
│ │ │ +000746e0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +000746f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
< │ │ │ +00074770: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00074790: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000747e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00074810: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00074830: 7461 6c6c 2074 6865 2069 6e65 742d 6261  tall the inet-ba
│ │ │ +00074840: 7365 6420 7465 6c6e 6574 2073 6572 7665  sed telnet serve
│ │ │ +00074850: 723a 2045 6e73 7572 6520 696e 6574 7574  r: Ensure inetut
│ │ │ +00074860: 696c 732d 7465 6c6e 6574 6420 6973 2072  ils-telnetd is r
│ │ │ +00074870: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00074880: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00074890: 653a 0a20 2020 206e 616d 653a 2069 6e65  e:.    name: ine
│ │ │ +000748a0: 7475 7469 6c73 2d74 656c 6e65 7464 0a20  tutils-telnetd. 
│ │ │ +000748b0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +000748c0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000748d0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +000748e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000748f0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00074900: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00074910: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00074920: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +00074930: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +00074940: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00074950: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00074960: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00074970: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ +00074980: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +00074990: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +000749a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +00074a50: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00074a60: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00074ae0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ +00074b20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ +000747a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000747b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000747f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00074800: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ +00074af0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00074b10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00074b40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00074b60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00074b90: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00074ba0: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +00074bb0: 7465 6c6e 6574 640a 0a63 6c61 7373 2072  telnetd..class r
│ │ │ +00074bc0: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +00074bd0: 7465 6c6e 6574 6420 7b0a 2020 7061 636b  telnetd {.  pack
│ │ │ +00074be0: 6167 6520 7b20 2769 6e65 7475 7469 6c73  age { 'inetutils
│ │ │ +00074bf0: 2d74 656c 6e65 7464 273a 0a20 2020 2065  -telnetd':.    e
│ │ │ +00074c00: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00074c10: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00074c30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00074c40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00074c50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00074c60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00074c70: 6439 3722 2074 6162 696e 6465 783d 2230 d97" tabindex="0 │ │ │ 00074c80: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -30083,88 +30083,88 @@ │ │ │ 00075820: 6172 6765 743d 2223 6964 3939 2220 7461 arget="#id99" ta │ │ │ 00075830: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 00075840: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 00075850: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 00075860: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 00075870: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 00075880: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -00075890: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000758a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ -00075920: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00075940: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00075990: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -000759c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -000759e0: 655f 6e69 730a 0a63 6c61 7373 2072 656d  e_nis..class rem
│ │ │ -000759f0: 6f76 655f 6e69 7320 7b0a 2020 7061 636b  ove_nis {.  pack
│ │ │ -00075a00: 6167 6520 7b20 276e 6973 273a 0a20 2020  age { 'nis':.   
│ │ │ -00075a10: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00075a20: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -00075ae0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00075af0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -00075950: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00075960: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000759a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -000759b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00075b90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00075ba0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00075bf0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00075c30: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00075c40: 2074 6865 206e 6973 2070 6163 6b61 6765   the nis package
│ │ │ -00075c50: 3a20 456e 7375 7265 206e 6973 2069 7320  : Ensure nis is 
│ │ │ -00075c60: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00075c70: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00075c80: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e69  ge:.    name: ni
│ │ │ -00075c90: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ -00075ca0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -00075cb0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00075cc0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00075cd0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00075ce0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00075cf0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00075d00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00075d10: 2070 6163 6b61 6765 5f6e 6973 5f72 656d   package_nis_rem
│ │ │ -00075d20: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
C │ │ │ -00075b80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00075bb0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00075bc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00075c00: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00075c10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00075920: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00075940: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00075990: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +000759c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00075930: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00075950: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000759a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +000759b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +000759e0: 7374 616c 6c20 7468 6520 6e69 7320 7061  stall the nis pa
│ │ │ +000759f0: 636b 6167 653a 2045 6e73 7572 6520 6e69  ckage: Ensure ni
│ │ │ +00075a00: 7320 6973 2072 656d 6f76 6564 270a 2020  s is removed'.  
│ │ │ +00075a10: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00075a20: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00075a30: 653a 206e 6973 0a20 2020 2073 7461 7465  e: nis.    state
│ │ │ +00075a40: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00075a50: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00075a60: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00075a70: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00075a80: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00075a90: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +00075aa0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00075ab0: 640a 2020 2d20 7061 636b 6167 655f 6e69  d.  - package_ni
│ │ │ +00075ac0: 735f 7265 6d6f 7665 640a 3c2f 636f 6465  s_removed.
Remedi │ │ │ +00075b80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00075b90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00075ba0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00075bd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00075c40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00075c60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00075c90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00075c20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00075c30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00075c70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00075c80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00075cd0: 6520 7265 6d6f 7665 5f6e 6973 0a0a 636c e remove_nis..cl │ │ │ +00075ce0: 6173 7320 7265 6d6f 7665 5f6e 6973 207b ass remove_nis { │ │ │ +00075cf0: 0a20 2070 6163 6b61 6765 207b 2027 6e69 . package { 'ni │ │ │ +00075d00: 7327 3a0a 2020 2020 656e 7375 7265 203d s':. ensure = │ │ │ +00075d10: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ +00075d20: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

R │ │ │ -00076950: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00076960: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00076a00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00076a10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00076a60: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00076aa0: 6e63 6c75 6465 2072 656d 6f76 655f 6e74  nclude remove_nt
│ │ │ -00076ab0: 7064 6174 650a 0a63 6c61 7373 2072 656d  pdate..class rem
│ │ │ -00076ac0: 6f76 655f 6e74 7064 6174 6520 7b0a 2020  ove_ntpdate {.  
│ │ │ -00076ad0: 7061 636b 6167 6520 7b20 276e 7470 6461  package { 'ntpda
│ │ │ -00076ae0: 7465 273a 0a20 2020 2065 6e73 7572 6520  te':.    ensure 
│ │ │ -00076af0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00076b00: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00076bc0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00076bd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00076c50: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00076c90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ -000769f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00076a20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00076a30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00076a70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00076a80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -00076c60: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00076c80: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00076cb0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00076cd0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00076d00: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00076d10: 6e69 6e73 7461 6c6c 2074 6865 206e 7470  ninstall the ntp
│ │ │ -00076d20: 6461 7465 2070 6163 6b61 6765 3a20 456e  date package: En
│ │ │ -00076d30: 7375 7265 206e 7470 6461 7465 2069 7320  sure ntpdate is 
│ │ │ -00076d40: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00076d50: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00076d60: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e74  ge:.    name: nt
│ │ │ -00076d70: 7064 6174 650a 2020 2020 7374 6174 653a  pdate.    state:
│ │ │ -00076d80: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -00076d90: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00076da0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00076db0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00076dc0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00076dd0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00076de0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00076df0: 0a20 202d 2070 6163 6b61 6765 5f6e 7470  .  - package_ntp
│ │ │ -00076e00: 6461 7465 5f72 656d 6f76 6564 0a3c 2f63  date_removed.
│ │ │ +00076a00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00076aa0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00076ab0: 6c20 7468 6520 6e74 7064 6174 6520 7061  l the ntpdate pa
│ │ │ +00076ac0: 636b 6167 653a 2045 6e73 7572 6520 6e74  ckage: Ensure nt
│ │ │ +00076ad0: 7064 6174 6520 6973 2072 656d 6f76 6564  pdate is removed
│ │ │ +00076ae0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00076af0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00076b00: 206e 616d 653a 206e 7470 6461 7465 0a20   name: ntpdate. 
│ │ │ +00076b10: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00076b20: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00076b30: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00076b40: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00076b50: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00076b60: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +00076b70: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00076b80: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00076b90: 636b 6167 655f 6e74 7064 6174 655f 7265  ckage_ntpdate_re
│ │ │ +00076ba0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00076c60: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00076c70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00076d30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00076d40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +000769f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00076a20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00076a30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00076a70: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00076a80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +00076d00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00076d20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00076d50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00076d70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00076da0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00076db0: 6d6f 7665 5f6e 7470 6461 7465 0a0a 636c  move_ntpdate..cl
│ │ │ +00076dc0: 6173 7320 7265 6d6f 7665 5f6e 7470 6461  ass remove_ntpda
│ │ │ +00076dd0: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ +00076de0: 2027 6e74 7064 6174 6527 3a0a 2020 2020   'ntpdate':.    
│ │ │ +00076df0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00076e00: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00076e20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -00078190: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -000781a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00078230: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00078240: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00078260: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00078280: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00078290: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -000782d0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -000782e0: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ -000782f0: 7464 2d73 736c 0a0a 636c 6173 7320 7265  td-ssl..class re
│ │ │ -00078300: 6d6f 7665 5f74 656c 6e65 7464 2d73 736c  move_telnetd-ssl
│ │ │ -00078310: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00078320: 7465 6c6e 6574 642d 7373 6c27 3a0a 2020  telnetd-ssl':.  
│ │ │ -00078330: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00078340: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00078350: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00078400: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00078410: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000784b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00078550: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00078560: 6c20 7468 6520 7373 6c20 636f 6d70 6c69  l the ssl compli
│ │ │ -00078570: 616e 7420 7465 6c6e 6574 2073 6572 7665  ant telnet serve
│ │ │ -00078580: 723a 2045 6e73 7572 6520 7465 6c6e 6574  r: Ensure telnet
│ │ │ -00078590: 642d 7373 6c20 6973 2072 656d 6f76 6564  d-ssl is removed
│ │ │ -000785a0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -000785b0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000785c0: 206e 616d 653a 2074 656c 6e65 7464 2d73   name: telnetd-s
│ │ │ -000785d0: 736c 0a20 2020 2073 7461 7465 3a20 6162  sl.    state: ab
│ │ │ -000785e0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -000785f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00078600: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00078610: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -00078620: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00078630: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -00078640: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -00078650: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -00078660: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00078670: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00078680: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00078690: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000786a0: 6765 5f74 656c 6e65 7464 2d73 736c 5f72  ge_telnetd-ssl_r
│ │ │ -000786b0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.<
│ │ │ +000781b0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
│ │ │ -000784a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000784d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000784e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00078520: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00078530: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00078230: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00078260: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00078280: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00078290: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000782b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +000782c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000782e0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +000782f0: 6865 2073 736c 2063 6f6d 706c 6961 6e74  he ssl compliant
│ │ │ +00078300: 2074 656c 6e65 7420 7365 7276 6572 3a20   telnet server: 
│ │ │ +00078310: 456e 7375 7265 2074 656c 6e65 7464 2d73  Ensure telnetd-s
│ │ │ +00078320: 736c 2069 7320 7265 6d6f 7665 6427 0a20  sl is removed'. 
│ │ │ +00078330: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00078340: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00078350: 6d65 3a20 7465 6c6e 6574 642d 7373 6c0a  me: telnetd-ssl.
│ │ │ +00078360: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +00078370: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +00078380: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00078390: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000783a0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +000783b0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +000783c0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +000783d0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +000783e0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +000783f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00078400: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00078410: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00078420: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00078430: 7465 6c6e 6574 642d 7373 6c5f 7265 6d6f  telnetd-ssl_remo
│ │ │ +00078440: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00078500: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00078510: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00078590: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000785b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00078600: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00078630: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +000785a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000785c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00078610: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00078620: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00078650: 7665 5f74 656c 6e65 7464 2d73 736c 0a0a  ve_telnetd-ssl..
│ │ │ +00078660: 636c 6173 7320 7265 6d6f 7665 5f74 656c  class remove_tel
│ │ │ +00078670: 6e65 7464 2d73 736c 207b 0a20 2070 6163  netd-ssl {.  pac
│ │ │ +00078680: 6b61 6765 207b 2027 7465 6c6e 6574 642d  kage { 'telnetd-
│ │ │ +00078690: 7373 6c27 3a0a 2020 2020 656e 7375 7265  ssl':.    ensure
│ │ │ +000786a0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +000786b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ -00079a50: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00079a60: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00079af0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00079b10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00079b20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00079b30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00079b40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00079b60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00079b90: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00079ba0: 6d6f 7665 5f74 656c 6e65 7464 0a0a 636c  move_telnetd..cl
│ │ │ -00079bb0: 6173 7320 7265 6d6f 7665 5f74 656c 6e65  ass remove_telne
│ │ │ -00079bc0: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ -00079bd0: 2027 7465 6c6e 6574 6427 3a0a 2020 2020   'telnetd':.    
│ │ │ -00079be0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00079bf0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00079c10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00079cb0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00079cc0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00079cd0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00079d70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00079dc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00079e00: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00079e10: 7468 6520 7465 6c6e 6574 2073 6572 7665  the telnet serve
│ │ │ -00079e20: 723a 2045 6e73 7572 6520 7465 6c6e 6574  r: Ensure telnet
│ │ │ -00079e30: 6420 6973 2072 656d 6f76 6564 270a 2020  d is removed'.  
│ │ │ -00079e40: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00079e50: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00079e60: 653a 2074 656c 6e65 7464 0a20 2020 2073  e: telnetd.    s
│ │ │ -00079e70: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00079e80: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00079e90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00079ea0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00079eb0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00079ec0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -00079ed0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00079ee0: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ -00079ef0: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ -00079f00: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00079f10: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -00079f20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00079f30: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ -00079f40: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
< │ │ │ +00079ae0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00079b20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -00079d50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00079d80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00079da0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00079db0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00079dd0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00079de0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00079af0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00079b10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00079b40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00079b60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00079b90: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00079ba0: 6e69 6e73 7461 6c6c 2074 6865 2074 656c  ninstall the tel
│ │ │ +00079bb0: 6e65 7420 7365 7276 6572 3a20 456e 7375  net server: Ensu
│ │ │ +00079bc0: 7265 2074 656c 6e65 7464 2069 7320 7265  re telnetd is re
│ │ │ +00079bd0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00079be0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00079bf0: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ +00079c00: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ +00079c10: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00079c20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00079c30: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00079c40: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00079c50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00079c60: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00079c70: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +00079c80: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +00079c90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00079ca0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00079cb0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +00079cc0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00079cd0: 6167 655f 7465 6c6e 6574 645f 7265 6d6f  age_telnetd_remo
│ │ │ +00079ce0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00079da0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00079db0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00079e30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00079e50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00079ea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00079ed0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00079e40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00079e60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00079eb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00079ec0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00079ef0: 7665 5f74 656c 6e65 7464 0a0a 636c 6173  ve_telnetd..clas
│ │ │ +00079f00: 7320 7265 6d6f 7665 5f74 656c 6e65 7464  s remove_telnetd
│ │ │ +00079f10: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00079f20: 7465 6c6e 6574 6427 3a0a 2020 2020 656e  telnetd':.    en
│ │ │ +00079f30: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00079f40: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedia │ │ │ -0007c130: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0007c140: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0007c150: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -0007c190: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -0007c1a0: 5d5d 0a6e 616d 6520 3d20 226e 7470 220a  ]].name = "ntp".
│ │ │ -0007c1b0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -0007c270: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007c280: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007c290: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0007c330: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007c380: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0007c310: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007c340: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007c360: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007c370: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007c390: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0007c3a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0007c3c0: 7564 6520 696e 7374 616c 6c5f 6e74 700a  ude install_ntp.
│ │ │ -0007c3d0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6e  .class install_n
│ │ │ -0007c3e0: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ -0007c3f0: 2027 6e74 7027 3a0a 2020 2020 656e 7375   'ntp':.    ensu
│ │ │ -0007c400: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -0007c410: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -0007c430: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007c440: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007c450: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007c460: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007c470: 6431 3137 2220 7461 6269 6e64 6578 3d22 d117" tabindex=" │ │ │ -0007c480: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007c490: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007c4a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007c4b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007c4c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007c4d0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0007c4e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007c4f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007c570: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007c5a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007c5c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007c5d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007c5f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0007c610: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007c620: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0007c630: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0007c640: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0007c650: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0007c660: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0007c670: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0007c680: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -0007c690: 302e 340a 2020 2d20 656e 6162 6c65 5f73  0.4.  - enable_s
│ │ │ -0007c6a0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0007c6b0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0007c6c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0007c6d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0007c6e0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007c6f0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0007c700: 5f6e 7470 5f69 6e73 7461 6c6c 6564 0a0a  _ntp_installed..
│ │ │ -0007c710: 2d20 6e61 6d65 3a20 456e 7375 7265 206e  - name: Ensure n
│ │ │ -0007c720: 7470 2069 7320 696e 7374 616c 6c65 640a  tp is installed.
│ │ │ -0007c730: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0007c740: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0007c750: 616d 653a 206e 7470 0a20 2020 2073 7461  ame: ntp.    sta
│ │ │ -0007c760: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -0007c770: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0007c780: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0007c790: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0007c7a0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0007c7b0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0007c7c0: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -0007c7d0: 340a 2020 2d20 656e 6162 6c65 5f73 7472  4.  - enable_str
│ │ │ -0007c7e0: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -0007c7f0: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -0007c800: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0007c810: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0007c820: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0007c830: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -0007c840: 7470 5f69 6e73 7461 6c6c 6564 0a3c 2f63  tp_installed.
│ │ │ +0007c150: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007c180: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0007c1f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007c210: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007c240: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0007c260: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0007c1d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007c1e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007c220: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007c230: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +0007c280: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0007c290: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0007c2a0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0007c2b0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0007c2c0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +0007c2d0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +0007c2e0: 5043 492d 4453 532d 5265 712d 3130 2e34 PCI-DSS-Req-10.4 │ │ │ +0007c2f0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +0007c300: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ +0007c310: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ +0007c320: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +0007c330: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +0007c340: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +0007c350: 640a 2020 2d20 7061 636b 6167 655f 6e74 d. - package_nt │ │ │ +0007c360: 705f 696e 7374 616c 6c65 640a 0a2d 206e p_installed..- n │ │ │ +0007c370: 616d 653a 2045 6e73 7572 6520 6e74 7020 ame: Ensure ntp │ │ │ +0007c380: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ +0007c390: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +0007c3a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +0007c3b0: 3a20 6e74 700a 2020 2020 7374 6174 653a : ntp. state: │ │ │ +0007c3c0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ +0007c3d0: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +0007c3e0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +0007c3f0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +0007c400: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ +0007c410: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +0007c420: 492d 4453 532d 5265 712d 3130 2e34 0a20 I-DSS-Req-10.4. │ │ │ +0007c430: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ +0007c440: 6779 0a20 202d 2068 6967 685f 7365 7665 gy. - high_seve │ │ │ +0007c450: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d rity. - low_com │ │ │ +0007c460: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0007c470: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +0007c480: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0007c490: 2020 2d20 7061 636b 6167 655f 6e74 705f - package_ntp_ │ │ │ +0007c4a0: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
Remedi │ │ │ +0007c560: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0007c570: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0007c580: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007c5b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0007c620: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007c640: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007c670: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0007c690: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0007c600: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007c610: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007c650: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007c660: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0007c6b0: 696e 7374 616c 6c5f 6e74 700a 0a63 6c61 install_ntp..cla │ │ │ +0007c6c0: 7373 2069 6e73 7461 6c6c 5f6e 7470 207b ss install_ntp { │ │ │ +0007c6d0: 0a20 2070 6163 6b61 6765 207b 2027 6e74 . package { 'nt │ │ │ +0007c6e0: 7027 3a0a 2020 2020 656e 7375 7265 203d p':. ensure = │ │ │ +0007c6f0: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ +0007c700: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +0007c710: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +0007c7c0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0007c7d0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0007c7e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +0007c830: 5d0a 6e61 6d65 203d 2022 6e74 7022 0a76  ].name = "ntp".v
│ │ │ +0007c840: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 0007c860: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediati │ │ │ -0007d9f0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0007da00: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0007da10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0007da60: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -0007da70: 6162 6c65 6420 3d20 5b22 6e74 7022 5d0a  abled = ["ntp"].
│ │ │ -0007da80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0007db30: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0007db40: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0007dbe0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0007dc80: 636c 7564 6520 656e 6162 6c65 5f6e 7470  clude enable_ntp
│ │ │ -0007dc90: 0a0a 636c 6173 7320 656e 6162 6c65 5f6e  ..class enable_n
│ │ │ -0007dca0: 7470 207b 0a20 2073 6572 7669 6365 207b  tp {.  service {
│ │ │ -0007dcb0: 276e 7470 273a 0a20 2020 2065 6e61 626c  'ntp':.    enabl
│ │ │ -0007dcc0: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -0007dcd0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0007dce0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -0007dcf0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0007dda0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0007ddb0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0007ddc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -0007dbd0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007dc00: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007dc10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007dc50: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0007dc60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0007de90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007dea0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0007def0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0007df00: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0007df10: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0007df20: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0007df30: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -0007df40: 4953 542d 3830 302d 3533 2d41 552d 3828  IST-800-53-AU-8(
│ │ │ -0007df50: 3129 2861 290a 2020 2d20 4e49 5354 2d38  1)(a).  - NIST-8
│ │ │ -0007df60: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0007df70: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -0007df80: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -0007df90: 2d31 302e 360a 2020 2d20 5043 492d 4453  -10.6.  - PCI-DS
│ │ │ -0007dfa0: 5376 342d 3130 2e36 2e31 0a20 202d 2065  Sv4-10.6.1.  - e
│ │ │ -0007dfb0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0007dfc0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0007dfd0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0007dfe0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0007dff0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0007e000: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0007e010: 7365 7276 6963 655f 6e74 705f 656e 6162  service_ntp_enab
│ │ │ -0007e020: 6c65 640a 0a2d 206e 616d 653a 2045 6e61  led..- name: Ena
│ │ │ -0007e030: 626c 6520 7468 6520 4e54 5020 4461 656d  ble the NTP Daem
│ │ │ -0007e040: 6f6e 202d 2045 6e61 626c 6520 7365 7276  on - Enable serv
│ │ │ -0007e050: 6963 6520 6e74 700a 2020 626c 6f63 6b3a  ice ntp.  block:
│ │ │ -0007e060: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -0007e070: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0007e080: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -0007e090: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007e0a0: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -0007e0b0: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -0007e0c0: 206e 616d 653a 2045 6e61 626c 6520 7468   name: Enable th
│ │ │ -0007e0d0: 6520 4e54 5020 4461 656d 6f6e 202d 2045  e NTP Daemon - E
│ │ │ -0007e0e0: 6e61 626c 6520 5365 7276 6963 6520 6e74  nable Service nt
│ │ │ -0007e0f0: 700a 2020 2020 616e 7369 626c 652e 6275  p.    ansible.bu
│ │ │ -0007e100: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0007e110: 2020 2020 206e 616d 653a 206e 7470 0a20       name: ntp. 
│ │ │ -0007e120: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -0007e130: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -0007e140: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -0007e150: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -0007e160: 7768 656e 3a0a 2020 2020 2d20 2722 6e74  when:.    - '"nt
│ │ │ -0007e170: 7022 2069 6e20 616e 7369 626c 655f 6661  p" in ansible_fa
│ │ │ -0007e180: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0007e190: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0007e1a0: 3030 2d35 332d 4155 2d38 2831 2928 6129  00-53-AU-8(1)(a)
│ │ │ -0007e1b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0007e1c0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -0007e1d0: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ -0007e1e0: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ -0007e1f0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0007e200: 302e 362e 310a 2020 2d20 656e 6162 6c65  0.6.1.  - enable
│ │ │ -0007e210: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -0007e220: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -0007e230: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0007e240: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0007e250: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0007e260: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0007e270: 6365 5f6e 7470 5f65 6e61 626c 6564 0a20  ce_ntp_enabled. 
│ │ │ -0007e280: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0007e290: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0007e2a0: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ -0007e2b0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0007e2c0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0007e2d0: 2d20 2722 6e74 7022 2069 6e20 616e 7369  - '"ntp" in ansi
│ │ │ -0007e2e0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0007e2f0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

│ │ │ +0007da80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0007db10: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ -0007de70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007de80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007dec0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0007ded0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +0007da90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007daa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0007dae0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007daf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +0007db30: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0007db40: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0007db50: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0007db60: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0007db70: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0007db80: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0007db90: 332d 4155 2d38 2831 2928 6129 0a20 202d  3-AU-8(1)(a).  -
│ │ │ +0007dba0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0007dbb0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +0007dbc0: 2d52 6571 2d31 302e 340a 2020 2d20 5043  -Req-10.4.  - PC
│ │ │ +0007dbd0: 492d 4453 5376 342d 3130 2e36 0a20 202d  I-DSSv4-10.6.  -
│ │ │ +0007dbe0: 2050 4349 2d44 5353 7634 2d31 302e 362e   PCI-DSSv4-10.6.
│ │ │ +0007dbf0: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +0007dc00: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0007dc10: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0007dc20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0007dc30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0007dc40: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007dc50: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +0007dc60: 7470 5f65 6e61 626c 6564 0a0a 2d20 6e61  tp_enabled..- na
│ │ │ +0007dc70: 6d65 3a20 456e 6162 6c65 2074 6865 204e  me: Enable the N
│ │ │ +0007dc80: 5450 2044 6165 6d6f 6e20 2d20 456e 6162  TP Daemon - Enab
│ │ │ +0007dc90: 6c65 2073 6572 7669 6365 206e 7470 0a20  le service ntp. 
│ │ │ +0007dca0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0007dcb0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0007dcc0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +0007dcd0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0007dce0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0007dcf0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +0007dd00: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +0007dd10: 6162 6c65 2074 6865 204e 5450 2044 6165  able the NTP Dae
│ │ │ +0007dd20: 6d6f 6e20 2d20 456e 6162 6c65 2053 6572  mon - Enable Ser
│ │ │ +0007dd30: 7669 6365 206e 7470 0a20 2020 2061 6e73  vice ntp.    ans
│ │ │ +0007dd40: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0007dd50: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0007dd60: 3a20 6e74 700a 2020 2020 2020 656e 6162  : ntp.      enab
│ │ │ +0007dd70: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +0007dd80: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +0007dd90: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +0007dda0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +0007ddb0: 202d 2027 226e 7470 2220 696e 2061 6e73   - '"ntp" in ans
│ │ │ +0007ddc0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0007ddd0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +0007dde0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +0007ddf0: 3828 3129 2861 290a 2020 2d20 4e49 5354  8(1)(a).  - NIST
│ │ │ +0007de00: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0007de10: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +0007de20: 3130 2e34 0a20 202d 2050 4349 2d44 5353  10.4.  - PCI-DSS
│ │ │ +0007de30: 7634 2d31 302e 360a 2020 2d20 5043 492d  v4-10.6.  - PCI-
│ │ │ +0007de40: 4453 5376 342d 3130 2e36 2e31 0a20 202d  DSSv4-10.6.1.  -
│ │ │ +0007de50: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0007de60: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +0007de70: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +0007de80: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007de90: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0007dea0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007deb0: 2d20 7365 7276 6963 655f 6e74 705f 656e  - service_ntp_en
│ │ │ +0007dec0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0007ded0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0007dee0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +0007def0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0007df00: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0007df10: 6765 7327 0a20 202d 2027 226e 7470 2220  ges'.  - '"ntp" 
│ │ │ +0007df20: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0007df30: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +0007dff0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0007e000: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0007e0b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0007e0d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0007e100: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0007e090: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0007e0a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0007e0c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0007e0e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0007e0f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0007e140: 2065 6e61 626c 655f 6e74 700a 0a63 6c61 enable_ntp..cla │ │ │ +0007e150: 7373 2065 6e61 626c 655f 6e74 7020 7b0a ss enable_ntp {. │ │ │ +0007e160: 2020 7365 7276 6963 6520 7b27 6e74 7027 service {'ntp' │ │ │ +0007e170: 3a0a 2020 2020 656e 6162 6c65 203d 2667 :. enable =&g │ │ │ +0007e180: 743b 2074 7275 652c 0a20 2020 2065 6e73 t; true,. ens │ │ │ +0007e190: 7572 6520 3d26 6774 3b20 2772 756e 6e69 ure => 'runni │ │ │ +0007e1a0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ng',. }.}.

Remed │ │ │ +0007e260: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0007e270: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0007e280: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +0007e2d0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0007e2e0: 5d0a 656e 6162 6c65 6420 3d20 5b22 6e74  ].enabled = ["nt
│ │ │ +0007e2f0: 7022 5d0a 3c2f 636f 6465 3e3c 2f70 7265  p"].
Remediat │ │ │ -0008c9c0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0008c9d0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0008c9e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -0008ca30: 5d0a 6e61 6d65 203d 2022 6175 6469 7464  ].name = "auditd
│ │ │ -0008ca40: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -0008ca50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0008cb00: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0008cb10: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0008cbb0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0008cc50: 636c 7564 6520 696e 7374 616c 6c5f 6175  clude install_au
│ │ │ -0008cc60: 6469 7464 0a0a 636c 6173 7320 696e 7374  ditd..class inst
│ │ │ -0008cc70: 616c 6c5f 6175 6469 7464 207b 0a20 2070  all_auditd {.  p
│ │ │ -0008cc80: 6163 6b61 6765 207b 2027 6175 6469 7464  ackage { 'auditd
│ │ │ -0008cc90: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0008cca0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -0008ccb0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0008cd70: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0008cd80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0008ce00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0008ce90: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0008cba0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0008cbd0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0008cbe0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0008cc20: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0008cc30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -0008ce10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0008ce20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0008ce60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0008ce70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0008ceb0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0008cec0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0008ced0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0008cee0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0008cef0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0008cf00: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0008cf10: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ -0008cf20: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -0008cf30: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ -0008cf40: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ -0008cf50: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ -0008cf60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0008cf70: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ -0008cf80: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ -0008cf90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0008cfa0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -0008cfb0: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -0008cfc0: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -0008cfd0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0008cfe0: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -0008cff0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0008d000: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0008d010: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0008d020: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0008d030: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0008d040: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0008d050: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ -0008d060: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -0008d070: 7375 7265 2061 7564 6974 6420 6973 2069  sure auditd is i
│ │ │ -0008d080: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -0008d090: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0008d0a0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6175  ge:.    name: au
│ │ │ -0008d0b0: 6469 7464 0a20 2020 2073 7461 7465 3a20  ditd.    state: 
│ │ │ -0008d0c0: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -0008d0d0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0008d0e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0008d0f0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0008d100: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0008d110: 2d41 432d 3728 6129 0a20 202d 204e 4953  -AC-7(a).  - NIS
│ │ │ -0008d120: 542d 3830 302d 3533 2d41 552d 3132 2832  T-800-53-AU-12(2
│ │ │ -0008d130: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0008d140: 332d 4155 2d31 340a 2020 2d20 4e49 5354  3-AU-14.  - NIST
│ │ │ -0008d150: 2d38 3030 2d35 332d 4155 2d32 2861 290a  -800-53-AU-2(a).
│ │ │ -0008d160: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0008d170: 4155 2d37 2831 290a 2020 2d20 4e49 5354  AU-7(1).  - NIST
│ │ │ -0008d180: 2d38 3030 2d35 332d 4155 2d37 2832 290a  -800-53-AU-7(2).
│ │ │ -0008d190: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0008d1a0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -0008d1b0: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -0008d1c0: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -0008d1d0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -0008d1e0: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -0008d1f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0008d200: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0008d210: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0008d220: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0008d230: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0008d240: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0008d250: 6167 655f 6175 6469 745f 696e 7374 616c  age_audit_instal
│ │ │ -0008d260: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

< │ │ │ +0008c9e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0008c9f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0008ca00: 7365 2220 6964 3d22 6964 3134 3022 3e3c se" id="id140">< │ │ │ +0008ca10: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0008ca20: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0008ca30: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0008ca40: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0008ca50: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0008ca60: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0008ca70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0008cab0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0008cac0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0008cae0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0008caf0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0008cb10: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0008cb20: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0008cb30: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0008cb40: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0008cb50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0008cb60: 3533 2d41 432d 3728 6129 0a20 202d 204e  53-AC-7(a).  - N
│ │ │ +0008cb70: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +0008cb80: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ +0008cb90: 2d35 332d 4155 2d31 340a 2020 2d20 4e49  -53-AU-14.  - NI
│ │ │ +0008cba0: 5354 2d38 3030 2d35 332d 4155 2d32 2861  ST-800-53-AU-2(a
│ │ │ +0008cbb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0008cbc0: 332d 4155 2d37 2831 290a 2020 2d20 4e49  3-AU-7(1).  - NI
│ │ │ +0008cbd0: 5354 2d38 3030 2d35 332d 4155 2d37 2832  ST-800-53-AU-7(2
│ │ │ +0008cbe0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0008cbf0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0008cc00: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +0008cc10: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +0008cc20: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +0008cc30: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +0008cc40: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0008cc50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0008cc60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0008cc70: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0008cc80: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0008cc90: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0008cca0: 636b 6167 655f 6175 6469 745f 696e 7374  ckage_audit_inst
│ │ │ +0008ccb0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +0008ccc0: 6e73 7572 6520 6175 6469 7464 2069 7320  nsure auditd is 
│ │ │ +0008ccd0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +0008cce0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0008ccf0: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ +0008cd00: 7564 6974 640a 2020 2020 7374 6174 653a  uditd.    state:
│ │ │ +0008cd10: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +0008cd20: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0008cd30: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0008cd40: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0008cd50: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0008cd60: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ +0008cd70: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +0008cd80: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ +0008cd90: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ +0008cda0: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ +0008cdb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008cdc0: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ +0008cdd0: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ +0008cde0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008cdf0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +0008ce00: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ +0008ce10: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +0008ce20: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0008ce30: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ +0008ce40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0008ce50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0008ce60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0008ce70: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0008ce80: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0008ce90: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0008cea0: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ +0008ceb0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +0008cf70: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0008cf80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0008d010: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0008d030: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0008d050: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0008d080: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0008d090: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0008d0a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +0008d0c0: 6c6c 5f61 7564 6974 640a 0a63 6c61 7373  ll_auditd..class
│ │ │ +0008d0d0: 2069 6e73 7461 6c6c 5f61 7564 6974 6420   install_auditd 
│ │ │ +0008d0e0: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ +0008d0f0: 7564 6974 6427 3a0a 2020 2020 656e 7375  uditd':.    ensu
│ │ │ +0008d100: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +0008d110: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +0008d130: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0008d140: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0008d150: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0008d160: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0008d170: 6431 3432 2220 7461 6269 6e64 6578 3d22 d142" tabindex=" │ │ │ +0008d180: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0008d190: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0008d1a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0008d1b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0008d1c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0008d1d0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0008d1e0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0008d1f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +0008d240: 6765 735d 5d0a 6e61 6d65 203d 2022 6175 ges]].name = "au │ │ │ +0008d250: 6469 7464 220a 7665 7273 696f 6e20 3d20 ditd".version = │ │ │ +0008d260: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation │ │ │ -0008eea0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0008eeb0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0008ef10: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -0008ef20: 6c65 6420 3d20 5b22 6175 6469 7464 225d  led = ["auditd"]
│ │ │ -0008ef30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0008eff0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0008f000: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0008f0d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0008f0e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0008f130: 6e63 6c75 6465 2065 6e61 626c 655f 6175  nclude enable_au
│ │ │ -0008f140: 6469 7464 0a0a 636c 6173 7320 656e 6162  ditd..class enab
│ │ │ -0008f150: 6c65 5f61 7564 6974 6420 7b0a 2020 7365  le_auditd {.  se
│ │ │ -0008f160: 7276 6963 6520 7b27 6175 6469 7464 273a  rvice {'auditd':
│ │ │ -0008f170: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -0008f180: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -0008f190: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -0008f1a0: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ -0008f260: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0008f270: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -0008f0b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0008f0c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0008f100: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0008f110: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0008f320: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0008f340: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0008f370: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0008f300: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0008f310: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0008f330: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0008f350: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0008f360: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0008f3b0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0008f3c0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0008f3d0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0008f3e0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0008f3f0: 6167 733a 0a20 202d 2043 4a49 532d 352e ags:. - CJIS-5. │ │ │ -0008f400: 342e 312e 310a 2020 2d20 4e49 5354 2d38 4.1.1. - NIST-8 │ │ │ -0008f410: 3030 2d31 3731 2d33 2e33 2e31 0a20 202d 00-171-3.3.1. - │ │ │ -0008f420: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -0008f430: 332e 320a 2020 2d20 4e49 5354 2d38 3030 3.2. - NIST-800 │ │ │ -0008f440: 2d31 3731 2d33 2e33 2e36 0a20 202d 204e -171-3.3.6. - N │ │ │ -0008f450: 4953 542d 3830 302d 3533 2d41 432d 3228 IST-800-53-AC-2( │ │ │ -0008f460: 6729 0a20 202d 204e 4953 542d 3830 302d g). - NIST-800- │ │ │ -0008f470: 3533 2d41 432d 3628 3929 0a20 202d 204e 53-AC-6(9). - N │ │ │ -0008f480: 4953 542d 3830 302d 3533 2d41 552d 3130 IST-800-53-AU-10 │ │ │ -0008f490: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0008f4a0: 2d41 552d 3132 2863 290a 2020 2d20 4e49 -AU-12(c). - NI │ │ │ -0008f4b0: 5354 2d38 3030 2d35 332d 4155 2d31 3428 ST-800-53-AU-14( │ │ │ -0008f4c0: 3129 0a20 202d 204e 4953 542d 3830 302d 1). - NIST-800- │ │ │ -0008f4d0: 3533 2d41 552d 3228 6429 0a20 202d 204e 53-AU-2(d). - N │ │ │ -0008f4e0: 4953 542d 3830 302d 3533 2d41 552d 330a IST-800-53-AU-3. │ │ │ -0008f4f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0008f500: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -0008f510: 2d38 3030 2d35 332d 5349 2d34 2832 3329 -800-53-SI-4(23) │ │ │ -0008f520: 0a20 202d 2050 4349 2d44 5353 2d52 6571 . - PCI-DSS-Req │ │ │ -0008f530: 2d31 302e 310a 2020 2d20 5043 492d 4453 -10.1. - PCI-DS │ │ │ -0008f540: 5376 342d 3130 2e32 0a20 202d 2050 4349 Sv4-10.2. - PCI │ │ │ -0008f550: 2d44 5353 7634 2d31 302e 322e 310a 2020 -DSSv4-10.2.1. │ │ │ -0008f560: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -0008f570: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0008f580: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0008f590: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0008f5a0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0008f5b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0008f5c0: 0a20 202d 2073 6572 7669 6365 5f61 7564 . - service_aud │ │ │ -0008f5d0: 6974 645f 656e 6162 6c65 640a 0a2d 206e itd_enabled..- n │ │ │ -0008f5e0: 616d 653a 2045 6e61 626c 6520 6175 6469 ame: Enable audi │ │ │ -0008f5f0: 7464 2053 6572 7669 6365 202d 2045 6e61 td Service - Ena │ │ │ -0008f600: 626c 6520 7365 7276 6963 6520 6175 6469 ble service audi │ │ │ -0008f610: 7464 0a20 2062 6c6f 636b 3a0a 0a20 202d td. block:.. - │ │ │ -0008f620: 206e 616d 653a 2047 6174 6865 7220 7468 name: Gather th │ │ │ -0008f630: 6520 7061 636b 6167 6520 6661 6374 730a e package facts. │ │ │ -0008f640: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0008f650: 7469 6e2e 7061 636b 6167 655f 6661 6374 tin.package_fact │ │ │ -0008f660: 733a 0a20 2020 2020 206d 616e 6167 6572 s:. manager │ │ │ -0008f670: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65 : auto.. - name │ │ │ -0008f680: 3a20 456e 6162 6c65 2061 7564 6974 6420 : Enable auditd │ │ │ -0008f690: 5365 7276 6963 6520 2d20 456e 6162 6c65 Service - Enable │ │ │ -0008f6a0: 2053 6572 7669 6365 2061 7564 6974 640a Service auditd. │ │ │ -0008f6b0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0008f6c0: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ -0008f6d0: 2020 206e 616d 653a 2061 7564 6974 640a name: auditd. │ │ │ -0008f6e0: 2020 2020 2020 656e 6162 6c65 643a 2074 enabled: t │ │ │ -0008f6f0: 7275 650a 2020 2020 2020 7374 6174 653a rue. state: │ │ │ -0008f700: 2073 7461 7274 6564 0a20 2020 2020 206d started. m │ │ │ -0008f710: 6173 6b65 643a 2066 616c 7365 0a20 2020 asked: false. │ │ │ -0008f720: 2077 6865 6e3a 0a20 2020 202d 2027 2261 when:. - '"a │ │ │ -0008f730: 7564 6974 6422 2069 6e20 616e 7369 626c uditd" in ansibl │ │ │ -0008f740: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -0008f750: 270a 2020 7461 6773 3a0a 2020 2d20 434a '. tags:. - CJ │ │ │ -0008f760: 4953 2d35 2e34 2e31 2e31 0a20 202d 204e IS-5.4.1.1. - N │ │ │ -0008f770: 4953 542d 3830 302d 3137 312d 332e 332e IST-800-171-3.3. │ │ │ -0008f780: 310a 2020 2d20 4e49 5354 2d38 3030 2d31 1. - NIST-800-1 │ │ │ -0008f790: 3731 2d33 2e33 2e32 0a20 202d 204e 4953 71-3.3.2. - NIS │ │ │ -0008f7a0: 542d 3830 302d 3137 312d 332e 332e 360a T-800-171-3.3.6. │ │ │ -0008f7b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0008f7c0: 4143 2d32 2867 290a 2020 2d20 4e49 5354 AC-2(g). - NIST │ │ │ -0008f7d0: 2d38 3030 2d35 332d 4143 2d36 2839 290a -800-53-AC-6(9). │ │ │ -0008f7e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0008f7f0: 4155 2d31 300a 2020 2d20 4e49 5354 2d38 AU-10. - NIST-8 │ │ │ -0008f800: 3030 2d35 332d 4155 2d31 3228 6329 0a20 00-53-AU-12(c). │ │ │ -0008f810: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -0008f820: 552d 3134 2831 290a 2020 2d20 4e49 5354 U-14(1). - NIST │ │ │ -0008f830: 2d38 3030 2d35 332d 4155 2d32 2864 290a -800-53-AU-2(d). │ │ │ -0008f840: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0008f850: 4155 2d33 0a20 202d 204e 4953 542d 3830 AU-3. - NIST-80 │ │ │ -0008f860: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0008f870: 204e 4953 542d 3830 302d 3533 2d53 492d NIST-800-53-SI- │ │ │ -0008f880: 3428 3233 290a 2020 2d20 5043 492d 4453 4(23). - PCI-DS │ │ │ -0008f890: 532d 5265 712d 3130 2e31 0a20 202d 2050 S-Req-10.1. - P │ │ │ -0008f8a0: 4349 2d44 5353 7634 2d31 302e 320a 2020 CI-DSSv4-10.2. │ │ │ -0008f8b0: 2d20 5043 492d 4453 5376 342d 3130 2e32 - PCI-DSSv4-10.2 │ │ │ -0008f8c0: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ -0008f8d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0008f8e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0008f8f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0008f900: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0008f910: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0008f920: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -0008f930: 655f 6175 6469 7464 5f65 6e61 626c 6564 e_auditd_enabled │ │ │ -0008f940: 0a20 202d 2073 7065 6369 616c 5f73 6572 . - special_ser │ │ │ -0008f950: 7669 6365 5f62 6c6f 636b 0a20 2077 6865 vice_block. whe │ │ │ -0008f960: 6e3a 0a20 202d 2027 226c 696e 7578 2d62 n:. - '"linux-b │ │ │ -0008f970: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -0008f980: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -0008f990: 2020 2d20 2722 6175 6469 7464 2220 696e - '"auditd" in │ │ │ -0008f9a0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0008f9b0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +0008eea0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0008eeb0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

Complexity │ │ │ +0008ef40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0008ef60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0008ef70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0008ef80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0008ef90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0008efb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0008eff0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0008f000: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0008f010: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0008f020: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0008f030: 2020 2d20 434a 4953 2d35 2e34 2e31 2e31    - CJIS-5.4.1.1
│ │ │ +0008f040: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +0008f050: 312d 332e 332e 310a 2020 2d20 4e49 5354  1-3.3.1.  - NIST
│ │ │ +0008f060: 2d38 3030 2d31 3731 2d33 2e33 2e32 0a20  -800-171-3.3.2. 
│ │ │ +0008f070: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +0008f080: 332e 332e 360a 2020 2d20 4e49 5354 2d38  3.3.6.  - NIST-8
│ │ │ +0008f090: 3030 2d35 332d 4143 2d32 2867 290a 2020  00-53-AC-2(g).  
│ │ │ +0008f0a0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +0008f0b0: 2d36 2839 290a 2020 2d20 4e49 5354 2d38  -6(9).  - NIST-8
│ │ │ +0008f0c0: 3030 2d35 332d 4155 2d31 300a 2020 2d20  00-53-AU-10.  - 
│ │ │ +0008f0d0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +0008f0e0: 3228 6329 0a20 202d 204e 4953 542d 3830  2(c).  - NIST-80
│ │ │ +0008f0f0: 302d 3533 2d41 552d 3134 2831 290a 2020  0-53-AU-14(1).  
│ │ │ +0008f100: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +0008f110: 2d32 2864 290a 2020 2d20 4e49 5354 2d38  -2(d).  - NIST-8
│ │ │ +0008f120: 3030 2d35 332d 4155 2d33 0a20 202d 204e  00-53-AU-3.  - N
│ │ │ +0008f130: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0008f140: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0008f150: 3533 2d53 492d 3428 3233 290a 2020 2d20  53-SI-4(23).  - 
│ │ │ +0008f160: 5043 492d 4453 532d 5265 712d 3130 2e31  PCI-DSS-Req-10.1
│ │ │ +0008f170: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0008f180: 302e 320a 2020 2d20 5043 492d 4453 5376  0.2.  - PCI-DSSv
│ │ │ +0008f190: 342d 3130 2e32 2e31 0a20 202d 2065 6e61  4-10.2.1.  - ena
│ │ │ +0008f1a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0008f1b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0008f1c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0008f1d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0008f1e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0008f1f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0008f200: 7365 7276 6963 655f 6175 6469 7464 5f65  service_auditd_e
│ │ │ +0008f210: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +0008f220: 456e 6162 6c65 2061 7564 6974 6420 5365  Enable auditd Se
│ │ │ +0008f230: 7276 6963 6520 2d20 456e 6162 6c65 2073  rvice - Enable s
│ │ │ +0008f240: 6572 7669 6365 2061 7564 6974 640a 2020  ervice auditd.  
│ │ │ +0008f250: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +0008f260: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +0008f270: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +0008f280: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0008f290: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0008f2a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0008f2b0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +0008f2c0: 626c 6520 6175 6469 7464 2053 6572 7669  ble auditd Servi
│ │ │ +0008f2d0: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ +0008f2e0: 6963 6520 6175 6469 7464 0a20 2020 2061  ice auditd.    a
│ │ │ +0008f2f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0008f300: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0008f310: 6d65 3a20 6175 6469 7464 0a20 2020 2020  me: auditd.     
│ │ │ +0008f320: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +0008f330: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +0008f340: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +0008f350: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +0008f360: 3a0a 2020 2020 2d20 2722 6175 6469 7464  :.    - '"auditd
│ │ │ +0008f370: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0008f380: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +0008f390: 6167 733a 0a20 202d 2043 4a49 532d 352e  ags:.  - CJIS-5.
│ │ │ +0008f3a0: 342e 312e 310a 2020 2d20 4e49 5354 2d38  4.1.1.  - NIST-8
│ │ │ +0008f3b0: 3030 2d31 3731 2d33 2e33 2e31 0a20 202d  00-171-3.3.1.  -
│ │ │ +0008f3c0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0008f3d0: 332e 320a 2020 2d20 4e49 5354 2d38 3030  3.2.  - NIST-800
│ │ │ +0008f3e0: 2d31 3731 2d33 2e33 2e36 0a20 202d 204e  -171-3.3.6.  - N
│ │ │ +0008f3f0: 4953 542d 3830 302d 3533 2d41 432d 3228  IST-800-53-AC-2(
│ │ │ +0008f400: 6729 0a20 202d 204e 4953 542d 3830 302d  g).  - NIST-800-
│ │ │ +0008f410: 3533 2d41 432d 3628 3929 0a20 202d 204e  53-AC-6(9).  - N
│ │ │ +0008f420: 4953 542d 3830 302d 3533 2d41 552d 3130  IST-800-53-AU-10
│ │ │ +0008f430: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008f440: 2d41 552d 3132 2863 290a 2020 2d20 4e49  -AU-12(c).  - NI
│ │ │ +0008f450: 5354 2d38 3030 2d35 332d 4155 2d31 3428  ST-800-53-AU-14(
│ │ │ +0008f460: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +0008f470: 3533 2d41 552d 3228 6429 0a20 202d 204e  53-AU-2(d).  - N
│ │ │ +0008f480: 4953 542d 3830 302d 3533 2d41 552d 330a  IST-800-53-AU-3.
│ │ │ +0008f490: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0008f4a0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0008f4b0: 2d38 3030 2d35 332d 5349 2d34 2832 3329  -800-53-SI-4(23)
│ │ │ +0008f4c0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +0008f4d0: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ +0008f4e0: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ +0008f4f0: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ +0008f500: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0008f510: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0008f520: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0008f530: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0008f540: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0008f550: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0008f560: 0a20 202d 2073 6572 7669 6365 5f61 7564  .  - service_aud
│ │ │ +0008f570: 6974 645f 656e 6162 6c65 640a 2020 2d20  itd_enabled.  - 
│ │ │ +0008f580: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +0008f590: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ +0008f5a0: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ +0008f5b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0008f5c0: 2e70 6163 6b61 6765 7327 0a20 202d 2027  .packages'.  - '
│ │ │ +0008f5d0: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ +0008f5e0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0008f5f0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +0008f6b0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0008f6c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0008f740: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0008f760: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0008f7b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0008f7e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +0008f800: 5f61 7564 6974 640a 0a63 6c61 7373 2065  _auditd..class e
│ │ │ +0008f810: 6e61 626c 655f 6175 6469 7464 207b 0a20  nable_auditd {. 
│ │ │ +0008f820: 2073 6572 7669 6365 207b 2761 7564 6974   service {'audit
│ │ │ +0008f830: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +0008f840: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +0008f850: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +0008f860: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +0008f880: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0008f920: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0008f930: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0008f940: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +0008f990: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +0008f9a0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ +0008f9b0: 6175 6469 7464 225d 0a3c 2f63 6f64 653e auditd"]. │ │ │ 0008f9c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1791,14 +1774,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -1830,31 +1830,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1891,14 +1874,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4153,31 +4153,14 @@ │ │ │ │ SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4204,14 +4187,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4248,31 +4248,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR 1.7, SR 1.8, SR │ │ │ │ 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, │ │ │ │ SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4307,14 +4290,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4357,27 +4357,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4390,14 +4377,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4430,27 +4430,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4459,14 +4446,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -4501,27 +4501,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4530,14 +4517,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -4589,27 +4589,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -4622,14 +4609,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -4681,27 +4681,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4713,14 +4700,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -4814,31 +4814,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4863,14 +4846,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4904,31 +4904,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4973,14 +4956,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ntp"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -5896,31 +5896,14 @@ │ │ │ │ 000351-GPOS-00139, SRG-OS-000352-GPOS-00140, SRG-OS- │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5961,14 +5944,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6039,31 +6039,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6130,14 +6113,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_bp28_enhanced.html │ │ │ @@ -15040,133 +15040,133 @@ │ │ │ 0003abf0: 7461 2d74 6172 6765 743d 2223 6964 3135 ta-target="#id15 │ │ │ 0003ac00: 2220 7461 6269 6e64 6578 3d22 3022 2072 " tabindex="0" r │ │ │ 0003ac10: 6f6c 653d 2262 7574 746f 6e22 2061 7269 ole="button" ari │ │ │ 0003ac20: 612d 6578 7061 6e64 6564 3d22 6661 6c73 a-expanded="fals │ │ │ 0003ac30: 6522 2074 6974 6c65 3d22 4163 7469 7661 e" title="Activa │ │ │ 0003ac40: 7465 2074 6f20 7265 7665 616c 2220 6872 te to reveal" hr │ │ │ 0003ac50: 6566 3d22 2321 223e 5265 6d65 6469 6174 ef="#!">Remediat │ │ │ -0003ac60: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0003ac70: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0003ac80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

.[[packages]]
│ │ │ -0003acd0: 0a6e 616d 6520 3d20 2261 6964 6522 0a76  .name = "aide".v
│ │ │ -0003ace0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0003ad00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -0003ada0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0003adb0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:< │ │ │ +0008f750: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0008f770: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0008f7c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0008f7d0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0003ae60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003ae80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003aeb0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003ae40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003ae50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003ae70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003ae90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003aea0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0003aef0: 2069 6e73 7461 6c6c 5f61 6964 650a 0a63 install_aide..c │ │ │ -0003af00: 6c61 7373 2069 6e73 7461 6c6c 5f61 6964 lass install_aid │ │ │ -0003af10: 6520 7b0a 2020 7061 636b 6167 6520 7b20 e {. package { │ │ │ -0003af20: 2761 6964 6527 3a0a 2020 2020 656e 7375 'aide':. ensu │ │ │ -0003af30: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -0003af40: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ -0003af60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003af70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003af80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003af90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003afa0: 6431 3722 2074 6162 696e 6465 783d 2230 d17" tabindex="0 │ │ │ -0003afb0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003afc0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003afd0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003afe0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003aff0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003b000: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0003b010: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0003b0c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003b0e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003b110: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003b0a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003b0b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003b0d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003b0f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003b100: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0003b150: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0003b160: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0003b170: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0003b180: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0003b190: 6167 733a 0a20 202d 2043 4a49 532d 352e ags:. - CJIS-5. │ │ │ -0003b1a0: 3130 2e31 2e33 0a20 202d 204e 4953 542d 10.1.3. - NIST- │ │ │ -0003b1b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -0003b1c0: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ -0003b1d0: 312e 350a 2020 2d20 5043 492d 4453 5376 1.5. - PCI-DSSv │ │ │ -0003b1e0: 342d 3131 2e35 2e32 0a20 202d 2065 6e61 4-11.5.2. - ena │ │ │ -0003b1f0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0003b200: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0003b210: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0003b220: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -0003b230: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -0003b240: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0003b250: 7061 636b 6167 655f 6169 6465 5f69 6e73 package_aide_ins │ │ │ -0003b260: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 talled..- name: │ │ │ -0003b270: 456e 7375 7265 2061 6964 6520 6973 2069 Ensure aide is i │ │ │ -0003b280: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ -0003b290: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -0003b2a0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6169 ge:. name: ai │ │ │ -0003b2b0: 6465 0a20 2020 2073 7461 7465 3a20 7072 de. state: pr │ │ │ -0003b2c0: 6573 656e 740a 2020 7768 656e 3a20 2722 esent. when: '" │ │ │ -0003b2d0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -0003b2e0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0003b2f0: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ -0003b300: 202d 2043 4a49 532d 352e 3130 2e31 2e33 - CJIS-5.10.1.3 │ │ │ -0003b310: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0003b320: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ -0003b330: 2d44 5353 2d52 6571 2d31 312e 350a 2020 -DSS-Req-11.5. │ │ │ -0003b340: 2d20 5043 492d 4453 5376 342d 3131 2e35 - PCI-DSSv4-11.5 │ │ │ -0003b350: 2e32 0a20 202d 2065 6e61 626c 655f 7374 .2. - enable_st │ │ │ -0003b360: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0003b370: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0003b380: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0003b390: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0003b3a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0003b3b0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -0003b3c0: 655f 6169 6465 5f69 6e73 7461 6c6c 6564 e_aide_installed │ │ │ +0003ac60: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0003ac70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0003ac80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003ac90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003aca0: 7365 2220 6964 3d22 6964 3135 223e 3c74 se" id="id15"> │ │ │ +0003acf0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0003ad00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0003ad10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0003ad50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0003ad60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0003ad80: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +0003ada0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0003adb0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0003adc0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0003add0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0003ade0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0003adf0: 3a0a 2020 2d20 434a 4953 2d35 2e31 302e  :.  - CJIS-5.10.
│ │ │ +0003ae00: 312e 330a 2020 2d20 4e49 5354 2d38 3030  1.3.  - NIST-800
│ │ │ +0003ae10: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0003ae20: 5043 492d 4453 532d 5265 712d 3131 2e35  PCI-DSS-Req-11.5
│ │ │ +0003ae30: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0003ae40: 312e 352e 320a 2020 2d20 656e 6162 6c65  1.5.2.  - enable
│ │ │ +0003ae50: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0003ae60: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0003ae70: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0003ae80: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0003ae90: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0003aea0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0003aeb0: 6b61 6765 5f61 6964 655f 696e 7374 616c  kage_aide_instal
│ │ │ +0003aec0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +0003aed0: 7572 6520 6169 6465 2069 7320 696e 7374  ure aide is inst
│ │ │ +0003aee0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +0003aef0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0003af00: 0a20 2020 206e 616d 653a 2061 6964 650a  .    name: aide.
│ │ │ +0003af10: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +0003af20: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +0003af30: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0003af40: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0003af50: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0003af60: 434a 4953 2d35 2e31 302e 312e 330a 2020  CJIS-5.10.1.3.  
│ │ │ +0003af70: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0003af80: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +0003af90: 532d 5265 712d 3131 2e35 0a20 202d 2050  S-Req-11.5.  - P
│ │ │ +0003afa0: 4349 2d44 5353 7634 2d31 312e 352e 320a  CI-DSSv4-11.5.2.
│ │ │ +0003afb0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0003afc0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0003afd0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0003afe0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0003aff0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0003b000: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0003b010: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +0003b020: 6964 655f 696e 7374 616c 6c65 640a 3c2f  ide_installed.
Rem │ │ │ +0003b0e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0003b0f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0003b100: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ +0003b180: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0003b190: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0003b1b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0003b1d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0003b1e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0003b220: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0003b230: 6520 696e 7374 616c 6c5f 6169 6465 0a0a e install_aide.. │ │ │ +0003b240: 636c 6173 7320 696e 7374 616c 6c5f 6169 class install_ai │ │ │ +0003b250: 6465 207b 0a20 2070 6163 6b61 6765 207b de {. package { │ │ │ +0003b260: 2027 6169 6465 273a 0a20 2020 2065 6e73 'aide':. ens │ │ │ +0003b270: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ +0003b280: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ +0003b2a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0003b340: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0003b350: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0003b360: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ +0003b3b0: 6573 5d5d 0a6e 616d 6520 3d20 2261 6964  es]].name = "aid
│ │ │ +0003b3c0: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │  0003b3d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
R │ │ │ -00045c10: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00045c20: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00045c30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00045c40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00045c70: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00045c80: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00045c90: 7375 646f 220a 7665 7273 696f 6e20 3d20 sudo".version = │ │ │ -00045ca0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation P │ │ │ -00045d60: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00045d70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -00045e40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00045e50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00045ea0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -00045eb0: 7375 646f 0a0a 636c 6173 7320 696e 7374  sudo..class inst
│ │ │ -00045ec0: 616c 6c5f 7375 646f 207b 0a20 2070 6163  all_sudo {.  pac
│ │ │ -00045ed0: 6b61 6765 207b 2027 7375 646f 273a 0a20  kage { 'sudo':. 
│ │ │ -00045ee0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00045ef0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -00045f00: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00045f10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -00045fc0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00045fd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -00045e20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00045e30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00045e70: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00045e80: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -000460a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000460b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00046100: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00046110: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00046120: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00046130: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00046140: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00046150: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00046160: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ -00046170: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00046180: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ -00046190: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000461a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000461b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000461c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000461d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000461e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000461f0: 2070 6163 6b61 6765 5f73 7564 6f5f 696e   package_sudo_in
│ │ │ -00046200: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -00046210: 2045 6e73 7572 6520 7375 646f 2069 7320   Ensure sudo is 
│ │ │ -00046220: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00046230: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00046240: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ -00046250: 7564 6f0a 2020 2020 7374 6174 653a 2070  udo.    state: p
│ │ │ -00046260: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -00046270: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00046280: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00046290: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000462a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000462b0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -000462c0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -000462d0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -000462e0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000462f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00046300: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00046310: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00046320: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00046330: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00046340: 0a20 202d 2070 6163 6b61 6765 5f73 7564  .  - package_sud
│ │ │ -00046350: 6f5f 696e 7374 616c 6c65 640a 3c2f 636f  o_installed.
low
Disru │ │ │ -00046080: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00046090: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000460d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000460e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00045cc0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00045cd0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00045d20: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00045d60: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00045d70: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00045d80: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00045d90: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00045da0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00045db0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00045dc0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00045dd0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00045de0: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c  -2.2.6.  - enabl
│ │ │ +00045df0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00045e00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00045e10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00045e20: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00045e30: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00045e40: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00045e50: 636b 6167 655f 7375 646f 5f69 6e73 7461  ckage_sudo_insta
│ │ │ +00045e60: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +00045e70: 7375 7265 2073 7564 6f20 6973 2069 6e73  sure sudo is ins
│ │ │ +00045e80: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00045e90: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00045ea0: 3a0a 2020 2020 6e61 6d65 3a20 7375 646f  :.    name: sudo
│ │ │ +00045eb0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +00045ec0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00045ed0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00045ee0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00045ef0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00045f00: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00045f10: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +00045f20: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00045f30: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ +00045f40: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00045f50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00045f60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00045f70: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00045f80: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00045f90: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00045fa0: 2d20 7061 636b 6167 655f 7375 646f 5f69  - package_sudo_i
│ │ │ +00045fb0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00045fc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +00046070: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00046080: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00046100: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00046140: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ +00045cb0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00045ce0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00045cf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00045d30: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00045d40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00046110: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00046130: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00046160: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00046180: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000461b0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000461c0: 7461 6c6c 5f73 7564 6f0a 0a63 6c61 7373  tall_sudo..class
│ │ │ +000461d0: 2069 6e73 7461 6c6c 5f73 7564 6f20 7b0a   install_sudo {.
│ │ │ +000461e0: 2020 7061 636b 6167 6520 7b20 2773 7564    package { 'sud
│ │ │ +000461f0: 6f27 3a0a 2020 2020 656e 7375 7265 203d  o':.    ensure =
│ │ │ +00046200: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +00046210: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00046220: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +000462d0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000462e0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000462f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ +00046340: 6e61 6d65 203d 2022 7375 646f 220a 7665  name = "sudo".ve
│ │ │ +00046350: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00046370: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00046380: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00046390: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000463a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000463b0: 6433 3522 2074 6162 696e 6465 783d 2230 d35" tabindex="0 │ │ │ 000463c0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -31884,129 +31884,129 @@ │ │ │ 0007c8b0: 612d 7461 7267 6574 3d22 2369 6431 3135 a-target="#id115 │ │ │ 0007c8c0: 2220 7461 6269 6e64 6578 3d22 3022 2072 " tabindex="0" r │ │ │ 0007c8d0: 6f6c 653d 2262 7574 746f 6e22 2061 7269 ole="button" ari │ │ │ 0007c8e0: 612d 6578 7061 6e64 6564 3d22 6661 6c73 a-expanded="fals │ │ │ 0007c8f0: 6522 2074 6974 6c65 3d22 4163 7469 7661 e" title="Activa │ │ │ 0007c900: 7465 2074 6f20 7265 7665 616c 2220 6872 te to reveal" hr │ │ │ 0007c910: 6566 3d22 2321 223e 5265 6d65 6469 6174 ef="#!">Remediat │ │ │ -0007c920: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0007c930: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0007c940: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -0007c990: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ -0007c9a0: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ -0007c9b0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -0007ca70: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0007ca80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007ca90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007cac0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0007cb30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007cb50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007cb80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0007cba0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0007cb10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007cb20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007cb60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007cb70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0007cbc0: 696e 7374 616c 6c5f 6c69 6270 616d 2d70 install_libpam-p │ │ │ -0007cbd0: 7771 7561 6c69 7479 0a0a 636c 6173 7320 wquality..class │ │ │ -0007cbe0: 696e 7374 616c 6c5f 6c69 6270 616d 2d70 install_libpam-p │ │ │ -0007cbf0: 7771 7561 6c69 7479 207b 0a20 2070 6163 wquality {. pac │ │ │ -0007cc00: 6b61 6765 207b 2027 6c69 6270 616d 2d70 kage { 'libpam-p │ │ │ -0007cc10: 7771 7561 6c69 7479 273a 0a20 2020 2065 wquality':. e │ │ │ -0007cc20: 6e73 7572 6520 3d26 6774 3b20 2769 6e73 nsure => 'ins │ │ │ -0007cc30: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c talled',. }.}.< │ │ │ -0007cc40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ -0007ccf0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0007cd00: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0007cda0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0007ce40: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0007ce50: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0007ce60: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0007ce70: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0007ce80: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -0007ce90: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0007cea0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0007ceb0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0007cec0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0007ced0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0007cee0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0007cef0: 2070 6163 6b61 6765 5f70 616d 5f70 7771   package_pam_pwq
│ │ │ -0007cf00: 7561 6c69 7479 5f69 6e73 7461 6c6c 6564  uality_installed
│ │ │ -0007cf10: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -0007cf20: 206c 6962 7061 6d2d 7077 7175 616c 6974   libpam-pwqualit
│ │ │ -0007cf30: 7920 6973 2069 6e73 7461 6c6c 6564 0a20  y is installed. 
│ │ │ -0007cf40: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0007cf50: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0007cf60: 6d65 3a20 6c69 6270 616d 2d70 7771 7561  me: libpam-pwqua
│ │ │ -0007cf70: 6c69 7479 0a20 2020 2073 7461 7465 3a20  lity.    state: 
│ │ │ -0007cf80: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -0007cf90: 2722 6c69 6270 616d 2d72 756e 7469 6d65  '"libpam-runtime
│ │ │ -0007cfa0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0007cfb0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0007cfc0: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -0007cfd0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0007cfe0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007cff0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007d000: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0007d010: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0007d020: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0007d030: 6167 655f 7061 6d5f 7077 7175 616c 6974  age_pam_pwqualit
│ │ │ -0007d040: 795f 696e 7374 616c 6c65 640a 3c2f 636f  y_installed.
< │ │ │ +0007c940: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007c950: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007c960: 7365 2220 6964 3d22 6964 3131 3522 3e3c se" id="id115">< │ │ │ +0007c970: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007c980: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007c990: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007c9a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007c9b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0007ca40: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +0007ca50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -0007cd90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007cdc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007cdd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007ce10: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0007ce20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +0007c9c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007c9d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0007ca10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007ca20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +0007ca70: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0007ca80: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0007ca90: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0007caa0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0007cab0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +0007cac0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0007cad0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0007cae0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0007caf0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0007cb00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0007cb10: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0007cb20: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ +0007cb30: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +0007cb40: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ +0007cb50: 2d70 7771 7561 6c69 7479 2069 7320 696e  -pwquality is in
│ │ │ +0007cb60: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +0007cb70: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0007cb80: 653a 0a20 2020 206e 616d 653a 206c 6962  e:.    name: lib
│ │ │ +0007cb90: 7061 6d2d 7077 7175 616c 6974 790a 2020  pam-pwquality.  
│ │ │ +0007cba0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +0007cbb0: 0a20 2077 6865 6e3a 2027 226c 6962 7061  .  when: '"libpa
│ │ │ +0007cbc0: 6d2d 7275 6e74 696d 6522 2069 6e20 616e  m-runtime" in an
│ │ │ +0007cbd0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0007cbe0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0007cbf0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0007cc00: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0007cc10: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0007cc20: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0007cc30: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0007cc40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007cc50: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ +0007cc60: 5f70 7771 7561 6c69 7479 5f69 6e73 7461  _pwquality_insta
│ │ │ +0007cc70: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +0007cd30: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0007cd40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0007cdd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0007cdf0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0007ce10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0007ce40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007ce50: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0007ce60: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +0007ce80: 6c6c 5f6c 6962 7061 6d2d 7077 7175 616c  ll_libpam-pwqual
│ │ │ +0007ce90: 6974 790a 0a63 6c61 7373 2069 6e73 7461  ity..class insta
│ │ │ +0007cea0: 6c6c 5f6c 6962 7061 6d2d 7077 7175 616c  ll_libpam-pwqual
│ │ │ +0007ceb0: 6974 7920 7b0a 2020 7061 636b 6167 6520  ity {.  package 
│ │ │ +0007cec0: 7b20 276c 6962 7061 6d2d 7077 7175 616c  { 'libpam-pwqual
│ │ │ +0007ced0: 6974 7927 3a0a 2020 2020 656e 7375 7265  ity':.    ensure
│ │ │ +0007cee0: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +0007cef0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +0007cfb0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0007cfc0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0007cfd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0007d010: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0007d020: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ +0007d030: 616d 2d70 7771 7561 6c69 7479 220a 7665  am-pwquality".ve
│ │ │ +0007d040: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 0007d060: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0007d070: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0007d080: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0007d090: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007d0a0: 6431 3138 2220 7461 6269 6e64 6578 3d22 d118" tabindex=" │ │ │ 0007d0b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -38398,115 +38398,115 @@ │ │ │ 00095fd0: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 00095fe0: 3135 3722 2074 6162 696e 6465 783d 2230 157" tabindex="0 │ │ │ 00095ff0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 00096000: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 00096010: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 00096020: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 00096030: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00096040: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00096050: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00096060: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -000960b0: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ -000960c0: 6172 6d6f 7222 0a76 6572 7369 6f6e 203d  armor".version =
│ │ │ -000960d0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -00096190: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000961a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00096230: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00096250: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00096270: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000962a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000962b0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000962c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -000962e0: 6c6c 5f61 7070 6172 6d6f 720a 0a63 6c61  ll_apparmor..cla
│ │ │ -000962f0: 7373 2069 6e73 7461 6c6c 5f61 7070 6172  ss install_appar
│ │ │ -00096300: 6d6f 7220 7b0a 2020 7061 636b 6167 6520  mor {.  package 
│ │ │ -00096310: 7b20 2761 7070 6172 6d6f 7227 3a0a 2020  { 'apparmor':.  
│ │ │ -00096320: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00096330: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -00096340: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00096350: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00096400: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00096410: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00096490: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000964b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00096500: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ -00096550: 6170 7061 726d 6f72 2069 7320 696e 7374  apparmor is inst
│ │ │ -00096560: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00096570: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00096580: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ -00096590: 6d6f 720a 2020 2020 7374 6174 653a 2070  mor.    state: p
│ │ │ -000965a0: 7265 7365 6e74 0a20 2077 6865 6e3a 2061  resent.  when: a
│ │ │ -000965b0: 6e73 6962 6c65 5f76 6972 7475 616c 697a  nsible_virtualiz
│ │ │ -000965c0: 6174 696f 6e5f 7479 7065 206e 6f74 2069  ation_type not i
│ │ │ -000965d0: 6e20 5b22 646f 636b 6572 222c 2022 6c78  n ["docker", "lx
│ │ │ -000965e0: 6322 2c20 226f 7065 6e76 7a22 2c20 2270  c", "openvz", "p
│ │ │ -000965f0: 6f64 6d61 6e22 2c20 2263 6f6e 7461 696e  odman", "contain
│ │ │ -00096600: 6572 225d 0a20 2074 6167 733a 0a20 202d  er"].  tags:.  -
│ │ │ -00096610: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00096620: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00096630: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00096640: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00096650: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00096660: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00096670: 2020 2d20 7061 636b 6167 655f 6170 7061    - package_appa
│ │ │ -00096680: 726d 6f72 5f69 6e73 7461 6c6c 6564 0a3c  rmor_installed.<
│ │ │ +00096040: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00096050: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -000964c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000964d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00096510: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00096520: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +000960e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000960f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00096110: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00096130: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00096140: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00096180: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00096190: 3a20 456e 7375 7265 2061 7070 6172 6d6f : Ensure apparmo │ │ │ +000961a0: 7220 6973 2069 6e73 7461 6c6c 6564 0a20 r is installed. │ │ │ +000961b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +000961c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +000961d0: 6d65 3a20 6170 7061 726d 6f72 0a20 2020 me: apparmor. │ │ │ +000961e0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ +000961f0: 2020 7768 656e 3a20 616e 7369 626c 655f when: ansible_ │ │ │ +00096200: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74 virtualization_t │ │ │ +00096210: 7970 6520 6e6f 7420 696e 205b 2264 6f63 ype not in ["doc │ │ │ +00096220: 6b65 7222 2c20 226c 7863 222c 2022 6f70 ker", "lxc", "op │ │ │ +00096230: 656e 767a 222c 2022 706f 646d 616e 222c envz", "podman", │ │ │ +00096240: 2022 636f 6e74 6169 6e65 7222 5d0a 2020 "container"]. │ │ │ +00096250: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +00096260: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00096270: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00096280: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00096290: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +000962a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +000962b0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +000962c0: 6b61 6765 5f61 7070 6172 6d6f 725f 696e kage_apparmor_in │ │ │ +000962d0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000962e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00096390: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000963a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00096420: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00096430: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00096440: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00096480: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00096490: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000964b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000964d0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000964e0: 7374 616c 6c5f 6170 7061 726d 6f72 0a0a  stall_apparmor..
│ │ │ +000964f0: 636c 6173 7320 696e 7374 616c 6c5f 6170  class install_ap
│ │ │ +00096500: 7061 726d 6f72 207b 0a20 2070 6163 6b61  parmor {.  packa
│ │ │ +00096510: 6765 207b 2027 6170 7061 726d 6f72 273a  ge { 'apparmor':
│ │ │ +00096520: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00096530: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +00096540: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +00096600: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00096610: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +00096670: 616d 6520 3d20 2261 7070 6172 6d6f 7222  ame = "apparmor"
│ │ │ +00096680: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00096690: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation O │ │ │ -00097410: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00097420: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00097430: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00097470: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00097480: 6520 3d20 226c 6962 7061 6d2d 6170 7061  e = "libpam-appa
│ │ │ -00097490: 726d 6f72 220a 7665 7273 696f 6e20 3d20  rmor".version = 
│ │ │ -000974a0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -00097560: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00097570: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000975f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00097610: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00097660: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00097690: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000976b0: 6c5f 6c69 6270 616d 2d61 7070 6172 6d6f  l_libpam-apparmo
│ │ │ -000976c0: 720a 0a63 6c61 7373 2069 6e73 7461 6c6c  r..class install
│ │ │ -000976d0: 5f6c 6962 7061 6d2d 6170 7061 726d 6f72  _libpam-apparmor
│ │ │ -000976e0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000976f0: 6c69 6270 616d 2d61 7070 6172 6d6f 7227  libpam-apparmor'
│ │ │ -00097700: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00097710: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00097720: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000977e0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000977f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00097870: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -000978b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -00097600: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00097620: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00097670: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00097680: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -00097880: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -000978a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -000978d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -000978f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00097920: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ -00097930: 7572 6520 6c69 6270 616d 2d61 7070 6172  ure libpam-appar
│ │ │ -00097940: 6d6f 7220 6973 2069 6e73 7461 6c6c 6564  mor is installed
│ │ │ -00097950: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00097960: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00097970: 6e61 6d65 3a20 6c69 6270 616d 2d61 7070  name: libpam-app
│ │ │ -00097980: 6172 6d6f 720a 2020 2020 7374 6174 653a  armor.    state:
│ │ │ -00097990: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000979a0: 2061 6e73 6962 6c65 5f76 6972 7475 616c   ansible_virtual
│ │ │ -000979b0: 697a 6174 696f 6e5f 7479 7065 206e 6f74  ization_type not
│ │ │ -000979c0: 2069 6e20 5b22 646f 636b 6572 222c 2022   in ["docker", "
│ │ │ -000979d0: 6c78 6322 2c20 226f 7065 6e76 7a22 2c20  lxc", "openvz", 
│ │ │ -000979e0: 2270 6f64 6d61 6e22 2c20 2263 6f6e 7461  "podman", "conta
│ │ │ -000979f0: 696e 6572 225d 0a20 2074 6167 733a 0a20  iner"].  tags:. 
│ │ │ -00097a00: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00097a10: 432d 3328 3429 0a20 202d 204e 4953 542d  C-3(4).  - NIST-
│ │ │ -00097a20: 3830 302d 3533 2d41 432d 3628 3130 290a  800-53-AC-6(10).
│ │ │ -00097a30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00097a40: 4143 2d36 2838 290a 2020 2d20 4e49 5354  AC-6(8).  - NIST
│ │ │ -00097a50: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00097a60: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00097a70: 434d 2d37 2832 290a 2020 2d20 4e49 5354  CM-7(2).  - NIST
│ │ │ -00097a80: 2d38 3030 2d35 332d 434d 2d37 2835 2928  -800-53-CM-7(5)(
│ │ │ -00097a90: 6229 0a20 202d 204e 4953 542d 3830 302d  b).  - NIST-800-
│ │ │ -00097aa0: 3533 2d53 432d 3728 3231 290a 2020 2d20  53-SC-7(21).  - 
│ │ │ -00097ab0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00097ac0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00097ad0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00097ae0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00097af0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00097b00: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00097b10: 202d 2070 6163 6b61 6765 5f70 616d 5f61   - package_pam_a
│ │ │ -00097b20: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ -00097b30: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00097400: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +00097410: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00097420: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +000974a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000974c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00097510: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00097540: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Ensure
│ │ │ +00097560: 206c 6962 7061 6d2d 6170 7061 726d 6f72   libpam-apparmor
│ │ │ +00097570: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +00097580: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00097590: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000975a0: 653a 206c 6962 7061 6d2d 6170 7061 726d  e: libpam-apparm
│ │ │ +000975b0: 6f72 0a20 2020 2073 7461 7465 3a20 7072  or.    state: pr
│ │ │ +000975c0: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ +000975d0: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ +000975e0: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ +000975f0: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ +00097600: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ +00097610: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ +00097620: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ +00097630: 4e49 5354 2d38 3030 2d35 332d 4143 2d33  NIST-800-53-AC-3
│ │ │ +00097640: 2834 290a 2020 2d20 4e49 5354 2d38 3030  (4).  - NIST-800
│ │ │ +00097650: 2d35 332d 4143 2d36 2831 3029 0a20 202d  -53-AC-6(10).  -
│ │ │ +00097660: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00097670: 3628 3829 0a20 202d 204e 4953 542d 3830  6(8).  - NIST-80
│ │ │ +00097680: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00097690: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +000976a0: 3728 3229 0a20 202d 204e 4953 542d 3830  7(2).  - NIST-80
│ │ │ +000976b0: 302d 3533 2d43 4d2d 3728 3529 2862 290a  0-53-CM-7(5)(b).
│ │ │ +000976c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000976d0: 5343 2d37 2832 3129 0a20 202d 2065 6e61  SC-7(21).  - ena
│ │ │ +000976e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000976f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00097700: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00097710: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00097720: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00097730: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00097740: 7061 636b 6167 655f 7061 6d5f 6170 7061  package_pam_appa
│ │ │ +00097750: 726d 6f72 5f69 6e73 7461 6c6c 6564 0a3c  rmor_installed.<
│ │ │ +00097760: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00097810: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00097820: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +000974b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000974d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00097520: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00097530: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +000978c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000978d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00097920: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00097960: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ +00097970: 7061 6d2d 6170 7061 726d 6f72 0a0a 636c  pam-apparmor..cl
│ │ │ +00097980: 6173 7320 696e 7374 616c 6c5f 6c69 6270  ass install_libp
│ │ │ +00097990: 616d 2d61 7070 6172 6d6f 7220 7b0a 2020  am-apparmor {.  
│ │ │ +000979a0: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +000979b0: 6d2d 6170 7061 726d 6f72 273a 0a20 2020  m-apparmor':.   
│ │ │ +000979c0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +000979d0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +000979e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00097aa0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00097ab0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +000978b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000978e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000978f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00097930: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00097940: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0009ad30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0009ad50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0009ada0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -0009adf0: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ -0009ae00: 656e 6162 6c65 5f61 7070 6172 6d6f 7220  enable_apparmor 
│ │ │ -0009ae10: 7b0a 2020 7365 7276 6963 6520 7b27 6170  {.  service {'ap
│ │ │ -0009ae20: 7061 726d 6f72 273a 0a20 2020 2065 6e61  parmor':.    ena
│ │ │ -0009ae30: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -0009ae40: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0009ae50: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -0009ae60: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0009ae70: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0009af20: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0009af30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
- name: Star
│ │ │ -0009af80: 7420 6170 7061 726d 6f72 2e73 6572 7669  t apparmor.servi
│ │ │ -0009af90: 6365 0a20 2061 6e73 6962 6c65 2e62 7569  ce.  ansible.bui
│ │ │ -0009afa0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0009afb0: 2020 6e61 6d65 3a20 6170 7061 726d 6f72    name: apparmor
│ │ │ -0009afc0: 2e73 6572 7669 6365 0a20 2020 2073 7461  .service.    sta
│ │ │ -0009afd0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -0009afe0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -0009aff0: 7768 656e 3a20 616e 7369 626c 655f 7669  when: ansible_vi
│ │ │ -0009b000: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ -0009b010: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ -0009b020: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ -0009b030: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ -0009b040: 636f 6e74 6169 6e65 7222 5d0a 2020 7461  container"].  ta
│ │ │ -0009b050: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -0009b060: 2d35 332d 4143 2d33 2834 290a 2020 2d20  -53-AC-3(4).  - 
│ │ │ -0009b070: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -0009b080: 2831 3029 0a20 202d 204e 4953 542d 3830  (10).  - NIST-80
│ │ │ -0009b090: 302d 3533 2d41 432d 3628 3829 0a20 202d  0-53-AC-6(8).  -
│ │ │ -0009b0a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0009b0b0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0009b0c0: 302d 3533 2d43 4d2d 3728 3229 0a20 202d  0-53-CM-7(2).  -
│ │ │ -0009b0d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0009b0e0: 3728 3529 2862 290a 2020 2d20 4e49 5354  7(5)(b).  - NIST
│ │ │ -0009b0f0: 2d38 3030 2d35 332d 5343 2d37 2832 3129  -800-53-SC-7(21)
│ │ │ -0009b100: 0a20 202d 2061 7070 6172 6d6f 725f 636f  .  - apparmor_co
│ │ │ -0009b110: 6e66 6967 7572 6564 0a20 202d 206d 6564  nfigured.  - med
│ │ │ -0009b120: 6975 6d5f 7365 7665 7269 7479 0a3c 2f63  ium_severity.
- name: S
│ │ │ +0009abb0: 7461 7274 2061 7070 6172 6d6f 722e 7365  tart apparmor.se
│ │ │ +0009abc0: 7276 6963 650a 2020 616e 7369 626c 652e  rvice.  ansible.
│ │ │ +0009abd0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0009abe0: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ +0009abf0: 6d6f 722e 7365 7276 6963 650a 2020 2020  mor.service.    
│ │ │ +0009ac00: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +0009ac10: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +0009ac20: 0a20 2077 6865 6e3a 2061 6e73 6962 6c65  .  when: ansible
│ │ │ +0009ac30: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ +0009ac40: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ +0009ac50: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ +0009ac60: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ +0009ac70: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ +0009ac80: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0009ac90: 3830 302d 3533 2d41 432d 3328 3429 0a20  800-53-AC-3(4). 
│ │ │ +0009aca0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +0009acb0: 432d 3628 3130 290a 2020 2d20 4e49 5354  C-6(10).  - NIST
│ │ │ +0009acc0: 2d38 3030 2d35 332d 4143 2d36 2838 290a  -800-53-AC-6(8).
│ │ │ +0009acd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0009ace0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0009acf0: 2d38 3030 2d35 332d 434d 2d37 2832 290a  -800-53-CM-7(2).
│ │ │ +0009ad00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0009ad10: 434d 2d37 2835 2928 6229 0a20 202d 204e  CM-7(5)(b).  - N
│ │ │ +0009ad20: 4953 542d 3830 302d 3533 2d53 432d 3728  IST-800-53-SC-7(
│ │ │ +0009ad30: 3231 290a 2020 2d20 6170 7061 726d 6f72  21).  - apparmor
│ │ │ +0009ad40: 5f63 6f6e 6669 6775 7265 640a 2020 2d20  _configured.  - 
│ │ │ +0009ad50: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0009ad60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0009ae10: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0009ae20: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disr │ │ │ -0009ad60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0009ad70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0009adb0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0009adc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0009aec0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0009af60: 636c 7564 6520 656e 6162 6c65 5f61 7070  clude enable_app
│ │ │ +0009af70: 6172 6d6f 720a 0a63 6c61 7373 2065 6e61  armor..class ena
│ │ │ +0009af80: 626c 655f 6170 7061 726d 6f72 207b 0a20  ble_apparmor {. 
│ │ │ +0009af90: 2073 6572 7669 6365 207b 2761 7070 6172   service {'appar
│ │ │ +0009afa0: 6d6f 7227 3a0a 2020 2020 656e 6162 6c65  mor':.    enable
│ │ │ +0009afb0: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ +0009afc0: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ +0009afd0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ +0009afe0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0009b090: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0009b0a0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0009b0b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0009b0c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0009b0f0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0009b100: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0009b110: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +0009b120: 5b22 6170 7061 726d 6f72 225d 0a3c 2f63  ["apparmor"].
│ │ │ 0009b140: 3c2f 6469 763e 3c2f 7464 3e3c 2f74 723e │ │ │ 0009b150: 3c2f 7462 6f64 793e 3c2f 7461 626c 653e
│ │ │ +0009aeb0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0009aee0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0009aef0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0009af30: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0009af40: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ 0009b160: 3c2f 7464 3e3c 2f74 723e 3c74 7220 6461 Remed │ │ │ -000db2e0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000db2f0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000db300: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -000db350: 6573 5d5d 0a6e 616d 6520 3d20 226c 6f67  es]].name = "log
│ │ │ -000db360: 726f 7461 7465 220a 7665 7273 696f 6e20  rotate".version 
│ │ │ -000db370: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -000db430: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000db440: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000db4d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000db4f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000db500: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000db510: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000db520: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000db540: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -000db580: 616c 6c5f 6c6f 6772 6f74 6174 650a 0a63  all_logrotate..c
│ │ │ -000db590: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6f67  lass install_log
│ │ │ -000db5a0: 726f 7461 7465 207b 0a20 2070 6163 6b61  rotate {.  packa
│ │ │ -000db5b0: 6765 207b 2027 6c6f 6772 6f74 6174 6527  ge { 'logrotate'
│ │ │ -000db5c0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000db5d0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000db5e0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000db6a0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000db6b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000db730: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000db740: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000db760: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000db770: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000db790: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000db7b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000db7e0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000db7f0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000db800: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000db810: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000db820: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000db830: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000db840: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -000db850: 2d44 5353 2d52 6571 2d31 302e 370a 2020  -DSS-Req-10.7.  
│ │ │ -000db860: 2d20 5043 492d 4453 5376 342d 3130 2e35  - PCI-DSSv4-10.5
│ │ │ -000db870: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -000db880: 302e 352e 310a 2020 2d20 656e 6162 6c65  0.5.1.  - enable
│ │ │ -000db890: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000db8a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000db8b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000db8c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000db8d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000db8e0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000db8f0: 6b61 6765 5f6c 6f67 726f 7461 7465 5f69  kage_logrotate_i
│ │ │ -000db900: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -000db910: 3a20 456e 7375 7265 206c 6f67 726f 7461  : Ensure logrota
│ │ │ -000db920: 7465 2069 7320 696e 7374 616c 6c65 640a  te is installed.
│ │ │ -000db930: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000db940: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000db950: 616d 653a 206c 6f67 726f 7461 7465 0a20  ame: logrotate. 
│ │ │ -000db960: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -000db970: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -000db980: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -000db990: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000db9a0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -000db9b0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -000db9c0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -000db9d0: 6571 2d31 302e 370a 2020 2d20 5043 492d  eq-10.7.  - PCI-
│ │ │ -000db9e0: 4453 5376 342d 3130 2e35 0a20 202d 2050  DSSv4-10.5.  - P
│ │ │ -000db9f0: 4349 2d44 5353 7634 2d31 302e 352e 310a  CI-DSSv4-10.5.1.
│ │ │ -000dba00: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000dba10: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000dba20: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000dba30: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000dba40: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000dba50: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000dba60: 6564 0a20 202d 2070 6163 6b61 6765 5f6c  ed.  - package_l
│ │ │ -000dba70: 6f67 726f 7461 7465 5f69 6e73 7461 6c6c  ogrotate_install
│ │ │ -000dba80: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000db2e0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +000db2f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000db380: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000db390: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000db3b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000db3d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000db3e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000db420: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000db430: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000db440: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000db450: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000db460: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000db470: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +000db480: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +000db490: 2d20 5043 492d 4453 532d 5265 712d 3130 - PCI-DSS-Req-10 │ │ │ +000db4a0: 2e37 0a20 202d 2050 4349 2d44 5353 7634 .7. - PCI-DSSv4 │ │ │ +000db4b0: 2d31 302e 350a 2020 2d20 5043 492d 4453 -10.5. - PCI-DS │ │ │ +000db4c0: 5376 342d 3130 2e35 2e31 0a20 202d 2065 Sv4-10.5.1. - e │ │ │ +000db4d0: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ +000db4e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +000db4f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +000db500: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +000db510: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +000db520: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +000db530: 2d20 7061 636b 6167 655f 6c6f 6772 6f74 - package_logrot │ │ │ +000db540: 6174 655f 696e 7374 616c 6c65 640a 0a2d ate_installed..- │ │ │ +000db550: 206e 616d 653a 2045 6e73 7572 6520 6c6f name: Ensure lo │ │ │ +000db560: 6772 6f74 6174 6520 6973 2069 6e73 7461 grotate is insta │ │ │ +000db570: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62 lled. ansible.b │ │ │ +000db580: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +000db590: 2020 2020 6e61 6d65 3a20 6c6f 6772 6f74 name: logrot │ │ │ +000db5a0: 6174 650a 2020 2020 7374 6174 653a 2070 ate. state: p │ │ │ +000db5b0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ +000db5c0: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +000db5d0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +000db5e0: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ +000db5f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +000db600: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ +000db610: 4453 532d 5265 712d 3130 2e37 0a20 202d DSS-Req-10.7. - │ │ │ +000db620: 2050 4349 2d44 5353 7634 2d31 302e 350a PCI-DSSv4-10.5. │ │ │ +000db630: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ +000db640: 2e35 2e31 0a20 202d 2065 6e61 626c 655f .5.1. - enable_ │ │ │ +000db650: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000db660: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000db670: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000db680: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000db690: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000db6a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +000db6b0: 6167 655f 6c6f 6772 6f74 6174 655f 696e age_logrotate_in │ │ │ +000db6c0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000db6d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +000db780: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000db790: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000db810: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000db820: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000db830: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000db870: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000db880: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000db8a0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000db8c0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000db8d0: 7374 616c 6c5f 6c6f 6772 6f74 6174 650a  stall_logrotate.
│ │ │ +000db8e0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6c  .class install_l
│ │ │ +000db8f0: 6f67 726f 7461 7465 207b 0a20 2070 6163  ogrotate {.  pac
│ │ │ +000db900: 6b61 6765 207b 2027 6c6f 6772 6f74 6174  kage { 'logrotat
│ │ │ +000db910: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ +000db920: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +000db930: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +000db940: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +000db9f0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +000dba00: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +000dba10: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +000dba60: 5d0a 6e61 6d65 203d 2022 6c6f 6772 6f74  ].name = "logrot
│ │ │ +000dba70: 6174 6522 0a76 6572 7369 6f6e 203d 2022  ate".version = "
│ │ │ +000dba80: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 000dba90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -000e34a0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000e34b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000e3500: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -000e3510: 6d65 203d 2022 7273 7973 6c6f 672d 676e  me = "rsyslog-gn
│ │ │ -000e3520: 7574 6c73 220a 7665 7273 696f 6e20 3d20  utls".version = 
│ │ │ -000e3530: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000e35f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000e3600: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000e3680: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000e36a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000e36f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000e3720: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000e3740: 6c5f 7273 7973 6c6f 672d 676e 7574 6c73  l_rsyslog-gnutls
│ │ │ -000e3750: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000e3760: 7273 7973 6c6f 672d 676e 7574 6c73 207b  rsyslog-gnutls {
│ │ │ -000e3770: 0a20 2070 6163 6b61 6765 207b 2027 7273  .  package { 'rs
│ │ │ -000e3780: 7973 6c6f 672d 676e 7574 6c73 273a 0a20  yslog-gnutls':. 
│ │ │ -000e3790: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000e37a0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -000e37b0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000e37c0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -000e3870: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000e3880: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -000e3690: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000e36b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000e3700: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000e3710: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -000e3900: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000e3920: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000e3970: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000e39a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -000e39c0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000e39d0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -000e39e0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -000e39f0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -000e3a00: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000e3a10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000e3a20: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -000e3a30: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -000e3a40: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -000e3a50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -000e3a60: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ -000e3a70: 736c 6f67 2d67 6e75 746c 735f 696e 7374  slog-gnutls_inst
│ │ │ -000e3a80: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000e3a90: 6e73 7572 6520 7273 7973 6c6f 672d 676e  nsure rsyslog-gn
│ │ │ -000e3aa0: 7574 6c73 2069 7320 696e 7374 616c 6c65  utls is installe
│ │ │ -000e3ab0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000e3ac0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000e3ad0: 206e 616d 653a 2072 7379 736c 6f67 2d67   name: rsyslog-g
│ │ │ -000e3ae0: 6e75 746c 730a 2020 2020 7374 6174 653a  nutls.    state:
│ │ │ -000e3af0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000e3b00: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -000e3b10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000e3b20: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -000e3b30: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -000e3b40: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000e3b50: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000e3b60: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000e3b70: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000e3b80: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000e3b90: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000e3ba0: 5f72 7379 736c 6f67 2d67 6e75 746c 735f  _rsyslog-gnutls_
│ │ │ -000e3bb0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
low< │ │ │ +000e3580: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000e35d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -000e3910: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000e3930: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000e3980: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000e3990: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +000e3540: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000e3560: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000e35b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000e35c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +000e35f0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000e3600: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000e3610: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +000e3620: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +000e3630: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000e3640: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000e3650: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000e3660: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000e3670: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000e3680: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000e3690: 640a 2020 2d20 7061 636b 6167 655f 7273  d.  - package_rs
│ │ │ +000e36a0: 7973 6c6f 672d 676e 7574 6c73 5f69 6e73  yslog-gnutls_ins
│ │ │ +000e36b0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000e36c0: 456e 7375 7265 2072 7379 736c 6f67 2d67  Ensure rsyslog-g
│ │ │ +000e36d0: 6e75 746c 7320 6973 2069 6e73 7461 6c6c  nutls is install
│ │ │ +000e36e0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +000e36f0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000e3700: 2020 6e61 6d65 3a20 7273 7973 6c6f 672d    name: rsyslog-
│ │ │ +000e3710: 676e 7574 6c73 0a20 2020 2073 7461 7465  gnutls.    state
│ │ │ +000e3720: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000e3730: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +000e3740: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000e3750: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +000e3760: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +000e3770: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000e3780: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000e3790: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000e37a0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000e37b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000e37c0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000e37d0: 655f 7273 7973 6c6f 672d 676e 7574 6c73  e_rsyslog-gnutls
│ │ │ +000e37e0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000e38a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000e38b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000e3960: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000e3980: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000e39b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000e3940: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000e3950: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000e3970: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000e3990: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000e39a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000e39f0: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67 install_rsyslog │ │ │ +000e3a00: 2d67 6e75 746c 730a 0a63 6c61 7373 2069 -gnutls..class i │ │ │ +000e3a10: 6e73 7461 6c6c 5f72 7379 736c 6f67 2d67 nstall_rsyslog-g │ │ │ +000e3a20: 6e75 746c 7320 7b0a 2020 7061 636b 6167 nutls {. packag │ │ │ +000e3a30: 6520 7b20 2772 7379 736c 6f67 2d67 6e75 e { 'rsyslog-gnu │ │ │ +000e3a40: 746c 7327 3a0a 2020 2020 656e 7375 7265 tls':. ensure │ │ │ +000e3a50: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +000e3a60: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ +000e3b20: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000e3b30: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000e3b40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000e3b80: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000e3b90: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ +000e3ba0: 6c6f 672d 676e 7574 6c73 220a 7665 7273  log-gnutls".vers
│ │ │ +000e3bb0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000e4cd0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000e4ce0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000e4cf0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000e4d30: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000e4d40: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ -000e4d50: 6c6f 6722 0a76 6572 7369 6f6e 203d 2022  log".version = "
│ │ │ -000e4d60: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000e4d70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -000e4e20: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000e4e30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000e4eb0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000e4ed0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000e4f20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -000e4f70: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ -000e4f80: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ -000e4f90: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ -000e4fa0: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ -000e4fb0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000e4fc0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -000e4fe0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000e5080: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000e5090: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000e50a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -000e4ee0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000e4ef0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000e4f30: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000e4f40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -000e5140: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000e5190: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000e5120: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000e5150: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000e5170: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000e5180: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000e51a0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000e51b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000e51d0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000e51e0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000e51f0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000e5200: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000e5210: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -000e5220: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -000e5230: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000e5240: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000e5250: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000e5260: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000e5270: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000e5280: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000e5290: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -000e52a0: 7379 736c 6f67 5f69 6e73 7461 6c6c 6564  syslog_installed
│ │ │ -000e52b0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -000e52c0: 2072 7379 736c 6f67 2069 7320 696e 7374   rsyslog is inst
│ │ │ -000e52d0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000e52e0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000e52f0: 0a20 2020 206e 616d 653a 2072 7379 736c  .    name: rsysl
│ │ │ -000e5300: 6f67 0a20 2020 2073 7461 7465 3a20 7072  og.    state: pr
│ │ │ -000e5310: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000e5320: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -000e5330: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000e5340: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000e5350: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000e5360: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -000e5370: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000e5380: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000e5390: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000e53a0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000e53b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000e53c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000e53d0: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ -000e53e0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000e4cd0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +000e4ce0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ +000e4d90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000e4db0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000e4de0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000e4d70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000e4d80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000e4da0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000e4dc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000e4dd0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000e4e20: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000e4e30: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000e4e40: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000e4e50: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000e4e60: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000e4e70: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +000e4e80: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +000e4e90: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +000e4ea0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +000e4eb0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +000e4ec0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +000e4ed0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +000e4ee0: 2020 2d20 7061 636b 6167 655f 7273 7973 - package_rsys │ │ │ +000e4ef0: 6c6f 675f 696e 7374 616c 6c65 640a 0a2d log_installed..- │ │ │ +000e4f00: 206e 616d 653a 2045 6e73 7572 6520 7273 name: Ensure rs │ │ │ +000e4f10: 7973 6c6f 6720 6973 2069 6e73 7461 6c6c yslog is install │ │ │ +000e4f20: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ +000e4f30: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +000e4f40: 2020 6e61 6d65 3a20 7273 7973 6c6f 670a name: rsyslog. │ │ │ +000e4f50: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ +000e4f60: 6e74 0a20 2077 6865 6e3a 2027 226c 696e nt. when: '"lin │ │ │ +000e4f70: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ +000e4f80: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +000e4f90: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +000e4fa0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +000e4fb0: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +000e4fc0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +000e4fd0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +000e4fe0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +000e4ff0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +000e5000: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +000e5010: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +000e5020: 6765 5f72 7379 736c 6f67 5f69 6e73 7461 ge_rsyslog_insta │ │ │ +000e5030: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.

Remediation │ │ │ +000e50f0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000e5100: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000e5190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000e51b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000e51d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000e5200: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000e5210: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000e5220: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +000e5240: 6c6c 5f72 7379 736c 6f67 0a0a 636c 6173  ll_rsyslog..clas
│ │ │ +000e5250: 7320 696e 7374 616c 6c5f 7273 7973 6c6f  s install_rsyslo
│ │ │ +000e5260: 6720 7b0a 2020 7061 636b 6167 6520 7b20  g {.  package { 
│ │ │ +000e5270: 2772 7379 736c 6f67 273a 0a20 2020 2065  'rsyslog':.    e
│ │ │ +000e5280: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +000e5290: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +000e52a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000e5350: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +000e5360: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +000e5370: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000e5380: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000e53b0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000e53c0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000e53d0: 2272 7379 736c 6f67 220a 7665 7273 696f  "rsyslog".versio
│ │ │ +000e53e0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  000e53f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedi │ │ │ -000e6660: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000e6670: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000e6680: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000e66c0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -000e66d0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -000e66e0: 0a65 6e61 626c 6564 203d 205b 2272 7379  .enabled = ["rsy
│ │ │ -000e66f0: 736c 6f67 225d 0a3c 2f63 6f64 653e 3c2f  slog"].
Remediati │ │ │ -000e67b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000e67c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000e6840: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000e6850: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000e6870: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000e6880: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000e68a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000e68c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000e68f0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -000e6900: 626c 655f 7273 7973 6c6f 670a 0a63 6c61  ble_rsyslog..cla
│ │ │ -000e6910: 7373 2065 6e61 626c 655f 7273 7973 6c6f  ss enable_rsyslo
│ │ │ -000e6920: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ -000e6930: 7273 7973 6c6f 6727 3a0a 2020 2020 656e  rsyslog':.    en
│ │ │ -000e6940: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ -000e6950: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000e6960: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ -000e6970: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000e6980: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -000e6a30: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000e6a40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000e6ac0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000e6ae0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000e6b30: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000e6b60: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -000e6b80: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000e6b90: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -000e6ba0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -000e6bb0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -000e6bc0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -000e6bd0: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -000e6be0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000e6bf0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000e6c00: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000e6c10: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -000e6c20: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -000e6c30: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -000e6c40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -000e6c50: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -000e6c60: 736c 6f67 5f65 6e61 626c 6564 0a0a 2d20  slog_enabled..- 
│ │ │ -000e6c70: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ -000e6c80: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ -000e6c90: 6e61 626c 6520 7365 7276 6963 6520 7273  nable service rs
│ │ │ -000e6ca0: 7973 6c6f 670a 2020 626c 6f63 6b3a 0a0a  yslog.  block:..
│ │ │ -000e6cb0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -000e6cc0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000e6cd0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -000e6ce0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -000e6cf0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -000e6d00: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -000e6d10: 616d 653a 2045 6e61 626c 6520 7273 7973  ame: Enable rsys
│ │ │ -000e6d20: 6c6f 6720 5365 7276 6963 6520 2d20 456e  log Service - En
│ │ │ -000e6d30: 6162 6c65 2053 6572 7669 6365 2072 7379  able Service rsy
│ │ │ -000e6d40: 736c 6f67 0a20 2020 2061 6e73 6962 6c65  slog.    ansible
│ │ │ -000e6d50: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -000e6d60: 3a0a 2020 2020 2020 6e61 6d65 3a20 7273  :.      name: rs
│ │ │ -000e6d70: 7973 6c6f 670a 2020 2020 2020 656e 6162  yslog.      enab
│ │ │ -000e6d80: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -000e6d90: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -000e6da0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -000e6db0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -000e6dc0: 202d 2027 2272 7379 736c 6f67 2220 696e   - '"rsyslog" in
│ │ │ -000e6dd0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000e6de0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -000e6df0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000e6e00: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ -000e6e10: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000e6e20: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000e6e30: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000e6e40: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000e6e50: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000e6e60: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000e6e70: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000e6e80: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -000e6e90: 7273 7973 6c6f 675f 656e 6162 6c65 640a  rsyslog_enabled.
│ │ │ -000e6ea0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -000e6eb0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ -000e6ec0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -000e6ed0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000e6ee0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Complexity:< │ │ │ -000e6ad0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000e6af0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000e6b40: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000e6b50: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +000e6720: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000e6740: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000e6770: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000e6700: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000e6710: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000e6730: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000e6750: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000e6760: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000e67b0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000e67c0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000e67d0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000e67e0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000e67f0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000e6800: 302d 3533 2d41 552d 3428 3129 0a20 202d 0-53-AU-4(1). - │ │ │ +000e6810: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +000e6820: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ +000e6830: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000e6840: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000e6850: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000e6860: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000e6870: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000e6880: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +000e6890: 6963 655f 7273 7973 6c6f 675f 656e 6162 ice_rsyslog_enab │ │ │ +000e68a0: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ +000e68b0: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ +000e68c0: 6963 6520 2d20 456e 6162 6c65 2073 6572 ice - Enable ser │ │ │ +000e68d0: 7669 6365 2072 7379 736c 6f67 0a20 2062 vice rsyslog. b │ │ │ +000e68e0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ +000e68f0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000e6900: 6167 6520 6661 6374 730a 2020 2020 616e age facts. an │ │ │ +000e6910: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +000e6920: 636b 6167 655f 6661 6374 733a 0a20 2020 ckage_facts:. │ │ │ +000e6930: 2020 206d 616e 6167 6572 3a20 6175 746f manager: auto │ │ │ +000e6940: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162 .. - name: Enab │ │ │ +000e6950: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ +000e6960: 6365 202d 2045 6e61 626c 6520 5365 7276 ce - Enable Serv │ │ │ +000e6970: 6963 6520 7273 7973 6c6f 670a 2020 2020 ice rsyslog. │ │ │ +000e6980: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +000e6990: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +000e69a0: 616d 653a 2072 7379 736c 6f67 0a20 2020 ame: rsyslog. │ │ │ +000e69b0: 2020 2065 6e61 626c 6564 3a20 7472 7565 enabled: true │ │ │ +000e69c0: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ +000e69d0: 6172 7465 640a 2020 2020 2020 6d61 736b arted. mask │ │ │ +000e69e0: 6564 3a20 6661 6c73 650a 2020 2020 7768 ed: false. wh │ │ │ +000e69f0: 656e 3a0a 2020 2020 2d20 2722 7273 7973 en:. - '"rsys │ │ │ +000e6a00: 6c6f 6722 2069 6e20 616e 7369 626c 655f log" in ansible_ │ │ │ +000e6a10: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +000e6a20: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +000e6a30: 2d38 3030 2d35 332d 4155 2d34 2831 290a -800-53-AU-4(1). │ │ │ +000e6a40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +000e6a50: 434d 2d36 2861 290a 2020 2d20 656e 6162 CM-6(a). - enab │ │ │ +000e6a60: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +000e6a70: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +000e6a80: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +000e6a90: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +000e6aa0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +000e6ab0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ +000e6ac0: 6572 7669 6365 5f72 7379 736c 6f67 5f65 ervice_rsyslog_e │ │ │ +000e6ad0: 6e61 626c 6564 0a20 202d 2073 7065 6369 nabled. - speci │ │ │ +000e6ae0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b al_service_block │ │ │ +000e6af0: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ +000e6b00: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ +000e6b10: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +000e6b20: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c '.

< │ │ │ +000e6b30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +000e6be0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000e6bf0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000e6cc0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000e6cd0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000e6d20: 696e 636c 7564 6520 656e 6162 6c65 5f72  include enable_r
│ │ │ +000e6d30: 7379 736c 6f67 0a0a 636c 6173 7320 656e  syslog..class en
│ │ │ +000e6d40: 6162 6c65 5f72 7379 736c 6f67 207b 0a20  able_rsyslog {. 
│ │ │ +000e6d50: 2073 6572 7669 6365 207b 2772 7379 736c   service {'rsysl
│ │ │ +000e6d60: 6f67 273a 0a20 2020 2065 6e61 626c 6520  og':.    enable 
│ │ │ +000e6d70: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000e6d80: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000e6d90: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000e6e50: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000e6e60: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000e6e70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000e6e80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e6e90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e6ea0: 7365 2220 6964 3d22 6964 3238 3122 3e3c se" id="id281">< │ │ │ +000e6eb0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000e6ec0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000e6ed0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000e6ee0: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].Remediati │ │ │ -001f9c20: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -001f9c30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001f9cb0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -001f9cf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +000e6ca0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000e6cb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000e6cf0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000e6d00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ -001f9cc0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -001f9ce0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -001f9d10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -001f9d30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -001f9d60: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -001f9d70: 656d 6f76 655f 6468 6370 0a0a 636c 6173  emove_dhcp..clas
│ │ │ -001f9d80: 7320 7265 6d6f 7665 5f64 6863 7020 7b0a  s remove_dhcp {.
│ │ │ -001f9d90: 2020 7061 636b 6167 6520 7b20 2764 6863    package { 'dhc
│ │ │ -001f9da0: 7027 3a0a 2020 2020 656e 7375 7265 203d  p':.    ensure =
│ │ │ -001f9db0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -001f9dc0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -001f9e80: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -001f9e90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -001f9f20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -001f9f40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -001f9f50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001f9f60: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -001f9f70: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -001f9f90: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001f9fc0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -001f9fd0: 696e 7374 616c 6c20 4448 4350 2053 6572  install DHCP Ser
│ │ │ -001f9fe0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -001f9ff0: 7572 6520 6468 6370 2069 7320 7265 6d6f  ure dhcp is remo
│ │ │ -001fa000: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -001fa010: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -001fa020: 2020 2020 6e61 6d65 3a20 6468 6370 0a20      name: dhcp. 
│ │ │ -001fa030: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -001fa040: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -001fa050: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -001fa060: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001fa070: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -001fa080: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -001fa090: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -001fa0a0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -001fa0b0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -001fa0c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -001fa0d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -001fa0e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -001fa0f0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -001fa100: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -001fa110: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -001fa120: 6163 6b61 6765 5f64 6863 705f 7265 6d6f  ackage_dhcp_remo
│ │ │ -001fa130: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +001f9cb0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +001f9cc0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001f9cd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +001f9d10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001f9d20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +001f9d40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001f9d50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +001f9d70: 556e 696e 7374 616c 6c20 4448 4350 2053  Uninstall DHCP S
│ │ │ +001f9d80: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ +001f9d90: 6e73 7572 6520 6468 6370 2069 7320 7265  nsure dhcp is re
│ │ │ +001f9da0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +001f9db0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +001f9dc0: 3a0a 2020 2020 6e61 6d65 3a20 6468 6370  :.    name: dhcp
│ │ │ +001f9dd0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +001f9de0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +001f9df0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +001f9e00: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001f9e10: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +001f9e20: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001f9e30: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +001f9e40: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +001f9e50: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +001f9e60: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +001f9e70: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +001f9e80: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +001f9e90: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +001f9ea0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001f9eb0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001f9ec0: 2070 6163 6b61 6765 5f64 6863 705f 7265   package_dhcp_re
│ │ │ +001f9ed0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +001f9f90: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +001f9fa0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +001fa030: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +001fa050: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +001fa060: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001fa070: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +001fa080: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +001fa0a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +001fa0d0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +001fa0e0: 6d6f 7665 5f64 6863 700a 0a63 6c61 7373  move_dhcp..class
│ │ │ +001fa0f0: 2072 656d 6f76 655f 6468 6370 207b 0a20   remove_dhcp {. 
│ │ │ +001fa100: 2070 6163 6b61 6765 207b 2027 6468 6370   package { 'dhcp
│ │ │ +001fa110: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +001fa120: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +001fa130: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -001faec0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -001faed0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -001faf70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001faf80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001fafd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -001fb010: 6e63 6c75 6465 2072 656d 6f76 655f 6b65  nclude remove_ke
│ │ │ -001fb020: 610a 0a63 6c61 7373 2072 656d 6f76 655f  a..class remove_
│ │ │ -001fb030: 6b65 6120 7b0a 2020 7061 636b 6167 6520  kea {.  package 
│ │ │ -001fb040: 7b20 276b 6561 273a 0a20 2020 2065 6e73  { 'kea':.    ens
│ │ │ -001fb050: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -001fb060: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -001fb120: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -001fb130: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -001faf60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001faf90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001fafa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001fafe0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -001faff0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -001fb1e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001fb200: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001fb230: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001fb1c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001fb1d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001fb1f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001fb210: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001fb220: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001fb260: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001fb270: 3a20 2755 6e69 6e73 7461 6c6c 206b 6561 : 'Uninstall kea │ │ │ -001fb280: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -001fb290: 206b 6561 2069 7320 7265 6d6f 7665 6427 kea is removed' │ │ │ -001fb2a0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -001fb2b0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -001fb2c0: 6e61 6d65 3a20 6b65 610a 2020 2020 7374 name: kea. st │ │ │ -001fb2d0: 6174 653a 2061 6273 656e 740a 2020 7461 ate: absent. ta │ │ │ -001fb2e0: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -001fb2f0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -001fb300: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001fb310: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001fb320: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001fb330: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001fb340: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -001fb350: 6167 655f 6b65 615f 7265 6d6f 7665 640a age_kea_removed. │ │ │ +001faec0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +001faed0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +001faf70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +001fb010: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +001fb020: 6c20 6b65 6120 5061 636b 6167 653a 2045  l kea Package: E
│ │ │ +001fb030: 6e73 7572 6520 6b65 6120 6973 2072 656d  nsure kea is rem
│ │ │ +001fb040: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001fb050: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001fb060: 0a20 2020 206e 616d 653a 206b 6561 0a20  .    name: kea. 
│ │ │ +001fb070: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +001fb080: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +001fb090: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +001fb0a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +001fb0b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +001fb0c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +001fb0d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001fb0e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001fb0f0: 2070 6163 6b61 6765 5f6b 6561 5f72 656d   package_kea_rem
│ │ │ +001fb100: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation
│ │ │ +001fb1c0: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +001fb1d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +001fb2a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ +001faf60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001faf90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001fafa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001fafe0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +001faff0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +001fb260: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +001fb280: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +001fb2d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001fb2e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +001fb310: 6f76 655f 6b65 610a 0a63 6c61 7373 2072  ove_kea..class r
│ │ │ +001fb320: 656d 6f76 655f 6b65 6120 7b0a 2020 7061  emove_kea {.  pa
│ │ │ +001fb330: 636b 6167 6520 7b20 276b 6561 273a 0a20  ckage { 'kea':. 
│ │ │ +001fb340: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +001fb350: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  001fb360: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Rem │ │ │ -001ffe10: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -001ffe20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001ffe30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001ffeb0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001ffee0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001fff00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001fff10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001fff30: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001fff40: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -001fff60: 6c75 6465 2072 656d 6f76 655f 7365 6e64  lude remove_send
│ │ │ -001fff70: 6d61 696c 0a0a 636c 6173 7320 7265 6d6f  mail..class remo
│ │ │ -001fff80: 7665 5f73 656e 646d 6169 6c20 7b0a 2020  ve_sendmail {.  
│ │ │ -001fff90: 7061 636b 6167 6520 7b20 2773 656e 646d  package { 'sendm
│ │ │ -001fffa0: 6169 6c27 3a0a 2020 2020 656e 7375 7265  ail':.    ensure
│ │ │ -001fffb0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -001fffc0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00200080: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00200090: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00200110: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00200120: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00200130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00200170: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00200180: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002001a0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002001b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -002001d0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002001e0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002001f0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00200200: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00200210: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00200220: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00200230: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00200240: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00200250: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00200260: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00200270: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00200280: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00200290: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002002a0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002002b0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002002c0: 202d 2070 6163 6b61 6765 5f73 656e 646d   - package_sendm
│ │ │ -002002d0: 6169 6c5f 7265 6d6f 7665 640a 0a2d 206e  ail_removed..- n
│ │ │ -002002e0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002002f0: 5365 6e64 6d61 696c 2050 6163 6b61 6765  Sendmail Package
│ │ │ -00200300: 3a20 456e 7375 7265 2073 656e 646d 6169  : Ensure sendmai
│ │ │ -00200310: 6c20 6973 2072 656d 6f76 6564 270a 2020  l is removed'.  
│ │ │ -00200320: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00200330: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00200340: 653a 2073 656e 646d 6169 6c0a 2020 2020  e: sendmail.    
│ │ │ -00200350: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00200360: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00200370: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00200380: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00200390: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002003a0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002003b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002003c0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002003d0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002003e0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002003f0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00200400: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00200410: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00200420: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00200430: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00200440: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -00200450: 656e 646d 6169 6c5f 7265 6d6f 7665 640a  endmail_removed.
│ │ │ +001ffe10: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +001ffe20: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +001ffe30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +001ffed0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001fff20: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +001fff60: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +001fff70: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +001fff80: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +001fff90: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +001fffa0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +001fffb0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001fffc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001fffd0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001fffe0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001ffff0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00200000: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00200010: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00200020: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00200030: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00200040: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00200050: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00200060: 5f73 656e 646d 6169 6c5f 7265 6d6f 7665  _sendmail_remove
│ │ │ +00200070: 640a 0a2d 206e 616d 653a 2027 556e 696e  d..- name: 'Unin
│ │ │ +00200080: 7374 616c 6c20 5365 6e64 6d61 696c 2050  stall Sendmail P
│ │ │ +00200090: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ +002000a0: 656e 646d 6169 6c20 6973 2072 656d 6f76  endmail is remov
│ │ │ +002000b0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +002000c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002000d0: 2020 206e 616d 653a 2073 656e 646d 6169     name: sendmai
│ │ │ +002000e0: 6c0a 2020 2020 7374 6174 653a 2061 6273  l.    state: abs
│ │ │ +002000f0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00200100: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00200110: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00200120: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00200130: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00200140: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00200150: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00200160: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00200170: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +00200180: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00200190: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002001a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002001b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002001c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002001d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002001e0: 6b61 6765 5f73 656e 646d 6169 6c5f 7265  kage_sendmail_re
│ │ │ +002001f0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +002002b0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002002c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00200380: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00200390: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ +001ffeb0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001ffee0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001fff00: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001fff10: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001fff30: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001fff40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00200350: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00200370: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002003a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002003c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002003f0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00200400: 6d6f 7665 5f73 656e 646d 6169 6c0a 0a63  move_sendmail..c
│ │ │ +00200410: 6c61 7373 2072 656d 6f76 655f 7365 6e64  lass remove_send
│ │ │ +00200420: 6d61 696c 207b 0a20 2070 6163 6b61 6765  mail {.  package
│ │ │ +00200430: 207b 2027 7365 6e64 6d61 696c 273a 0a20   { 'sendmail':. 
│ │ │ +00200440: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00200450: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00200460: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediati │ │ │ -00202750: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00202760: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00202770: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -002027c0: 0a6e 616d 6520 3d20 2263 6872 6f6e 7922  .name = "chrony"
│ │ │ -002027d0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -002027e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00202890: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002028a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00202940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00202950: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002029a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -002029e0: 6c75 6465 2069 6e73 7461 6c6c 5f63 6872  lude install_chr
│ │ │ -002029f0: 6f6e 790a 0a63 6c61 7373 2069 6e73 7461  ony..class insta
│ │ │ -00202a00: 6c6c 5f63 6872 6f6e 7920 7b0a 2020 7061  ll_chrony {.  pa
│ │ │ -00202a10: 636b 6167 6520 7b20 2763 6872 6f6e 7927  ckage { 'chrony'
│ │ │ -00202a20: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00202a30: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00202a40: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00202b00: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00202b10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00202b90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00202bd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ -00202930: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00202960: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00202970: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002029b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -002029c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -00202ba0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00202bc0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00202bf0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00202c10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00202c40: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00202c50: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00202c60: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00202c70: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00202c80: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00202c90: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -00202ca0: 2d31 302e 340a 2020 2d20 5043 492d 4453  -10.4.  - PCI-DS
│ │ │ -00202cb0: 5376 342d 3130 2e36 0a20 202d 2050 4349  Sv4-10.6.  - PCI
│ │ │ -00202cc0: 2d44 5353 7634 2d31 302e 362e 310a 2020  -DSSv4-10.6.1.  
│ │ │ -00202cd0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00202ce0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00202cf0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00202d00: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00202d10: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00202d20: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00202d30: 0a20 202d 2070 6163 6b61 6765 5f63 6872  .  - package_chr
│ │ │ -00202d40: 6f6e 795f 696e 7374 616c 6c65 640a 0a2d  ony_installed..-
│ │ │ -00202d50: 206e 616d 653a 2045 6e73 7572 6520 6368   name: Ensure ch
│ │ │ -00202d60: 726f 6e79 2069 7320 696e 7374 616c 6c65  rony is installe
│ │ │ -00202d70: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -00202d80: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00202d90: 206e 616d 653a 2063 6872 6f6e 790a 2020   name: chrony.  
│ │ │ -00202da0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -00202db0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00202dc0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00202dd0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00202de0: 270a 2020 7461 6773 3a0a 2020 2d20 5043  '.  tags:.  - PC
│ │ │ -00202df0: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ -00202e00: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00202e10: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ -00202e20: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ -00202e30: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00202e40: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00202e50: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00202e60: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00202e70: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00202e80: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00202e90: 636b 6167 655f 6368 726f 6e79 5f69 6e73  ckage_chrony_ins
│ │ │ -00202ea0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +002027e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002027f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00202800: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00202840: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00202850: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00202870: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00202890: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +002028a0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +002028b0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +002028c0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +002028d0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +002028e0: 3a0a 2020 2d20 5043 492d 4453 532d 5265  :.  - PCI-DSS-Re
│ │ │ +002028f0: 712d 3130 2e34 0a20 202d 2050 4349 2d44  q-10.4.  - PCI-D
│ │ │ +00202900: 5353 7634 2d31 302e 360a 2020 2d20 5043  SSv4-10.6.  - PC
│ │ │ +00202910: 492d 4453 5376 342d 3130 2e36 2e31 0a20  I-DSSv4-10.6.1. 
│ │ │ +00202920: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00202930: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00202940: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00202950: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00202960: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00202970: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00202980: 640a 2020 2d20 7061 636b 6167 655f 6368  d.  - package_ch
│ │ │ +00202990: 726f 6e79 5f69 6e73 7461 6c6c 6564 0a0a  rony_installed..
│ │ │ +002029a0: 2d20 6e61 6d65 3a20 456e 7375 7265 2063  - name: Ensure c
│ │ │ +002029b0: 6872 6f6e 7920 6973 2069 6e73 7461 6c6c  hrony is install
│ │ │ +002029c0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +002029d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +002029e0: 2020 6e61 6d65 3a20 6368 726f 6e79 0a20    name: chrony. 
│ │ │ +002029f0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +00202a00: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +00202a10: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00202a20: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00202a30: 7327 0a20 2074 6167 733a 0a20 202d 2050  s'.  tags:.  - P
│ │ │ +00202a40: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ +00202a50: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +00202a60: 2e36 0a20 202d 2050 4349 2d44 5353 7634  .6.  - PCI-DSSv4
│ │ │ +00202a70: 2d31 302e 362e 310a 2020 2d20 656e 6162  -10.6.1.  - enab
│ │ │ +00202a80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00202a90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00202aa0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00202ab0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00202ac0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00202ad0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00202ae0: 6163 6b61 6765 5f63 6872 6f6e 795f 696e  ackage_chrony_in
│ │ │ +00202af0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00202b00: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00202bb0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00202bc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00202c40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00202c50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00202c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00202ca0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00202cb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00202cd0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00202cf0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00202d00: 7374 616c 6c5f 6368 726f 6e79 0a0a 636c  stall_chrony..cl
│ │ │ +00202d10: 6173 7320 696e 7374 616c 6c5f 6368 726f  ass install_chro
│ │ │ +00202d20: 6e79 207b 0a20 2070 6163 6b61 6765 207b  ny {.  package {
│ │ │ +00202d30: 2027 6368 726f 6e79 273a 0a20 2020 2065   'chrony':.    e
│ │ │ +00202d40: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +00202d50: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +00202d60: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00202e10: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00202e20: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00202e30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00202e40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00202e70: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +00202e80: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +00202e90: 2263 6872 6f6e 7922 0a76 6572 7369 6f6e  "chrony".version
│ │ │ +00202ea0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remedi │ │ │ -0020d0a0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0020d0b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0020d0c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0020d0f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0020d160: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0020d180: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0020d1b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0020d140: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0020d150: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0020d190: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0020d1a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -0020d1f0: 6520 7265 6d6f 7665 5f78 696e 6574 640a e remove_xinetd. │ │ │ -0020d200: 0a63 6c61 7373 2072 656d 6f76 655f 7869 .class remove_xi │ │ │ -0020d210: 6e65 7464 207b 0a20 2070 6163 6b61 6765 netd {. package │ │ │ -0020d220: 207b 2027 7869 6e65 7464 273a 0a20 2020 { 'xinetd':. │ │ │ -0020d230: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -0020d240: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.

Re │ │ │ -0020d300: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0020d310: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0020d3b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0020d3c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0020d410: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0020d450: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0020d460: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0020d470: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0020d480: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0020d490: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0020d4a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0020d4b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0020d4c0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0020d4d0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0020d4e0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -0020d4f0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -0020d500: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -0020d510: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0020d520: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0020d530: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0020d540: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -0020d550: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0020d560: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0020d570: 6b61 6765 5f78 696e 6574 645f 7265 6d6f  kage_xinetd_remo
│ │ │ -0020d580: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ -0020d590: 696e 7374 616c 6c20 7869 6e65 7464 2070  install xinetd p
│ │ │ -0020d5a0: 6163 6b61 6765 2069 6620 6e6f 7420 7573  ackage if not us
│ │ │ -0020d5b0: 6564 2062 7920 6e65 7477 6f72 6b20 7365  ed by network se
│ │ │ -0020d5c0: 7276 6963 6573 3a20 456e 7375 7265 2078  rvices: Ensure x
│ │ │ -0020d5d0: 696e 6574 6420 6973 0a20 2020 2072 656d  inetd is.    rem
│ │ │ -0020d5e0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0020d5f0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0020d600: 0a20 2020 206e 616d 653a 2078 696e 6574  .    name: xinet
│ │ │ -0020d610: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ -0020d620: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -0020d630: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0020d640: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0020d650: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0020d660: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0020d670: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0020d680: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0020d690: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0020d6a0: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ -0020d6b0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -0020d6c0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ -0020d6d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0020d6e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0020d6f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0020d700: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -0020d710: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0020d720: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0020d730: 7061 636b 6167 655f 7869 6e65 7464 5f72  package_xinetd_r
│ │ │ -0020d740: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
C │ │ │ -0020d3a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0020d3d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0020d3e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0020d420: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0020d430: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +0020d160: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0020d180: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0020d1b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0020d140: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0020d150: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0020d170: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0020d190: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0020d1a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0020d1e0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0020d1f0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0020d200: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0020d210: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0020d220: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0020d230: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0020d240: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0020d250: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0020d260: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +0020d270: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +0020d280: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +0020d290: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +0020d2a0: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +0020d2b0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0020d2c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0020d2d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0020d2e0: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +0020d2f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +0020d300: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +0020d310: 5f78 696e 6574 645f 7265 6d6f 7665 640a _xinetd_removed. │ │ │ +0020d320: 0a2d 206e 616d 653a 2027 556e 696e 7374 .- name: 'Uninst │ │ │ +0020d330: 616c 6c20 7869 6e65 7464 2070 6163 6b61 all xinetd packa │ │ │ +0020d340: 6765 2069 6620 6e6f 7420 7573 6564 2062 ge if not used b │ │ │ +0020d350: 7920 6e65 7477 6f72 6b20 7365 7276 6963 y network servic │ │ │ +0020d360: 6573 3a20 456e 7375 7265 2078 696e 6574 es: Ensure xinet │ │ │ +0020d370: 6420 6973 0a20 2020 2072 656d 6f76 6564 d is. removed │ │ │ +0020d380: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ +0020d390: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +0020d3a0: 206e 616d 653a 2078 696e 6574 640a 2020 name: xinetd. │ │ │ +0020d3b0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0020d3c0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +0020d3d0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +0020d3e0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +0020d3f0: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +0020d400: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ +0020d410: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +0020d420: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ +0020d430: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ +0020d440: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +0020d450: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +0020d460: 2d32 2e32 2e34 0a20 202d 2064 6973 6162 -2.2.4. - disab │ │ │ +0020d470: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0020d480: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0020d490: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0020d4a0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ +0020d4b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0020d4c0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +0020d4d0: 6167 655f 7869 6e65 7464 5f72 656d 6f76 age_xinetd_remov │ │ │ +0020d4e0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed. │ │ │ +0020d4f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0020d5a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0020d5b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0020d630: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0020d650: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0020d6a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0020d6d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0020d6f0: 655f 7869 6e65 7464 0a0a 636c 6173 7320  e_xinetd..class 
│ │ │ +0020d700: 7265 6d6f 7665 5f78 696e 6574 6420 7b0a  remove_xinetd {.
│ │ │ +0020d710: 2020 7061 636b 6167 6520 7b20 2778 696e    package { 'xin
│ │ │ +0020d720: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ +0020d730: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0020d740: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Rem
│ │ │ -0020ed70: 6564 6961 7469 6f6e 2050 7570 7065 7420  ediation Puppet 
│ │ │ -0020ed80: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ -0020ed90: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disr │ │ │ +0020d660: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0020d670: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0020d6b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0020d6c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ -0020ee10: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0020ee40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0020ee60: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0020ee70: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0020ee90: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0020eea0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0020eec0: 6c75 6465 2072 656d 6f76 655f 7970 6269  lude remove_ypbi
│ │ │ -0020eed0: 6e64 2d6d 740a 0a63 6c61 7373 2072 656d  nd-mt..class rem
│ │ │ -0020eee0: 6f76 655f 7970 6269 6e64 2d6d 7420 7b0a  ove_ypbind-mt {.
│ │ │ -0020eef0: 2020 7061 636b 6167 6520 7b20 2779 7062    package { 'ypb
│ │ │ -0020ef00: 696e 642d 6d74 273a 0a20 2020 2065 6e73  ind-mt':.    ens
│ │ │ -0020ef10: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0020ef20: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0020efe0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0020eff0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0020f0a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0020f0c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0020f0f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0020f080: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0020f090: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0020f0b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0020f0d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0020f0e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0020f120: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0020f130: 3a20 2752 656d 6f76 6520 4e49 5320 436c : 'Remove NIS Cl │ │ │ -0020f140: 6965 6e74 3a20 456e 7375 7265 2079 7062 ient: Ensure ypb │ │ │ -0020f150: 696e 642d 6d74 2069 7320 7265 6d6f 7665 ind-mt is remove │ │ │ -0020f160: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -0020f170: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -0020f180: 2020 6e61 6d65 3a20 7970 6269 6e64 2d6d name: ypbind-m │ │ │ -0020f190: 740a 2020 2020 7374 6174 653a 2061 6273 t. state: abs │ │ │ -0020f1a0: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -0020f1b0: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -0020f1c0: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -0020f1d0: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -0020f1e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0020f1f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0020f200: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0020f210: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0020f220: 640a 2020 2d20 7061 636b 6167 655f 7970 d. - package_yp │ │ │ -0020f230: 6269 6e64 5f72 656d 6f76 6564 0a20 202d bind_removed. - │ │ │ -0020f240: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974 unknown_severit │ │ │ -0020f250: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c y.< │ │ │ +0020ed70: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +0020ed80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0020ed90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0020ee30: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0020ee80: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0020eec0: 616d 653a 2027 5265 6d6f 7665 204e 4953  ame: 'Remove NIS
│ │ │ +0020eed0: 2043 6c69 656e 743a 2045 6e73 7572 6520   Client: Ensure 
│ │ │ +0020eee0: 7970 6269 6e64 2d6d 7420 6973 2072 656d  ypbind-mt is rem
│ │ │ +0020eef0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0020ef00: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0020ef10: 0a20 2020 206e 616d 653a 2079 7062 696e  .    name: ypbin
│ │ │ +0020ef20: 642d 6d74 0a20 2020 2073 7461 7465 3a20  d-mt.    state: 
│ │ │ +0020ef30: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0020ef40: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0020ef50: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0020ef60: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +0020ef70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0020ef80: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0020ef90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0020efa0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0020efb0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0020efc0: 5f79 7062 696e 645f 7265 6d6f 7665 640a  _ypbind_removed.
│ │ │ +0020efd0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +0020efe0: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation
│ │ │ +0020f0a0: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +0020f0b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +0020f180: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Co │ │ │ +0020ee10: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0020ee40: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0020ee60: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0020ee70: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0020ee90: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0020eea0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +0020f140: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0020f160: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0020f1b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0020f1c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0020f1f0: 6f76 655f 7970 6269 6e64 2d6d 740a 0a63  ove_ypbind-mt..c
│ │ │ +0020f200: 6c61 7373 2072 656d 6f76 655f 7970 6269  lass remove_ypbi
│ │ │ +0020f210: 6e64 2d6d 7420 7b0a 2020 7061 636b 6167  nd-mt {.  packag
│ │ │ +0020f220: 6520 7b20 2779 7062 696e 642d 6d74 273a  e { 'ypbind-mt':
│ │ │ +0020f230: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0020f240: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0020f250: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0020f260: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Reme │ │ │ -00210a00: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00210a10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00210aa0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00210ab0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00210ad0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00210af0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00210b00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00210b40: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00210b50: 7564 6520 7265 6d6f 7665 5f79 7073 6572  ude remove_ypser
│ │ │ -00210b60: 760a 0a63 6c61 7373 2072 656d 6f76 655f  v..class remove_
│ │ │ -00210b70: 7970 7365 7276 207b 0a20 2070 6163 6b61  ypserv {.  packa
│ │ │ -00210b80: 6765 207b 2027 7970 7365 7276 273a 0a20  ge { 'ypserv':. 
│ │ │ -00210b90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00210ba0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00210bb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00210c60: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00210c70: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00210c80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00210d50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00210d60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00210db0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00210dc0: 6c6c 2079 7073 6572 7620 5061 636b 6167  ll ypserv Packag
│ │ │ -00210dd0: 653a 2045 6e73 7572 6520 7970 7365 7276  e: Ensure ypserv
│ │ │ -00210de0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00210df0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00210e00: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00210e10: 3a20 7970 7365 7276 0a20 2020 2073 7461  : ypserv.    sta
│ │ │ -00210e20: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00210e30: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00210e40: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00210e50: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00210e60: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00210e70: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ -00210e80: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ -00210e90: 3129 2863 290a 2020 2d20 5043 492d 4453  1)(c).  - PCI-DS
│ │ │ -00210ea0: 532d 5265 712d 322e 322e 320a 2020 2d20  S-Req-2.2.2.  - 
│ │ │ -00210eb0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -00210ec0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -00210ed0: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ -00210ee0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -00210ef0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -00210f00: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00210f10: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00210f20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00210f30: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00210f40: 7970 7365 7276 5f72 656d 6f76 6564 0a3c  ypserv_removed.<
│ │ │ +00210a00: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00210a10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00210a20: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -00210d30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00210d40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00210d80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00210d90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +00210aa0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00210ad0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00210af0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00210b00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00210b20: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00210b30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00210b50: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2079  me: 'Uninstall y
│ │ │ +00210b60: 7073 6572 7620 5061 636b 6167 653a 2045  pserv Package: E
│ │ │ +00210b70: 6e73 7572 6520 7970 7365 7276 2069 7320  nsure ypserv is 
│ │ │ +00210b80: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00210b90: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00210ba0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7970  ge:.    name: yp
│ │ │ +00210bb0: 7365 7276 0a20 2020 2073 7461 7465 3a20  serv.    state: 
│ │ │ +00210bc0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00210bd0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00210be0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00210bf0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00210c00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00210c10: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ +00210c20: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ +00210c30: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +00210c40: 712d 322e 322e 320a 2020 2d20 5043 492d  q-2.2.2.  - PCI-
│ │ │ +00210c50: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00210c60: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +00210c70: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00210c80: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +00210c90: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +00210ca0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00210cb0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00210cc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00210cd0: 2020 2d20 7061 636b 6167 655f 7970 7365    - package_ypse
│ │ │ +00210ce0: 7276 5f72 656d 6f76 6564 0a3c 2f63 6f64  rv_removed.
Remed │ │ │ +00210da0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00210db0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00210e60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00210e80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00210eb0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00210e40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00210e50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00210e70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00210e90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00210ea0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00210ee0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00210ef0: 6465 2072 656d 6f76 655f 7970 7365 7276 de remove_ypserv │ │ │ +00210f00: 0a0a 636c 6173 7320 7265 6d6f 7665 5f79 ..class remove_y │ │ │ +00210f10: 7073 6572 7620 7b0a 2020 7061 636b 6167 pserv {. packag │ │ │ +00210f20: 6520 7b20 2779 7073 6572 7627 3a0a 2020 e { 'ypserv':. │ │ │ +00210f30: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ +00210f40: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ 00210f50: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>Remediation │ │ │ -00212a90: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00212aa0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00212b20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00212b40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00212b90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00212bc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00212b30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00212b50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00212ba0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00212bb0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -00212be0: 7665 5f72 7368 2d73 6572 7665 720a 0a63  ve_rsh-server..c
│ │ │ -00212bf0: 6c61 7373 2072 656d 6f76 655f 7273 682d  lass remove_rsh-
│ │ │ -00212c00: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ -00212c10: 6765 207b 2027 7273 682d 7365 7276 6572  ge { 'rsh-server
│ │ │ -00212c20: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00212c30: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00212c40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00212d00: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00212d10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00212da0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00212dc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00212de0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00212e10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00212e20: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00212e50: 6e73 7461 6c6c 2072 7368 2d73 6572 7665  nstall rsh-serve
│ │ │ -00212e60: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ -00212e70: 6520 7273 682d 7365 7276 6572 2069 7320  e rsh-server is 
│ │ │ -00212e80: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00212e90: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00212ea0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ -00212eb0: 682d 7365 7276 6572 0a20 2020 2073 7461  h-server.    sta
│ │ │ -00212ec0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00212ed0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00212ee0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00212ef0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00212f00: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00212f10: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ -00212f20: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ -00212f30: 3129 2863 290a 2020 2d20 5043 492d 4453  1)(c).  - PCI-DS
│ │ │ -00212f40: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00212f50: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00212f60: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00212f70: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -00212f80: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -00212f90: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00212fa0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -00212fb0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00212fc0: 2d20 7061 636b 6167 655f 7273 682d 7365  - package_rsh-se
│ │ │ -00212fd0: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
Complexity: │ │ │ +00212b30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00212b50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00212b70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00212ba0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00212bb0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +00212be0: 6e73 7461 6c6c 2072 7368 2d73 6572 7665  nstall rsh-serve
│ │ │ +00212bf0: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ +00212c00: 6520 7273 682d 7365 7276 6572 2069 7320  e rsh-server is 
│ │ │ +00212c10: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00212c20: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00212c30: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ +00212c40: 682d 7365 7276 6572 0a20 2020 2073 7461  h-server.    sta
│ │ │ +00212c50: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00212c60: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00212c70: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00212c80: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00212c90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00212ca0: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ +00212cb0: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ +00212cc0: 3129 2863 290a 2020 2d20 5043 492d 4453  1)(c).  - PCI-DS
│ │ │ +00212cd0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00212ce0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ +00212cf0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00212d00: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +00212d10: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +00212d20: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00212d30: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00212d40: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00212d50: 2d20 7061 636b 6167 655f 7273 682d 7365  - package_rsh-se
│ │ │ +00212d60: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +00212d80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00212e20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00212e30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00212e40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00212ec0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00212ef0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00212f10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00212f20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00212f40: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00212f50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00212f70: 6c75 6465 2072 656d 6f76 655f 7273 682d  lude remove_rsh-
│ │ │ +00212f80: 7365 7276 6572 0a0a 636c 6173 7320 7265  server..class re
│ │ │ +00212f90: 6d6f 7665 5f72 7368 2d73 6572 7665 7220  move_rsh-server 
│ │ │ +00212fa0: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +00212fb0: 7368 2d73 6572 7665 7227 3a0a 2020 2020  sh-server':.    
│ │ │ +00212fc0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00212fd0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00212ff0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediat │ │ │ -002141d0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002141e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00214260: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00214270: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00214280: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002142c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002142d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002142f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00214300: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00214320: 7265 6d6f 7665 5f72 7368 0a0a 636c 6173  remove_rsh..clas
│ │ │ -00214330: 7320 7265 6d6f 7665 5f72 7368 207b 0a20  s remove_rsh {. 
│ │ │ -00214340: 2070 6163 6b61 6765 207b 2027 7273 6827   package { 'rsh'
│ │ │ -00214350: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00214360: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00214370: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00214380: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00214430: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00214440: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -002144c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002144e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00214530: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00214560: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002144d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002144f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00214540: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00214550: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -00214580: 7374 616c 6c20 7273 6820 5061 636b 6167  stall rsh Packag
│ │ │ -00214590: 653a 2045 6e73 7572 6520 7273 6820 6973  e: Ensure rsh is
│ │ │ -002145a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -002145b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -002145c0: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ -002145d0: 7368 0a20 2020 2073 7461 7465 3a20 6162  sh.    state: ab
│ │ │ -002145e0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -002145f0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00214600: 312e 3133 0a20 202d 2050 4349 2d44 5353  1.13.  - PCI-DSS
│ │ │ -00214610: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -00214620: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ -00214630: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00214640: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00214650: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00214660: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00214670: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00214680: 6163 6b61 6765 5f72 7368 5f72 656d 6f76  ackage_rsh_remov
│ │ │ -00214690: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ -002146a0: 6576 6572 6974 790a 3c2f 636f 6465 3e3c  everity.<
│ │ │ +002141d0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +002141e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +002141f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00214200: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00214210: 7365 2220 6964 3d22 6964 3731 3122 3e3c se" id="id711">< │ │ │ +00214220: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00214230: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00214240: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00214250: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00214260: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00214270: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00214280: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002142c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002142d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002142f0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00214300: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00214320: 2755 6e69 6e73 7461 6c6c 2072 7368 2050 'Uninstall rsh P │ │ │ +00214330: 6163 6b61 6765 3a20 456e 7375 7265 2072 ackage: Ensure r │ │ │ +00214340: 7368 2069 7320 7265 6d6f 7665 6427 0a20 sh is removed'. │ │ │ +00214350: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00214360: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +00214370: 6d65 3a20 7273 680a 2020 2020 7374 6174 me: rsh. stat │ │ │ +00214380: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ +00214390: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ +002143a0: 3731 2d33 2e31 2e31 330a 2020 2d20 5043 71-3.1.13. - PC │ │ │ +002143b0: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ +002143c0: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ +002143d0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +002143e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +002143f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00214400: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +00214410: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00214420: 2020 2d20 7061 636b 6167 655f 7273 685f - package_rsh_ │ │ │ +00214430: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e removed. - unkn │ │ │ +00214440: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63 own_severity.
│ │ │ +00214460: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00214500: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00214510: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00214520: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +002145a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002145d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002145f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00214600: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00214620: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00214630: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00214650: 6c75 6465 2072 656d 6f76 655f 7273 680a  lude remove_rsh.
│ │ │ +00214660: 0a63 6c61 7373 2072 656d 6f76 655f 7273  .class remove_rs
│ │ │ +00214670: 6820 7b0a 2020 7061 636b 6167 6520 7b20  h {.  package { 
│ │ │ +00214680: 2772 7368 273a 0a20 2020 2065 6e73 7572  'rsh':.    ensur
│ │ │ +00214690: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +002146a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  002146b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation Pup │ │ │ -002159d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002159e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00215ab0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00215ac0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00215b10: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00215b20: 7461 6c6b 2d73 6572 7665 720a 0a63 6c61  talk-server..cla
│ │ │ -00215b30: 7373 2072 656d 6f76 655f 7461 6c6b 2d73  ss remove_talk-s
│ │ │ -00215b40: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ -00215b50: 6520 7b20 2774 616c 6b2d 7365 7276 6572  e { 'talk-server
│ │ │ -00215b60: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00215b70: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00215b80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00215c40: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00215c50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00215d20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ -00215a90: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00215aa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00215ae0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00215af0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00215ce0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00215d00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00215d50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00215d60: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00215d90: 6e73 7461 6c6c 2074 616c 6b2d 7365 7276  nstall talk-serv
│ │ │ -00215da0: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -00215db0: 7265 2074 616c 6b2d 7365 7276 6572 2069  re talk-server i
│ │ │ -00215dc0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00215dd0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00215de0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00215df0: 7461 6c6b 2d73 6572 7665 720a 2020 2020  talk-server.    
│ │ │ -00215e00: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00215e10: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -00215e20: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00215e30: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00215e40: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00215e50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00215e60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00215e70: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00215e80: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00215e90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00215ea0: 2020 2d20 7061 636b 6167 655f 7461 6c6b    - package_talk
│ │ │ -00215eb0: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +002159c0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +002159d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002159e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +00215ab0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00215ac0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00215b20: 616c 6c20 7461 6c6b 2d73 6572 7665 7220  all talk-server 
│ │ │ +00215b30: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00215b40: 7461 6c6b 2d73 6572 7665 7220 6973 2072  talk-server is r
│ │ │ +00215b50: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00215b60: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00215b70: 653a 0a20 2020 206e 616d 653a 2074 616c  e:.    name: tal
│ │ │ +00215b80: 6b2d 7365 7276 6572 0a20 2020 2073 7461  k-server.    sta
│ │ │ +00215b90: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00215ba0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +00215bb0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00215bc0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00215bd0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00215be0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00215bf0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00215c00: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00215c10: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00215c20: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00215c30: 2070 6163 6b61 6765 5f74 616c 6b2d 7365   package_talk-se
│ │ │ +00215c40: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +00215c60: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00215d00: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00215d10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00215d20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +00215a90: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00215aa0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00215ae0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00215af0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +00215da0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00215dd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00215df0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00215e00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00215e20: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00215e30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00215e50: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ +00215e60: 2d73 6572 7665 720a 0a63 6c61 7373 2072  -server..class r
│ │ │ +00215e70: 656d 6f76 655f 7461 6c6b 2d73 6572 7665  emove_talk-serve
│ │ │ +00215e80: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ +00215e90: 2774 616c 6b2d 7365 7276 6572 273a 0a20  'talk-server':. 
│ │ │ +00215ea0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00215eb0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00215ec0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remed │ │ │ -00216fd0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00216fe0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00217090: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002170b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002170e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00217070: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00217080: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002170a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002170c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002170d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00217110: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00217120: 6465 2072 656d 6f76 655f 7461 6c6b 0a0a de remove_talk.. │ │ │ -00217130: 636c 6173 7320 7265 6d6f 7665 5f74 616c class remove_tal │ │ │ -00217140: 6b20 7b0a 2020 7061 636b 6167 6520 7b20 k {. package { │ │ │ -00217150: 2774 616c 6b27 3a0a 2020 2020 656e 7375 'talk':. ensu │ │ │ -00217160: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -00217170: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00217180: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -00217230: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00217240: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00217250: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00217280: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002172f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00217310: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00217340: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002172d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002172e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00217320: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00217330: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00217380: 2027 556e 696e 7374 616c 6c20 7461 6c6b 'Uninstall talk │ │ │ -00217390: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -002173a0: 2074 616c 6b20 6973 2072 656d 6f76 6564 talk is removed │ │ │ -002173b0: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ -002173c0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -002173d0: 206e 616d 653a 2074 616c 6b0a 2020 2020 name: talk. │ │ │ -002173e0: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -002173f0: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ -00217400: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -00217410: 4453 5376 342d 322e 322e 340a 2020 2d20 DSSv4-2.2.4. - │ │ │ -00217420: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -00217430: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00217440: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00217450: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -00217460: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -00217470: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00217480: 2020 2d20 7061 636b 6167 655f 7461 6c6b - package_talk │ │ │ -00217490: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e _removed. │ │ │ +00216fd0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +00216fe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

Comp │ │ │ +00217070: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00217080: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002170a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002170c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002170d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00217110: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00217120: 653a 2027 556e 696e 7374 616c 6c20 7461  e: 'Uninstall ta
│ │ │ +00217130: 6c6b 2050 6163 6b61 6765 3a20 456e 7375  lk Package: Ensu
│ │ │ +00217140: 7265 2074 616c 6b20 6973 2072 656d 6f76  re talk is remov
│ │ │ +00217150: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00217160: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00217170: 2020 206e 616d 653a 2074 616c 6b0a 2020     name: talk.  
│ │ │ +00217180: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +00217190: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +002171a0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002171b0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +002171c0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002171d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002171e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002171f0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00217200: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00217210: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00217220: 640a 2020 2d20 7061 636b 6167 655f 7461  d.  - package_ta
│ │ │ +00217230: 6c6b 5f72 656d 6f76 6564 0a3c 2f63 6f64  lk_removed.
Remed │ │ │ +002172f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00217300: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002173b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002173d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00217400: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00217390: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002173a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002173c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002173e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002173f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00217430: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00217440: 6465 2072 656d 6f76 655f 7461 6c6b 0a0a de remove_talk.. │ │ │ +00217450: 636c 6173 7320 7265 6d6f 7665 5f74 616c class remove_tal │ │ │ +00217460: 6b20 7b0a 2020 7061 636b 6167 6520 7b20 k {. package { │ │ │ +00217470: 2774 616c 6b27 3a0a 2020 2020 656e 7375 'talk':. ensu │ │ │ +00217480: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ +00217490: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ 002174a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
R │ │ │ -002191f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00219200: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -002192a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002192b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00219300: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00219340: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ -00219350: 6c6e 6574 2d73 6572 7665 720a 0a63 6c61  lnet-server..cla
│ │ │ -00219360: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ -00219370: 2d73 6572 7665 7220 7b0a 2020 7061 636b  -server {.  pack
│ │ │ -00219380: 6167 6520 7b20 2774 656c 6e65 742d 7365  age { 'telnet-se
│ │ │ -00219390: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ -002193a0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002193b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002193c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -00219470: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00219480: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00219490: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002194a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002194b0: 7365 2220 6964 3d22 6964 3732 3422 3e3c se" id="id724">< │ │ │ -002194c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002194d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002194e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002194f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00219500: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00219590: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002195a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ -00219290: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002192c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002192d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00219310: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00219320: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00219510: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00219520: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00219560: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00219570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -002195c0: 2755 6e69 6e73 7461 6c6c 2074 656c 6e65 'Uninstall telne │ │ │ -002195d0: 742d 7365 7276 6572 2050 6163 6b61 6765 t-server Package │ │ │ -002195e0: 3a20 456e 7375 7265 2074 656c 6e65 742d : Ensure telnet- │ │ │ -002195f0: 7365 7276 6572 2069 7320 7265 6d6f 7665 server is remove │ │ │ -00219600: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -00219610: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00219620: 2020 6e61 6d65 3a20 7465 6c6e 6574 2d73 name: telnet-s │ │ │ -00219630: 6572 7665 720a 2020 2020 7374 6174 653a erver. state: │ │ │ -00219640: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ -00219650: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00219660: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -00219670: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ -00219680: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00219690: 434d 2d37 2862 290a 2020 2d20 5043 492d CM-7(b). - PCI- │ │ │ -002196a0: 4453 532d 5265 712d 322e 322e 320a 2020 DSS-Req-2.2.2. │ │ │ -002196b0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -002196c0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -002196d0: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ -002196e0: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -002196f0: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -00219700: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00219710: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00219720: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00219730: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00219740: 655f 7465 6c6e 6574 2d73 6572 7665 725f e_telnet-server_ │ │ │ -00219750: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +002191f0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00219200: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +002192a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00219340: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00219350: 6c20 7465 6c6e 6574 2d73 6572 7665 7220  l telnet-server 
│ │ │ +00219360: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00219370: 7465 6c6e 6574 2d73 6572 7665 7220 6973  telnet-server is
│ │ │ +00219380: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00219390: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002193a0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +002193b0: 656c 6e65 742d 7365 7276 6572 0a20 2020  elnet-server.   
│ │ │ +002193c0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002193d0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002193e0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +002193f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00219400: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00219410: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00219420: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ +00219430: 2e32 2e32 0a20 202d 2050 4349 2d44 5353  .2.2.  - PCI-DSS
│ │ │ +00219440: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00219450: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +00219460: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00219470: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00219480: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00219490: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002194a0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002194b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002194c0: 2070 6163 6b61 6765 5f74 656c 6e65 742d   package_telnet-
│ │ │ +002194d0: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +002194e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00219590: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002195a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00219290: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002192c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002192d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00219310: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00219320: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00219640: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00219650: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002196a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002196e0: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ +002196f0: 6c6e 6574 2d73 6572 7665 720a 0a63 6c61  lnet-server..cla
│ │ │ +00219700: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ +00219710: 2d73 6572 7665 7220 7b0a 2020 7061 636b  -server {.  pack
│ │ │ +00219720: 6167 6520 7b20 2774 656c 6e65 742d 7365  age { 'telnet-se
│ │ │ +00219730: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ +00219740: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00219750: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00219760: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -0021a920: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ -0021a930: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0021a9b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0021aa40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0021aa50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +00219630: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00219660: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00219670: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002196b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002196c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -0021a9c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0021a9d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0021aa10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0021aa20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -0021aa70: 7265 6d6f 7665 5f74 656c 6e65 740a 0a63  remove_telnet..c
│ │ │ -0021aa80: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -0021aa90: 6574 207b 0a20 2070 6163 6b61 6765 207b  et {.  package {
│ │ │ -0021aaa0: 2027 7465 6c6e 6574 273a 0a20 2020 2065   'telnet':.    e
│ │ │ -0021aab0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0021aac0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0021aae0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0021aaf0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0021ab00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0021ab10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0021ab20: 6437 3238 2220 7461 6269 6e64 6578 3d22 d728" tabindex=" │ │ │ -0021ab30: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0021ab40: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0021ab50: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0021ab60: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0021ab70: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0021ab80: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0021ab90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0021aba0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0021ac20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0021ac50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0021ac70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0021ac80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0021aca0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0021acb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0021acd0: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ -0021ace0: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ -0021acf0: 7265 2074 656c 6e65 7420 6973 2072 656d  re telnet is rem
│ │ │ -0021ad00: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0021ad10: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0021ad20: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ -0021ad30: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ -0021ad40: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0021ad50: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -0021ad60: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ -0021ad70: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -0021ad80: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -0021ad90: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0021ada0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0021adb0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0021adc0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0021add0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0021ade0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0021adf0: 6163 6b61 6765 5f74 656c 6e65 745f 7265  ackage_telnet_re
│ │ │ -0021ae00: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


< │ │ │ +0021a940: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0021a950: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0021a960: 7365 2220 6964 3d22 6964 3732 3722 3e3c se" id="id727">< │ │ │ +0021a970: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0021a980: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0021a990: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0021a9a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0021a9b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0021a9c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0021a9d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0021aa10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0021aa20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0021aa40: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0021aa50: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0021aa70: 2752 656d 6f76 6520 7465 6c6e 6574 2043 'Remove telnet C │ │ │ +0021aa80: 6c69 656e 7473 3a20 456e 7375 7265 2074 lients: Ensure t │ │ │ +0021aa90: 656c 6e65 7420 6973 2072 656d 6f76 6564 elnet is removed │ │ │ +0021aaa0: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ +0021aab0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +0021aac0: 206e 616d 653a 2074 656c 6e65 740a 2020 name: telnet. │ │ │ +0021aad0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0021aae0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0021aaf0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a -800-171-3.1.13. │ │ │ +0021ab00: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +0021ab10: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +0021ab20: 322e 322e 340a 2020 2d20 6469 7361 626c 2.2.4. - disabl │ │ │ +0021ab30: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0021ab40: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0021ab50: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0021ab60: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ +0021ab70: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0021ab80: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0021ab90: 6765 5f74 656c 6e65 745f 7265 6d6f 7665 ge_telnet_remove │ │ │ +0021aba0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.
< │ │ │ +0021abb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0021ac60: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0021ac70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0021ad40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0021ad50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0021adb0: 5f74 656c 6e65 740a 0a63 6c61 7373 2072  _telnet..class r
│ │ │ +0021adc0: 656d 6f76 655f 7465 6c6e 6574 207b 0a20  emove_telnet {. 
│ │ │ +0021add0: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ +0021ade0: 6574 273a 0a20 2020 2065 6e73 7572 6520  et':.    ensure 
│ │ │ +0021adf0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0021ae00: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remed │ │ │ -0021c930: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0021c940: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disru │ │ │ +0021ad20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0021ad30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0021ad70: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0021ad80: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0021c9f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0021ca10: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0021ca40: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0021c9d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0021c9e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0021ca00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0021ca20: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0021ca30: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0021ca70: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0021ca80: 6465 2072 656d 6f76 655f 7466 7470 642d de remove_tftpd- │ │ │ -0021ca90: 6870 610a 0a63 6c61 7373 2072 656d 6f76 hpa..class remov │ │ │ -0021caa0: 655f 7466 7470 642d 6870 6120 7b0a 2020 e_tftpd-hpa {. │ │ │ -0021cab0: 7061 636b 6167 6520 7b20 2774 6674 7064 package { 'tftpd │ │ │ -0021cac0: 2d68 7061 273a 0a20 2020 2065 6e73 7572 -hpa':. ensur │ │ │ -0021cad0: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ -0021cae0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -0021caf0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -0021cba0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0021cbb0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0021cbc0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0021cbd0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0021cbe0: 7365 2220 6964 3d22 6964 3733 3222 3e3c se" id="id732">< │ │ │ -0021cbf0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0021cc00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0021cc10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0021cc20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0021cc30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0021cc40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0021cc50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0021cc90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0021cca0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0021ccc0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0021ccd0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0021ccf0: 2755 6e69 6e73 7461 6c6c 2074 6674 7064 'Uninstall tftpd │ │ │ -0021cd00: 2d68 7061 2050 6163 6b61 6765 3a20 456e -hpa Package: En │ │ │ -0021cd10: 7375 7265 2074 6674 7064 2d68 7061 2069 sure tftpd-hpa i │ │ │ -0021cd20: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ -0021cd30: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -0021cd40: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -0021cd50: 7466 7470 642d 6870 610a 2020 2020 7374 tftpd-hpa. st │ │ │ -0021cd60: 6174 653a 2061 6273 656e 740a 2020 7461 ate: absent. ta │ │ │ -0021cd70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0021cd80: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0021cd90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -0021cda0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -0021cdb0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -0021cdc0: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -0021cdd0: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -0021cde0: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -0021cdf0: 7261 7465 6779 0a20 202d 2068 6967 685f rategy. - high_ │ │ │ -0021ce00: 7365 7665 7269 7479 0a20 202d 206c 6f77 severity. - low │ │ │ -0021ce10: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0021ce20: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0021ce30: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -0021ce40: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -0021ce50: 7466 7470 2d73 6572 7665 725f 7265 6d6f tftp-server_remo │ │ │ -0021ce60: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
Comp │ │ │ +0021c9d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0021c9e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0021ca00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0021ca20: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0021ca30: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0021ca70: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0021ca80: 653a 2027 556e 696e 7374 616c 6c20 7466  e: 'Uninstall tf
│ │ │ +0021ca90: 7470 642d 6870 6120 5061 636b 6167 653a  tpd-hpa Package:
│ │ │ +0021caa0: 2045 6e73 7572 6520 7466 7470 642d 6870   Ensure tftpd-hp
│ │ │ +0021cab0: 6120 6973 2072 656d 6f76 6564 270a 2020  a is removed'.  
│ │ │ +0021cac0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0021cad0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0021cae0: 653a 2074 6674 7064 2d68 7061 0a20 2020  e: tftpd-hpa.   
│ │ │ +0021caf0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0021cb00: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0021cb10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0021cb20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0021cb30: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0021cb40: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0021cb50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0021cb60: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0021cb70: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +0021cb80: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +0021cb90: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +0021cba0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0021cbb0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0021cbc0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0021cbd0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0021cbe0: 6765 5f74 6674 702d 7365 7276 6572 5f72  ge_tftp-server_r
│ │ │ +0021cbf0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediati │ │ │ +0021ccb0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0021ccc0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0021cd40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0021cd50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0021cd70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0021cd80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0021cda0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0021cdc0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0021cdf0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0021ce00: 656d 6f76 655f 7466 7470 642d 6870 610a  emove_tftpd-hpa.
│ │ │ +0021ce10: 0a63 6c61 7373 2072 656d 6f76 655f 7466  .class remove_tf
│ │ │ +0021ce20: 7470 642d 6870 6120 7b0a 2020 7061 636b  tpd-hpa {.  pack
│ │ │ +0021ce30: 6167 6520 7b20 2774 6674 7064 2d68 7061  age { 'tftpd-hpa
│ │ │ +0021ce40: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0021ce50: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0021ce60: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation Pup │ │ │ -0021de60: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0021de70: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0021df40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0021df50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0021dfa0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0021dfb0: 7466 7470 0a0a 636c 6173 7320 7265 6d6f  tftp..class remo
│ │ │ -0021dfc0: 7665 5f74 6674 7020 7b0a 2020 7061 636b  ve_tftp {.  pack
│ │ │ -0021dfd0: 6167 6520 7b20 2774 6674 7027 3a0a 2020  age { 'tftp':.  
│ │ │ -0021dfe0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0021dff0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0021e000: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0021e0b0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0021e0c0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:low
Disrup │ │ │ -0021df20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0021df30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0021df70: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0021df80: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -0021e160: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0021e200: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ -0021e210: 6674 7020 4461 656d 6f6e 3a20 456e 7375  ftp Daemon: Ensu
│ │ │ -0021e220: 7265 2074 6674 7020 6973 2072 656d 6f76  re tftp is remov
│ │ │ -0021e230: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0021e240: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0021e250: 2020 206e 616d 653a 2074 6674 700a 2020     name: tftp.  
│ │ │ -0021e260: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -0021e270: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -0021e280: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0021e290: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -0021e2a0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0021e2b0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0021e2c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0021e2d0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -0021e2e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0021e2f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0021e300: 202d 2070 6163 6b61 6765 5f74 6674 705f   - package_tftp_
│ │ │ -0021e310: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +0021de50: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +0021de60: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0021de70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
│ │ │ -0021e150: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0021e180: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0021e190: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0021e1d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0021e1e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +0021df40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0021df50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +0021dfb0: 2074 6674 7020 4461 656d 6f6e 3a20 456e   tftp Daemon: En
│ │ │ +0021dfc0: 7375 7265 2074 6674 7020 6973 2072 656d  sure tftp is rem
│ │ │ +0021dfd0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0021dfe0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0021dff0: 0a20 2020 206e 616d 653a 2074 6674 700a  .    name: tftp.
│ │ │ +0021e000: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0021e010: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ +0021e020: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0021e030: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +0021e040: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0021e050: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0021e060: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0021e070: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +0021e080: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +0021e090: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0021e0a0: 0a20 202d 2070 6163 6b61 6765 5f74 6674  .  - package_tft
│ │ │ +0021e0b0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +0021e170: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0021e180: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0021e190: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0021e1c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0021df20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0021df30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0021df70: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0021df80: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0021e230: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0021e250: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0021e280: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0021e210: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0021e220: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0021e260: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0021e270: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0021e2c0: 6520 7265 6d6f 7665 5f74 6674 700a 0a63 e remove_tftp..c │ │ │ +0021e2d0: 6c61 7373 2072 656d 6f76 655f 7466 7470 lass remove_tftp │ │ │ +0021e2e0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +0021e2f0: 7466 7470 273a 0a20 2020 2065 6e73 7572 tftp':. ensur │ │ │ +0021e300: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ +0021e310: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ 0021e320: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediation │ │ │ -0022ca40: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0022ca50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -0022ca90: 636f 6465 3e0a 0a0a 696e 636c 7564 6520  code>...include 
│ │ │ -0022caa0: 7373 685f 7072 6976 6174 655f 6b65 795f  ssh_private_key_
│ │ │ -0022cab0: 7065 726d 730a 0a63 6c61 7373 2073 7368  perms..class ssh
│ │ │ -0022cac0: 5f70 7269 7661 7465 5f6b 6579 5f70 6572  _private_key_per
│ │ │ -0022cad0: 6d73 207b 0a20 2065 7865 6320 7b20 2773  ms {.  exec { 's
│ │ │ -0022cae0: 7368 645f 7072 6976 5f6b 6579 273a 0a20  shd_priv_key':. 
│ │ │ -0022caf0: 2020 2063 6f6d 6d61 6e64 203d 2667 743b     command =>
│ │ │ -0022cb00: 2022 6368 6d6f 6420 3036 3030 202f 6574   "chmod 0600 /et
│ │ │ -0022cb10: 632f 7373 682f 2a5f 6b65 7922 2c0a 2020  c/ssh/*_key",.  
│ │ │ -0022cb20: 2020 7061 7468 2020 2020 3d26 6774 3b20    path    => 
│ │ │ -0022cb30: 272f 6269 6e3a 2f75 7372 2f62 696e 270a  '/bin:/usr/bin'.
│ │ │ -0022cb40: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0022cc00: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0022cc10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0022cc90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0022cca0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0022ccc0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0022ccd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0022ccf0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0022cd10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ -0022cd30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0022cd50: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0022cd60: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0022cd70: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0022cd80: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0022cd90: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0022cda0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -0022cdb0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -0022cdc0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -0022cdd0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -0022cde0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -0022cdf0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -0022ce00: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0022ce10: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -0022ce20: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -0022ce30: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -0022ce40: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -0022ce50: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -0022ce60: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -0022ce70: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ -0022ce80: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ -0022ce90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0022cea0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0022ceb0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0022cec0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0022ced0: 6565 6465 640a 0a2d 206e 616d 653a 2046 eeded..- name: F │ │ │ -0022cee0: 696e 6420 726f 6f74 3a72 6f6f 742d 6f77 ind root:root-ow │ │ │ -0022cef0: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ -0022cf00: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -0022cf10: 6e64 3a20 6669 6e64 202d 4820 2f65 7463 nd: find -H /etc │ │ │ -0022cf20: 2f73 7368 2f20 2d6d 6178 6465 7074 6820 /ssh/ -maxdepth │ │ │ -0022cf30: 3120 2d75 7365 7220 726f 6f74 202d 7265 1 -user root -re │ │ │ -0022cf40: 6765 7820 222e 2a5f 6b65 7924 220a 2020 gex ".*_key$". │ │ │ -0022cf50: 2020 2d74 7970 6520 6620 2d67 726f 7570 -type f -group │ │ │ -0022cf60: 2072 6f6f 7420 2d70 6572 6d20 2f75 2b78 root -perm /u+x │ │ │ -0022cf70: 732c 672b 7877 7273 2c6f 2b78 7772 740a s,g+xwrs,o+xwrt. │ │ │ -0022cf80: 2020 7265 6769 7374 6572 3a20 726f 6f74 register: root │ │ │ -0022cf90: 5f6f 776e 6564 5f6b 6579 730a 2020 6368 _owned_keys. ch │ │ │ -0022cfa0: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ -0022cfb0: 650a 2020 6661 696c 6564 5f77 6865 6e3a e. failed_when: │ │ │ -0022cfc0: 2066 616c 7365 0a20 2063 6865 636b 5f6d false. check_m │ │ │ -0022cfd0: 6f64 653a 2066 616c 7365 0a20 2077 6865 ode: false. whe │ │ │ -0022cfe0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -0022cff0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -0022d000: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -0022d010: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0022d020: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -0022d030: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -0022d040: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -0022d050: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -0022d060: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -0022d070: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -0022d080: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0022d090: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -0022d0a0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -0022d0b0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -0022d0c0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -0022d0d0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -0022d0e0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -0022d0f0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ -0022d100: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ -0022d110: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0022d120: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0022d130: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0022d140: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0022d150: 6565 6465 640a 0a2d 206e 616d 653a 2053 eeded..- name: S │ │ │ -0022d160: 6574 2070 6572 6d69 7373 696f 6e73 2066 et permissions f │ │ │ -0022d170: 6f72 2072 6f6f 743a 726f 6f74 2d6f 776e or root:root-own │ │ │ -0022d180: 6564 206b 6579 730a 2020 616e 7369 626c ed keys. ansibl │ │ │ -0022d190: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a e.builtin.file:. │ │ │ -0022d1a0: 2020 2020 7061 7468 3a20 277b 7b20 6974 path: '{{ it │ │ │ -0022d1b0: 656d 207d 7d27 0a20 2020 206d 6f64 653a em }}'. mode: │ │ │ -0022d1c0: 2075 2d78 732c 672d 7877 7273 2c6f 2d78 u-xs,g-xwrs,o-x │ │ │ -0022d1d0: 7772 740a 2020 2020 7374 6174 653a 2066 wrt. state: f │ │ │ -0022d1e0: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ -0022d1f0: 3a0a 2020 2d20 277b 7b20 726f 6f74 5f6f :. - '{{ root_o │ │ │ -0022d200: 776e 6564 5f6b 6579 732e 7374 646f 7574 wned_keys.stdout │ │ │ -0022d210: 5f6c 696e 6573 207d 7d27 0a20 2077 6865 _lines }}'. whe │ │ │ -0022d220: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -0022d230: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -0022d240: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -0022d250: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0022d260: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -0022d270: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -0022d280: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -0022d290: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -0022d2a0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -0022d2b0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -0022d2c0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0022d2d0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -0022d2e0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -0022d2f0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -0022d300: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -0022d310: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -0022d320: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -0022d330: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ -0022d340: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ -0022d350: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0022d360: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0022d370: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0022d380: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0022d390: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70 eeded.


Complexity: │ │ │ +0022cae0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0022cb00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0022cb20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0022cb50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0022cb60: 636f 6e66 6967 7572 653c 2f74 643e 3c2f configure
│ │ │ +0022cb80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0022cb90: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0022cba0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0022cbb0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0022cbc0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0022cbd0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +0022cbe0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ +0022cbf0: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ +0022cc00: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +0022cc10: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ +0022cc20: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +0022cc30: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +0022cc40: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0022cc50: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +0022cc60: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ +0022cc70: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0022cc80: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ +0022cc90: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ +0022cca0: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ +0022ccb0: 6f6e 735f 7373 6864 5f70 7269 7661 7465  ons_sshd_private
│ │ │ +0022ccc0: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +0022ccd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0022cce0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0022ccf0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0022cd00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0022cd10: 6465 640a 0a2d 206e 616d 653a 2046 696e  ded..- name: Fin
│ │ │ +0022cd20: 6420 726f 6f74 3a72 6f6f 742d 6f77 6e65  d root:root-owne
│ │ │ +0022cd30: 6420 6b65 7973 0a20 2061 6e73 6962 6c65  d keys.  ansible
│ │ │ +0022cd40: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0022cd50: 3a20 6669 6e64 202d 4820 2f65 7463 2f73  : find -H /etc/s
│ │ │ +0022cd60: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ +0022cd70: 2d75 7365 7220 726f 6f74 202d 7265 6765  -user root -rege
│ │ │ +0022cd80: 7820 222e 2a5f 6b65 7924 220a 2020 2020  x ".*_key$".    
│ │ │ +0022cd90: 2d74 7970 6520 6620 2d67 726f 7570 2072  -type f -group r
│ │ │ +0022cda0: 6f6f 7420 2d70 6572 6d20 2f75 2b78 732c  oot -perm /u+xs,
│ │ │ +0022cdb0: 672b 7877 7273 2c6f 2b78 7772 740a 2020  g+xwrs,o+xwrt.  
│ │ │ +0022cdc0: 7265 6769 7374 6572 3a20 726f 6f74 5f6f  register: root_o
│ │ │ +0022cdd0: 776e 6564 5f6b 6579 730a 2020 6368 616e  wned_keys.  chan
│ │ │ +0022cde0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0022cdf0: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ +0022ce00: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ +0022ce10: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ +0022ce20: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0022ce30: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0022ce40: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0022ce50: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +0022ce60: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ +0022ce70: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ +0022ce80: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +0022ce90: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ +0022cea0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +0022ceb0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +0022cec0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0022ced0: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +0022cee0: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ +0022cef0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0022cf00: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ +0022cf10: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ +0022cf20: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ +0022cf30: 6f6e 735f 7373 6864 5f70 7269 7661 7465  ons_sshd_private
│ │ │ +0022cf40: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +0022cf50: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0022cf60: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0022cf70: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0022cf80: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0022cf90: 6465 640a 0a2d 206e 616d 653a 2053 6574  ded..- name: Set
│ │ │ +0022cfa0: 2070 6572 6d69 7373 696f 6e73 2066 6f72   permissions for
│ │ │ +0022cfb0: 2072 6f6f 743a 726f 6f74 2d6f 776e 6564   root:root-owned
│ │ │ +0022cfc0: 206b 6579 730a 2020 616e 7369 626c 652e   keys.  ansible.
│ │ │ +0022cfd0: 6275 696c 7469 6e2e 6669 6c65 3a0a 2020  builtin.file:.  
│ │ │ +0022cfe0: 2020 7061 7468 3a20 277b 7b20 6974 656d    path: '{{ item
│ │ │ +0022cff0: 207d 7d27 0a20 2020 206d 6f64 653a 2075   }}'.    mode: u
│ │ │ +0022d000: 2d78 732c 672d 7877 7273 2c6f 2d78 7772  -xs,g-xwrs,o-xwr
│ │ │ +0022d010: 740a 2020 2020 7374 6174 653a 2066 696c  t.    state: fil
│ │ │ +0022d020: 650a 2020 7769 7468 5f69 7465 6d73 3a0a  e.  with_items:.
│ │ │ +0022d030: 2020 2d20 277b 7b20 726f 6f74 5f6f 776e    - '{{ root_own
│ │ │ +0022d040: 6564 5f6b 6579 732e 7374 646f 7574 5f6c  ed_keys.stdout_l
│ │ │ +0022d050: 696e 6573 207d 7d27 0a20 2077 6865 6e3a  ines }}'.  when:
│ │ │ +0022d060: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0022d070: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0022d080: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0022d090: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +0022d0a0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ +0022d0b0: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ +0022d0c0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +0022d0d0: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ +0022d0e0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +0022d0f0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +0022d100: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0022d110: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +0022d120: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ +0022d130: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0022d140: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ +0022d150: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ +0022d160: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ +0022d170: 6f6e 735f 7373 6864 5f70 7269 7661 7465  ons_sshd_private
│ │ │ +0022d180: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +0022d190: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0022d1a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0022d1b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0022d1c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0022d1d0: 6465 640a 3c2f 636f 6465 3e3c 2f70 7265  ded.
Remediation │ │ │ +0022d290: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0022d2a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Remed │ │ │ -0022e7f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0022e800: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
incl
│ │ │ -0022e850: 7564 6520 7373 685f 7075 626c 6963 5f6b  ude ssh_public_k
│ │ │ -0022e860: 6579 5f70 6572 6d73 0a0a 636c 6173 7320  ey_perms..class 
│ │ │ -0022e870: 7373 685f 7075 626c 6963 5f6b 6579 5f70  ssh_public_key_p
│ │ │ -0022e880: 6572 6d73 207b 0a20 2065 7865 6320 7b20  erms {.  exec { 
│ │ │ -0022e890: 2773 7368 645f 7075 625f 6b65 7927 3a0a  'sshd_pub_key':.
│ │ │ -0022e8a0: 2020 2020 636f 6d6d 616e 6420 3d26 6774      command =>
│ │ │ -0022e8b0: 3b20 2263 686d 6f64 2030 3634 3420 2f65  ; "chmod 0644 /e
│ │ │ -0022e8c0: 7463 2f73 7368 2f2a 2e70 7562 222c 0a20  tc/ssh/*.pub",. 
│ │ │ -0022e8d0: 2020 2070 6174 6820 2020 203d 2667 743b     path    =>
│ │ │ -0022e8e0: 2027 2f62 696e 3a2f 7573 722f 6269 6e27   '/bin:/usr/bin'
│ │ │ -0022e8f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -0022e9b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0022e9c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0022ea40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0022ea50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0022ea60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0022eaa0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0022eab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0022ead0: 7464 3e63 6f6e 6669 6775 7265 3c2f 7464 td>configure

- name: │ │ │ -0022eb00: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0022eb10: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0022eb20: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0022eb30: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0022eb40: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0022eb50: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -0022eb60: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -0022eb70: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -0022eb80: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -0022eb90: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -0022eba0: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -0022ebb0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -0022ebc0: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -0022ebd0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -0022ebe0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -0022ebf0: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -0022ec00: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -0022ec10: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -0022ec20: 7373 696f 6e73 5f73 7368 645f 7075 625f ssions_sshd_pub_ │ │ │ -0022ec30: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70 key. - low_comp │ │ │ -0022ec40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -0022ec50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -0022ec60: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -0022ec70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0022ec80: 6564 0a0a 2d20 6e61 6d65 3a20 4669 6e64 ed..- name: Find │ │ │ -0022ec90: 202f 6574 632f 7373 682f 2066 696c 6528 /etc/ssh/ file( │ │ │ -0022eca0: 7329 0a20 2061 6e73 6962 6c65 2e62 7569 s). ansible.bui │ │ │ -0022ecb0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 6669 ltin.command: fi │ │ │ -0022ecc0: 6e64 202d 5020 2f65 7463 2f73 7368 2f20 nd -P /etc/ssh/ │ │ │ -0022ecd0: 2d6d 6178 6465 7074 6820 3120 2d70 6572 -maxdepth 1 -per │ │ │ -0022ece0: 6d20 2f75 2b78 732c 672b 7877 732c 6f2b m /u+xs,g+xws,o+ │ │ │ -0022ecf0: 7877 7420 202d 7479 7065 0a20 2020 2066 xwt -type. f │ │ │ -0022ed00: 202d 7265 6765 7874 7970 6520 706f 7369 -regextype posi │ │ │ -0022ed10: 782d 6578 7465 6e64 6564 202d 7265 6765 x-extended -rege │ │ │ -0022ed20: 7820 225e 2e2a 5c2e 7075 6224 220a 2020 x "^.*\.pub$". │ │ │ -0022ed30: 7265 6769 7374 6572 3a20 6669 6c65 735f register: files_ │ │ │ -0022ed40: 666f 756e 640a 2020 6368 616e 6765 645f found. changed_ │ │ │ -0022ed50: 7768 656e 3a20 6661 6c73 650a 2020 6661 when: false. fa │ │ │ -0022ed60: 696c 6564 5f77 6865 6e3a 2066 616c 7365 iled_when: false │ │ │ -0022ed70: 0a20 2063 6865 636b 5f6d 6f64 653a 2066 . check_mode: f │ │ │ -0022ed80: 616c 7365 0a20 2077 6865 6e3a 2027 226c alse. when: '"l │ │ │ -0022ed90: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ -0022eda0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -0022edb0: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ -0022edc0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -0022edd0: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38 .1.13. - NIST-8 │ │ │ -0022ede0: 3030 2d31 3731 2d33 2e31 332e 3130 0a20 00-171-3.13.10. │ │ │ -0022edf0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -0022ee00: 432d 3137 2861 290a 2020 2d20 4e49 5354 C-17(a). - NIST │ │ │ -0022ee10: 2d38 3030 2d35 332d 4143 2d36 2831 290a -800-53-AC-6(1). │ │ │ -0022ee20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0022ee30: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -0022ee40: 4453 532d 5265 712d 322e 322e 340a 2020 DSS-Req-2.2.4. │ │ │ -0022ee50: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -0022ee60: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -0022ee70: 322e 360a 2020 2d20 636f 6e66 6967 7572 2.6. - configur │ │ │ -0022ee80: 655f 7374 7261 7465 6779 0a20 202d 2066 e_strategy. - f │ │ │ -0022ee90: 696c 655f 7065 726d 6973 7369 6f6e 735f ile_permissions_ │ │ │ -0022eea0: 7373 6864 5f70 7562 5f6b 6579 0a20 202d sshd_pub_key. - │ │ │ -0022eeb0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0022eec0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0022eed0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -0022eee0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -0022eef0: 626f 6f74 5f6e 6565 6465 640a 0a2d 206e boot_needed..- n │ │ │ -0022ef00: 616d 653a 2053 6574 2070 6572 6d69 7373 ame: Set permiss │ │ │ -0022ef10: 696f 6e73 2066 6f72 202f 6574 632f 7373 ions for /etc/ss │ │ │ -0022ef20: 682f 2066 696c 6528 7329 0a20 2061 6e73 h/ file(s). ans │ │ │ -0022ef30: 6962 6c65 2e62 7569 6c74 696e 2e66 696c ible.builtin.fil │ │ │ -0022ef40: 653a 0a20 2020 2070 6174 683a 2027 7b7b e:. path: '{{ │ │ │ -0022ef50: 2069 7465 6d20 7d7d 270a 2020 2020 6d6f item }}'. mo │ │ │ -0022ef60: 6465 3a20 752d 7873 2c67 2d78 7773 2c6f de: u-xs,g-xws,o │ │ │ -0022ef70: 2d78 7774 0a20 2020 2073 7461 7465 3a20 -xwt. state: │ │ │ -0022ef80: 6669 6c65 0a20 2077 6974 685f 6974 656d file. with_item │ │ │ -0022ef90: 733a 0a20 202d 2027 7b7b 2066 696c 6573 s:. - '{{ files │ │ │ -0022efa0: 5f66 6f75 6e64 2e73 7464 6f75 745f 6c69 _found.stdout_li │ │ │ -0022efb0: 6e65 7320 7d7d 270a 2020 7768 656e 3a20 nes }}'. when: │ │ │ -0022efc0: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -0022efd0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0022efe0: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ -0022eff0: 0a20 202d 204e 4953 542d 3830 302d 3137 . - NIST-800-17 │ │ │ -0022f000: 312d 332e 312e 3133 0a20 202d 204e 4953 1-3.1.13. - NIS │ │ │ -0022f010: 542d 3830 302d 3137 312d 332e 3133 2e31 T-800-171-3.13.1 │ │ │ -0022f020: 300a 2020 2d20 4e49 5354 2d38 3030 2d35 0. - NIST-800-5 │ │ │ -0022f030: 332d 4143 2d31 3728 6129 0a20 202d 204e 3-AC-17(a). - N │ │ │ -0022f040: 4953 542d 3830 302d 3533 2d41 432d 3628 IST-800-53-AC-6( │ │ │ -0022f050: 3129 0a20 202d 204e 4953 542d 3830 302d 1). - NIST-800- │ │ │ -0022f060: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -0022f070: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34 CI-DSS-Req-2.2.4 │ │ │ -0022f080: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -0022f090: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -0022f0a0: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669 -2.2.6. - confi │ │ │ -0022f0b0: 6775 7265 5f73 7472 6174 6567 790a 2020 gure_strategy. │ │ │ -0022f0c0: 2d20 6669 6c65 5f70 6572 6d69 7373 696f - file_permissio │ │ │ -0022f0d0: 6e73 5f73 7368 645f 7075 625f 6b65 790a ns_sshd_pub_key. │ │ │ -0022f0e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0022f0f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0022f100: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -0022f110: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -0022f120: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c _reboot_needed.< │ │ │ +0022e7f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +0022e800: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

- n
│ │ │ +0022e940: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0022e950: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0022e960: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0022e970: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0022e980: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0022e990: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +0022e9a0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +0022e9b0: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ +0022e9c0: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ +0022e9d0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0022e9e0: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ +0022e9f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0022ea00: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0022ea10: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ +0022ea20: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +0022ea30: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +0022ea40: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ +0022ea50: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ +0022ea60: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ +0022ea70: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ +0022ea80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0022ea90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0022eaa0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0022eab0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0022eac0: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20  needed..- name: 
│ │ │ +0022ead0: 4669 6e64 202f 6574 632f 7373 682f 2066  Find /etc/ssh/ f
│ │ │ +0022eae0: 696c 6528 7329 0a20 2061 6e73 6962 6c65  ile(s).  ansible
│ │ │ +0022eaf0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0022eb00: 3a20 6669 6e64 202d 5020 2f65 7463 2f73  : find -P /etc/s
│ │ │ +0022eb10: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ +0022eb20: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ +0022eb30: 732c 6f2b 7877 7420 202d 7479 7065 0a20  s,o+xwt  -type. 
│ │ │ +0022eb40: 2020 2066 202d 7265 6765 7874 7970 6520     f -regextype 
│ │ │ +0022eb50: 706f 7369 782d 6578 7465 6e64 6564 202d  posix-extended -
│ │ │ +0022eb60: 7265 6765 7820 225e 2e2a 5c2e 7075 6224  regex "^.*\.pub$
│ │ │ +0022eb70: 220a 2020 7265 6769 7374 6572 3a20 6669  ".  register: fi
│ │ │ +0022eb80: 6c65 735f 666f 756e 640a 2020 6368 616e  les_found.  chan
│ │ │ +0022eb90: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0022eba0: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ +0022ebb0: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ +0022ebc0: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ +0022ebd0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0022ebe0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0022ebf0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0022ec00: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +0022ec10: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ +0022ec20: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ +0022ec30: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +0022ec40: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ +0022ec50: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +0022ec60: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +0022ec70: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0022ec80: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +0022ec90: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ +0022eca0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0022ecb0: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ +0022ecc0: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ +0022ecd0: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ +0022ece0: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579  ons_sshd_pub_key
│ │ │ +0022ecf0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0022ed00: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0022ed10: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0022ed20: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0022ed30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0022ed40: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ +0022ed50: 6d69 7373 696f 6e73 2066 6f72 202f 6574  missions for /et
│ │ │ +0022ed60: 632f 7373 682f 2066 696c 6528 7329 0a20  c/ssh/ file(s). 
│ │ │ +0022ed70: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0022ed80: 2e66 696c 653a 0a20 2020 2070 6174 683a  .file:.    path:
│ │ │ +0022ed90: 2027 7b7b 2069 7465 6d20 7d7d 270a 2020   '{{ item }}'.  
│ │ │ +0022eda0: 2020 6d6f 6465 3a20 752d 7873 2c67 2d78    mode: u-xs,g-x
│ │ │ +0022edb0: 7773 2c6f 2d78 7774 0a20 2020 2073 7461  ws,o-xwt.    sta
│ │ │ +0022edc0: 7465 3a20 6669 6c65 0a20 2077 6974 685f  te: file.  with_
│ │ │ +0022edd0: 6974 656d 733a 0a20 202d 2027 7b7b 2066  items:.  - '{{ f
│ │ │ +0022ede0: 696c 6573 5f66 6f75 6e64 2e73 7464 6f75  iles_found.stdou
│ │ │ +0022edf0: 745f 6c69 6e65 7320 7d7d 270a 2020 7768  t_lines }}'.  wh
│ │ │ +0022ee00: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0022ee10: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0022ee20: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +0022ee30: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0022ee40: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ +0022ee50: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0022ee60: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ +0022ee70: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ +0022ee80: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +0022ee90: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ +0022eea0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0022eeb0: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ +0022eec0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ +0022eed0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +0022eee0: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ +0022eef0: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ +0022ef00: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ +0022ef10: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ +0022ef20: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ +0022ef30: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0022ef40: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0022ef50: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0022ef60: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0022ef70: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0022ef80: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +0022f030: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0022f040: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
include ssh_
│ │ │ +0022f090: 7075 626c 6963 5f6b 6579 5f70 6572 6d73  public_key_perms
│ │ │ +0022f0a0: 0a0a 636c 6173 7320 7373 685f 7075 626c  ..class ssh_publ
│ │ │ +0022f0b0: 6963 5f6b 6579 5f70 6572 6d73 207b 0a20  ic_key_perms {. 
│ │ │ +0022f0c0: 2065 7865 6320 7b20 2773 7368 645f 7075   exec { 'sshd_pu
│ │ │ +0022f0d0: 625f 6b65 7927 3a0a 2020 2020 636f 6d6d  b_key':.    comm
│ │ │ +0022f0e0: 616e 6420 3d26 6774 3b20 2263 686d 6f64  and => "chmod
│ │ │ +0022f0f0: 2030 3634 3420 2f65 7463 2f73 7368 2f2a   0644 /etc/ssh/*
│ │ │ +0022f100: 2e70 7562 222c 0a20 2020 2070 6174 6820  .pub",.    path 
│ │ │ +0022f110: 2020 203d 2667 743b 2027 2f62 696e 3a2f     => '/bin:/
│ │ │ +0022f120: 7573 722f 6269 6e27 0a20 207d 0a7d 0a3c  usr/bin'.  }.}.<
│ │ │  0022f130: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediat │ │ │ -002327a0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -002327b0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -002327c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00232810: 5d0a 6e61 6d65 203d 2022 7373 7364 220a  ].name = "sssd".
│ │ │ -00232820: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -002328e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002328f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00232900: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Comp │ │ │ +0022e890: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0022e8a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0022e8c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0022e8e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0022e8f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:configure │ │ │ +0022e920: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -002329a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002329f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00232980: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002329b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002329d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002329e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00232a00: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00232a10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00232a30: 7564 6520 696e 7374 616c 6c5f 7373 7364  ude install_sssd
│ │ │ -00232a40: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -00232a50: 7373 7364 207b 0a20 2070 6163 6b61 6765  sssd {.  package
│ │ │ -00232a60: 207b 2027 7373 7364 273a 0a20 2020 2065   { 'sssd':.    e
│ │ │ -00232a70: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -00232a80: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -00232a90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00232b40: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00232b50: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00232bf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00232c90: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00232ca0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00232cb0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00232cc0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00232cd0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00232ce0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00232cf0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -00232d00: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00232d10: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00232d20: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00232d30: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00232d40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00232d50: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00232d60: 5f73 7373 645f 696e 7374 616c 6c65 640a  _sssd_installed.
│ │ │ -00232d70: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -00232d80: 7373 7364 2069 7320 696e 7374 616c 6c65  sssd is installe
│ │ │ -00232d90: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -00232da0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00232db0: 206e 616d 653a 2073 7373 640a 2020 2020   name: sssd.    
│ │ │ -00232dc0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -00232dd0: 2077 6865 6e3a 2027 2273 7373 642d 636f   when: '"sssd-co
│ │ │ -00232de0: 6d6d 6f6e 2220 696e 2061 6e73 6962 6c65  mmon" in ansible
│ │ │ -00232df0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00232e00: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00232e10: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00232e20: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00232e30: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00232e40: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00232e50: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00232e60: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00232e70: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00232e80: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00232e90: 7373 7364 5f69 6e73 7461 6c6c 6564 0a3c  sssd_installed.<
│ │ │ +002327a0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +002327b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +002327c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002327d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002327e0: 7365 2220 6964 3d22 6964 3737 3322 3e3c se" id="id773">< │ │ │ +002327f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00232800: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00232810: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00232820: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00232830: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +002328c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +002328d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -00232be0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00232c10: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00232c20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00232c60: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00232c70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +00232840: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00232850: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00232890: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002328a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +002328f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00232900: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00232910: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00232920: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00232930: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00232940: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +00232950: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00232960: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00232970: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00232980: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00232990: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002329a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002329b0: 2d20 7061 636b 6167 655f 7373 7364 5f69  - package_sssd_i
│ │ │ +002329c0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +002329d0: 3a20 456e 7375 7265 2073 7373 6420 6973  : Ensure sssd is
│ │ │ +002329e0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +002329f0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00232a00: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00232a10: 7373 7364 0a20 2020 2073 7461 7465 3a20  sssd.    state: 
│ │ │ +00232a20: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +00232a30: 2722 7373 7364 2d63 6f6d 6d6f 6e22 2069  '"sssd-common" i
│ │ │ +00232a40: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00232a50: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00232a60: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00232a70: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +00232a80: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00232a90: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00232aa0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00232ab0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00232ac0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00232ad0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00232ae0: 2070 6163 6b61 6765 5f73 7373 645f 696e   package_sssd_in
│ │ │ +00232af0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00232b00: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00232bb0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00232bc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00232c40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00232c50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00232c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00232ca0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00232cb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00232cd0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00232cf0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00232d00: 7374 616c 6c5f 7373 7364 0a0a 636c 6173  stall_sssd..clas
│ │ │ +00232d10: 7320 696e 7374 616c 6c5f 7373 7364 207b  s install_sssd {
│ │ │ +00232d20: 0a20 2070 6163 6b61 6765 207b 2027 7373  .  package { 'ss
│ │ │ +00232d30: 7364 273a 0a20 2020 2065 6e73 7572 6520  sd':.    ensure 
│ │ │ +00232d40: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +00232d50: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00232d60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00232e10: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00232e20: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00232e30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0022d2e0: 636f 6465 3e0a 0a0a 696e 636c 7564 6520  code>...include 
│ │ │ +0022d2f0: 7373 685f 7072 6976 6174 655f 6b65 795f  ssh_private_key_
│ │ │ +0022d300: 7065 726d 730a 0a63 6c61 7373 2073 7368  perms..class ssh
│ │ │ +0022d310: 5f70 7269 7661 7465 5f6b 6579 5f70 6572  _private_key_per
│ │ │ +0022d320: 6d73 207b 0a20 2065 7865 6320 7b20 2773  ms {.  exec { 's
│ │ │ +0022d330: 7368 645f 7072 6976 5f6b 6579 273a 0a20  shd_priv_key':. 
│ │ │ +0022d340: 2020 2063 6f6d 6d61 6e64 203d 2667 743b     command =>
│ │ │ +0022d350: 2022 6368 6d6f 6420 3036 3030 202f 6574   "chmod 0600 /et
│ │ │ +0022d360: 632f 7373 682f 2a5f 6b65 7922 2c0a 2020  c/ssh/*_key",.  
│ │ │ +0022d370: 2020 7061 7468 2020 2020 3d26 6774 3b20    path    => 
│ │ │ +0022d380: 272f 6269 6e3a 2f75 7372 2f62 696e 270a  '/bin:/usr/bin'.
│ │ │ +0022d390: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

<
│ │ │ +00232e70: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +00232e80: 5d5d 0a6e 616d 6520 3d20 2273 7373 6422  ]].name = "sssd"
│ │ │ +00232e90: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00232ea0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediati │ │ │ -002340d0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -002340e0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -002340f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -00234140: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -00234150: 6162 6c65 6420 3d20 5b22 7373 7364 225d  abled = ["sssd"]
│ │ │ -00234160: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00234220: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00234230: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00234300: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00234310: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00234360: 6e63 6c75 6465 2065 6e61 626c 655f 7373  nclude enable_ss
│ │ │ -00234370: 7364 0a0a 636c 6173 7320 656e 6162 6c65  sd..class enable
│ │ │ -00234380: 5f73 7373 6420 7b0a 2020 7365 7276 6963  _sssd {.  servic
│ │ │ -00234390: 6520 7b27 7373 7364 273a 0a20 2020 2065  e {'sssd':.    e
│ │ │ -002343a0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -002343b0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002343c0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -002343d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00234490: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002344a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00234570: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002345c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:low
Disrup │ │ │ -002342e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002342f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00234330: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00234340: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -00234530: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00234550: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002345a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002345b0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -002345e0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -002345f0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00234600: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00234610: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00234620: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00234630: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00234640: 3830 302d 3533 2d49 412d 3528 3130 290a  800-53-IA-5(10).
│ │ │ -00234650: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00234660: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00234670: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00234680: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00234690: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002346a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002346b0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -002346c0: 7373 645f 656e 6162 6c65 640a 0a2d 206e  ssd_enabled..- n
│ │ │ -002346d0: 616d 653a 2045 6e61 626c 6520 7468 6520  ame: Enable the 
│ │ │ -002346e0: 5353 5344 2053 6572 7669 6365 202d 2045  SSSD Service - E
│ │ │ -002346f0: 6e61 626c 6520 7365 7276 6963 6520 7373  nable service ss
│ │ │ -00234700: 7364 0a20 2062 6c6f 636b 3a0a 0a20 202d  sd.  block:..  -
│ │ │ -00234710: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00234720: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00234730: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00234740: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -00234750: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -00234760: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -00234770: 3a20 456e 6162 6c65 2074 6865 2053 5353  : Enable the SSS
│ │ │ -00234780: 4420 5365 7276 6963 6520 2d20 456e 6162  D Service - Enab
│ │ │ -00234790: 6c65 2053 6572 7669 6365 2073 7373 640a  le Service sssd.
│ │ │ -002347a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002347b0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002347c0: 2020 206e 616d 653a 2073 7373 640a 2020     name: sssd.  
│ │ │ -002347d0: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -002347e0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002347f0: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -00234800: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -00234810: 6865 6e3a 0a20 2020 202d 2027 2273 7373  hen:.    - '"sss
│ │ │ -00234820: 642d 636f 6d6d 6f6e 2220 696e 2061 6e73  d-common" in ans
│ │ │ -00234830: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00234840: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00234850: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00234860: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00234870: 302d 3533 2d49 412d 3528 3130 290a 2020  0-53-IA-5(10).  
│ │ │ -00234880: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00234890: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002348a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002348b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -002348c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -002348d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002348e0: 0a20 202d 2073 6572 7669 6365 5f73 7373  .  - service_sss
│ │ │ -002348f0: 645f 656e 6162 6c65 640a 2020 2d20 7370  d_enabled.  - sp
│ │ │ -00234900: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -00234910: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20  ock.  when:.  - 
│ │ │ -00234920: 2722 7373 7364 2d63 6f6d 6d6f 6e22 2069  '"sssd-common" i
│ │ │ -00234930: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00234940: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -00234950: 2273 7373 642d 636f 6d6d 6f6e 2220 696e  "sssd-common" in
│ │ │ -00234960: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00234970: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -00234980: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00234990: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002349a0: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +002340d0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +002340e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00234160: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00234170: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00234180: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002341c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002341d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002341f0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00234210: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00234220: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00234230: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00234240: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00234250: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00234260: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00234270: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00234280: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ +00234290: 3029 0a20 202d 2065 6e61 626c 655f 7374  0).  - enable_st
│ │ │ +002342a0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002342b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002342c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002342d0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +002342e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002342f0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00234300: 655f 7373 7364 5f65 6e61 626c 6564 0a0a  e_sssd_enabled..
│ │ │ +00234310: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074  - name: Enable t
│ │ │ +00234320: 6865 2053 5353 4420 5365 7276 6963 6520  he SSSD Service 
│ │ │ +00234330: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +00234340: 2073 7373 640a 2020 626c 6f63 6b3a 0a0a   sssd.  block:..
│ │ │ +00234350: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +00234360: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00234370: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +00234380: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +00234390: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +002343a0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +002343b0: 616d 653a 2045 6e61 626c 6520 7468 6520  ame: Enable the 
│ │ │ +002343c0: 5353 5344 2053 6572 7669 6365 202d 2045  SSSD Service - E
│ │ │ +002343d0: 6e61 626c 6520 5365 7276 6963 6520 7373  nable Service ss
│ │ │ +002343e0: 7364 0a20 2020 2061 6e73 6962 6c65 2e62  sd.    ansible.b
│ │ │ +002343f0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00234400: 2020 2020 2020 6e61 6d65 3a20 7373 7364        name: sssd
│ │ │ +00234410: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00234420: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +00234430: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +00234440: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +00234450: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +00234460: 7373 7364 2d63 6f6d 6d6f 6e22 2069 6e20  sssd-common" in 
│ │ │ +00234470: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00234480: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00234490: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002344a0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002344b0: 2d38 3030 2d35 332d 4941 2d35 2831 3029  -800-53-IA-5(10)
│ │ │ +002344c0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +002344d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002344e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002344f0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00234500: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00234510: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00234520: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00234530: 7373 7364 5f65 6e61 626c 6564 0a20 202d  sssd_enabled.  -
│ │ │ +00234540: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00234550: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ +00234560: 202d 2027 2273 7373 642d 636f 6d6d 6f6e   - '"sssd-common
│ │ │ +00234570: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00234580: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ +00234590: 2028 2022 7373 7364 2d63 6f6d 6d6f 6e22   ( "sssd-common"
│ │ │ +002345a0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002345b0: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ +002345c0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002345d0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002345e0: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
< │ │ │ +00234600: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00234610: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00234620: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00234630: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00234640: 6437 3739 2220 7461 6269 6e64 6578 3d22 d779" tabindex=" │ │ │ +00234650: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00234660: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00234670: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00234680: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00234690: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +002346a0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002346b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00234740: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00234750: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00234770: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00234790: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002347a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +002347e0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +002347f0: 6520 656e 6162 6c65 5f73 7373 640a 0a63 e enable_sssd..c │ │ │ +00234800: 6c61 7373 2065 6e61 626c 655f 7373 7364 lass enable_sssd │ │ │ +00234810: 207b 0a20 2073 6572 7669 6365 207b 2773 {. service {'s │ │ │ +00234820: 7373 6427 3a0a 2020 2020 656e 6162 6c65 ssd':. enable │ │ │ +00234830: 203d 2667 743b 2074 7275 652c 0a20 2020 => true,. │ │ │ +00234840: 2065 6e73 7572 6520 3d26 6774 3b20 2772 ensure => 'r │ │ │ +00234850: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c unning',. }.}.< │ │ │ +00234860: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ +00234910: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00234920: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00234930: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00234940: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00234970: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00234980: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00234990: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +002349a0: 5b22 7373 7364 225d 0a3c 2f63 6f64 653e  ["sssd"].
│ │ │  002349b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -003c13e0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -003c13f0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -003c1400: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -003c1440: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -003c1450: 5d5d 0a6e 616d 6520 3d20 2261 7564 6974  ]].name = "audit
│ │ │ -003c1460: 6422 0a76 6572 7369 6f6e 203d 2022 2a22  d".version = "*"
│ │ │ -003c1470: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -003c1530: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -003c1540: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -003c1610: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -003c1620: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -003c1670: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ -003c1680: 7564 6974 640a 0a63 6c61 7373 2069 6e73  uditd..class ins
│ │ │ -003c1690: 7461 6c6c 5f61 7564 6974 6420 7b0a 2020  tall_auditd {.  
│ │ │ -003c16a0: 7061 636b 6167 6520 7b20 2761 7564 6974  package { 'audit
│ │ │ -003c16b0: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -003c16c0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -003c16d0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -003c16e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -003c1790: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -003c17a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -003c17b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -003c17c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -003c17d0: 7365 2220 6964 3d22 6964 3933 3722 3e3c se" id="id937">< │ │ │ -003c17e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -003c17f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -003c1800: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -003c1810: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -003c1820: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -003c18b0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -003c18c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -003c15f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -003c1600: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -003c1640: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -003c1650: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -003c1830: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -003c1840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -003c1880: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -003c1890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -003c18e0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -003c18f0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -003c1900: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -003c1910: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -003c1920: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -003c1930: 3533 2d41 432d 3728 6129 0a20 202d 204e  53-AC-7(a).  - N
│ │ │ -003c1940: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ -003c1950: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ -003c1960: 2d35 332d 4155 2d31 340a 2020 2d20 4e49  -53-AU-14.  - NI
│ │ │ -003c1970: 5354 2d38 3030 2d35 332d 4155 2d32 2861  ST-800-53-AU-2(a
│ │ │ -003c1980: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003c1990: 332d 4155 2d37 2831 290a 2020 2d20 4e49  3-AU-7(1).  - NI
│ │ │ -003c19a0: 5354 2d38 3030 2d35 332d 4155 2d37 2832  ST-800-53-AU-7(2
│ │ │ -003c19b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003c19c0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -003c19d0: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -003c19e0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -003c19f0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -003c1a00: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -003c1a10: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -003c1a20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -003c1a30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -003c1a40: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -003c1a50: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -003c1a60: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -003c1a70: 636b 6167 655f 6175 6469 745f 696e 7374  ckage_audit_inst
│ │ │ -003c1a80: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -003c1a90: 6e73 7572 6520 6175 6469 7464 2069 7320  nsure auditd is 
│ │ │ -003c1aa0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -003c1ab0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -003c1ac0: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -003c1ad0: 7564 6974 640a 2020 2020 7374 6174 653a  uditd.    state:
│ │ │ -003c1ae0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -003c1af0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -003c1b00: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -003c1b10: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -003c1b20: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -003c1b30: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ -003c1b40: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -003c1b50: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ -003c1b60: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ -003c1b70: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ -003c1b80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -003c1b90: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ -003c1ba0: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ -003c1bb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -003c1bc0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -003c1bd0: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -003c1be0: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -003c1bf0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -003c1c00: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -003c1c10: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -003c1c20: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -003c1c30: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -003c1c40: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -003c1c50: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -003c1c60: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -003c1c70: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ -003c1c80: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
│ │ │ +003c1400: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +003c1430: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +003c14a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +003c14c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +003c14f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +003c1510: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +003c1480: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +003c1490: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +003c14d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +003c14e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +003c1530: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +003c1540: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +003c1550: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +003c1560: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +003c1570: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +003c1580: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ +003c1590: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ +003c15a0: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ +003c15b0: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ +003c15c0: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ +003c15d0: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +003c15e0: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ +003c15f0: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ +003c1600: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ +003c1610: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ +003c1620: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ +003c1630: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ +003c1640: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +003c1650: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ +003c1660: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +003c1670: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +003c1680: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +003c1690: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +003c16a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +003c16b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +003c16c0: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ +003c16d0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 talled..- name: │ │ │ +003c16e0: 456e 7375 7265 2061 7564 6974 6420 6973 Ensure auditd is │ │ │ +003c16f0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ +003c1700: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +003c1710: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +003c1720: 6175 6469 7464 0a20 2020 2073 7461 7465 auditd. state │ │ │ +003c1730: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ +003c1740: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +003c1750: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +003c1760: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ +003c1770: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +003c1780: 3533 2d41 432d 3728 6129 0a20 202d 204e 53-AC-7(a). - N │ │ │ +003c1790: 4953 542d 3830 302d 3533 2d41 552d 3132 IST-800-53-AU-12 │ │ │ +003c17a0: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ +003c17b0: 2d35 332d 4155 2d31 340a 2020 2d20 4e49 -53-AU-14. - NI │ │ │ +003c17c0: 5354 2d38 3030 2d35 332d 4155 2d32 2861 ST-800-53-AU-2(a │ │ │ +003c17d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +003c17e0: 332d 4155 2d37 2831 290a 2020 2d20 4e49 3-AU-7(1). - NI │ │ │ +003c17f0: 5354 2d38 3030 2d35 332d 4155 2d37 2832 ST-800-53-AU-7(2 │ │ │ +003c1800: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +003c1810: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +003c1820: 492d 4453 532d 5265 712d 3130 2e31 0a20 I-DSS-Req-10.1. │ │ │ +003c1830: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ +003c1840: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +003c1850: 3130 2e32 2e31 0a20 202d 2065 6e61 626c 10.2.1. - enabl │ │ │ +003c1860: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +003c1870: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +003c1880: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +003c1890: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +003c18a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +003c18b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +003c18c0: 636b 6167 655f 6175 6469 745f 696e 7374 ckage_audit_inst │ │ │ +003c18d0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +003c1990: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +003c19a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +003c1a30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +003c1a50: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +003c1a60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +003c1a70: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +003c1a80: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +003c1aa0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +003c1ae0: 616c 6c5f 6175 6469 7464 0a0a 636c 6173  all_auditd..clas
│ │ │ +003c1af0: 7320 696e 7374 616c 6c5f 6175 6469 7464  s install_auditd
│ │ │ +003c1b00: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +003c1b10: 6175 6469 7464 273a 0a20 2020 2065 6e73  auditd':.    ens
│ │ │ +003c1b20: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +003c1b30: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +003c1b50: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +003c1bf0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +003c1c00: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +003c1c10: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +003c1c60: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +003c1c70: 7564 6974 6422 0a76 6572 7369 6f6e 203d uditd".version = │ │ │ +003c1c80: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".

Reme │ │ │ -003c3920: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -003c3930: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -003c3940: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -003c3990: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -003c39a0: 735d 0a65 6e61 626c 6564 203d 205b 2261 s].enabled = ["a │ │ │ -003c39b0: 7564 6974 6422 5d0a 3c2f 636f 6465 3e3c uditd"].< │ │ │ -003c39c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -003c3a70: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -003c3a80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -003c3b00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -003c3b10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -003c3b20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -003c3b60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -003c3b70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -003c3b90: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -003c3bb0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -003c3bc0: 6162 6c65 5f61 7564 6974 640a 0a63 6c61  able_auditd..cla
│ │ │ -003c3bd0: 7373 2065 6e61 626c 655f 6175 6469 7464  ss enable_auditd
│ │ │ -003c3be0: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ -003c3bf0: 7564 6974 6427 3a0a 2020 2020 656e 6162  uditd':.    enab
│ │ │ -003c3c00: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -003c3c10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -003c3c20: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -003c3c30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -003c3cf0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -003c3d00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -003c3dd0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -003c3de0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -003c3e30: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -003c3e40: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -003c3e50: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -003c3e60: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -003c3e70: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -003c3e80: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ -003c3e90: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -003c3ea0: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ -003c3eb0: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ -003c3ec0: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -003c3ed0: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -003c3ee0: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ -003c3ef0: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +003c3920: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +003c3930: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +003c3940: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disru │ │ │ -003c3db0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -003c3dc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -003c3e00: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -003c3e10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +003c39c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +003c39f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +003c3a10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +003c3a20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +003c3a40: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +003c3a60: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +003c3a70: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +003c3a80: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +003c3a90: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +003c3aa0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +003c3ab0: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ +003c3ac0: 352e 342e 312e 310a 2020 2d20 4e49 5354  5.4.1.1.  - NIST
│ │ │ +003c3ad0: 2d38 3030 2d31 3731 2d33 2e33 2e31 0a20  -800-171-3.3.1. 
│ │ │ +003c3ae0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +003c3af0: 332e 332e 320a 2020 2d20 4e49 5354 2d38  3.3.2.  - NIST-8
│ │ │ +003c3b00: 3030 2d31 3731 2d33 2e33 2e36 0a20 202d  00-171-3.3.6.  -
│ │ │ +003c3b10: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +003c3b20: 3228 6729 0a20 202d 204e 4953 542d 3830  2(g).  - NIST-80
│ │ │ +003c3b30: 302d 3533 2d41 432d 3628 3929 0a20 202d  0-53-AC-6(9).  -
│ │ │ +003c3b40: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +003c3b50: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +003c3b60: 3533 2d41 552d 3132 2863 290a 2020 2d20  53-AU-12(c).  - 
│ │ │ +003c3b70: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +003c3b80: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +003c3b90: 302d 3533 2d41 552d 3228 6429 0a20 202d  0-53-AU-2(d).  -
│ │ │ +003c3ba0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +003c3bb0: 330a 2020 2d20 4e49 5354 2d38 3030 2d35  3.  - NIST-800-5
│ │ │ +003c3bc0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +003c3bd0: 5354 2d38 3030 2d35 332d 5349 2d34 2832  ST-800-53-SI-4(2
│ │ │ +003c3be0: 3329 0a20 202d 2050 4349 2d44 5353 2d52  3).  - PCI-DSS-R
│ │ │ +003c3bf0: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +003c3c00: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +003c3c10: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +003c3c20: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +003c3c30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +003c3c40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +003c3c50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +003c3c60: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +003c3c70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +003c3c80: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ +003c3c90: 7564 6974 645f 656e 6162 6c65 640a 0a2d  uditd_enabled..-
│ │ │ +003c3ca0: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ +003c3cb0: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ +003c3cc0: 6e61 626c 6520 7365 7276 6963 6520 6175  nable service au
│ │ │ +003c3cd0: 6469 7464 0a20 2062 6c6f 636b 3a0a 0a20  ditd.  block:.. 
│ │ │ +003c3ce0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +003c3cf0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +003c3d00: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +003c3d10: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +003c3d20: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +003c3d30: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +003c3d40: 6d65 3a20 456e 6162 6c65 2061 7564 6974  me: Enable audit
│ │ │ +003c3d50: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +003c3d60: 6c65 2053 6572 7669 6365 2061 7564 6974  le Service audit
│ │ │ +003c3d70: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +003c3d80: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +003c3d90: 2020 2020 206e 616d 653a 2061 7564 6974       name: audit
│ │ │ +003c3da0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +003c3db0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +003c3dc0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +003c3dd0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +003c3de0: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +003c3df0: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ +003c3e00: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +003c3e10: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +003c3e20: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ +003c3e30: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +003c3e40: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ +003c3e50: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ +003c3e60: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +003c3e70: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ +003c3e80: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ +003c3e90: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +003c3ea0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +003c3eb0: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ +003c3ec0: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ +003c3ed0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003c3ee0: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ +003c3ef0: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │  003c3f00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003c3f10: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ -003c3f20: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ -003c3f30: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -003c3f40: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ -003c3f50: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ -003c3f60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003c3f70: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ -003c3f80: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -003c3f90: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -003c3fa0: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ -003c3fb0: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -003c3fc0: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -003c3fd0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -003c3fe0: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -003c3ff0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -003c4000: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -003c4010: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -003c4020: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -003c4030: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -003c4040: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -003c4050: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ -003c4060: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -003c4070: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -003c4080: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -003c4090: 6365 2061 7564 6974 640a 2020 626c 6f63  ce auditd.  bloc
│ │ │ -003c40a0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -003c40b0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -003c40c0: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -003c40d0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -003c40e0: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -003c40f0: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -003c4100: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -003c4110: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ -003c4120: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -003c4130: 6175 6469 7464 0a20 2020 2061 6e73 6962  auditd.    ansib
│ │ │ -003c4140: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -003c4150: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -003c4160: 6175 6469 7464 0a20 2020 2020 2065 6e61  auditd.      ena
│ │ │ -003c4170: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -003c4180: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -003c4190: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -003c41a0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -003c41b0: 2020 2d20 2722 6175 6469 7464 2220 696e    - '"auditd" in
│ │ │ -003c41c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -003c41d0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -003c41e0: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ -003c41f0: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ -003c4200: 3731 2d33 2e33 2e31 0a20 202d 204e 4953  71-3.3.1.  - NIS
│ │ │ -003c4210: 542d 3830 302d 3137 312d 332e 332e 320a  T-800-171-3.3.2.
│ │ │ -003c4220: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -003c4230: 2d33 2e33 2e36 0a20 202d 204e 4953 542d  -3.3.6.  - NIST-
│ │ │ -003c4240: 3830 302d 3533 2d41 432d 3228 6729 0a20  800-53-AC-2(g). 
│ │ │ -003c4250: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003c4260: 432d 3628 3929 0a20 202d 204e 4953 542d  C-6(9).  - NIST-
│ │ │ -003c4270: 3830 302d 3533 2d41 552d 3130 0a20 202d  800-53-AU-10.  -
│ │ │ -003c4280: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -003c4290: 3132 2863 290a 2020 2d20 4e49 5354 2d38  12(c).  - NIST-8
│ │ │ -003c42a0: 3030 2d35 332d 4155 2d31 3428 3129 0a20  00-53-AU-14(1). 
│ │ │ -003c42b0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003c42c0: 552d 3228 6429 0a20 202d 204e 4953 542d  U-2(d).  - NIST-
│ │ │ -003c42d0: 3830 302d 3533 2d41 552d 330a 2020 2d20  800-53-AU-3.  - 
│ │ │ -003c42e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -003c42f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -003c4300: 2d35 332d 5349 2d34 2832 3329 0a20 202d  -53-SI-4(23).  -
│ │ │ -003c4310: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -003c4320: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ -003c4330: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ -003c4340: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ -003c4350: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -003c4360: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -003c4370: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -003c4380: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -003c4390: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -003c43a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -003c43b0: 2073 6572 7669 6365 5f61 7564 6974 645f   service_auditd_
│ │ │ -003c43c0: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ -003c43d0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -003c43e0: 6b0a 2020 7768 656e 3a0a 2020 2d20 2722  k.  when:.  - '"
│ │ │ -003c43f0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -003c4400: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -003c4410: 6b61 6765 7327 0a20 202d 2027 2261 7564  kages'.  - '"aud
│ │ │ -003c4420: 6974 6422 2069 6e20 616e 7369 626c 655f  itd" in ansible_
│ │ │ -003c4430: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +003c3f10: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ +003c3f20: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +003c3f30: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +003c3f40: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ +003c3f50: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ +003c3f60: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ +003c3f70: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +003c3f80: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ +003c3f90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +003c3fa0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +003c3fb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +003c3fc0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +003c3fd0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +003c3fe0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +003c3ff0: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ +003c4000: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +003c4010: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +003c4020: 6865 6e3a 0a20 202d 2027 226c 696e 7578  hen:.  - '"linux
│ │ │ +003c4030: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +003c4040: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +003c4050: 270a 2020 2d20 2722 6175 6469 7464 2220  '.  - '"auditd" 
│ │ │ +003c4060: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +003c4070: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +003c4130: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +003c4140: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +003c41f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +003c4210: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +003c4240: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +003c41d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +003c41e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +003c4200: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +003c4220: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +003c4230: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +003c4280: 2065 6e61 626c 655f 6175 6469 7464 0a0a enable_auditd.. │ │ │ +003c4290: 636c 6173 7320 656e 6162 6c65 5f61 7564 class enable_aud │ │ │ +003c42a0: 6974 6420 7b0a 2020 7365 7276 6963 6520 itd {. service │ │ │ +003c42b0: 7b27 6175 6469 7464 273a 0a20 2020 2065 {'auditd':. e │ │ │ +003c42c0: 6e61 626c 6520 3d26 6774 3b20 7472 7565 nable => true │ │ │ +003c42d0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +003c42e0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020 t; 'running',. │ │ │ +003c42f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ +003c43b0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +003c43c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +003c4410: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +003c4420: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +003c4430: 6564 203d 205b 2261 7564 6974 6422 5d0a  ed = ["auditd"].
│ │ │  003c4440: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -167,14 +150,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -600,31 +600,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -651,14 +634,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -3852,31 +3852,14 @@ │ │ │ │ Rationale: password in resisting attempts at guessing and brute-force attacks. "pwquality" enforces │ │ │ │ complex password construction configuration and has the ability to limit brute-force │ │ │ │ attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -3897,14 +3880,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -5410,31 +5410,14 @@ │ │ │ │ Control system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000368-GPOS-00154, SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG- │ │ │ │ References: OS-000312-GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5444,14 +5427,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -5469,31 +5469,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_apparmor_installed │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-apparmor │ │ │ │ - │ │ │ │ -class install_libpam-apparmor { │ │ │ │ - package { 'libpam-apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5510,14 +5493,31 @@ │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-apparmor │ │ │ │ + │ │ │ │ +class install_libpam-apparmor { │ │ │ │ + package { 'libpam-apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -5702,31 +5702,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_apparmor_configured │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["apparmor"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_apparmor │ │ │ │ - │ │ │ │ -class enable_apparmor { │ │ │ │ - service {'apparmor': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - name: Start apparmor.service │ │ │ │ ansible.builtin.systemd: │ │ │ │ name: apparmor.service │ │ │ │ state: started │ │ │ │ enabled: true │ │ │ │ when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ @@ -5736,14 +5719,31 @@ │ │ │ │ - NIST-800-53-AC-6(8) │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - NIST-800-53-CM-7(2) │ │ │ │ - NIST-800-53-CM-7(5)(b) │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - apparmor_configured │ │ │ │ - medium_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_apparmor │ │ │ │ + │ │ │ │ +class enable_apparmor { │ │ │ │ + service {'apparmor': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["apparmor"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr iiss eennaabblleedd iinn tthhee bboooottllooaaddeerr ccoonnffiigguurraattiioonn ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Configure AppArmor to be enabled at boot time and verify that it has not been overwritten by the │ │ │ │ bootloader boot parameters. Note: This recommendation is designed around the grub bootloader, if LILO │ │ │ │ or another bootloader is in use in your environment, enact equivalent settings. │ │ │ │ Rationale: AppArmor must be enabled at boot time in your bootloader configuration to ensure that the │ │ │ │ controls it provides are not overridden. │ │ │ │ Severity:  medium │ │ │ │ @@ -10507,31 +10507,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.7 │ │ │ │ _a_n_s_s_i R71 │ │ │ │ _p_c_i_d_s_s_4 10.5.1, 10.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "logrotate" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_logrotate │ │ │ │ - │ │ │ │ -class install_logrotate { │ │ │ │ - package { 'logrotate': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10560,14 +10543,31 @@ │ │ │ │ - PCI-DSSv4-10.5.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_logrotate_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_logrotate │ │ │ │ + │ │ │ │ +class install_logrotate { │ │ │ │ + package { 'logrotate': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "logrotate" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -10921,31 +10921,14 @@ │ │ │ │ Rationale: The rsyslog-gnutls package provides Transport Layer Security (TLS) support for the │ │ │ │ rsyslog daemon, which enables secure remote logging. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsyslog-gnutls_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000120-GPOS-00061 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog-gnutls" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog-gnutls │ │ │ │ - │ │ │ │ -class install_rsyslog-gnutls { │ │ │ │ - package { 'rsyslog-gnutls': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10966,14 +10949,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog-gnutls_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog-gnutls │ │ │ │ + │ │ │ │ +class install_rsyslog-gnutls { │ │ │ │ + package { 'rsyslog-gnutls': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog-gnutls" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -10998,31 +10998,14 @@ │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11045,14 +11028,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -11081,31 +11081,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, │ │ │ │ A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11142,14 +11125,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -32095,27 +32095,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -32129,14 +32116,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -32165,27 +32165,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and │ │ │ │ disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -32194,14 +32181,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove kea │ │ │ │ @@ -32409,27 +32409,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32456,14 +32443,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -32551,31 +32551,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32602,14 +32585,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "chrony" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33325,27 +33325,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33377,14 +33364,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33433,27 +33433,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33464,14 +33451,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypbind-mt │ │ │ │ @@ -33524,27 +33524,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33560,14 +33547,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -33623,27 +33623,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-server │ │ │ │ - │ │ │ │ -class remove_rsh-server { │ │ │ │ - package { 'rsh-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh-server Package: Ensure rsh-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33658,14 +33645,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-server │ │ │ │ + │ │ │ │ +class remove_rsh-server { │ │ │ │ + package { 'rsh-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-server │ │ │ │ @@ -33703,27 +33703,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33735,14 +33722,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -33779,27 +33779,14 @@ │ │ │ │ intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ References: 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33810,14 +33797,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk-server │ │ │ │ @@ -33855,27 +33855,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33886,14 +33873,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -33956,27 +33956,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33991,14 +33978,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet-server │ │ │ │ @@ -34035,27 +34035,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34067,14 +34054,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -34133,27 +34133,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34167,14 +34154,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -34208,27 +34208,14 @@ │ │ │ │ Rationale: It is recommended that TFTP be removed, unless there is a specific need for TFTP (such as │ │ │ │ a boot server). In that case, use extreme caution when configuring the services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34239,14 +34226,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftp │ │ │ │ @@ -35177,26 +35177,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35260,14 +35248,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -35305,23 +35305,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35385,14 +35376,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -35486,31 +35486,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, A.7.1.1, A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, │ │ │ │ A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sssd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sssd │ │ │ │ - │ │ │ │ -class install_sssd { │ │ │ │ - package { 'sssd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35533,14 +35516,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sssd_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sssd │ │ │ │ + │ │ │ │ +class install_sssd { │ │ │ │ + package { 'sssd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sssd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -35570,31 +35570,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, A.7.1.1, A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, │ │ │ │ A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-6(a), IA-5(10) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["sssd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_sssd │ │ │ │ - │ │ │ │ -class enable_sssd { │ │ │ │ - service {'sssd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35634,14 +35617,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_sssd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"sssd-common" in ansible_facts.packages' │ │ │ │ - ( "sssd-common" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_sssd │ │ │ │ + │ │ │ │ +class enable_sssd { │ │ │ │ + service {'sssd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["sssd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -72527,31 +72527,14 @@ │ │ │ │ SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS-00140, │ │ │ │ SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, │ │ │ │ SRG-OS-000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -72592,14 +72575,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -72660,31 +72660,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR- │ │ │ │ 001300, SRG-APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -72751,14 +72734,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_bp28_high.html │ │ │ @@ -15045,134 +15045,134 @@ │ │ │ 0003ac40: 6174 612d 7461 7267 6574 3d22 2369 6431 ata-target="#id1 │ │ │ 0003ac50: 3522 2074 6162 696e 6465 783d 2230 2220 5" tabindex="0" │ │ │ 0003ac60: 726f 6c65 3d22 6275 7474 6f6e 2220 6172 role="button" ar │ │ │ 0003ac70: 6961 2d65 7870 616e 6465 643d 2266 616c ia-expanded="fal │ │ │ 0003ac80: 7365 2220 7469 746c 653d 2241 6374 6976 se" title="Activ │ │ │ 0003ac90: 6174 6520 746f 2072 6576 6561 6c22 2068 ate to reveal" h │ │ │ 0003aca0: 7265 663d 2223 2122 3e52 656d 6564 6961 ref="#!">Remedia │ │ │ -0003acb0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0003acc0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0003acd0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ -0003ad20: 5d0a 6e61 6d65 203d 2022 6169 6465 220a  ].name = "aide".
│ │ │ -0003ad30: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -0003adf0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0003ae00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003ae10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0003ae90: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003aea0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003aec0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003aee0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003aef0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003af30: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0003af40: 6520 696e 7374 616c 6c5f 6169 6465 0a0a e install_aide.. │ │ │ -0003af50: 636c 6173 7320 696e 7374 616c 6c5f 6169 class install_ai │ │ │ -0003af60: 6465 207b 0a20 2070 6163 6b61 6765 207b de {. package { │ │ │ -0003af70: 2027 6169 6465 273a 0a20 2020 2065 6e73 'aide':. ens │ │ │ -0003af80: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ -0003af90: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ -0003afb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -0003b050: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0003b060: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003b070: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0003b0f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003b100: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003b120: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003b140: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003b150: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003b190: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0003b1a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0003b1b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0003b1c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0003b1d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0003b1e0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ -0003b1f0: 2e31 302e 312e 330a 2020 2d20 4e49 5354 .10.1.3. - NIST │ │ │ -0003b200: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0003b210: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -0003b220: 3131 2e35 0a20 202d 2050 4349 2d44 5353 11.5. - PCI-DSS │ │ │ -0003b230: 7634 2d31 312e 352e 320a 2020 2d20 656e v4-11.5.2. - en │ │ │ -0003b240: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0003b250: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -0003b260: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -0003b270: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -0003b280: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -0003b290: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -0003b2a0: 2070 6163 6b61 6765 5f61 6964 655f 696e package_aide_in │ │ │ -0003b2b0: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ -0003b2c0: 2045 6e73 7572 6520 6169 6465 2069 7320 Ensure aide is │ │ │ -0003b2d0: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ -0003b2e0: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ -0003b2f0: 6167 653a 0a20 2020 206e 616d 653a 2061 age:. name: a │ │ │ -0003b300: 6964 650a 2020 2020 7374 6174 653a 2070 ide. state: p │ │ │ -0003b310: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ -0003b320: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -0003b330: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0003b340: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -0003b350: 2020 2d20 434a 4953 2d35 2e31 302e 312e - CJIS-5.10.1. │ │ │ -0003b360: 330a 2020 2d20 4e49 5354 2d38 3030 2d35 3. - NIST-800-5 │ │ │ -0003b370: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ -0003b380: 492d 4453 532d 5265 712d 3131 2e35 0a20 I-DSS-Req-11.5. │ │ │ -0003b390: 202d 2050 4349 2d44 5353 7634 2d31 312e - PCI-DSSv4-11. │ │ │ -0003b3a0: 352e 320a 2020 2d20 656e 6162 6c65 5f73 5.2. - enable_s │ │ │ -0003b3b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -0003b3c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0003b3d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0003b3e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -0003b3f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -0003b400: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0003b410: 6765 5f61 6964 655f 696e 7374 616c 6c65 ge_aide_installe │ │ │ -0003b420: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0003acb0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +0003acc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0003acd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0003ad00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0003ad10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0003ad20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0003ad30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0003ad40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0003ad50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0003ad60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0003ada0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0003adb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0003add0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0003ade0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0003ae00: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0003ae10: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0003ae20: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0003ae30: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0003ae40: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ +0003ae50: 2e31 2e33 0a20 202d 204e 4953 542d 3830  .1.3.  - NIST-80
│ │ │ +0003ae60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0003ae70: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ +0003ae80: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ +0003ae90: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ +0003aea0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0003aeb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0003aec0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0003aed0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0003aee0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0003aef0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0003af00: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ +0003af10: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +0003af20: 7375 7265 2061 6964 6520 6973 2069 6e73  sure aide is ins
│ │ │ +0003af30: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +0003af40: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0003af50: 3a0a 2020 2020 6e61 6d65 3a20 6169 6465  :.    name: aide
│ │ │ +0003af60: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +0003af70: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +0003af80: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0003af90: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0003afa0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +0003afb0: 2043 4a49 532d 352e 3130 2e31 2e33 0a20   CJIS-5.10.1.3. 
│ │ │ +0003afc0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0003afd0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0003afe0: 5353 2d52 6571 2d31 312e 350a 2020 2d20  SS-Req-11.5.  - 
│ │ │ +0003aff0: 5043 492d 4453 5376 342d 3131 2e35 2e32  PCI-DSSv4-11.5.2
│ │ │ +0003b000: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0003b010: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0003b020: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0003b030: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0003b040: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0003b050: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0003b060: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0003b070: 6169 6465 5f69 6e73 7461 6c6c 6564 0a3c  aide_installed.<
│ │ │ +0003b080: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0003b130: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0003b140: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0003b150: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +0003b1d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0003b200: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0003b220: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0003b230: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0003b250: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0003b270: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0003b280: 6465 2069 6e73 7461 6c6c 5f61 6964 650a  de install_aide.
│ │ │ +0003b290: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ +0003b2a0: 6964 6520 7b0a 2020 7061 636b 6167 6520  ide {.  package 
│ │ │ +0003b2b0: 7b20 2761 6964 6527 3a0a 2020 2020 656e  { 'aide':.    en
│ │ │ +0003b2c0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +0003b2d0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +0003b390: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0003b3a0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0003b3b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +0003b400: 6765 735d 5d0a 6e61 6d65 203d 2022 6169 ges]].name = "ai │ │ │ +0003b410: 6465 220a 7665 7273 696f 6e20 3d20 222a de".version = "* │ │ │ +0003b420: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 0003b430: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -0004fcc0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0004fcd0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0004fce0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]]
│ │ │ -0004fd30: 0a6e 616d 6520 3d20 2273 7564 6f22 0a76  .name = "sudo".v
│ │ │ -0004fd40: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0004fd60: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -0004fe00: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0004fe10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0004fec0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0004fee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0004ff10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0004fea0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0004feb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0004fed0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0004fef0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0004ff00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0004ff50: 2069 6e73 7461 6c6c 5f73 7564 6f0a 0a63 install_sudo..c │ │ │ -0004ff60: 6c61 7373 2069 6e73 7461 6c6c 5f73 7564 lass install_sud │ │ │ -0004ff70: 6f20 7b0a 2020 7061 636b 6167 6520 7b20 o {. package { │ │ │ -0004ff80: 2773 7564 6f27 3a0a 2020 2020 656e 7375 'sudo':. ensu │ │ │ -0004ff90: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -0004ffa0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ -0004ffc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0004ffd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0004ffe0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0004fff0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00050000: 6434 3822 2074 6162 696e 6465 783d 2230 d48" tabindex="0 │ │ │ -00050010: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00050020: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00050030: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00050040: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00050050: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00050060: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00050070: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00050120: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00050140: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00050170: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00050100: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00050110: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00050130: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00050150: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00050160: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -000501b0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -000501c0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -000501d0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -000501e0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -000501f0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00050200: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00050210: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -00050220: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00050230: 2e36 0a20 202d 2065 6e61 626c 655f 7374 .6. - enable_st │ │ │ -00050240: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00050250: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00050260: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00050270: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00050280: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00050290: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -000502a0: 655f 7375 646f 5f69 6e73 7461 6c6c 6564 e_sudo_installed │ │ │ -000502b0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ -000502c0: 2073 7564 6f20 6973 2069 6e73 7461 6c6c sudo is install │ │ │ -000502d0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -000502e0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -000502f0: 2020 6e61 6d65 3a20 7375 646f 0a20 2020 name: sudo. │ │ │ -00050300: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -00050310: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00050320: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00050330: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00050340: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -00050350: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -00050360: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -00050370: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -00050380: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c -2.2.6. - enabl │ │ │ -00050390: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -000503a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -000503b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -000503c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -000503d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -000503e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -000503f0: 636b 6167 655f 7375 646f 5f69 6e73 7461 ckage_sudo_insta │ │ │ -00050400: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.
< │ │ │ +0004fce0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0004fcf0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0004fd00: 7365 2220 6964 3d22 6964 3436 223e 3c74 se" id="id46"> │ │ │ +0004fd50: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0004fd60: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0004fd70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0004fdb0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0004fdc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0004fde0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +0004fe00: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0004fe10: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0004fe20: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0004fe30: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0004fe40: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0004fe50: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0004fe60: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0004fe70: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0004fe80: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +0004fe90: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0004fea0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0004feb0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0004fec0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0004fed0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0004fee0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0004fef0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +0004ff00: 7564 6f5f 696e 7374 616c 6c65 640a 0a2d  udo_installed..-
│ │ │ +0004ff10: 206e 616d 653a 2045 6e73 7572 6520 7375   name: Ensure su
│ │ │ +0004ff20: 646f 2069 7320 696e 7374 616c 6c65 640a  do is installed.
│ │ │ +0004ff30: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0004ff40: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0004ff50: 616d 653a 2073 7564 6f0a 2020 2020 7374  ame: sudo.    st
│ │ │ +0004ff60: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0004ff70: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0004ff80: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0004ff90: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0004ffa0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0004ffb0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0004ffc0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0004ffd0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0004ffe0: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ +0004fff0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00050000: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00050010: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00050020: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00050030: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00050040: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00050050: 6765 5f73 7564 6f5f 696e 7374 616c 6c65  ge_sudo_installe
│ │ │ +00050060: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00050070: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +00050120: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00050130: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +000501c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00050260: 636c 7564 6520 696e 7374 616c 6c5f 7375  clude install_su
│ │ │ +00050270: 646f 0a0a 636c 6173 7320 696e 7374 616c  do..class instal
│ │ │ +00050280: 6c5f 7375 646f 207b 0a20 2070 6163 6b61  l_sudo {.  packa
│ │ │ +00050290: 6765 207b 2027 7375 646f 273a 0a20 2020  ge { 'sudo':.   
│ │ │ +000502a0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +000502b0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +000502c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00050370: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00050380: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00050390: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000503d0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000503e0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000503f0: 2273 7564 6f22 0a76 6572 7369 6f6e 203d  "sudo".version =
│ │ │ +00050400: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediati │ │ │ -000869e0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000869f0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00086a00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00086a50: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -00086a60: 7077 7175 616c 6974 7922 0a76 6572 7369  pwquality".versi
│ │ │ -00086a70: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -00086a80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00086b30: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00086b40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00086b50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00086b60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00086b70: 7365 2220 6964 3d22 6964 3133 3022 3e3c se" id="id130">< │ │ │ -00086b80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00086b90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00086ba0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00086bb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00086bc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ -00086c50: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00086c60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +000501b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000501e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000501f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00050230: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00050240: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00086bd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00086be0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00086c20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00086c30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ -00086c80: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7077  nstall_libpam-pw
│ │ │ -00086c90: 7175 616c 6974 790a 0a63 6c61 7373 2069  quality..class i
│ │ │ -00086ca0: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7077  nstall_libpam-pw
│ │ │ -00086cb0: 7175 616c 6974 7920 7b0a 2020 7061 636b  quality {.  pack
│ │ │ -00086cc0: 6167 6520 7b20 276c 6962 7061 6d2d 7077  age { 'libpam-pw
│ │ │ -00086cd0: 7175 616c 6974 7927 3a0a 2020 2020 656e  quality':.    en
│ │ │ -00086ce0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -00086cf0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -00086db0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00086dc0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00086e60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00086e70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00086ec0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00086f00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00086f10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00086f20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00086f30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00086f40: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00086f50: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00086f60: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00086f70: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00086f80: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00086f90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00086fa0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00086fb0: 7061 636b 6167 655f 7061 6d5f 7077 7175  package_pam_pwqu
│ │ │ -00086fc0: 616c 6974 795f 696e 7374 616c 6c65 640a  ality_installed.
│ │ │ -00086fd0: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -00086fe0: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -00086ff0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00087000: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00087010: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00087020: 653a 206c 6962 7061 6d2d 7077 7175 616c  e: libpam-pwqual
│ │ │ -00087030: 6974 790a 2020 2020 7374 6174 653a 2070  ity.    state: p
│ │ │ -00087040: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -00087050: 226c 6962 7061 6d2d 7275 6e74 696d 6522  "libpam-runtime"
│ │ │ -00087060: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00087070: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00087080: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ -00087090: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000870a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000870b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000870c0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000870d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000870e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000870f0: 6765 5f70 616d 5f70 7771 7561 6c69 7479  ge_pam_pwquality
│ │ │ -00087100: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +00086a70: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00086b00: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ -00086e50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00086e80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00086e90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00086ed0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00086ee0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +00086a80: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00086a90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00086ad0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00086ae0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +00086b20: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00086b30: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00086b40: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00086b50: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00086b60: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00086b70: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +00086b80: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00086b90: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00086ba0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00086bb0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00086bc0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00086bd0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00086be0: 5f70 616d 5f70 7771 7561 6c69 7479 5f69  _pam_pwquality_i
│ │ │ +00086bf0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +00086c00: 3a20 456e 7375 7265 206c 6962 7061 6d2d  : Ensure libpam-
│ │ │ +00086c10: 7077 7175 616c 6974 7920 6973 2069 6e73  pwquality is ins
│ │ │ +00086c20: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00086c30: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00086c40: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270  :.    name: libp
│ │ │ +00086c50: 616d 2d70 7771 7561 6c69 7479 0a20 2020  am-pwquality.   
│ │ │ +00086c60: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +00086c70: 2020 7768 656e 3a20 2722 6c69 6270 616d    when: '"libpam
│ │ │ +00086c80: 2d72 756e 7469 6d65 2220 696e 2061 6e73  -runtime" in ans
│ │ │ +00086c90: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00086ca0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00086cb0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00086cc0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00086cd0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00086ce0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00086cf0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00086d00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00086d10: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ +00086d20: 7077 7175 616c 6974 795f 696e 7374 616c  pwquality_instal
│ │ │ +00086d30: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +00086df0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00086e00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00086e80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00086ea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00086ef0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00086f20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00086f40: 6c5f 6c69 6270 616d 2d70 7771 7561 6c69  l_libpam-pwquali
│ │ │ +00086f50: 7479 0a0a 636c 6173 7320 696e 7374 616c  ty..class instal
│ │ │ +00086f60: 6c5f 6c69 6270 616d 2d70 7771 7561 6c69  l_libpam-pwquali
│ │ │ +00086f70: 7479 207b 0a20 2070 6163 6b61 6765 207b  ty {.  package {
│ │ │ +00086f80: 2027 6c69 6270 616d 2d70 7771 7561 6c69   'libpam-pwquali
│ │ │ +00086f90: 7479 273a 0a20 2020 2065 6e73 7572 6520  ty':.    ensure 
│ │ │ +00086fa0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +00086fb0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00086fc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00087070: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00087080: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00087090: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +000870d0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +000870e0: 5d5d 0a6e 616d 6520 3d20 226c 6962 7061  ]].name = "libpa
│ │ │ +000870f0: 6d2d 7077 7175 616c 6974 7922 0a76 6572  m-pwquality".ver
│ │ │ +00087100: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedi │ │ │ -000a0100: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000a0110: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000a0120: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000a0160: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000a0170: 735d 5d0a 6e61 6d65 203d 2022 6170 7061  s]].name = "appa
│ │ │ -000a0180: 726d 6f72 220a 7665 7273 696f 6e20 3d20  rmor".version = 
│ │ │ -000a0190: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000a0250: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000a0260: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ +00086e90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00086eb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00086f00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00086f10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -000a02e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000a0300: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000a0350: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000a0380: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000a03a0: 6c5f 6170 7061 726d 6f72 0a0a 636c 6173  l_apparmor..clas
│ │ │ -000a03b0: 7320 696e 7374 616c 6c5f 6170 7061 726d  s install_apparm
│ │ │ -000a03c0: 6f72 207b 0a20 2070 6163 6b61 6765 207b  or {.  package {
│ │ │ -000a03d0: 2027 6170 7061 726d 6f72 273a 0a20 2020   'apparmor':.   
│ │ │ -000a03e0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000a03f0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000a0400: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000a04c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000a04d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -000a02f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000a0310: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000a0360: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000a0370: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -000a05a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000a05b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000a0600: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -000a0610: 7070 6172 6d6f 7220 6973 2069 6e73 7461  pparmor is insta
│ │ │ -000a0620: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -000a0630: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -000a0640: 2020 2020 6e61 6d65 3a20 6170 7061 726d      name: apparm
│ │ │ -000a0650: 6f72 0a20 2020 2073 7461 7465 3a20 7072  or.    state: pr
│ │ │ -000a0660: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ -000a0670: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ -000a0680: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ -000a0690: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ -000a06a0: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ -000a06b0: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ -000a06c0: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ -000a06d0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000a06e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000a06f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000a0700: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000a0710: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000a0720: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000a0730: 202d 2070 6163 6b61 6765 5f61 7070 6172   - package_appar
│ │ │ -000a0740: 6d6f 725f 696e 7374 616c 6c65 640a 3c2f  mor_installed.
low
Disru │ │ │ -000a0580: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000a0590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000a05d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000a05e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +000a01c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000a01e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000a0210: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000a01a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000a01b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000a01d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000a01f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000a0200: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000a0250: 2045 6e73 7572 6520 6170 7061 726d 6f72 Ensure apparmor │ │ │ +000a0260: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ +000a0270: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +000a0280: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +000a0290: 653a 2061 7070 6172 6d6f 720a 2020 2020 e: apparmor. │ │ │ +000a02a0: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +000a02b0: 2077 6865 6e3a 2061 6e73 6962 6c65 5f76 when: ansible_v │ │ │ +000a02c0: 6972 7475 616c 697a 6174 696f 6e5f 7479 irtualization_ty │ │ │ +000a02d0: 7065 206e 6f74 2069 6e20 5b22 646f 636b pe not in ["dock │ │ │ +000a02e0: 6572 222c 2022 6c78 6322 2c20 226f 7065 er", "lxc", "ope │ │ │ +000a02f0: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20 nvz", "podman", │ │ │ +000a0300: 2263 6f6e 7461 696e 6572 225d 0a20 2074 "container"]. t │ │ │ +000a0310: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +000a0320: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000a0330: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000a0340: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000a0350: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000a0360: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000a0370: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +000a0380: 6167 655f 6170 7061 726d 6f72 5f69 6e73 age_apparmor_ins │ │ │ +000a0390: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Remediati │ │ │ +000a0450: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000a0460: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000a04e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000a04f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000a0510: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000a0520: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000a0540: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000a0560: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000a0590: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000a05a0: 7461 6c6c 5f61 7070 6172 6d6f 720a 0a63  tall_apparmor..c
│ │ │ +000a05b0: 6c61 7373 2069 6e73 7461 6c6c 5f61 7070  lass install_app
│ │ │ +000a05c0: 6172 6d6f 7220 7b0a 2020 7061 636b 6167  armor {.  packag
│ │ │ +000a05d0: 6520 7b20 2761 7070 6172 6d6f 7227 3a0a  e { 'apparmor':.
│ │ │ +000a05e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000a05f0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000a0600: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000a06c0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000a06d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000a0720: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000a0730: 6d65 203d 2022 6170 7061 726d 6f72 220a  me = "apparmor".
│ │ │ +000a0740: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediation OS │ │ │ -000a14d0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000a14e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000a14f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000a1530: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000a1540: 203d 2022 6c69 6270 616d 2d61 7070 6172   = "libpam-appar
│ │ │ -000a1550: 6d6f 7222 0a76 6572 7369 6f6e 203d 2022  mor".version = "
│ │ │ -000a1560: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000a1570: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -000a1620: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000a1630: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000a16b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000a16d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000a1720: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -000a1770: 5f6c 6962 7061 6d2d 6170 7061 726d 6f72  _libpam-apparmor
│ │ │ -000a1780: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000a1790: 6c69 6270 616d 2d61 7070 6172 6d6f 7220  libpam-apparmor 
│ │ │ -000a17a0: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ -000a17b0: 6962 7061 6d2d 6170 7061 726d 6f72 273a  ibpam-apparmor':
│ │ │ -000a17c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000a17d0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000a17e0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -000a18a0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -000a18b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -000a1970: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000a1980: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -000a16e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000a16f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000a1730: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000a1740: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -000a1940: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -000a1960: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -000a1990: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -000a19b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ -000a19f0: 7265 206c 6962 7061 6d2d 6170 7061 726d  re libpam-apparm
│ │ │ -000a1a00: 6f72 2069 7320 696e 7374 616c 6c65 640a  or is installed.
│ │ │ -000a1a10: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000a1a20: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000a1a30: 616d 653a 206c 6962 7061 6d2d 6170 7061  ame: libpam-appa
│ │ │ -000a1a40: 726d 6f72 0a20 2020 2073 7461 7465 3a20  rmor.    state: 
│ │ │ -000a1a50: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -000a1a60: 616e 7369 626c 655f 7669 7274 7561 6c69  ansible_virtuali
│ │ │ -000a1a70: 7a61 7469 6f6e 5f74 7970 6520 6e6f 7420  zation_type not 
│ │ │ -000a1a80: 696e 205b 2264 6f63 6b65 7222 2c20 226c  in ["docker", "l
│ │ │ -000a1a90: 7863 222c 2022 6f70 656e 767a 222c 2022  xc", "openvz", "
│ │ │ -000a1aa0: 706f 646d 616e 222c 2022 636f 6e74 6169  podman", "contai
│ │ │ -000a1ab0: 6e65 7222 5d0a 2020 7461 6773 3a0a 2020  ner"].  tags:.  
│ │ │ -000a1ac0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -000a1ad0: 2d33 2834 290a 2020 2d20 4e49 5354 2d38  -3(4).  - NIST-8
│ │ │ -000a1ae0: 3030 2d35 332d 4143 2d36 2831 3029 0a20  00-53-AC-6(10). 
│ │ │ -000a1af0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000a1b00: 432d 3628 3829 0a20 202d 204e 4953 542d  C-6(8).  - NIST-
│ │ │ -000a1b10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000a1b20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000a1b30: 4d2d 3728 3229 0a20 202d 204e 4953 542d  M-7(2).  - NIST-
│ │ │ -000a1b40: 3830 302d 3533 2d43 4d2d 3728 3529 2862  800-53-CM-7(5)(b
│ │ │ -000a1b50: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000a1b60: 332d 5343 2d37 2832 3129 0a20 202d 2065  3-SC-7(21).  - e
│ │ │ -000a1b70: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000a1b80: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000a1b90: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000a1ba0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000a1bb0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000a1bc0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000a1bd0: 2d20 7061 636b 6167 655f 7061 6d5f 6170  - package_pam_ap
│ │ │ -000a1be0: 7061 726d 6f72 5f69 6e73 7461 6c6c 6564  parmor_installed
│ │ │ +000a14c0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000a14d0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000a14e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +000a1560: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000a1580: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000a15d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ +000a1620: 6c69 6270 616d 2d61 7070 6172 6d6f 7220  libpam-apparmor 
│ │ │ +000a1630: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000a1640: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000a1650: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000a1660: 3a20 6c69 6270 616d 2d61 7070 6172 6d6f  : libpam-apparmo
│ │ │ +000a1670: 720a 2020 2020 7374 6174 653a 2070 7265  r.    state: pre
│ │ │ +000a1680: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ +000a1690: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ +000a16a0: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ +000a16b0: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ +000a16c0: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ +000a16d0: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ +000a16e0: 225d 0a20 2074 6167 733a 0a20 202d 204e  "].  tags:.  - N
│ │ │ +000a16f0: 4953 542d 3830 302d 3533 2d41 432d 3328  IST-800-53-AC-3(
│ │ │ +000a1700: 3429 0a20 202d 204e 4953 542d 3830 302d  4).  - NIST-800-
│ │ │ +000a1710: 3533 2d41 432d 3628 3130 290a 2020 2d20  53-AC-6(10).  - 
│ │ │ +000a1720: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +000a1730: 2838 290a 2020 2d20 4e49 5354 2d38 3030  (8).  - NIST-800
│ │ │ +000a1740: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000a1750: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +000a1760: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ +000a1770: 2d35 332d 434d 2d37 2835 2928 6229 0a20  -53-CM-7(5)(b). 
│ │ │ +000a1780: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +000a1790: 432d 3728 3231 290a 2020 2d20 656e 6162  C-7(21).  - enab
│ │ │ +000a17a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000a17b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000a17c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000a17d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000a17e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000a17f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000a1800: 6163 6b61 6765 5f70 616d 5f61 7070 6172  ackage_pam_appar
│ │ │ +000a1810: 6d6f 725f 696e 7374 616c 6c65 640a 3c2f  mor_installed.
Re │ │ │ +000a18d0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000a18e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000a18f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +000a1590: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000a15a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000a15e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000a15f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +000a1990: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000a19e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000a1970: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000a19a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000a19c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000a19d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000a19f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000a1a00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000a1a20: 7564 6520 696e 7374 616c 6c5f 6c69 6270  ude install_libp
│ │ │ +000a1a30: 616d 2d61 7070 6172 6d6f 720a 0a63 6c61  am-apparmor..cla
│ │ │ +000a1a40: 7373 2069 6e73 7461 6c6c 5f6c 6962 7061  ss install_libpa
│ │ │ +000a1a50: 6d2d 6170 7061 726d 6f72 207b 0a20 2070  m-apparmor {.  p
│ │ │ +000a1a60: 6163 6b61 6765 207b 2027 6c69 6270 616d  ackage { 'libpam
│ │ │ +000a1a70: 2d61 7070 6172 6d6f 7227 3a0a 2020 2020  -apparmor':.    
│ │ │ +000a1a80: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000a1a90: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000a1aa0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000a1b50: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000a1b60: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000a1b70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000a1bc0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000a1bd0: 2022 6c69 6270 616d 2d61 7070 6172 6d6f   "libpam-apparmo
│ │ │ +000a1be0: 7222 0a76 6572 7369 6f6e 203d 2022 2a22  r".version = "*"
│ │ │  000a1bf0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -000a4c10: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000a4c20: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000a4c70: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -000a4c80: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -000a4c90: 6564 203d 205b 2261 7070 6172 6d6f 7222  ed = ["apparmor"
│ │ │ -000a4ca0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -000a4cb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000a4d60: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000a4d70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000a4e40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000a4e50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000a4ea0: 696e 636c 7564 6520 656e 6162 6c65 5f61  include enable_a
│ │ │ -000a4eb0: 7070 6172 6d6f 720a 0a63 6c61 7373 2065  pparmor..class e
│ │ │ -000a4ec0: 6e61 626c 655f 6170 7061 726d 6f72 207b  nable_apparmor {
│ │ │ -000a4ed0: 0a20 2073 6572 7669 6365 207b 2761 7070  .  service {'app
│ │ │ -000a4ee0: 6172 6d6f 7227 3a0a 2020 2020 656e 6162  armor':.    enab
│ │ │ -000a4ef0: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -000a4f00: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000a4f10: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -000a4f20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000a4fe0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000a4ff0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
- name: Start
│ │ │ -000a5040: 2061 7070 6172 6d6f 722e 7365 7276 6963   apparmor.servic
│ │ │ -000a5050: 650a 2020 616e 7369 626c 652e 6275 696c  e.  ansible.buil
│ │ │ -000a5060: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -000a5070: 206e 616d 653a 2061 7070 6172 6d6f 722e   name: apparmor.
│ │ │ -000a5080: 7365 7276 6963 650a 2020 2020 7374 6174  service.    stat
│ │ │ -000a5090: 653a 2073 7461 7274 6564 0a20 2020 2065  e: started.    e
│ │ │ -000a50a0: 6e61 626c 6564 3a20 7472 7565 0a20 2077  nabled: true.  w
│ │ │ -000a50b0: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ -000a50c0: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ -000a50d0: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ -000a50e0: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ -000a50f0: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ -000a5100: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ -000a5110: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000a5120: 3533 2d41 432d 3328 3429 0a20 202d 204e  53-AC-3(4).  - N
│ │ │ -000a5130: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -000a5140: 3130 290a 2020 2d20 4e49 5354 2d38 3030  10).  - NIST-800
│ │ │ -000a5150: 2d35 332d 4143 2d36 2838 290a 2020 2d20  -53-AC-6(8).  - 
│ │ │ -000a5160: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000a5170: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -000a5180: 2d35 332d 434d 2d37 2832 290a 2020 2d20  -53-CM-7(2).  - 
│ │ │ -000a5190: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -000a51a0: 2835 2928 6229 0a20 202d 204e 4953 542d  (5)(b).  - NIST-
│ │ │ -000a51b0: 3830 302d 3533 2d53 432d 3728 3231 290a  800-53-SC-7(21).
│ │ │ -000a51c0: 2020 2d20 6170 7061 726d 6f72 5f63 6f6e    - apparmor_con
│ │ │ -000a51d0: 6669 6775 7265 640a 2020 2d20 6d65 6469  figured.  - medi
│ │ │ -000a51e0: 756d 5f73 6576 6572 6974 790a 3c2f 636f  um_severity.
│ │ │ +000a4c60: 3c63 6f64 653e 2d20 6e61 6d65 3a20 5374  - name: St
│ │ │ +000a4c70: 6172 7420 6170 7061 726d 6f72 2e73 6572  art apparmor.ser
│ │ │ +000a4c80: 7669 6365 0a20 2061 6e73 6962 6c65 2e62  vice.  ansible.b
│ │ │ +000a4c90: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +000a4ca0: 2020 2020 6e61 6d65 3a20 6170 7061 726d      name: apparm
│ │ │ +000a4cb0: 6f72 2e73 6572 7669 6365 0a20 2020 2073  or.service.    s
│ │ │ +000a4cc0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +000a4cd0: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +000a4ce0: 2020 7768 656e 3a20 616e 7369 626c 655f    when: ansible_
│ │ │ +000a4cf0: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74  virtualization_t
│ │ │ +000a4d00: 7970 6520 6e6f 7420 696e 205b 2264 6f63  ype not in ["doc
│ │ │ +000a4d10: 6b65 7222 2c20 226c 7863 222c 2022 6f70  ker", "lxc", "op
│ │ │ +000a4d20: 656e 767a 222c 2022 706f 646d 616e 222c  envz", "podman",
│ │ │ +000a4d30: 2022 636f 6e74 6169 6e65 7222 5d0a 2020   "container"].  
│ │ │ +000a4d40: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +000a4d50: 3030 2d35 332d 4143 2d33 2834 290a 2020  00-53-AC-3(4).  
│ │ │ +000a4d60: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +000a4d70: 2d36 2831 3029 0a20 202d 204e 4953 542d  -6(10).  - NIST-
│ │ │ +000a4d80: 3830 302d 3533 2d41 432d 3628 3829 0a20  800-53-AC-6(8). 
│ │ │ +000a4d90: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000a4da0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +000a4db0: 3830 302d 3533 2d43 4d2d 3728 3229 0a20  800-53-CM-7(2). 
│ │ │ +000a4dc0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000a4dd0: 4d2d 3728 3529 2862 290a 2020 2d20 4e49  M-7(5)(b).  - NI
│ │ │ +000a4de0: 5354 2d38 3030 2d35 332d 5343 2d37 2832  ST-800-53-SC-7(2
│ │ │ +000a4df0: 3129 0a20 202d 2061 7070 6172 6d6f 725f  1).  - apparmor_
│ │ │ +000a4e00: 636f 6e66 6967 7572 6564 0a20 202d 206d  configured.  - m
│ │ │ +000a4e10: 6564 6975 6d5f 7365 7665 7269 7479 0a3c  edium_severity.<
│ │ │ +000a4e20: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000a4ed0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000a4ee0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ -000a4e20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000a4e30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000a4e70: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000a4e80: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000a4f80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000a4f90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000a4fe0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000a5020: 6c75 6465 2065 6e61 626c 655f 6170 7061  lude enable_appa
│ │ │ +000a5030: 726d 6f72 0a0a 636c 6173 7320 656e 6162  rmor..class enab
│ │ │ +000a5040: 6c65 5f61 7070 6172 6d6f 7220 7b0a 2020  le_apparmor {.  
│ │ │ +000a5050: 7365 7276 6963 6520 7b27 6170 7061 726d  service {'apparm
│ │ │ +000a5060: 6f72 273a 0a20 2020 2065 6e61 626c 6520  or':.    enable 
│ │ │ +000a5070: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000a5080: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000a5090: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000a5150: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000a5160: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000a5170: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000a5180: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000a5190: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000a51a0: 7365 2220 6964 3d22 6964 3138 3622 3e3c se" id="id186">< │ │ │ +000a51b0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000a51c0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000a51d0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000a51e0: 2261 7070 6172 6d6f 7222 5d0a 3c2f 636f "apparmor"].< │ │ │ 000a5200: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 000a5210: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>
C │ │ │ +000a4f70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000a4fa0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000a4fb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000a4ff0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000a5000: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ 000a5220: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Remediati │ │ │ -001114b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -001114c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -001114d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00111520: 0a6e 616d 6520 3d20 226c 6f67 726f 7461  .name = "logrota
│ │ │ -00111530: 7465 220a 7665 7273 696f 6e20 3d20 222a  te".version = "*
│ │ │ -00111540: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -00111550: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -00111600: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00111610: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001116e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001116f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00111740: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -00111750: 6c6f 6772 6f74 6174 650a 0a63 6c61 7373  logrotate..class
│ │ │ -00111760: 2069 6e73 7461 6c6c 5f6c 6f67 726f 7461   install_logrota
│ │ │ -00111770: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ -00111780: 2027 6c6f 6772 6f74 6174 6527 3a0a 2020   'logrotate':.  
│ │ │ -00111790: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -001117a0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -001117b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -001117c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00111870: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00111880: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -001116c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001116d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00111710: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00111720: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00111900: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00111920: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00111970: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -001119c0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -001119d0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -001119e0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -001119f0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00111a00: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00111a10: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -00111a20: 2d52 6571 2d31 302e 370a 2020 2d20 5043  -Req-10.7.  - PC
│ │ │ -00111a30: 492d 4453 5376 342d 3130 2e35 0a20 202d  I-DSSv4-10.5.  -
│ │ │ -00111a40: 2050 4349 2d44 5353 7634 2d31 302e 352e   PCI-DSSv4-10.5.
│ │ │ -00111a50: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ -00111a60: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00111a70: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00111a80: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00111a90: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00111aa0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00111ab0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00111ac0: 5f6c 6f67 726f 7461 7465 5f69 6e73 7461  _logrotate_insta
│ │ │ -00111ad0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -00111ae0: 7375 7265 206c 6f67 726f 7461 7465 2069  sure logrotate i
│ │ │ -00111af0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00111b00: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00111b10: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00111b20: 206c 6f67 726f 7461 7465 0a20 2020 2073   logrotate.    s
│ │ │ -00111b30: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -00111b40: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00111b50: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00111b60: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00111b70: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00111b80: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00111b90: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -00111ba0: 302e 370a 2020 2d20 5043 492d 4453 5376  0.7.  - PCI-DSSv
│ │ │ -00111bb0: 342d 3130 2e35 0a20 202d 2050 4349 2d44  4-10.5.  - PCI-D
│ │ │ -00111bc0: 5353 7634 2d31 302e 352e 310a 2020 2d20  SSv4-10.5.1.  - 
│ │ │ -00111bd0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00111be0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00111bf0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00111c00: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00111c10: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00111c20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00111c30: 202d 2070 6163 6b61 6765 5f6c 6f67 726f   - package_logro
│ │ │ -00111c40: 7461 7465 5f69 6e73 7461 6c6c 6564 0a3c  tate_installed.<
│ │ │ +001114b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +001114c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00111540: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +001115d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disr │ │ │ -00111930: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00111940: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00111980: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00111990: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +00111550: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00111560: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +001115a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001115b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +001115f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00111600: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00111610: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00111620: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00111630: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00111640: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00111650: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00111660: 492d 4453 532d 5265 712d 3130 2e37 0a20  I-DSS-Req-10.7. 
│ │ │ +00111670: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00111680: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ +00111690: 3130 2e35 2e31 0a20 202d 2065 6e61 626c  10.5.1.  - enabl
│ │ │ +001116a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001116b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001116c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001116d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001116e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001116f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00111700: 636b 6167 655f 6c6f 6772 6f74 6174 655f  ckage_logrotate_
│ │ │ +00111710: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00111720: 653a 2045 6e73 7572 6520 6c6f 6772 6f74  e: Ensure logrot
│ │ │ +00111730: 6174 6520 6973 2069 6e73 7461 6c6c 6564  ate is installed
│ │ │ +00111740: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00111750: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00111760: 6e61 6d65 3a20 6c6f 6772 6f74 6174 650a  name: logrotate.
│ │ │ +00111770: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +00111780: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00111790: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +001117a0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +001117b0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +001117c0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +001117d0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +001117e0: 5265 712d 3130 2e37 0a20 202d 2050 4349  Req-10.7.  - PCI
│ │ │ +001117f0: 2d44 5353 7634 2d31 302e 350a 2020 2d20  -DSSv4-10.5.  - 
│ │ │ +00111800: 5043 492d 4453 5376 342d 3130 2e35 2e31  PCI-DSSv4-10.5.1
│ │ │ +00111810: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00111820: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00111830: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00111840: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00111850: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00111860: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00111870: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00111880: 6c6f 6772 6f74 6174 655f 696e 7374 616c  logrotate_instal
│ │ │ +00111890: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +00111950: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00111960: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001119e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00111a00: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00111a50: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00111a80: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00111aa0: 6c5f 6c6f 6772 6f74 6174 650a 0a63 6c61  l_logrotate..cla
│ │ │ +00111ab0: 7373 2069 6e73 7461 6c6c 5f6c 6f67 726f  ss install_logro
│ │ │ +00111ac0: 7461 7465 207b 0a20 2070 6163 6b61 6765  tate {.  package
│ │ │ +00111ad0: 207b 2027 6c6f 6772 6f74 6174 6527 3a0a   { 'logrotate':.
│ │ │ +00111ae0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00111af0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00111b00: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00111bc0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00111bd0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00111c20: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +00111c30: 6d65 203d 2022 6c6f 6772 6f74 6174 6522  me = "logrotate"
│ │ │ +00111c40: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00111c50: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -00119660: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00119670: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00119680: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -001196d0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -001196e0: 2022 7273 7973 6c6f 672d 676e 7574 6c73   "rsyslog-gnutls
│ │ │ -001196f0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -00119700: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001197b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -001197c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:< │ │ │ +001119f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00111a10: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00111a60: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00111a70: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00119860: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00119900: 636c 7564 6520 696e 7374 616c 6c5f 7273  clude install_rs
│ │ │ -00119910: 7973 6c6f 672d 676e 7574 6c73 0a0a 636c  yslog-gnutls..cl
│ │ │ -00119920: 6173 7320 696e 7374 616c 6c5f 7273 7973  ass install_rsys
│ │ │ -00119930: 6c6f 672d 676e 7574 6c73 207b 0a20 2070  log-gnutls {.  p
│ │ │ -00119940: 6163 6b61 6765 207b 2027 7273 7973 6c6f  ackage { 'rsyslo
│ │ │ -00119950: 672d 676e 7574 6c73 273a 0a20 2020 2065  g-gnutls':.    e
│ │ │ -00119960: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -00119970: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -00119980: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00119a30: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00119a40: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00119850: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00119880: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00119890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -001198d0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -001198e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00119ae0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00119b80: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00119b90: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00119ba0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00119bb0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00119bc0: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -00119bd0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00119be0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00119bf0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00119c00: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00119c10: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00119c20: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00119c30: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ -00119c40: 2d67 6e75 746c 735f 696e 7374 616c 6c65  -gnutls_installe
│ │ │ -00119c50: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -00119c60: 6520 7273 7973 6c6f 672d 676e 7574 6c73  e rsyslog-gnutls
│ │ │ -00119c70: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00119c80: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00119c90: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00119ca0: 653a 2072 7379 736c 6f67 2d67 6e75 746c  e: rsyslog-gnutl
│ │ │ -00119cb0: 730a 2020 2020 7374 6174 653a 2070 7265  s.    state: pre
│ │ │ -00119cc0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -00119cd0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00119ce0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00119cf0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -00119d00: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00119d10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00119d20: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00119d30: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00119d40: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00119d50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00119d60: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ -00119d70: 736c 6f67 2d67 6e75 746c 735f 696e 7374  slog-gnutls_inst
│ │ │ -00119d80: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


│ │ │ -00119ad0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00119b00: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00119b10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00119b50: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00119b60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00119750: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00119760: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +001197b0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +001197c0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +001197d0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +001197e0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +001197f0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +00119800: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00119810: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00119820: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00119830: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00119840: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00119850: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00119860: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +00119870: 672d 676e 7574 6c73 5f69 6e73 7461 6c6c  g-gnutls_install
│ │ │ +00119880: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +00119890: 7265 2072 7379 736c 6f67 2d67 6e75 746c  re rsyslog-gnutl
│ │ │ +001198a0: 7320 6973 2069 6e73 7461 6c6c 6564 0a20  s is installed. 
│ │ │ +001198b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001198c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +001198d0: 6d65 3a20 7273 7973 6c6f 672d 676e 7574  me: rsyslog-gnut
│ │ │ +001198e0: 6c73 0a20 2020 2073 7461 7465 3a20 7072  ls.    state: pr
│ │ │ +001198f0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00119900: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00119910: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00119920: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00119930: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00119940: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00119950: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00119960: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00119970: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00119980: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00119990: 640a 2020 2d20 7061 636b 6167 655f 7273  d.  - package_rs
│ │ │ +001199a0: 7973 6c6f 672d 676e 7574 6c73 5f69 6e73  yslog-gnutls_ins
│ │ │ +001199b0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediati
│ │ │ +00119a70: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00119a80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00119b00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00119b40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +00119730: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00119740: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00119780: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00119790: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +00119b10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00119b30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00119b60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00119b80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00119bb0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00119bc0: 7461 6c6c 5f72 7379 736c 6f67 2d67 6e75  tall_rsyslog-gnu
│ │ │ +00119bd0: 746c 730a 0a63 6c61 7373 2069 6e73 7461  tls..class insta
│ │ │ +00119be0: 6c6c 5f72 7379 736c 6f67 2d67 6e75 746c  ll_rsyslog-gnutl
│ │ │ +00119bf0: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ +00119c00: 2772 7379 736c 6f67 2d67 6e75 746c 7327  'rsyslog-gnutls'
│ │ │ +00119c10: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00119c20: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +00119c30: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00119cf0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00119d00: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00119d10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +00119d60: 6e61 6d65 203d 2022 7273 7973 6c6f 672d  name = "rsyslog-
│ │ │ +00119d70: 676e 7574 6c73 220a 7665 7273 696f 6e20  gnutls".version 
│ │ │ +00119d80: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -0011aea0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0011aeb0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0011aec0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -0011af10: 6e61 6d65 203d 2022 7273 7973 6c6f 6722  name = "rsyslog"
│ │ │ -0011af20: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0011af30: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0011afe0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0011aff0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -0011b090: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0011b0a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0011b0f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0011b130: 6c75 6465 2069 6e73 7461 6c6c 5f72 7379  lude install_rsy
│ │ │ -0011b140: 736c 6f67 0a0a 636c 6173 7320 696e 7374  slog..class inst
│ │ │ -0011b150: 616c 6c5f 7273 7973 6c6f 6720 7b0a 2020  all_rsyslog {.  
│ │ │ -0011b160: 7061 636b 6167 6520 7b20 2772 7379 736c  package { 'rsysl
│ │ │ -0011b170: 6f67 273a 0a20 2020 2065 6e73 7572 6520  og':.    ensure 
│ │ │ -0011b180: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -0011b190: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0011b1a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0011b250: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0011b260: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0011b270: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0011b2a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -0011b080: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0011b0b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0011b0c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0011b100: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0011b110: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0011b310: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0011b330: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0011b360: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0011b380: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0011b2f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0011b300: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0011b340: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0011b350: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -0011b3a0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0011b3b0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0011b3c0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0011b3d0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0011b3e0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0011b3f0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0011b400: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -0011b410: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0011b420: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0011b430: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -0011b440: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -0011b450: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -0011b460: 202d 2070 6163 6b61 6765 5f72 7379 736c - package_rsysl │ │ │ -0011b470: 6f67 5f69 6e73 7461 6c6c 6564 0a0a 2d20 og_installed..- │ │ │ -0011b480: 6e61 6d65 3a20 456e 7375 7265 2072 7379 name: Ensure rsy │ │ │ -0011b490: 736c 6f67 2069 7320 696e 7374 616c 6c65 slog is installe │ │ │ -0011b4a0: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -0011b4b0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -0011b4c0: 206e 616d 653a 2072 7379 736c 6f67 0a20 name: rsyslog. │ │ │ -0011b4d0: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -0011b4e0: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ -0011b4f0: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -0011b500: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -0011b510: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ -0011b520: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -0011b530: 6129 0a20 202d 2065 6e61 626c 655f 7374 a). - enable_st │ │ │ -0011b540: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0011b550: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0011b560: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0011b570: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0011b580: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0011b590: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -0011b5a0: 655f 7273 7973 6c6f 675f 696e 7374 616c e_rsyslog_instal │ │ │ -0011b5b0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.

< │ │ │ +0011af30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0011af40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0011af60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0011af70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0011af90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0011afb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0011afe0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0011aff0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0011b000: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0011b010: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0011b020: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0011b030: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0011b040: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +0011b050: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0011b060: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0011b070: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0011b080: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0011b090: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0011b0a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0011b0b0: 7061 636b 6167 655f 7273 7973 6c6f 675f  package_rsyslog_
│ │ │ +0011b0c0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +0011b0d0: 653a 2045 6e73 7572 6520 7273 7973 6c6f  e: Ensure rsyslo
│ │ │ +0011b0e0: 6720 6973 2069 6e73 7461 6c6c 6564 0a20  g is installed. 
│ │ │ +0011b0f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0011b100: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0011b110: 6d65 3a20 7273 7973 6c6f 670a 2020 2020  me: rsyslog.    
│ │ │ +0011b120: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +0011b130: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0011b140: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0011b150: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0011b160: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0011b170: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0011b180: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0011b190: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0011b1a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0011b1b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0011b1c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0011b1d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0011b1e0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ +0011b1f0: 7379 736c 6f67 5f69 6e73 7461 6c6c 6564  syslog_installed
│ │ │ +0011b200: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0011b2c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0011b2d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0011b3a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0011b3b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0011b400: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ +0011b410: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ +0011b420: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ +0011b430: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ +0011b440: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ +0011b450: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +0011b460: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +0011b520: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0011b530: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0011b540: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +0011b590: 6573 5d5d 0a6e 616d 6520 3d20 2272 7379  es]].name = "rsy
│ │ │ +0011b5a0: 736c 6f67 220a 7665 7273 696f 6e20 3d20  slog".version = 
│ │ │ +0011b5b0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediatio │ │ │ -0011c830: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0011c840: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0011c850: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -0011c8a0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -0011c8b0: 626c 6564 203d 205b 2272 7379 736c 6f67  bled = ["rsyslog
│ │ │ -0011c8c0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0011c8d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -0011c980: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0011c990: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +0011b380: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0011b390: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0011b3d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0011b3e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0011ca10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0011ca30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0011ca80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -0011cad0: 7273 7973 6c6f 670a 0a63 6c61 7373 2065  rsyslog..class e
│ │ │ -0011cae0: 6e61 626c 655f 7273 7973 6c6f 6720 7b0a  nable_rsyslog {.
│ │ │ -0011caf0: 2020 7365 7276 6963 6520 7b27 7273 7973    service {'rsys
│ │ │ -0011cb00: 6c6f 6727 3a0a 2020 2020 656e 6162 6c65  log':.    enable
│ │ │ -0011cb10: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -0011cb20: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -0011cb30: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -0011cb40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0011cbf0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0011cc00: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disr │ │ │ -0011ca40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0011ca50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0011ca90: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0011caa0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0011cca0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0011cd40: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0011cd50: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0011cd60: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0011cd70: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0011cd80: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0011cd90: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ -0011cda0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0011cdb0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -0011cdc0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0011cdd0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0011cde0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0011cdf0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0011ce00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0011ce10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0011ce20: 2073 6572 7669 6365 5f72 7379 736c 6f67   service_rsyslog
│ │ │ -0011ce30: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -0011ce40: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ -0011ce50: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -0011ce60: 6520 7365 7276 6963 6520 7273 7973 6c6f  e service rsyslo
│ │ │ -0011ce70: 670a 2020 626c 6f63 6b3a 0a0a 2020 2d20  g.  block:..  - 
│ │ │ -0011ce80: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0011ce90: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0011cea0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0011ceb0: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ -0011cec0: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ -0011ced0: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ -0011cee0: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ -0011cef0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -0011cf00: 2053 6572 7669 6365 2072 7379 736c 6f67   Service rsyslog
│ │ │ -0011cf10: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0011cf20: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0011cf30: 2020 2020 6e61 6d65 3a20 7273 7973 6c6f      name: rsyslo
│ │ │ -0011cf40: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ -0011cf50: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -0011cf60: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -0011cf70: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -0011cf80: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -0011cf90: 2272 7379 736c 6f67 2220 696e 2061 6e73  "rsyslog" in ans
│ │ │ -0011cfa0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0011cfb0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0011cfc0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -0011cfd0: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ -0011cfe0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0011cff0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0011d000: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0011d010: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0011d020: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0011d030: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0011d040: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0011d050: 2020 2d20 7365 7276 6963 655f 7273 7973    - service_rsys
│ │ │ -0011d060: 6c6f 675f 656e 6162 6c65 640a 2020 2d20  log_enabled.  - 
│ │ │ -0011d070: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0011d080: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -0011d090: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0011d0a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0011d0b0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
< │ │ │ +0011c8c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0011c900: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ -0011cc90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0011ccc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0011ccd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0011cd10: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0011cd20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ +0011c8d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0011c8f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0011c920: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0011c940: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +0011c970: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0011c980: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0011c990: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0011c9a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0011c9b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0011c9c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0011c9d0: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ +0011c9e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0011c9f0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0011ca00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0011ca10: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0011ca20: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0011ca30: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0011ca40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0011ca50: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0011ca60: 7273 7973 6c6f 675f 656e 6162 6c65 640a  rsyslog_enabled.
│ │ │ +0011ca70: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +0011ca80: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ +0011ca90: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +0011caa0: 2072 7379 736c 6f67 0a20 2062 6c6f 636b   rsyslog.  block
│ │ │ +0011cab0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ +0011cac0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0011cad0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ +0011cae0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0011caf0: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ +0011cb00: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ +0011cb10: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ +0011cb20: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ +0011cb30: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +0011cb40: 7273 7973 6c6f 670a 2020 2020 616e 7369  rsyslog.    ansi
│ │ │ +0011cb50: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0011cb60: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0011cb70: 2072 7379 736c 6f67 0a20 2020 2020 2065   rsyslog.      e
│ │ │ +0011cb80: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +0011cb90: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +0011cba0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +0011cbb0: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +0011cbc0: 2020 2020 2d20 2722 7273 7973 6c6f 6722      - '"rsyslog"
│ │ │ +0011cbd0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0011cbe0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +0011cbf0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0011cc00: 2d35 332d 4155 2d34 2831 290a 2020 2d20  -53-AU-4(1).  - 
│ │ │ +0011cc10: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0011cc20: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +0011cc30: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0011cc40: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0011cc50: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0011cc60: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0011cc70: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0011cc80: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0011cc90: 6365 5f72 7379 736c 6f67 5f65 6e61 626c  ce_rsyslog_enabl
│ │ │ +0011cca0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0011ccb0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0011ccc0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0011ccd0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0011cce0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +0011cda0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0011cdb0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0011cdc0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0011ce60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0011ceb0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0011ce40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0011ce70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0011ce90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0011cea0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0011cec0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0011ced0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0011cef0: 7564 6520 656e 6162 6c65 5f72 7379 736c  ude enable_rsysl
│ │ │ +0011cf00: 6f67 0a0a 636c 6173 7320 656e 6162 6c65  og..class enable
│ │ │ +0011cf10: 5f72 7379 736c 6f67 207b 0a20 2073 6572  _rsyslog {.  ser
│ │ │ +0011cf20: 7669 6365 207b 2772 7379 736c 6f67 273a  vice {'rsyslog':
│ │ │ +0011cf30: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +0011cf40: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ +0011cf50: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ +0011cf60: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ +0011d020: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0011d030: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0011d040: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0011d080: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0011d090: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0011d0a0: 0a65 6e61 626c 6564 203d 205b 2272 7379  .enabled = ["rsy
│ │ │ +0011d0b0: 736c 6f67 225d 0a3c 2f63 6f64 653e 3c2f  slog"].
Remed │ │ │ -002278e0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002278f0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002279a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002279c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002279f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00227980: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00227990: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002279b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002279d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002279e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00227a20: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00227a30: 6465 2072 656d 6f76 655f 7365 7472 6f75 de remove_setrou │ │ │ -00227a40: 626c 6573 686f 6f74 2d70 6c75 6769 6e73 bleshoot-plugins │ │ │ -00227a50: 0a0a 636c 6173 7320 7265 6d6f 7665 5f73 ..class remove_s │ │ │ -00227a60: 6574 726f 7562 6c65 7368 6f6f 742d 706c etroubleshoot-pl │ │ │ -00227a70: 7567 696e 7320 7b0a 2020 7061 636b 6167 ugins {. packag │ │ │ -00227a80: 6520 7b20 2773 6574 726f 7562 6c65 7368 e { 'setroublesh │ │ │ -00227a90: 6f6f 742d 706c 7567 696e 7327 3a0a 2020 oot-plugins':. │ │ │ -00227aa0: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00227ab0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ -00227ac0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ -00227b70: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00227b80: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00227c20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00227cc0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00227cd0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00227ce0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00227cf0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00227d00: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -00227d10: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00227d20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00227d30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00227d40: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -00227d50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00227d60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00227d70: 7061 636b 6167 655f 7365 7472 6f75 626c  package_setroubl
│ │ │ -00227d80: 6573 686f 6f74 2d70 6c75 6769 6e73 5f72  eshoot-plugins_r
│ │ │ -00227d90: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ -00227da0: 2755 6e69 6e73 7461 6c6c 2073 6574 726f  'Uninstall setro
│ │ │ -00227db0: 7562 6c65 7368 6f6f 742d 706c 7567 696e  ubleshoot-plugin
│ │ │ -00227dc0: 7320 5061 636b 6167 653a 2045 6e73 7572  s Package: Ensur
│ │ │ -00227dd0: 6520 7365 7472 6f75 626c 6573 686f 6f74  e setroubleshoot
│ │ │ -00227de0: 2d70 6c75 6769 6e73 2069 730a 2020 2020  -plugins is.    
│ │ │ -00227df0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00227e00: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00227e10: 6765 3a0a 2020 2020 6e61 6d65 3a20 7365  ge:.    name: se
│ │ │ -00227e20: 7472 6f75 626c 6573 686f 6f74 2d70 6c75  troubleshoot-plu
│ │ │ -00227e30: 6769 6e73 0a20 2020 2073 7461 7465 3a20  gins.    state: 
│ │ │ -00227e40: 6162 7365 6e74 0a20 2077 6865 6e3a 2027  absent.  when: '
│ │ │ -00227e50: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00227e60: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00227e70: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00227e80: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00227e90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00227ea0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00227eb0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00227ec0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00227ed0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00227ee0: 0a20 202d 2070 6163 6b61 6765 5f73 6574  .  - package_set
│ │ │ -00227ef0: 726f 7562 6c65 7368 6f6f 742d 706c 7567  roubleshoot-plug
│ │ │ -00227f00: 696e 735f 7265 6d6f 7665 640a 3c2f 636f  ins_removed.
│ │ │ -00227c10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00227c40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00227c50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00227c90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00227ca0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00227980: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00227990: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002279b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002279d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002279e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00227a20: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00227a30: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00227a40: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00227a50: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00227a60: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00227a70: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00227a80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00227a90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00227aa0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00227ab0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +00227ac0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00227ad0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00227ae0: 6167 655f 7365 7472 6f75 626c 6573 686f  age_setroublesho
│ │ │ +00227af0: 6f74 2d70 6c75 6769 6e73 5f72 656d 6f76  ot-plugins_remov
│ │ │ +00227b00: 6564 0a0a 2d20 6e61 6d65 3a20 2755 6e69  ed..- name: 'Uni
│ │ │ +00227b10: 6e73 7461 6c6c 2073 6574 726f 7562 6c65  nstall setrouble
│ │ │ +00227b20: 7368 6f6f 742d 706c 7567 696e 7320 5061  shoot-plugins Pa
│ │ │ +00227b30: 636b 6167 653a 2045 6e73 7572 6520 7365  ckage: Ensure se
│ │ │ +00227b40: 7472 6f75 626c 6573 686f 6f74 2d70 6c75  troubleshoot-plu
│ │ │ +00227b50: 6769 6e73 2069 730a 2020 2020 7265 6d6f  gins is.    remo
│ │ │ +00227b60: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00227b70: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00227b80: 2020 2020 6e61 6d65 3a20 7365 7472 6f75      name: setrou
│ │ │ +00227b90: 626c 6573 686f 6f74 2d70 6c75 6769 6e73  bleshoot-plugins
│ │ │ +00227ba0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00227bb0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00227bc0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00227bd0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00227be0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00227bf0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00227c00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00227c10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00227c20: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00227c30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00227c40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00227c50: 2070 6163 6b61 6765 5f73 6574 726f 7562   package_setroub
│ │ │ +00227c60: 6c65 7368 6f6f 742d 706c 7567 696e 735f  leshoot-plugins_
│ │ │ +00227c70: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00227c80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00227d30: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00227d40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00227dc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00227dd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00227de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00227e20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00227e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00227e50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00227e60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00227e80: 7265 6d6f 7665 5f73 6574 726f 7562 6c65  remove_setrouble
│ │ │ +00227e90: 7368 6f6f 742d 706c 7567 696e 730a 0a63  shoot-plugins..c
│ │ │ +00227ea0: 6c61 7373 2072 656d 6f76 655f 7365 7472  lass remove_setr
│ │ │ +00227eb0: 6f75 626c 6573 686f 6f74 2d70 6c75 6769  oubleshoot-plugi
│ │ │ +00227ec0: 6e73 207b 0a20 2070 6163 6b61 6765 207b  ns {.  package {
│ │ │ +00227ed0: 2027 7365 7472 6f75 626c 6573 686f 6f74   'setroubleshoot
│ │ │ +00227ee0: 2d70 6c75 6769 6e73 273a 0a20 2020 2065  -plugins':.    e
│ │ │ +00227ef0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00227f00: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00227f20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00227f30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00227f40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00227f50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00227f60: 6437 3236 2220 7461 6269 6e64 6578 3d22 d726" tabindex=" │ │ │ 00227f70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -141549,112 +141549,112 @@ │ │ │ 00228ec0: 6172 6765 743d 2223 6964 3732 3822 2074 arget="#id728" t │ │ │ 00228ed0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 00228ee0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 00228ef0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 00228f00: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 00228f10: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 00228f20: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -00228f30: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00228f40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00228fd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00228ff0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00229010: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00229040: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00229050: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00229080: 6f76 655f 7365 7472 6f75 626c 6573 686f  ove_setroublesho
│ │ │ -00229090: 6f74 2d73 6572 7665 720a 0a63 6c61 7373  ot-server..class
│ │ │ -002290a0: 2072 656d 6f76 655f 7365 7472 6f75 626c   remove_setroubl
│ │ │ -002290b0: 6573 686f 6f74 2d73 6572 7665 7220 7b0a  eshoot-server {.
│ │ │ -002290c0: 2020 7061 636b 6167 6520 7b20 2773 6574    package { 'set
│ │ │ -002290d0: 726f 7562 6c65 7368 6f6f 742d 7365 7276  roubleshoot-serv
│ │ │ -002290e0: 6572 273a 0a20 2020 2065 6e73 7572 6520  er':.    ensure 
│ │ │ -002290f0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00229100: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -002291c0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002291d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00229250: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00229260: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00229280: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00229290: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002292b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002292d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00229300: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00229310: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00229320: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00229330: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00229340: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00229350: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00229360: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00229370: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00229380: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00229390: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -002293a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002293b0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -002293c0: 6574 726f 7562 6c65 7368 6f6f 742d 7365  etroubleshoot-se
│ │ │ -002293d0: 7276 6572 5f72 656d 6f76 6564 0a0a 2d20  rver_removed..- 
│ │ │ -002293e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -002293f0: 2073 6574 726f 7562 6c65 7368 6f6f 742d   setroubleshoot-
│ │ │ -00229400: 7365 7276 6572 2050 6163 6b61 6765 3a20  server Package: 
│ │ │ -00229410: 456e 7375 7265 2073 6574 726f 7562 6c65  Ensure setrouble
│ │ │ -00229420: 7368 6f6f 742d 7365 7276 6572 2069 730a  shoot-server is.
│ │ │ -00229430: 2020 2020 7265 6d6f 7665 6427 0a20 2061      removed'.  a
│ │ │ -00229440: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00229450: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00229460: 3a20 7365 7472 6f75 626c 6573 686f 6f74  : setroubleshoot
│ │ │ -00229470: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ -00229480: 653a 2061 6273 656e 740a 2020 7768 656e  e: absent.  when
│ │ │ -00229490: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -002294a0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -002294b0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -002294c0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002294d0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002294e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002294f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00229500: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00229510: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00229520: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00229530: 7365 7472 6f75 626c 6573 686f 6f74 2d73  setroubleshoot-s
│ │ │ -00229540: 6572 7665 725f 7265 6d6f 7665 640a 3c2f  erver_removed.
Complexity │ │ │ +00228fd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00228ff0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00229000: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00229010: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00229020: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00229040: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00229070: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00229080: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00229090: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002290a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002290b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002290c0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002290d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002290e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002290f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00229100: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +00229110: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00229120: 640a 2020 2d20 7061 636b 6167 655f 7365  d.  - package_se
│ │ │ +00229130: 7472 6f75 626c 6573 686f 6f74 2d73 6572  troubleshoot-ser
│ │ │ +00229140: 7665 725f 7265 6d6f 7665 640a 0a2d 206e  ver_removed..- n
│ │ │ +00229150: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00229160: 7365 7472 6f75 626c 6573 686f 6f74 2d73  setroubleshoot-s
│ │ │ +00229170: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ +00229180: 6e73 7572 6520 7365 7472 6f75 626c 6573  nsure setroubles
│ │ │ +00229190: 686f 6f74 2d73 6572 7665 7220 6973 0a20  hoot-server is. 
│ │ │ +002291a0: 2020 2072 656d 6f76 6564 270a 2020 616e     removed'.  an
│ │ │ +002291b0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002291c0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002291d0: 2073 6574 726f 7562 6c65 7368 6f6f 742d   setroubleshoot-
│ │ │ +002291e0: 7365 7276 6572 0a20 2020 2073 7461 7465  server.    state
│ │ │ +002291f0: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ +00229200: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00229210: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00229220: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00229230: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00229240: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00229250: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00229260: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00229270: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +00229280: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00229290: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +002292a0: 6574 726f 7562 6c65 7368 6f6f 742d 7365  etroubleshoot-se
│ │ │ +002292b0: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +002292d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00229370: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00229380: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00229390: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00229410: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00229440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00229460: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00229470: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00229490: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002294a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002294c0: 6c75 6465 2072 656d 6f76 655f 7365 7472  lude remove_setr
│ │ │ +002294d0: 6f75 626c 6573 686f 6f74 2d73 6572 7665  oubleshoot-serve
│ │ │ +002294e0: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ +002294f0: 7365 7472 6f75 626c 6573 686f 6f74 2d73  setroubleshoot-s
│ │ │ +00229500: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ +00229510: 6520 7b20 2773 6574 726f 7562 6c65 7368  e { 'setroublesh
│ │ │ +00229520: 6f6f 742d 7365 7276 6572 273a 0a20 2020  oot-server':.   
│ │ │ +00229530: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +00229540: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remedia │ │ │ -0022a560: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0022a570: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0022a580: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0022a590: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0022a5a0: 7365 2220 6964 3d22 6964 3733 3222 3e3c se" id="id732">< │ │ │ -0022a5b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0022a5c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0022a5d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0022a5e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0022a5f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0022a600: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0022a610: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0022a650: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0022a660: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0022a680: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0022a690: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0022a6b0: 2072 656d 6f76 655f 7365 7472 6f75 626c remove_setroubl │ │ │ -0022a6c0: 6573 686f 6f74 0a0a 636c 6173 7320 7265 eshoot..class re │ │ │ -0022a6d0: 6d6f 7665 5f73 6574 726f 7562 6c65 7368 move_setroublesh │ │ │ -0022a6e0: 6f6f 7420 7b0a 2020 7061 636b 6167 6520 oot {. package │ │ │ -0022a6f0: 7b20 2773 6574 726f 7562 6c65 7368 6f6f { 'setroubleshoo │ │ │ -0022a700: 7427 3a0a 2020 2020 656e 7375 7265 203d t':. ensure = │ │ │ -0022a710: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ -0022a720: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation │ │ │ -0022a7e0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0022a7f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0022a880: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0022a8a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0022a8b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0022a8c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0022a8d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0022a8f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0022a920: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0022a930: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0022a940: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0022a950: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0022a960: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0022a970: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0022a980: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0022a990: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0022a9a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0022a9b0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0022a9c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0022a9d0: 640a 2020 2d20 7061 636b 6167 655f 7365  d.  - package_se
│ │ │ -0022a9e0: 7472 6f75 626c 6573 686f 6f74 5f72 656d  troubleshoot_rem
│ │ │ -0022a9f0: 6f76 6564 0a0a 2d20 6e61 6d65 3a20 2755  oved..- name: 'U
│ │ │ -0022aa00: 6e69 6e73 7461 6c6c 2073 6574 726f 7562  ninstall setroub
│ │ │ -0022aa10: 6c65 7368 6f6f 7420 5061 636b 6167 653a  leshoot Package:
│ │ │ -0022aa20: 2045 6e73 7572 6520 7365 7472 6f75 626c   Ensure setroubl
│ │ │ -0022aa30: 6573 686f 6f74 2069 7320 7265 6d6f 7665  eshoot is remove
│ │ │ -0022aa40: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -0022aa50: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0022aa60: 2020 6e61 6d65 3a20 7365 7472 6f75 626c    name: setroubl
│ │ │ -0022aa70: 6573 686f 6f74 0a20 2020 2073 7461 7465  eshoot.    state
│ │ │ -0022aa80: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ -0022aa90: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0022aaa0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0022aab0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -0022aac0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0022aad0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0022aae0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0022aaf0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0022ab00: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -0022ab10: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0022ab20: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -0022ab30: 6574 726f 7562 6c65 7368 6f6f 745f 7265  etroubleshoot_re
│ │ │ -0022ab40: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


│ │ │ +0022a580: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0022a5b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0022a620: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0022a640: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0022a670: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0022a600: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0022a610: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0022a650: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0022a660: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0022a6b0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0022a6c0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0022a6d0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0022a6e0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0022a6f0: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ +0022a700: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0022a710: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0022a720: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0022a730: 2020 2d20 6c6f 775f 7365 7665 7269 7479 - low_severity │ │ │ +0022a740: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0022a750: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +0022a760: 655f 7365 7472 6f75 626c 6573 686f 6f74 e_setroubleshoot │ │ │ +0022a770: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65 _removed..- name │ │ │ +0022a780: 3a20 2755 6e69 6e73 7461 6c6c 2073 6574 : 'Uninstall set │ │ │ +0022a790: 726f 7562 6c65 7368 6f6f 7420 5061 636b roubleshoot Pack │ │ │ +0022a7a0: 6167 653a 2045 6e73 7572 6520 7365 7472 age: Ensure setr │ │ │ +0022a7b0: 6f75 626c 6573 686f 6f74 2069 7320 7265 oubleshoot is re │ │ │ +0022a7c0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ +0022a7d0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +0022a7e0: 3a0a 2020 2020 6e61 6d65 3a20 7365 7472 :. name: setr │ │ │ +0022a7f0: 6f75 626c 6573 686f 6f74 0a20 2020 2073 oubleshoot. s │ │ │ +0022a800: 7461 7465 3a20 6162 7365 6e74 0a20 2077 tate: absent. w │ │ │ +0022a810: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +0022a820: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +0022a830: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +0022a840: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ +0022a850: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0022a860: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0022a870: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0022a880: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ +0022a890: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0022a8a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0022a8b0: 6765 5f73 6574 726f 7562 6c65 7368 6f6f ge_setroubleshoo │ │ │ +0022a8c0: 745f 7265 6d6f 7665 640a 3c2f 636f 6465 t_removed.

Remedi │ │ │ +0022a980: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0022a990: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0022a9a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0022a9d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0022aa40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0022aa60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0022aa90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0022aa20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0022aa30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0022aa70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0022aa80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0022aad0: 6520 7265 6d6f 7665 5f73 6574 726f 7562 e remove_setroub │ │ │ +0022aae0: 6c65 7368 6f6f 740a 0a63 6c61 7373 2072 leshoot..class r │ │ │ +0022aaf0: 656d 6f76 655f 7365 7472 6f75 626c 6573 emove_setroubles │ │ │ +0022ab00: 686f 6f74 207b 0a20 2070 6163 6b61 6765 hoot {. package │ │ │ +0022ab10: 207b 2027 7365 7472 6f75 626c 6573 686f { 'setroublesho │ │ │ +0022ab20: 6f74 273a 0a20 2020 2065 6e73 7572 6520 ot':. ensure │ │ │ +0022ab30: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +0022ab40: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remed │ │ │ -00234040: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00234050: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00234100: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00234120: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00234150: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002340e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002340f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00234110: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00234130: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00234140: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00234180: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00234190: 6465 2072 656d 6f76 655f 6468 6370 0a0a de remove_dhcp.. │ │ │ -002341a0: 636c 6173 7320 7265 6d6f 7665 5f64 6863 class remove_dhc │ │ │ -002341b0: 7020 7b0a 2020 7061 636b 6167 6520 7b20 p {. package { │ │ │ -002341c0: 2764 6863 7027 3a0a 2020 2020 656e 7375 'dhcp':. ensu │ │ │ -002341d0: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -002341e0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -002341f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -002342a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002342b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002342c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002342f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00234360: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00234380: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002343b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00234340: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00234350: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00234390: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002343a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -002343f0: 2027 556e 696e 7374 616c 6c20 4448 4350 'Uninstall DHCP │ │ │ -00234400: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ -00234410: 2045 6e73 7572 6520 6468 6370 2069 7320 Ensure dhcp is │ │ │ -00234420: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ -00234430: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00234440: 6765 3a0a 2020 2020 6e61 6d65 3a20 6468 ge:. name: dh │ │ │ -00234450: 6370 0a20 2020 2073 7461 7465 3a20 6162 cp. state: ab │ │ │ -00234460: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ -00234470: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00234480: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -00234490: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ -002344a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -002344b0: 3728 6229 0a20 202d 2050 4349 2d44 5353 7(b). - PCI-DSS │ │ │ -002344c0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002344d0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ -002344e0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -002344f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -00234500: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -00234510: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -00234520: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00234530: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00234540: 202d 2070 6163 6b61 6765 5f64 6863 705f - package_dhcp_ │ │ │ -00234550: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +00234040: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +00234050: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

Comp │ │ │ +002340e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002340f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00234110: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00234130: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00234140: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00234180: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00234190: 653a 2027 556e 696e 7374 616c 6c20 4448  e: 'Uninstall DH
│ │ │ +002341a0: 4350 2053 6572 7665 7220 5061 636b 6167  CP Server Packag
│ │ │ +002341b0: 653a 2045 6e73 7572 6520 6468 6370 2069  e: Ensure dhcp i
│ │ │ +002341c0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002341d0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002341e0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002341f0: 6468 6370 0a20 2020 2073 7461 7465 3a20  dhcp.    state: 
│ │ │ +00234200: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00234210: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00234220: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00234230: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00234240: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00234250: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00234260: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00234270: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00234280: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00234290: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002342a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002342b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002342c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002342d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002342e0: 0a20 202d 2070 6163 6b61 6765 5f64 6863  .  - package_dhc
│ │ │ +002342f0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +002343b0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002343c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002343d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00234400: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00234470: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00234490: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002344c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00234450: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00234460: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002344a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002344b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00234500: 6520 7265 6d6f 7665 5f64 6863 700a 0a63 e remove_dhcp..c │ │ │ +00234510: 6c61 7373 2072 656d 6f76 655f 6468 6370 lass remove_dhcp │ │ │ +00234520: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +00234530: 6468 6370 273a 0a20 2020 2065 6e73 7572 dhcp':. ensur │ │ │ +00234540: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ +00234550: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ 00234560: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediation P │ │ │ -002352f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00235300: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00235380: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002353a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002353f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00235420: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00235440: 655f 6b65 610a 0a63 6c61 7373 2072 656d  e_kea..class rem
│ │ │ -00235450: 6f76 655f 6b65 6120 7b0a 2020 7061 636b  ove_kea {.  pack
│ │ │ -00235460: 6167 6520 7b20 276b 6561 273a 0a20 2020  age { 'kea':.   
│ │ │ -00235470: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00235480: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -00235540: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00235550: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -002353b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002353c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00235400: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00235410: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002355f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00235600: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00235650: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00235690: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -002356a0: 206b 6561 2050 6163 6b61 6765 3a20 456e   kea Package: En
│ │ │ -002356b0: 7375 7265 206b 6561 2069 7320 7265 6d6f  sure kea is remo
│ │ │ -002356c0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -002356d0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -002356e0: 2020 2020 6e61 6d65 3a20 6b65 610a 2020      name: kea.  
│ │ │ -002356f0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00235700: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00235710: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00235720: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00235730: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00235740: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00235750: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00235760: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00235770: 7061 636b 6167 655f 6b65 615f 7265 6d6f  package_kea_remo
│ │ │ -00235780: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation A │ │ │ +002352f0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00235300: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ -002355e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00235610: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00235620: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00235660: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00235670: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00235380: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002353a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002353f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00235420: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00235390: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002353b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00235400: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00235410: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +00235440: 7374 616c 6c20 6b65 6120 5061 636b 6167  stall kea Packag
│ │ │ +00235450: 653a 2045 6e73 7572 6520 6b65 6120 6973  e: Ensure kea is
│ │ │ +00235460: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00235470: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00235480: 6167 653a 0a20 2020 206e 616d 653a 206b  age:.    name: k
│ │ │ +00235490: 6561 0a20 2020 2073 7461 7465 3a20 6162  ea.    state: ab
│ │ │ +002354a0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +002354b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002354c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002354d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002354e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002354f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00235500: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00235510: 0a20 202d 2070 6163 6b61 6765 5f6b 6561  .  - package_kea
│ │ │ +00235520: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00235530: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002355e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002355f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00235600: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00235610: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00235620: 7365 2220 6964 3d22 6964 3735 3922 3e3c se" id="id759">< │ │ │ +00235630: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00235640: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00235650: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00235660: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00235670: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00235680: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00235690: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002356d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002356e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00235700: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00235710: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00235730: 2072 656d 6f76 655f 6b65 610a 0a63 6c61 remove_kea..cla │ │ │ +00235740: 7373 2072 656d 6f76 655f 6b65 6120 7b0a ss remove_kea {. │ │ │ +00235750: 2020 7061 636b 6167 6520 7b20 276b 6561 package { 'kea │ │ │ +00235760: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +00235770: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +00235780: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation Pup │ │ │ -0023a240: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0023a250: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0023a320: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0023a330: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0023a380: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0023a390: 7365 6e64 6d61 696c 0a0a 636c 6173 7320  sendmail..class 
│ │ │ -0023a3a0: 7265 6d6f 7665 5f73 656e 646d 6169 6c20  remove_sendmail 
│ │ │ -0023a3b0: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ -0023a3c0: 656e 646d 6169 6c27 3a0a 2020 2020 656e  endmail':.    en
│ │ │ -0023a3d0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0023a3e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0023a4a0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0023a4b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ -0023a300: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0023a310: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0023a350: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0023a360: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -0023a540: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0023a550: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0023a570: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0023a590: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0023a5a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0023a5e0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0023a5f0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0023a600: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0023a610: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0023a620: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0023a630: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0023a640: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0023a650: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0023a660: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0023a670: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0023a680: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0023a690: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0023a6a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0023a6b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0023a6c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0023a6d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0023a6e0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -0023a6f0: 656e 646d 6169 6c5f 7265 6d6f 7665 640a  endmail_removed.
│ │ │ -0023a700: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ -0023a710: 616c 6c20 5365 6e64 6d61 696c 2050 6163  all Sendmail Pac
│ │ │ -0023a720: 6b61 6765 3a20 456e 7375 7265 2073 656e  kage: Ensure sen
│ │ │ -0023a730: 646d 6169 6c20 6973 2072 656d 6f76 6564  dmail is removed
│ │ │ -0023a740: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0023a750: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0023a760: 206e 616d 653a 2073 656e 646d 6169 6c0a   name: sendmail.
│ │ │ -0023a770: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0023a780: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -0023a790: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0023a7a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0023a7b0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -0023a7c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0023a7d0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0023a7e0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0023a7f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0023a800: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0023a810: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0023a820: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0023a830: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0023a840: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0023a850: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0023a860: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0023a870: 6765 5f73 656e 646d 6169 6c5f 7265 6d6f  ge_sendmail_remo
│ │ │ -0023a880: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation Ans │ │ │ +0023a240: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0023a250: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0023a320: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0023a330: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0023a390: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0023a3a0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0023a3b0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0023a3c0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0023a3d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0023a3e0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0023a3f0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0023a400: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0023a410: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0023a420: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0023a430: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0023a440: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0023a450: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0023a460: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0023a470: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0023a480: 6b61 6765 5f73 656e 646d 6169 6c5f 7265  kage_sendmail_re
│ │ │ +0023a490: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ +0023a4a0: 556e 696e 7374 616c 6c20 5365 6e64 6d61  Uninstall Sendma
│ │ │ +0023a4b0: 696c 2050 6163 6b61 6765 3a20 456e 7375  il Package: Ensu
│ │ │ +0023a4c0: 7265 2073 656e 646d 6169 6c20 6973 2072  re sendmail is r
│ │ │ +0023a4d0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +0023a4e0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0023a4f0: 653a 0a20 2020 206e 616d 653a 2073 656e  e:.    name: sen
│ │ │ +0023a500: 646d 6169 6c0a 2020 2020 7374 6174 653a  dmail.    state:
│ │ │ +0023a510: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ +0023a520: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +0023a530: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0023a540: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +0023a550: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0023a560: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0023a570: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0023a580: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0023a590: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0023a5a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0023a5b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0023a5c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0023a5d0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0023a5e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0023a5f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0023a600: 2070 6163 6b61 6765 5f73 656e 646d 6169   package_sendmai
│ │ │ +0023a610: 6c5f 7265 6d6f 7665 640a 3c2f 636f 6465  l_removed.
Remedi │ │ │ +0023a6d0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0023a6e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0023a6f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0023a720: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0023a300: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0023a310: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0023a350: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0023a360: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0023a790: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0023a7b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0023a7e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0023a770: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0023a780: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0023a7c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0023a7d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0023a820: 6520 7265 6d6f 7665 5f73 656e 646d 6169 e remove_sendmai │ │ │ +0023a830: 6c0a 0a63 6c61 7373 2072 656d 6f76 655f l..class remove_ │ │ │ +0023a840: 7365 6e64 6d61 696c 207b 0a20 2070 6163 sendmail {. pac │ │ │ +0023a850: 6b61 6765 207b 2027 7365 6e64 6d61 696c kage { 'sendmail │ │ │ +0023a860: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +0023a870: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +0023a880: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remed │ │ │ -0023cb70: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0023cb80: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0023cb90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -0023cbe0: 6573 5d5d 0a6e 616d 6520 3d20 2263 6872  es]].name = "chr
│ │ │ -0023cbf0: 6f6e 7922 0a76 6572 7369 6f6e 203d 2022  ony".version = "
│ │ │ -0023cc00: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -0023cc10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -0023ccc0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0023ccd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0023cd50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0023cd70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0023cdc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -0023ce10: 5f63 6872 6f6e 790a 0a63 6c61 7373 2069  _chrony..class i
│ │ │ -0023ce20: 6e73 7461 6c6c 5f63 6872 6f6e 7920 7b0a  nstall_chrony {.
│ │ │ -0023ce30: 2020 7061 636b 6167 6520 7b20 2763 6872    package { 'chr
│ │ │ -0023ce40: 6f6e 7927 3a0a 2020 2020 656e 7375 7265  ony':.    ensure
│ │ │ -0023ce50: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -0023ce60: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0023cf20: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0023cf30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ -0023cd80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0023cd90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0023cdd0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0023cde0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0023cfe0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0023d000: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0023d030: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0023cfc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0023cfd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0023cff0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0023d010: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0023d020: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0023d070: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0023d080: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0023d090: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0023d0a0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0023d0b0: 6167 733a 0a20 202d 2050 4349 2d44 5353 ags:. - PCI-DSS │ │ │ -0023d0c0: 2d52 6571 2d31 302e 340a 2020 2d20 5043 -Req-10.4. - PC │ │ │ -0023d0d0: 492d 4453 5376 342d 3130 2e36 0a20 202d I-DSSv4-10.6. - │ │ │ -0023d0e0: 2050 4349 2d44 5353 7634 2d31 302e 362e PCI-DSSv4-10.6. │ │ │ -0023d0f0: 310a 2020 2d20 656e 6162 6c65 5f73 7472 1. - enable_str │ │ │ -0023d100: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0023d110: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0023d120: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0023d130: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -0023d140: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0023d150: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -0023d160: 5f63 6872 6f6e 795f 696e 7374 616c 6c65 _chrony_installe │ │ │ -0023d170: 640a 0a2d 206e 616d 653a 2045 6e73 7572 d..- name: Ensur │ │ │ -0023d180: 6520 6368 726f 6e79 2069 7320 696e 7374 e chrony is inst │ │ │ -0023d190: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ -0023d1a0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -0023d1b0: 0a20 2020 206e 616d 653a 2063 6872 6f6e . name: chron │ │ │ -0023d1c0: 790a 2020 2020 7374 6174 653a 2070 7265 y. state: pre │ │ │ -0023d1d0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c sent. when: '"l │ │ │ -0023d1e0: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ -0023d1f0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -0023d200: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ -0023d210: 2d20 5043 492d 4453 532d 5265 712d 3130 - PCI-DSS-Req-10 │ │ │ -0023d220: 2e34 0a20 202d 2050 4349 2d44 5353 7634 .4. - PCI-DSSv4 │ │ │ -0023d230: 2d31 302e 360a 2020 2d20 5043 492d 4453 -10.6. - PCI-DS │ │ │ -0023d240: 5376 342d 3130 2e36 2e31 0a20 202d 2065 Sv4-10.6.1. - e │ │ │ -0023d250: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ -0023d260: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -0023d270: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -0023d280: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -0023d290: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -0023d2a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -0023d2b0: 2d20 7061 636b 6167 655f 6368 726f 6e79 - package_chrony │ │ │ -0023d2c0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

Comp │ │ │ +0023cc10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0023cc20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0023cc40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0023cc60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0023cc70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0023ccb0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0023ccc0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0023ccd0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0023cce0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0023ccf0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0023cd00: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ +0023cd10: 532d 5265 712d 3130 2e34 0a20 202d 2050 S-Req-10.4. - P │ │ │ +0023cd20: 4349 2d44 5353 7634 2d31 302e 360a 2020 CI-DSSv4-10.6. │ │ │ +0023cd30: 2d20 5043 492d 4453 5376 342d 3130 2e36 - PCI-DSSv4-10.6 │ │ │ +0023cd40: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ +0023cd50: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +0023cd60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +0023cd70: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +0023cd80: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +0023cd90: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0023cda0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +0023cdb0: 655f 6368 726f 6e79 5f69 6e73 7461 6c6c e_chrony_install │ │ │ +0023cdc0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ +0023cdd0: 7265 2063 6872 6f6e 7920 6973 2069 6e73 re chrony is ins │ │ │ +0023cde0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65 talled. ansible │ │ │ +0023cdf0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +0023ce00: 3a0a 2020 2020 6e61 6d65 3a20 6368 726f :. name: chro │ │ │ +0023ce10: 6e79 0a20 2020 2073 7461 7465 3a20 7072 ny. state: pr │ │ │ +0023ce20: 6573 656e 740a 2020 7768 656e 3a20 2722 esent. when: '" │ │ │ +0023ce30: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ +0023ce40: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +0023ce50: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ +0023ce60: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ +0023ce70: 302e 340a 2020 2d20 5043 492d 4453 5376 0.4. - PCI-DSSv │ │ │ +0023ce80: 342d 3130 2e36 0a20 202d 2050 4349 2d44 4-10.6. - PCI-D │ │ │ +0023ce90: 5353 7634 2d31 302e 362e 310a 2020 2d20 SSv4-10.6.1. - │ │ │ +0023cea0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +0023ceb0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +0023cec0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +0023ced0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +0023cee0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0023cef0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0023cf00: 202d 2070 6163 6b61 6765 5f63 6872 6f6e - package_chron │ │ │ +0023cf10: 795f 696e 7374 616c 6c65 640a 3c2f 636f y_installed.
< │ │ │ +0023cf30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0023cf40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0023cf50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0023cf60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0023cf70: 6437 3731 2220 7461 6269 6e64 6578 3d22 d771" tabindex=" │ │ │ +0023cf80: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0023cf90: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0023cfa0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0023cfb0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0023cfc0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0023cfd0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0023cfe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0023d070: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0023d080: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0023d0a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0023d0c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0023d0d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0023d110: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0023d120: 6520 696e 7374 616c 6c5f 6368 726f 6e79 e install_chrony │ │ │ +0023d130: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +0023d140: 6368 726f 6e79 207b 0a20 2070 6163 6b61 chrony {. packa │ │ │ +0023d150: 6765 207b 2027 6368 726f 6e79 273a 0a20 ge { 'chrony':. │ │ │ +0023d160: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +0023d170: 2769 6e73 7461 6c6c 6564 272c 0a20 207d 'installed',. } │ │ │ +0023d180: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +0023d190: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +0023d240: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0023d250: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0023d260: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0023d2a0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +0023d2b0: 6520 3d20 2263 6872 6f6e 7922 0a76 6572  e = "chrony".ver
│ │ │ +0023d2c0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Re │ │ │ -002474c0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002474d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002474e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00247580: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002475d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00247610: 636c 7564 6520 7265 6d6f 7665 5f78 696e  clude remove_xin
│ │ │ -00247620: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ -00247630: 655f 7869 6e65 7464 207b 0a20 2070 6163  e_xinetd {.  pac
│ │ │ -00247640: 6b61 6765 207b 2027 7869 6e65 7464 273a  kage { 'xinetd':
│ │ │ -00247650: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00247660: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00247670: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00247680: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00247730: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00247740: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -00247560: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00247590: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002475b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002475c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002475e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002475f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -002477c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002477e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00247830: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00247860: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00247880: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00247890: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002478a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002478b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002478c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002478d0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002478e0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002478f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00247900: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00247910: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00247920: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00247930: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00247940: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00247950: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00247960: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00247970: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00247980: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00247990: 2070 6163 6b61 6765 5f78 696e 6574 645f   package_xinetd_
│ │ │ -002479a0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -002479b0: 2027 556e 696e 7374 616c 6c20 7869 6e65   'Uninstall xine
│ │ │ -002479c0: 7464 2070 6163 6b61 6765 2069 6620 6e6f  td package if no
│ │ │ -002479d0: 7420 7573 6564 2062 7920 6e65 7477 6f72  t used by networ
│ │ │ -002479e0: 6b20 7365 7276 6963 6573 3a20 456e 7375  k services: Ensu
│ │ │ -002479f0: 7265 2078 696e 6574 6420 6973 0a20 2020  re xinetd is.   
│ │ │ -00247a00: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00247a10: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00247a20: 6167 653a 0a20 2020 206e 616d 653a 2078  age:.    name: x
│ │ │ -00247a30: 696e 6574 640a 2020 2020 7374 6174 653a  inetd.    state:
│ │ │ -00247a40: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -00247a50: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00247a60: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00247a70: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00247a80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00247a90: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00247aa0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -00247ab0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00247ac0: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ -00247ad0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00247ae0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00247af0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00247b00: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00247b10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00247b20: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00247b30: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00247b40: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00247b50: 2020 2d20 7061 636b 6167 655f 7869 6e65    - package_xine
│ │ │ -00247b60: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
low
Disr │ │ │ -002477f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00247800: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00247840: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00247850: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00247570: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00247580: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002475d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00247610: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00247620: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00247630: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00247640: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00247650: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00247660: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00247670: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00247680: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00247690: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002476a0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +002476b0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +002476c0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +002476d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002476e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002476f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00247700: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +00247710: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00247720: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00247730: 6b61 6765 5f78 696e 6574 645f 7265 6d6f  kage_xinetd_remo
│ │ │ +00247740: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ +00247750: 696e 7374 616c 6c20 7869 6e65 7464 2070  install xinetd p
│ │ │ +00247760: 6163 6b61 6765 2069 6620 6e6f 7420 7573  ackage if not us
│ │ │ +00247770: 6564 2062 7920 6e65 7477 6f72 6b20 7365  ed by network se
│ │ │ +00247780: 7276 6963 6573 3a20 456e 7375 7265 2078  rvices: Ensure x
│ │ │ +00247790: 696e 6574 6420 6973 0a20 2020 2072 656d  inetd is.    rem
│ │ │ +002477a0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002477b0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002477c0: 0a20 2020 206e 616d 653a 2078 696e 6574  .    name: xinet
│ │ │ +002477d0: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ +002477e0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +002477f0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00247800: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00247810: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00247820: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00247830: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00247840: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00247850: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00247860: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ +00247870: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00247880: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +00247890: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002478a0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002478b0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002478c0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +002478d0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +002478e0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002478f0: 7061 636b 6167 655f 7869 6e65 7464 5f72  package_xinetd_r
│ │ │ +00247900: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +002479c0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +002479d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00247a50: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00247a90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ +00247560: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00247590: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002475a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002475e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002475f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ +00247a60: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00247a80: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00247ab0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00247ad0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00247b00: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00247b10: 656d 6f76 655f 7869 6e65 7464 0a0a 636c  emove_xinetd..cl
│ │ │ +00247b20: 6173 7320 7265 6d6f 7665 5f78 696e 6574  ass remove_xinet
│ │ │ +00247b30: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +00247b40: 2778 696e 6574 6427 3a0a 2020 2020 656e  'xinetd':.    en
│ │ │ +00247b50: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00247b60: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation Pup │ │ │ -002491a0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002491b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00249280: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00249290: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002492e0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002492f0: 7970 6269 6e64 2d6d 740a 0a63 6c61 7373  ypbind-mt..class
│ │ │ -00249300: 2072 656d 6f76 655f 7970 6269 6e64 2d6d   remove_ypbind-m
│ │ │ -00249310: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -00249320: 2779 7062 696e 642d 6d74 273a 0a20 2020  'ypbind-mt':.   
│ │ │ -00249330: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00249340: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -00249400: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00249410: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:low
Disrup │ │ │ -00249260: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00249270: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002492b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002492c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002494b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002494c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00249510: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00249550: 6e61 6d65 3a20 2752 656d 6f76 6520 4e49  name: 'Remove NI
│ │ │ -00249560: 5320 436c 6965 6e74 3a20 456e 7375 7265  S Client: Ensure
│ │ │ -00249570: 2079 7062 696e 642d 6d74 2069 7320 7265   ypbind-mt is re
│ │ │ -00249580: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00249590: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -002495a0: 3a0a 2020 2020 6e61 6d65 3a20 7970 6269  :.    name: ypbi
│ │ │ -002495b0: 6e64 2d6d 740a 2020 2020 7374 6174 653a  nd-mt.    state:
│ │ │ -002495c0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -002495d0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002495e0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -002495f0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00249600: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00249610: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00249620: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00249630: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00249640: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00249650: 655f 7970 6269 6e64 5f72 656d 6f76 6564  e_ypbind_removed
│ │ │ -00249660: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -00249670: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediation Ans │ │ │ +002491a0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +002491b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -002494a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002494d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002494e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00249520: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00249530: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00249280: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00249290: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +002492f0: 204e 4953 2043 6c69 656e 743a 2045 6e73   NIS Client: Ens
│ │ │ +00249300: 7572 6520 7970 6269 6e64 2d6d 7420 6973  ure ypbind-mt is
│ │ │ +00249310: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00249320: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00249330: 6167 653a 0a20 2020 206e 616d 653a 2079  age:.    name: y
│ │ │ +00249340: 7062 696e 642d 6d74 0a20 2020 2073 7461  pbind-mt.    sta
│ │ │ +00249350: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00249360: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +00249370: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00249380: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00249390: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002493a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002493b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002493c0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +002493d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002493e0: 6b61 6765 5f79 7062 696e 645f 7265 6d6f  kage_ypbind_remo
│ │ │ +002493f0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f  ved.  - unknown_
│ │ │ +00249400: 7365 7665 7269 7479 0a3c 2f63 6f64 653e  severity.
│ │ │ +00249410: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002494c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002494d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002494e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002494f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00249500: 7365 2220 6964 3d22 6964 3739 3322 3e3c se" id="id793">< │ │ │ +00249510: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00249520: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00249530: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00249540: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00249550: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +002495e0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +002495f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disru │ │ │ +00249260: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00249270: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002492b0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002492c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +00249560: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00249570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +002495b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002495c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +00249610: 2072 656d 6f76 655f 7970 6269 6e64 2d6d remove_ypbind-m │ │ │ +00249620: 740a 0a63 6c61 7373 2072 656d 6f76 655f t..class remove_ │ │ │ +00249630: 7970 6269 6e64 2d6d 7420 7b0a 2020 7061 ypbind-mt {. pa │ │ │ +00249640: 636b 6167 6520 7b20 2779 7062 696e 642d ckage { 'ypbind- │ │ │ +00249650: 6d74 273a 0a20 2020 2065 6e73 7572 6520 mt':. ensure │ │ │ +00249660: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +00249670: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

│ │ │ -0024ae20: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0024ae30: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0024aed0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0024af70: 696e 636c 7564 6520 7265 6d6f 7665 5f79  include remove_y
│ │ │ -0024af80: 7073 6572 760a 0a63 6c61 7373 2072 656d  pserv..class rem
│ │ │ -0024af90: 6f76 655f 7970 7365 7276 207b 0a20 2070  ove_ypserv {.  p
│ │ │ -0024afa0: 6163 6b61 6765 207b 2027 7970 7365 7276  ackage { 'ypserv
│ │ │ -0024afb0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0024afc0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0024afd0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0024b090: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0024b0a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0024b170: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -0024aec0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0024aef0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0024af00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0024af40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0024af50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -0024b130: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0024b150: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0024b1a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024b1b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0024b1e0: 6e73 7461 6c6c 2079 7073 6572 7620 5061  nstall ypserv Pa
│ │ │ -0024b1f0: 636b 6167 653a 2045 6e73 7572 6520 7970  ckage: Ensure yp
│ │ │ -0024b200: 7365 7276 2069 7320 7265 6d6f 7665 6427  serv is removed'
│ │ │ -0024b210: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0024b220: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0024b230: 6e61 6d65 3a20 7970 7365 7276 0a20 2020  name: ypserv.   
│ │ │ -0024b240: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0024b250: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0024b260: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0024b270: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0024b280: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0024b290: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0024b2a0: 202d 204e 4953 542d 3830 302d 3533 2d49   - NIST-800-53-I
│ │ │ -0024b2b0: 412d 3528 3129 2863 290a 2020 2d20 5043  A-5(1)(c).  - PC
│ │ │ -0024b2c0: 492d 4453 532d 5265 712d 322e 322e 320a  I-DSS-Req-2.2.2.
│ │ │ -0024b2d0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -0024b2e0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -0024b2f0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -0024b300: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0024b310: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0024b320: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0024b330: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0024b340: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0024b350: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0024b360: 6167 655f 7970 7365 7276 5f72 656d 6f76  age_ypserv_remov
│ │ │ -0024b370: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0024ae20: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +0024ae30: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +0024ae40: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0024af10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0024af20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0024af70: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0024af80: 6c6c 2079 7073 6572 7620 5061 636b 6167  ll ypserv Packag
│ │ │ +0024af90: 653a 2045 6e73 7572 6520 7970 7365 7276  e: Ensure ypserv
│ │ │ +0024afa0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +0024afb0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0024afc0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0024afd0: 3a20 7970 7365 7276 0a20 2020 2073 7461  : ypserv.    sta
│ │ │ +0024afe0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +0024aff0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0024b000: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0024b010: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0024b020: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0024b030: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ +0024b040: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ +0024b050: 3129 2863 290a 2020 2d20 5043 492d 4453  1)(c).  - PCI-DS
│ │ │ +0024b060: 532d 5265 712d 322e 322e 320a 2020 2d20  S-Req-2.2.2.  - 
│ │ │ +0024b070: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0024b080: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0024b090: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0024b0a0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +0024b0b0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +0024b0c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0024b0d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0024b0e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0024b0f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0024b100: 7970 7365 7276 5f72 656d 6f76 6564 0a3c  ypserv_removed.<
│ │ │ +0024b110: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0024b1c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0024b1d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +0024aef0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0024af00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0024af40: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0024af50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0024b270: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024b280: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0024b2d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0024b310: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ +0024b320: 7365 7276 0a0a 636c 6173 7320 7265 6d6f  serv..class remo
│ │ │ +0024b330: 7665 5f79 7073 6572 7620 7b0a 2020 7061  ve_ypserv {.  pa
│ │ │ +0024b340: 636b 6167 6520 7b20 2779 7073 6572 7627  ckage { 'ypserv'
│ │ │ +0024b350: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0024b360: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0024b370: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0024b380: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediat │ │ │ -0024ceb0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0024cec0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0024cf40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0024cfd0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0024cfe0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +0024b260: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0024b290: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0024b2a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0024b2e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0024b2f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -0024cf50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0024cf60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0024cfa0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0024cfb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -0024d000: 7265 6d6f 7665 5f72 7368 2d73 6572 7665  remove_rsh-serve
│ │ │ -0024d010: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ -0024d020: 7273 682d 7365 7276 6572 207b 0a20 2070  rsh-server {.  p
│ │ │ -0024d030: 6163 6b61 6765 207b 2027 7273 682d 7365  ackage { 'rsh-se
│ │ │ -0024d040: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ -0024d050: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0024d060: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0024d070: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0024d120: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0024d130: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024d140: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024d150: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024d160: 7365 2220 6964 3d22 6964 3830 3122 3e3c se" id="id801">< │ │ │ -0024d170: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024d180: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024d190: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024d1a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024d1b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024d1c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024d1d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024d210: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024d220: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024d240: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024d250: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0024d270: 2755 6e69 6e73 7461 6c6c 2072 7368 2d73 'Uninstall rsh-s │ │ │ -0024d280: 6572 7665 7220 5061 636b 6167 653a 2045 erver Package: E │ │ │ -0024d290: 6e73 7572 6520 7273 682d 7365 7276 6572 nsure rsh-server │ │ │ -0024d2a0: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -0024d2b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -0024d2c0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -0024d2d0: 3a20 7273 682d 7365 7276 6572 0a20 2020 : rsh-server. │ │ │ -0024d2e0: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -0024d2f0: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ -0024d300: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -0024d310: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -0024d320: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ -0024d330: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ -0024d340: 202d 204e 4953 542d 3830 302d 3533 2d49 - NIST-800-53-I │ │ │ -0024d350: 412d 3528 3129 2863 290a 2020 2d20 5043 A-5(1)(c). - PC │ │ │ -0024d360: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ -0024d370: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ -0024d380: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -0024d390: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ -0024d3a0: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ -0024d3b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0024d3c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0024d3d0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0024d3e0: 640a 2020 2d20 7061 636b 6167 655f 7273 d. - package_rs │ │ │ -0024d3f0: 682d 7365 7276 6572 5f72 656d 6f76 6564 h-server_removed │ │ │ +0024ceb0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0024cec0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0024ced0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0024cee0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0024cef0: 7365 2220 6964 3d22 6964 3830 3022 3e3c se" id="id800">< │ │ │ +0024cf00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0024cf10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0024cf20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0024cf30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0024cf40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0024cf50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0024cf60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0024cfa0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0024cfb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0024cfd0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0024cfe0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0024d000: 2755 6e69 6e73 7461 6c6c 2072 7368 2d73 'Uninstall rsh-s │ │ │ +0024d010: 6572 7665 7220 5061 636b 6167 653a 2045 erver Package: E │ │ │ +0024d020: 6e73 7572 6520 7273 682d 7365 7276 6572 nsure rsh-server │ │ │ +0024d030: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ +0024d040: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +0024d050: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +0024d060: 3a20 7273 682d 7365 7276 6572 0a20 2020 : rsh-server. │ │ │ +0024d070: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +0024d080: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +0024d090: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +0024d0a0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0024d0b0: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ +0024d0c0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ +0024d0d0: 202d 204e 4953 542d 3830 302d 3533 2d49 - NIST-800-53-I │ │ │ +0024d0e0: 412d 3528 3129 2863 290a 2020 2d20 5043 A-5(1)(c). - PC │ │ │ +0024d0f0: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ +0024d100: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ +0024d110: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0024d120: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ +0024d130: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ +0024d140: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +0024d150: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +0024d160: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +0024d170: 640a 2020 2d20 7061 636b 6167 655f 7273 d. - package_rs │ │ │ +0024d180: 682d 7365 7276 6572 5f72 656d 6f76 6564 h-server_removed │ │ │ +0024d190: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Pup │ │ │ +0024d250: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0024d260: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0024d330: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0024d340: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0024d390: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0024d3a0: 7273 682d 7365 7276 6572 0a0a 636c 6173  rsh-server..clas
│ │ │ +0024d3b0: 7320 7265 6d6f 7665 5f72 7368 2d73 6572  s remove_rsh-ser
│ │ │ +0024d3c0: 7665 7220 7b0a 2020 7061 636b 6167 6520  ver {.  package 
│ │ │ +0024d3d0: 7b20 2772 7368 2d73 6572 7665 7227 3a0a  { 'rsh-server':.
│ │ │ +0024d3e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0024d3f0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0024d400: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Reme │ │ │ -0024e5f0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0024e600: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ +0024d310: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0024d320: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0024d360: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0024d370: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -0024e690: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0024e6a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0024e6c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0024e6e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0024e6f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0024e730: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0024e740: 7564 6520 7265 6d6f 7665 5f72 7368 0a0a  ude remove_rsh..
│ │ │ -0024e750: 636c 6173 7320 7265 6d6f 7665 5f72 7368  class remove_rsh
│ │ │ -0024e760: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -0024e770: 7273 6827 3a0a 2020 2020 656e 7375 7265  rsh':.    ensure
│ │ │ -0024e780: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0024e790: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -0024e850: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0024e860: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0024e8e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0024e8f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0024e900: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0024e940: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0024e950: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0024e970: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0024e980: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -0024e9a0: 556e 696e 7374 616c 6c20 7273 6820 5061  Uninstall rsh Pa
│ │ │ -0024e9b0: 636b 6167 653a 2045 6e73 7572 6520 7273  ckage: Ensure rs
│ │ │ -0024e9c0: 6820 6973 2072 656d 6f76 6564 270a 2020  h is removed'.  
│ │ │ -0024e9d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0024e9e0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0024e9f0: 653a 2072 7368 0a20 2020 2073 7461 7465  e: rsh.    state
│ │ │ -0024ea00: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -0024ea10: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -0024ea20: 312d 332e 312e 3133 0a20 202d 2050 4349  1-3.1.13.  - PCI
│ │ │ -0024ea30: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0024ea40: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0024ea50: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0024ea60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0024ea70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0024ea80: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -0024ea90: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0024eaa0: 202d 2070 6163 6b61 6765 5f72 7368 5f72   - package_rsh_r
│ │ │ -0024eab0: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ -0024eac0: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.<
│ │ │ +0024e610: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +0024e690: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0024e6c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0024e6e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0024e6f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0024e710: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0024e720: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0024e740: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2072  me: 'Uninstall r
│ │ │ +0024e750: 7368 2050 6163 6b61 6765 3a20 456e 7375  sh Package: Ensu
│ │ │ +0024e760: 7265 2072 7368 2069 7320 7265 6d6f 7665  re rsh is remove
│ │ │ +0024e770: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0024e780: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0024e790: 2020 6e61 6d65 3a20 7273 680a 2020 2020    name: rsh.    
│ │ │ +0024e7a0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0024e7b0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0024e7c0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +0024e7d0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0024e7e0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0024e7f0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +0024e800: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0024e810: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0024e820: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0024e830: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0024e840: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0024e850: 7273 685f 7265 6d6f 7665 640a 2020 2d20  rsh_removed.  - 
│ │ │ +0024e860: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0024e870: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0024e930: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0024e940: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0024ea10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0024ea20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0024ea70: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0024ea80: 7273 680a 0a63 6c61 7373 2072 656d 6f76  rsh..class remov
│ │ │ +0024ea90: 655f 7273 6820 7b0a 2020 7061 636b 6167  e_rsh {.  packag
│ │ │ +0024eaa0: 6520 7b20 2772 7368 273a 0a20 2020 2065  e { 'rsh':.    e
│ │ │ +0024eab0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0024eac0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0024eae0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0024eaf0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0024eb00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0024eb10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0024eb20: 6438 3036 2220 7461 6269 6e64 6578 3d22 d806" tabindex=" │ │ │ 0024eb30: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -151513,94 +151513,94 @@ │ │ │ 0024fd80: 6172 6765 743d 2223 6964 3830 3822 2074 arget="#id808" t │ │ │ 0024fd90: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0024fda0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0024fdb0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0024fdc0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0024fdd0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0024fde0: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0024fdf0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0024fe00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0024fed0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ +0024e9f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0024ea00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0024ea40: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0024ea50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -0024fe90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0024feb0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0024ff00: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024ff10: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0024ff40: 6f76 655f 7461 6c6b 2d73 6572 7665 720a  ove_talk-server.
│ │ │ -0024ff50: 0a63 6c61 7373 2072 656d 6f76 655f 7461  .class remove_ta
│ │ │ -0024ff60: 6c6b 2d73 6572 7665 7220 7b0a 2020 7061  lk-server {.  pa
│ │ │ -0024ff70: 636b 6167 6520 7b20 2774 616c 6b2d 7365  ckage { 'talk-se
│ │ │ -0024ff80: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ -0024ff90: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0024ffa0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0024ffb0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00250060: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00250070: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00250080: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00250090: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002500a0: 7365 2220 6964 3d22 6964 3830 3922 3e3c se" id="id809">< │ │ │ -002500b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002500c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002500d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002500e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002500f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00250100: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00250110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00250150: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00250160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00250180: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00250190: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002501b0: 2755 6e69 6e73 7461 6c6c 2074 616c 6b2d 'Uninstall talk- │ │ │ -002501c0: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ -002501d0: 456e 7375 7265 2074 616c 6b2d 7365 7276 Ensure talk-serv │ │ │ -002501e0: 6572 2069 7320 7265 6d6f 7665 6427 0a20 er is removed'. │ │ │ -002501f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00250200: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -00250210: 6d65 3a20 7461 6c6b 2d73 6572 7665 720a me: talk-server. │ │ │ -00250220: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -00250230: 740a 2020 7461 6773 3a0a 2020 2d20 5043 t. tags:. - PC │ │ │ -00250240: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ -00250250: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ -00250260: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -00250270: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00250280: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00250290: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -002502a0: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -002502b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -002502c0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -002502d0: 7461 6c6b 2d73 6572 7665 725f 7265 6d6f talk-server_remo │ │ │ -002502e0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.

Complexity │ │ │ +0024fe90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024feb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024fec0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024fed0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024fee0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024ff00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024ff30: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0024ff40: 696e 7374 616c 6c20 7461 6c6b 2d73 6572  install talk-ser
│ │ │ +0024ff50: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +0024ff60: 7572 6520 7461 6c6b 2d73 6572 7665 7220  ure talk-server 
│ │ │ +0024ff70: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +0024ff80: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0024ff90: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0024ffa0: 2074 616c 6b2d 7365 7276 6572 0a20 2020   talk-server.   
│ │ │ +0024ffb0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0024ffc0: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +0024ffd0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0024ffe0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +0024fff0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00250000: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00250010: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00250020: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00250030: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00250040: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00250050: 0a20 202d 2070 6163 6b61 6765 5f74 616c  .  - package_tal
│ │ │ +00250060: 6b2d 7365 7276 6572 5f72 656d 6f76 6564  k-server_removed
│ │ │ +00250070: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00250130: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00250140: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00250210: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00250220: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00250270: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00250280: 7461 6c6b 2d73 6572 7665 720a 0a63 6c61  talk-server..cla
│ │ │ +00250290: 7373 2072 656d 6f76 655f 7461 6c6b 2d73  ss remove_talk-s
│ │ │ +002502a0: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ +002502b0: 6520 7b20 2774 616c 6b2d 7365 7276 6572  e { 'talk-server
│ │ │ +002502c0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002502d0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002502e0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -002513f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00251400: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +002501f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00250200: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00250240: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00250250: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002514a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002514b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00251500: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00251540: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ -00251550: 6c6b 0a0a 636c 6173 7320 7265 6d6f 7665  lk..class remove
│ │ │ -00251560: 5f74 616c 6b20 7b0a 2020 7061 636b 6167  _talk {.  packag
│ │ │ -00251570: 6520 7b20 2774 616c 6b27 3a0a 2020 2020  e { 'talk':.    
│ │ │ -00251580: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00251590: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -002515b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00251650: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00251660: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00251670: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ -00251490: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002514c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002514d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00251510: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00251520: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -00251710: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00251760: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002517a0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002517b0: 7461 6c6b 2050 6163 6b61 6765 3a20 456e  talk Package: En
│ │ │ -002517c0: 7375 7265 2074 616c 6b20 6973 2072 656d  sure talk is rem
│ │ │ -002517d0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002517e0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002517f0: 0a20 2020 206e 616d 653a 2074 616c 6b0a  .    name: talk.
│ │ │ -00251800: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00251810: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -00251820: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00251830: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -00251840: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00251850: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00251860: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00251870: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00251880: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00251890: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002518a0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -002518b0: 7461 6c6b 5f72 656d 6f76 6564 0a3c 2f63  talk_removed.
Co │ │ │ -002516f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00251720: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00251740: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00251750: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00251770: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00251780: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +002514a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00251540: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00251550: 6c20 7461 6c6b 2050 6163 6b61 6765 3a20  l talk Package: 
│ │ │ +00251560: 456e 7375 7265 2074 616c 6b20 6973 2072  Ensure talk is r
│ │ │ +00251570: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00251580: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00251590: 653a 0a20 2020 206e 616d 653a 2074 616c  e:.    name: tal
│ │ │ +002515a0: 6b0a 2020 2020 7374 6174 653a 2061 6273  k.    state: abs
│ │ │ +002515b0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +002515c0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +002515d0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +002515e0: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +002515f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00251600: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00251610: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00251620: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00251630: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00251640: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00251650: 655f 7461 6c6b 5f72 656d 6f76 6564 0a3c  e_talk_removed.<
│ │ │ +00251660: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00251710: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00251720: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00251490: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002514c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002514d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00251510: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00251520: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002517c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002517d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00251820: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00251860: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ +00251870: 6c6b 0a0a 636c 6173 7320 7265 6d6f 7665  lk..class remove
│ │ │ +00251880: 5f74 616c 6b20 7b0a 2020 7061 636b 6167  _talk {.  packag
│ │ │ +00251890: 6520 7b20 2774 616c 6b27 3a0a 2020 2020  e { 'talk':.    
│ │ │ +002518a0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +002518b0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 002518d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation P │ │ │ -00253620: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00253630: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +002517b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002517e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002517f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00251830: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00251840: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002536b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002536d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00253720: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00253750: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00253770: 655f 7465 6c6e 6574 2d73 6572 7665 720a  e_telnet-server.
│ │ │ -00253780: 0a63 6c61 7373 2072 656d 6f76 655f 7465  .class remove_te
│ │ │ -00253790: 6c6e 6574 2d73 6572 7665 7220 7b0a 2020  lnet-server {.  
│ │ │ -002537a0: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ -002537b0: 742d 7365 7276 6572 273a 0a20 2020 2065  t-server':.    e
│ │ │ -002537c0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002537d0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -002537f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00253800: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00253810: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00253820: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00253830: 6438 3137 2220 7461 6269 6e64 6578 3d22 d817" tabindex=" │ │ │ -00253840: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00253850: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00253860: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00253870: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00253880: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00253890: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002538a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002538b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -002536e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002536f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00253730: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00253740: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ -00253930: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00253960: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00253980: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00253990: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002539b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002539c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002539e0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -002539f0: 656c 6e65 742d 7365 7276 6572 2050 6163  elnet-server Pac
│ │ │ -00253a00: 6b61 6765 3a20 456e 7375 7265 2074 656c  kage: Ensure tel
│ │ │ -00253a10: 6e65 742d 7365 7276 6572 2069 7320 7265  net-server is re
│ │ │ -00253a20: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00253a30: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00253a40: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ -00253a50: 6574 2d73 6572 7665 720a 2020 2020 7374  et-server.    st
│ │ │ -00253a60: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00253a70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00253a80: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00253a90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00253aa0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00253ab0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00253ac0: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -00253ad0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00253ae0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00253af0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00253b00: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00253b10: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ -00253b20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00253b30: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00253b40: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -00253b50: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00253b60: 636b 6167 655f 7465 6c6e 6574 2d73 6572  ckage_telnet-ser
│ │ │ -00253b70: 7665 725f 7265 6d6f 7665 640a 3c2f 636f  ver_removed.Remediation A
│ │ │ +00253620: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00253630: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +002536b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002536d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00253720: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00253750: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002536c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002536e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00253730: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00253740: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +00253770: 7374 616c 6c20 7465 6c6e 6574 2d73 6572  stall telnet-ser
│ │ │ +00253780: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +00253790: 7572 6520 7465 6c6e 6574 2d73 6572 7665  ure telnet-serve
│ │ │ +002537a0: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ +002537b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002537c0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002537d0: 653a 2074 656c 6e65 742d 7365 7276 6572  e: telnet-server
│ │ │ +002537e0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +002537f0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00253800: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00253810: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00253820: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00253830: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00253840: 6229 0a20 202d 2050 4349 2d44 5353 2d52  b).  - PCI-DSS-R
│ │ │ +00253850: 6571 2d32 2e32 2e32 0a20 202d 2050 4349  eq-2.2.2.  - PCI
│ │ │ +00253860: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00253870: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +00253880: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00253890: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +002538a0: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +002538b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002538c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002538d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002538e0: 0a20 202d 2070 6163 6b61 6765 5f74 656c  .  - package_tel
│ │ │ +002538f0: 6e65 742d 7365 7276 6572 5f72 656d 6f76  net-server_remov
│ │ │ +00253900: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00253910: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +002539c0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002539d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00253a50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00253a70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00253ac0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00253af0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00253b10: 655f 7465 6c6e 6574 2d73 6572 7665 720a  e_telnet-server.
│ │ │ +00253b20: 0a63 6c61 7373 2072 656d 6f76 655f 7465  .class remove_te
│ │ │ +00253b30: 6c6e 6574 2d73 6572 7665 7220 7b0a 2020  lnet-server {.  
│ │ │ +00253b40: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ +00253b50: 742d 7365 7276 6572 273a 0a20 2020 2065  t-server':.    e
│ │ │ +00253b60: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00253b70: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00253b90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00253ba0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00253bb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00253bc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00253bd0: 6438 3138 2220 7461 6269 6e64 6578 3d22 d818" tabindex=" │ │ │ 00253be0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -152782,93 +152782,93 @@ │ │ │ 00254cd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00254ce0: 6438 3230 2220 7461 6269 6e64 6578 3d22 d820" tabindex=" │ │ │ 00254cf0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 00254d00: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 00254d10: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 00254d20: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 00254d30: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00254d40: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00254d50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +00253a80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00253a90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00253ad0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00253ae0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ -00254de0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00254df0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00254e10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00254e30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00254e40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00254e80: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00254e90: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ -00254ea0: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ -00254eb0: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ -00254ec0: 6765 207b 2027 7465 6c6e 6574 273a 0a20  ge { 'telnet':. 
│ │ │ -00254ed0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00254ee0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00254ef0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00254fa0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00254fb0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00254fc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00255090: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002550a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002550f0: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -00255100: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ -00255110: 456e 7375 7265 2074 656c 6e65 7420 6973  Ensure telnet is
│ │ │ -00255120: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00255130: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00255140: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -00255150: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ -00255160: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -00255170: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -00255180: 2d33 2e31 2e31 330a 2020 2d20 5043 492d  -3.1.13.  - PCI-
│ │ │ -00255190: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002551a0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -002551b0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002551c0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002551d0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002551e0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -002551f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00255200: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00255210: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ -00255220: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.<
│ │ │ +00254d60: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -00255070: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00255080: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002550c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002550d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +00254de0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00254e10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00254e30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00254e40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00254e60: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00254e70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00254e90: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ +00254ea0: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ +00254eb0: 7265 2074 656c 6e65 7420 6973 2072 656d  re telnet is rem
│ │ │ +00254ec0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00254ed0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00254ee0: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ +00254ef0: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ +00254f00: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00254f10: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +00254f20: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ +00254f30: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00254f40: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +00254f50: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00254f60: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00254f70: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00254f80: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +00254f90: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00254fa0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00254fb0: 6163 6b61 6765 5f74 656c 6e65 745f 7265  ackage_telnet_re
│ │ │ +00254fc0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00255080: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00255090: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00255120: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00255140: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00255150: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00255160: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00255170: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00255190: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002551c0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +002551d0: 6d6f 7665 5f74 656c 6e65 740a 0a63 6c61  move_telnet..cla
│ │ │ +002551e0: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ +002551f0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00255200: 7465 6c6e 6574 273a 0a20 2020 2065 6e73  telnet':.    ens
│ │ │ +00255210: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00255220: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
R │ │ │ -00256d50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00256d60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00256e00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00256e10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00256e60: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00256ea0: 6e63 6c75 6465 2072 656d 6f76 655f 7466  nclude remove_tf
│ │ │ -00256eb0: 7470 642d 6870 610a 0a63 6c61 7373 2072  tpd-hpa..class r
│ │ │ -00256ec0: 656d 6f76 655f 7466 7470 642d 6870 6120  emove_tftpd-hpa 
│ │ │ -00256ed0: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ -00256ee0: 6674 7064 2d68 7061 273a 0a20 2020 2065  ftpd-hpa':.    e
│ │ │ -00256ef0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00256f00: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00256f20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00256f30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00256f40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00256f50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00256f60: 6438 3235 2220 7461 6269 6e64 6578 3d22 d825" tabindex=" │ │ │ -00256f70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00256f80: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00256f90: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00256fa0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00256fb0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00256fc0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00256fd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00256fe0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -00256df0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00256e20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00256e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00256e70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00256e80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00257060: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00257090: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002570b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002570c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002570e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002570f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00257110: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -00257120: 6674 7064 2d68 7061 2050 6163 6b61 6765  ftpd-hpa Package
│ │ │ -00257130: 3a20 456e 7375 7265 2074 6674 7064 2d68  : Ensure tftpd-h
│ │ │ -00257140: 7061 2069 7320 7265 6d6f 7665 6427 0a20  pa is removed'. 
│ │ │ -00257150: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00257160: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00257170: 6d65 3a20 7466 7470 642d 6870 610a 2020  me: tftpd-hpa.  
│ │ │ -00257180: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00257190: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002571a0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002571b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002571c0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -002571d0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002571e0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002571f0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00257200: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00257210: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -00257220: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -00257230: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00257240: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00257250: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00257260: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00257270: 6167 655f 7466 7470 2d73 6572 7665 725f  age_tftp-server_
│ │ │ -00257280: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00256d50: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00256d60: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +00256e00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00256ea0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00256eb0: 6c20 7466 7470 642d 6870 6120 5061 636b  l tftpd-hpa Pack
│ │ │ +00256ec0: 6167 653a 2045 6e73 7572 6520 7466 7470  age: Ensure tftp
│ │ │ +00256ed0: 642d 6870 6120 6973 2072 656d 6f76 6564  d-hpa is removed
│ │ │ +00256ee0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00256ef0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00256f00: 206e 616d 653a 2074 6674 7064 2d68 7061   name: tftpd-hpa
│ │ │ +00256f10: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00256f20: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00256f30: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00256f40: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00256f50: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00256f60: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00256f70: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +00256f80: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00256f90: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00256fa0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00256fb0: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +00256fc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00256fd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00256fe0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00256ff0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00257000: 6163 6b61 6765 5f74 6674 702d 7365 7276  ackage_tftp-serv
│ │ │ +00257010: 6572 5f72 656d 6f76 6564 0a3c 2f63 6f64  er_removed.
Remed │ │ │ +002570d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002570e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00256df0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00256e20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00256e30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00256e70: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00256e80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00257190: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002571b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002571e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00257170: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00257180: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002571a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002571c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002571d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00257210: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00257220: 6465 2072 656d 6f76 655f 7466 7470 642d de remove_tftpd- │ │ │ +00257230: 6870 610a 0a63 6c61 7373 2072 656d 6f76 hpa..class remov │ │ │ +00257240: 655f 7466 7470 642d 6870 6120 7b0a 2020 e_tftpd-hpa {. │ │ │ +00257250: 7061 636b 6167 6520 7b20 2774 6674 7064 package { 'tftpd │ │ │ +00257260: 2d68 7061 273a 0a20 2020 2065 6e73 7572 -hpa':. ensur │ │ │ +00257270: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ +00257280: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ 00257290: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation │ │ │ -00258280: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00258290: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00258320: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00258340: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00258360: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00258390: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002583a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002583d0: 6f76 655f 7466 7470 0a0a 636c 6173 7320  ove_tftp..class 
│ │ │ -002583e0: 7265 6d6f 7665 5f74 6674 7020 7b0a 2020  remove_tftp {.  
│ │ │ -002583f0: 7061 636b 6167 6520 7b20 2774 6674 7027  package { 'tftp'
│ │ │ -00258400: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00258410: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00258420: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00258430: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -002584e0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002584f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00258570: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00258590: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002585e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00258610: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00258580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002585a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002585f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00258600: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ -00258630: 7665 2074 6674 7020 4461 656d 6f6e 3a20  ve tftp Daemon: 
│ │ │ -00258640: 456e 7375 7265 2074 6674 7020 6973 2072  Ensure tftp is r
│ │ │ -00258650: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00258660: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00258670: 653a 0a20 2020 206e 616d 653a 2074 6674  e:.    name: tft
│ │ │ -00258680: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ -00258690: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002586a0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002586b0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002586c0: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ -002586d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002586e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002586f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00258700: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00258710: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00258720: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ -00258730: 6674 705f 7265 6d6f 7665 640a 3c2f 636f  ftp_removed.
Complexity │ │ │ +00258320: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00258340: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00258350: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00258360: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00258370: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00258390: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002583c0: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ +002583d0: 6d6f 7665 2074 6674 7020 4461 656d 6f6e  move tftp Daemon
│ │ │ +002583e0: 3a20 456e 7375 7265 2074 6674 7020 6973  : Ensure tftp is
│ │ │ +002583f0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00258400: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00258410: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +00258420: 6674 700a 2020 2020 7374 6174 653a 2061  ftp.    state: a
│ │ │ +00258430: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00258440: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00258450: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00258460: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +00258470: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00258480: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00258490: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002584a0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +002584b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002584c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002584d0: 5f74 6674 705f 7265 6d6f 7665 640a 3c2f  _tftp_removed.
Re │ │ │ +00258590: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002585a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002585b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00258650: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002586a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +002586e0: 636c 7564 6520 7265 6d6f 7665 5f74 6674  clude remove_tft
│ │ │ +002586f0: 700a 0a63 6c61 7373 2072 656d 6f76 655f  p..class remove_
│ │ │ +00258700: 7466 7470 207b 0a20 2070 6163 6b61 6765  tftp {.  package
│ │ │ +00258710: 207b 2027 7466 7470 273a 0a20 2020 2065   { 'tftp':.    e
│ │ │ +00258720: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00258730: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00258750: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00258760: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00258770: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00258780: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00258790: 6438 3330 2220 7461 6269 6e64 6578 3d22 d830" tabindex=" │ │ │ 002587a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -157408,164 +157408,164 @@ │ │ │ 00266df0: 612d 7461 7267 6574 3d22 2369 6438 3536 a-target="#id856 │ │ │ 00266e00: 2220 7461 6269 6e64 6578 3d22 3022 2072 " tabindex="0" r │ │ │ 00266e10: 6f6c 653d 2262 7574 746f 6e22 2061 7269 ole="button" ari │ │ │ 00266e20: 612d 6578 7061 6e64 6564 3d22 6661 6c73 a-expanded="fals │ │ │ 00266e30: 6522 2074 6974 6c65 3d22 4163 7469 7661 e" title="Activa │ │ │ 00266e40: 7465 2074 6f20 7265 7665 616c 2220 6872 te to reveal" hr │ │ │ 00266e50: 6566 3d22 2321 223e 5265 6d65 6469 6174 ef="#!">Remediat │ │ │ -00266e60: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00266e70: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

...incl │ │ │ -00266ec0: 7564 6520 7373 685f 7072 6976 6174 655f ude ssh_private_ │ │ │ -00266ed0: 6b65 795f 7065 726d 730a 0a63 6c61 7373 key_perms..class │ │ │ -00266ee0: 2073 7368 5f70 7269 7661 7465 5f6b 6579 ssh_private_key │ │ │ -00266ef0: 5f70 6572 6d73 207b 0a20 2065 7865 6320 _perms {. exec │ │ │ -00266f00: 7b20 2773 7368 645f 7072 6976 5f6b 6579 { 'sshd_priv_key │ │ │ -00266f10: 273a 0a20 2020 2063 6f6d 6d61 6e64 203d ':. command = │ │ │ -00266f20: 2667 743b 2022 6368 6d6f 6420 3036 3030 > "chmod 0600 │ │ │ -00266f30: 202f 6574 632f 7373 682f 2a5f 6b65 7922 /etc/ssh/*_key" │ │ │ -00266f40: 2c0a 2020 2020 7061 7468 2020 2020 3d26 ,. path =& │ │ │ -00266f50: 6774 3b20 272f 6269 6e3a 2f75 7372 2f62 gt; '/bin:/usr/b │ │ │ -00266f60: 696e 270a 2020 7d0a 7d0a 3c2f 636f 6465 in'. }.}.Remedi │ │ │ -00267020: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00267030: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...

Co │ │ │ +00258630: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00258660: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00258680: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00258690: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002586b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002586c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -002670e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00267100: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00267130: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002670c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002670d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002670f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00267110: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00267120: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:configure< │ │ │ -00267150: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00267170: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00267180: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00267190: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002671a0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002671b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002671c0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -002671d0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -002671e0: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -002671f0: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -00267200: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00267210: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -00267220: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00267230: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00267240: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -00267250: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00267260: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -00267270: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -00267280: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -00267290: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -002672a0: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ -002672b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002672c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002672d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -002672e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002672f0: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ -00267300: 653a 2046 696e 6420 726f 6f74 3a72 6f6f  e: Find root:roo
│ │ │ -00267310: 742d 6f77 6e65 6420 6b65 7973 0a20 2061  t-owned keys.  a
│ │ │ -00267320: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00267330: 6f6d 6d61 6e64 3a20 6669 6e64 202d 4820  ommand: find -H 
│ │ │ -00267340: 2f65 7463 2f73 7368 2f20 2d6d 6178 6465  /etc/ssh/ -maxde
│ │ │ -00267350: 7074 6820 3120 2d75 7365 7220 726f 6f74  pth 1 -user root
│ │ │ -00267360: 202d 7265 6765 7820 222e 2a5f 6b65 7924   -regex ".*_key$
│ │ │ -00267370: 220a 2020 2020 2d74 7970 6520 6620 2d67  ".    -type f -g
│ │ │ -00267380: 726f 7570 2072 6f6f 7420 2d70 6572 6d20  roup root -perm 
│ │ │ -00267390: 2f75 2b78 732c 672b 7877 7273 2c6f 2b78  /u+xs,g+xwrs,o+x
│ │ │ -002673a0: 7772 740a 2020 7265 6769 7374 6572 3a20  wrt.  register: 
│ │ │ -002673b0: 726f 6f74 5f6f 776e 6564 5f6b 6579 730a  root_owned_keys.
│ │ │ -002673c0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002673d0: 6661 6c73 650a 2020 6661 696c 6564 5f77  false.  failed_w
│ │ │ -002673e0: 6865 6e3a 2066 616c 7365 0a20 2063 6865  hen: false.  che
│ │ │ -002673f0: 636b 5f6d 6f64 653a 2066 616c 7365 0a20  ck_mode: false. 
│ │ │ -00267400: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00267410: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00267420: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00267430: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00267440: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -00267450: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -00267460: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -00267470: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -00267480: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00267490: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -002674a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002674b0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -002674c0: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -002674d0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002674e0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -002674f0: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -00267500: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -00267510: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -00267520: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ -00267530: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00267540: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00267550: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00267560: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00267570: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ -00267580: 653a 2053 6574 2070 6572 6d69 7373 696f  e: Set permissio
│ │ │ -00267590: 6e73 2066 6f72 2072 6f6f 743a 726f 6f74  ns for root:root
│ │ │ -002675a0: 2d6f 776e 6564 206b 6579 730a 2020 616e  -owned keys.  an
│ │ │ -002675b0: 7369 626c 652e 6275 696c 7469 6e2e 6669  sible.builtin.fi
│ │ │ -002675c0: 6c65 3a0a 2020 2020 7061 7468 3a20 277b  le:.    path: '{
│ │ │ -002675d0: 7b20 6974 656d 207d 7d27 0a20 2020 206d  { item }}'.    m
│ │ │ -002675e0: 6f64 653a 2075 2d78 732c 672d 7877 7273  ode: u-xs,g-xwrs
│ │ │ -002675f0: 2c6f 2d78 7772 740a 2020 2020 7374 6174  ,o-xwrt.    stat
│ │ │ -00267600: 653a 2066 696c 650a 2020 7769 7468 5f69  e: file.  with_i
│ │ │ -00267610: 7465 6d73 3a0a 2020 2d20 277b 7b20 726f  tems:.  - '{{ ro
│ │ │ -00267620: 6f74 5f6f 776e 6564 5f6b 6579 732e 7374  ot_owned_keys.st
│ │ │ -00267630: 646f 7574 5f6c 696e 6573 207d 7d27 0a20  dout_lines }}'. 
│ │ │ -00267640: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00267650: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00267660: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00267670: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00267680: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -00267690: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -002676a0: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -002676b0: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -002676c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002676d0: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -002676e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002676f0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00267700: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -00267710: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00267720: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -00267730: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -00267740: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -00267750: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -00267760: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ -00267770: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00267780: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00267790: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -002677a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002677b0: 6f74 5f6e 6565 6465 640a 3c2f 636f 6465  ot_needed.
< │ │ │ +00266e80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00266e90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00266ea0: 7365 2220 6964 3d22 6964 3835 3622 3e3c se" id="id856">< │ │ │ +00266eb0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00266ec0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00266ed0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00266ee0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00266ef0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00266f00: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00266f10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00266f50: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00266f60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00266f80: 3c74 643e 636f 6e66 6967 7572 653c 2f74 configure< │ │ │ +00266fa0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00266fb0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00266fc0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00266fd0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00266fe0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00266ff0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00267000: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ +00267010: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +00267020: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ +00267030: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ +00267040: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00267050: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ +00267060: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +00267070: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +00267080: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ +00267090: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +002670a0: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ +002670b0: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ +002670c0: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ +002670d0: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ +002670e0: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ +002670f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00267100: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00267110: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00267120: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00267130: 5f6e 6565 6465 640a 0a2d 206e 616d 653a _needed..- name: │ │ │ +00267140: 2046 696e 6420 726f 6f74 3a72 6f6f 742d Find root:root- │ │ │ +00267150: 6f77 6e65 6420 6b65 7973 0a20 2061 6e73 owned keys. ans │ │ │ +00267160: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +00267170: 6d61 6e64 3a20 6669 6e64 202d 4820 2f65 mand: find -H /e │ │ │ +00267180: 7463 2f73 7368 2f20 2d6d 6178 6465 7074 tc/ssh/ -maxdept │ │ │ +00267190: 6820 3120 2d75 7365 7220 726f 6f74 202d h 1 -user root - │ │ │ +002671a0: 7265 6765 7820 222e 2a5f 6b65 7924 220a regex ".*_key$". │ │ │ +002671b0: 2020 2020 2d74 7970 6520 6620 2d67 726f -type f -gro │ │ │ +002671c0: 7570 2072 6f6f 7420 2d70 6572 6d20 2f75 up root -perm /u │ │ │ +002671d0: 2b78 732c 672b 7877 7273 2c6f 2b78 7772 +xs,g+xwrs,o+xwr │ │ │ +002671e0: 740a 2020 7265 6769 7374 6572 3a20 726f t. register: ro │ │ │ +002671f0: 6f74 5f6f 776e 6564 5f6b 6579 730a 2020 ot_owned_keys. │ │ │ +00267200: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ +00267210: 6c73 650a 2020 6661 696c 6564 5f77 6865 lse. failed_whe │ │ │ +00267220: 6e3a 2066 616c 7365 0a20 2063 6865 636b n: false. check │ │ │ +00267230: 5f6d 6f64 653a 2066 616c 7365 0a20 2077 _mode: false. w │ │ │ +00267240: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +00267250: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +00267260: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +00267270: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00267280: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ +00267290: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +002672a0: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ +002672b0: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ +002672c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +002672d0: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ +002672e0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +002672f0: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +00267300: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ +00267310: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +00267320: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ +00267330: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ +00267340: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ +00267350: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ +00267360: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ +00267370: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00267380: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00267390: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +002673a0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +002673b0: 5f6e 6565 6465 640a 0a2d 206e 616d 653a _needed..- name: │ │ │ +002673c0: 2053 6574 2070 6572 6d69 7373 696f 6e73 Set permissions │ │ │ +002673d0: 2066 6f72 2072 6f6f 743a 726f 6f74 2d6f for root:root-o │ │ │ +002673e0: 776e 6564 206b 6579 730a 2020 616e 7369 wned keys. ansi │ │ │ +002673f0: 626c 652e 6275 696c 7469 6e2e 6669 6c65 ble.builtin.file │ │ │ +00267400: 3a0a 2020 2020 7061 7468 3a20 277b 7b20 :. path: '{{ │ │ │ +00267410: 6974 656d 207d 7d27 0a20 2020 206d 6f64 item }}'. mod │ │ │ +00267420: 653a 2075 2d78 732c 672d 7877 7273 2c6f e: u-xs,g-xwrs,o │ │ │ +00267430: 2d78 7772 740a 2020 2020 7374 6174 653a -xwrt. state: │ │ │ +00267440: 2066 696c 650a 2020 7769 7468 5f69 7465 file. with_ite │ │ │ +00267450: 6d73 3a0a 2020 2d20 277b 7b20 726f 6f74 ms:. - '{{ root │ │ │ +00267460: 5f6f 776e 6564 5f6b 6579 732e 7374 646f _owned_keys.stdo │ │ │ +00267470: 7574 5f6c 696e 6573 207d 7d27 0a20 2077 ut_lines }}'. w │ │ │ +00267480: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +00267490: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +002674a0: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +002674b0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002674c0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ +002674d0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +002674e0: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ +002674f0: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ +00267500: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00267510: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ +00267520: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +00267530: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +00267540: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ +00267550: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +00267560: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ +00267570: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ +00267580: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ +00267590: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ +002675a0: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ +002675b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +002675c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002675d0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +002675e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +002675f0: 5f6e 6565 6465 640a 3c2f 636f 6465 3e3c _needed.< │ │ │ +00267600: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +002676b0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002676c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

...incl │ │ │ +00267710: 7564 6520 7373 685f 7072 6976 6174 655f ude ssh_private_ │ │ │ +00267720: 6b65 795f 7065 726d 730a 0a63 6c61 7373 key_perms..class │ │ │ +00267730: 2073 7368 5f70 7269 7661 7465 5f6b 6579 ssh_private_key │ │ │ +00267740: 5f70 6572 6d73 207b 0a20 2065 7865 6320 _perms {. exec │ │ │ +00267750: 7b20 2773 7368 645f 7072 6976 5f6b 6579 { 'sshd_priv_key │ │ │ +00267760: 273a 0a20 2020 2063 6f6d 6d61 6e64 203d ':. command = │ │ │ +00267770: 2667 743b 2022 6368 6d6f 6420 3036 3030 > "chmod 0600 │ │ │ +00267780: 202f 6574 632f 7373 682f 2a5f 6b65 7922 /etc/ssh/*_key" │ │ │ +00267790: 2c0a 2020 2020 7061 7468 2020 2020 3d26 ,. path =& │ │ │ +002677a0: 6774 3b20 272f 6269 6e3a 2f75 7372 2f62 gt; '/bin:/usr/b │ │ │ +002677b0: 696e 270a 2020 7d0a 7d0a 3c2f 636f 6465 in'. }.}.

R │ │ │ -00268c10: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00268c20: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -00268c70: 696e 636c 7564 6520 7373 685f 7075 626c  include ssh_publ
│ │ │ -00268c80: 6963 5f6b 6579 5f70 6572 6d73 0a0a 636c  ic_key_perms..cl
│ │ │ -00268c90: 6173 7320 7373 685f 7075 626c 6963 5f6b  ass ssh_public_k
│ │ │ -00268ca0: 6579 5f70 6572 6d73 207b 0a20 2065 7865  ey_perms {.  exe
│ │ │ -00268cb0: 6320 7b20 2773 7368 645f 7075 625f 6b65  c { 'sshd_pub_ke
│ │ │ -00268cc0: 7927 3a0a 2020 2020 636f 6d6d 616e 6420  y':.    command 
│ │ │ -00268cd0: 3d26 6774 3b20 2263 686d 6f64 2030 3634  => "chmod 064
│ │ │ -00268ce0: 3420 2f65 7463 2f73 7368 2f2a 2e70 7562  4 /etc/ssh/*.pub
│ │ │ -00268cf0: 222c 0a20 2020 2070 6174 6820 2020 203d  ",.    path    =
│ │ │ -00268d00: 2667 743b 2027 2f62 696e 3a2f 7573 722f  > '/bin:/usr/
│ │ │ -00268d10: 6269 6e27 0a20 207d 0a7d 0a3c 2f63 6f64  bin'.  }.}.
Remed │ │ │ -00268dd0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00268de0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
- n
│ │ │ -00268f20: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00268f30: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00268f40: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00268f50: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00268f60: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00268f70: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ -00268f80: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -00268f90: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ -00268fa0: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ -00268fb0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00268fc0: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ -00268fd0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00268fe0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00268ff0: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ -00269000: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00269010: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -00269020: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ -00269030: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ -00269040: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ -00269050: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ -00269060: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00269070: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00269080: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00269090: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002690a0: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20  needed..- name: 
│ │ │ -002690b0: 4669 6e64 202f 6574 632f 7373 682f 2066  Find /etc/ssh/ f
│ │ │ -002690c0: 696c 6528 7329 0a20 2061 6e73 6962 6c65  ile(s).  ansible
│ │ │ -002690d0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002690e0: 3a20 6669 6e64 202d 5020 2f65 7463 2f73  : find -P /etc/s
│ │ │ -002690f0: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ -00269100: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ -00269110: 732c 6f2b 7877 7420 202d 7479 7065 0a20  s,o+xwt  -type. 
│ │ │ -00269120: 2020 2066 202d 7265 6765 7874 7970 6520     f -regextype 
│ │ │ -00269130: 706f 7369 782d 6578 7465 6e64 6564 202d  posix-extended -
│ │ │ -00269140: 7265 6765 7820 225e 2e2a 5c2e 7075 6224  regex "^.*\.pub$
│ │ │ -00269150: 220a 2020 7265 6769 7374 6572 3a20 6669  ".  register: fi
│ │ │ -00269160: 6c65 735f 666f 756e 640a 2020 6368 616e  les_found.  chan
│ │ │ -00269170: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00269180: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ -00269190: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ -002691a0: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ -002691b0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -002691c0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002691d0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -002691e0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -002691f0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -00269200: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -00269210: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -00269220: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -00269230: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -00269240: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00269250: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00269260: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -00269270: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -00269280: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00269290: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -002692a0: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -002692b0: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -002692c0: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579  ons_sshd_pub_key
│ │ │ -002692d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002692e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002692f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00269300: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00269310: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00269320: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ -00269330: 6d69 7373 696f 6e73 2066 6f72 202f 6574  missions for /et
│ │ │ -00269340: 632f 7373 682f 2066 696c 6528 7329 0a20  c/ssh/ file(s). 
│ │ │ -00269350: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00269360: 2e66 696c 653a 0a20 2020 2070 6174 683a  .file:.    path:
│ │ │ -00269370: 2027 7b7b 2069 7465 6d20 7d7d 270a 2020   '{{ item }}'.  
│ │ │ -00269380: 2020 6d6f 6465 3a20 752d 7873 2c67 2d78    mode: u-xs,g-x
│ │ │ -00269390: 7773 2c6f 2d78 7774 0a20 2020 2073 7461  ws,o-xwt.    sta
│ │ │ -002693a0: 7465 3a20 6669 6c65 0a20 2077 6974 685f  te: file.  with_
│ │ │ -002693b0: 6974 656d 733a 0a20 202d 2027 7b7b 2066  items:.  - '{{ f
│ │ │ -002693c0: 696c 6573 5f66 6f75 6e64 2e73 7464 6f75  iles_found.stdou
│ │ │ -002693d0: 745f 6c69 6e65 7320 7d7d 270a 2020 7768  t_lines }}'.  wh
│ │ │ -002693e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -002693f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00269400: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00269410: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00269420: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00269430: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00269440: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ -00269450: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ -00269460: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00269470: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ -00269480: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00269490: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ -002694a0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ -002694b0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -002694c0: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ -002694d0: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ -002694e0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ -002694f0: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ -00269500: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -00269510: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00269520: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00269530: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00269540: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00269550: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00268c10: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00268c20: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Comp │ │ │ -00268e70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00268e80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00268ea0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00268ec0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00268ed0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:configure │ │ │ -00268f00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00268cc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ +00268d70: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00268d80: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00268d90: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00268da0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00268db0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +00268dc0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +00268dd0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +00268de0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +00268df0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +00268e00: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +00268e10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00268e20: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00268e30: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +00268e40: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +00268e50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00268e60: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +00268e70: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +00268e80: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +00268e90: 7368 645f 7075 625f 6b65 790a 2020 2d20  shd_pub_key.  - 
│ │ │ +00268ea0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00268eb0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00268ec0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00268ed0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00268ee0: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61  oot_needed..- na
│ │ │ +00268ef0: 6d65 3a20 4669 6e64 202f 6574 632f 7373  me: Find /etc/ss
│ │ │ +00268f00: 682f 2066 696c 6528 7329 0a20 2061 6e73  h/ file(s).  ans
│ │ │ +00268f10: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00268f20: 6d61 6e64 3a20 6669 6e64 202d 5020 2f65  mand: find -P /e
│ │ │ +00268f30: 7463 2f73 7368 2f20 2d6d 6178 6465 7074  tc/ssh/ -maxdept
│ │ │ +00268f40: 6820 3120 2d70 6572 6d20 2f75 2b78 732c  h 1 -perm /u+xs,
│ │ │ +00268f50: 672b 7877 732c 6f2b 7877 7420 202d 7479  g+xws,o+xwt  -ty
│ │ │ +00268f60: 7065 0a20 2020 2066 202d 7265 6765 7874  pe.    f -regext
│ │ │ +00268f70: 7970 6520 706f 7369 782d 6578 7465 6e64  ype posix-extend
│ │ │ +00268f80: 6564 202d 7265 6765 7820 225e 2e2a 5c2e  ed -regex "^.*\.
│ │ │ +00268f90: 7075 6224 220a 2020 7265 6769 7374 6572  pub$".  register
│ │ │ +00268fa0: 3a20 6669 6c65 735f 666f 756e 640a 2020  : files_found.  
│ │ │ +00268fb0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00268fc0: 6c73 650a 2020 6661 696c 6564 5f77 6865  lse.  failed_whe
│ │ │ +00268fd0: 6e3a 2066 616c 7365 0a20 2063 6865 636b  n: false.  check
│ │ │ +00268fe0: 5f6d 6f64 653a 2066 616c 7365 0a20 2077  _mode: false.  w
│ │ │ +00268ff0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00269000: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00269010: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00269020: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00269030: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +00269040: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00269050: 2e31 332e 3130 0a20 202d 204e 4953 542d  .13.10.  - NIST-
│ │ │ +00269060: 3830 302d 3533 2d41 432d 3137 2861 290a  800-53-AC-17(a).
│ │ │ +00269070: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00269080: 4143 2d36 2831 290a 2020 2d20 4e49 5354  AC-6(1).  - NIST
│ │ │ +00269090: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +002690a0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +002690b0: 322e 322e 340a 2020 2d20 5043 492d 4453  2.2.4.  - PCI-DS
│ │ │ +002690c0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +002690d0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +002690e0: 636f 6e66 6967 7572 655f 7374 7261 7465  configure_strate
│ │ │ +002690f0: 6779 0a20 202d 2066 696c 655f 7065 726d  gy.  - file_perm
│ │ │ +00269100: 6973 7369 6f6e 735f 7373 6864 5f70 7562  issions_sshd_pub
│ │ │ +00269110: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +00269120: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00269130: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00269140: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00269150: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00269160: 6465 640a 0a2d 206e 616d 653a 2053 6574  ded..- name: Set
│ │ │ +00269170: 2070 6572 6d69 7373 696f 6e73 2066 6f72   permissions for
│ │ │ +00269180: 202f 6574 632f 7373 682f 2066 696c 6528   /etc/ssh/ file(
│ │ │ +00269190: 7329 0a20 2061 6e73 6962 6c65 2e62 7569  s).  ansible.bui
│ │ │ +002691a0: 6c74 696e 2e66 696c 653a 0a20 2020 2070  ltin.file:.    p
│ │ │ +002691b0: 6174 683a 2027 7b7b 2069 7465 6d20 7d7d  ath: '{{ item }}
│ │ │ +002691c0: 270a 2020 2020 6d6f 6465 3a20 752d 7873  '.    mode: u-xs
│ │ │ +002691d0: 2c67 2d78 7773 2c6f 2d78 7774 0a20 2020  ,g-xws,o-xwt.   
│ │ │ +002691e0: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ +002691f0: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ +00269200: 7b7b 2066 696c 6573 5f66 6f75 6e64 2e73  {{ files_found.s
│ │ │ +00269210: 7464 6f75 745f 6c69 6e65 7320 7d7d 270a  tdout_lines }}'.
│ │ │ +00269220: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00269230: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00269240: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00269250: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00269260: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +00269270: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00269280: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ +00269290: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ +002692a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002692b0: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ +002692c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002692d0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +002692e0: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ +002692f0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00269300: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00269310: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ +00269320: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ +00269330: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ +00269340: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ +00269350: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00269360: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00269370: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00269380: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00269390: 6e65 6564 6564 0a3c 2f63 6f64 653e 3c2f  needed.Remediati
│ │ │ +00269450: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00269460: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
include │ │ │ +002694b0: 7373 685f 7075 626c 6963 5f6b 6579 5f70 ssh_public_key_p │ │ │ +002694c0: 6572 6d73 0a0a 636c 6173 7320 7373 685f erms..class ssh_ │ │ │ +002694d0: 7075 626c 6963 5f6b 6579 5f70 6572 6d73 public_key_perms │ │ │ +002694e0: 207b 0a20 2065 7865 6320 7b20 2773 7368 {. exec { 'ssh │ │ │ +002694f0: 645f 7075 625f 6b65 7927 3a0a 2020 2020 d_pub_key':. │ │ │ +00269500: 636f 6d6d 616e 6420 3d26 6774 3b20 2263 command => "c │ │ │ +00269510: 686d 6f64 2030 3634 3420 2f65 7463 2f73 hmod 0644 /etc/s │ │ │ +00269520: 7368 2f2a 2e70 7562 222c 0a20 2020 2070 sh/*.pub",. p │ │ │ +00269530: 6174 6820 2020 203d 2667 743b 2027 2f62 ath => '/b │ │ │ +00269540: 696e 3a2f 7573 722f 6269 6e27 0a20 207d in:/usr/bin'. } │ │ │ +00269550: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ 00269560: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Reme │ │ │ -0026cbc0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0026cbd0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0026cbe0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -0026cc30: 6765 735d 5d0a 6e61 6d65 203d 2022 7373 ges]].name = "ss │ │ │ -0026cc40: 7364 220a 7665 7273 696f 6e20 3d20 222a sd".version = "* │ │ │ -0026cc50: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ -0026cc60: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -0026cd10: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0026cd20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +00268cb0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00268ce0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00268cf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00268d30: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ +00268d40: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
Complexity: │ │ │ -0026cdf0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0026ce00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0026ce50: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -0026ce60: 7373 7364 0a0a 636c 6173 7320 696e 7374  sssd..class inst
│ │ │ -0026ce70: 616c 6c5f 7373 7364 207b 0a20 2070 6163  all_sssd {.  pac
│ │ │ -0026ce80: 6b61 6765 207b 2027 7373 7364 273a 0a20  kage { 'sssd':. 
│ │ │ -0026ce90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0026cea0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -0026ceb0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0026cec0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -0026cf70: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0026cf80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ -0026cdd0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0026cde0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0026ce20: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0026ce30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -0026d000: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0026d020: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0026d070: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0026d0a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0026d0c0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0026d0d0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0026d0e0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0026d0f0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0026d100: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026d110: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -0026d120: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0026d130: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0026d140: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0026d150: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0026d160: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0026d170: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0026d180: 6b61 6765 5f73 7373 645f 696e 7374 616c  kage_sssd_instal
│ │ │ -0026d190: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -0026d1a0: 7572 6520 7373 7364 2069 7320 696e 7374  ure sssd is inst
│ │ │ -0026d1b0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -0026d1c0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0026d1d0: 0a20 2020 206e 616d 653a 2073 7373 640a  .    name: sssd.
│ │ │ -0026d1e0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -0026d1f0: 6e74 0a20 2077 6865 6e3a 2027 2273 7373  nt.  when: '"sss
│ │ │ -0026d200: 642d 636f 6d6d 6f6e 2220 696e 2061 6e73  d-common" in ans
│ │ │ -0026d210: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0026d220: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0026d230: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0026d240: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -0026d250: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0026d260: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0026d270: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0026d280: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0026d290: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0026d2a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0026d2b0: 6167 655f 7373 7364 5f69 6e73 7461 6c6c  age_sssd_install
│ │ │ -0026d2c0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0026cbc0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +0026cbd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0026cbe0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ -0026d010: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0026d030: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0026d080: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0026d090: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ +0026cc60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0026cc90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0026ccb0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0026ccc0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0026cce0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0026cd00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0026cd10: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0026cd20: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0026cd30: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0026cd40: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0026cd50: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0026cd60: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0026cd70: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0026cd80: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0026cd90: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0026cda0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0026cdb0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0026cdc0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0026cdd0: 640a 2020 2d20 7061 636b 6167 655f 7373  d.  - package_ss
│ │ │ +0026cde0: 7364 5f69 6e73 7461 6c6c 6564 0a0a 2d20  sd_installed..- 
│ │ │ +0026cdf0: 6e61 6d65 3a20 456e 7375 7265 2073 7373  name: Ensure sss
│ │ │ +0026ce00: 6420 6973 2069 6e73 7461 6c6c 6564 0a20  d is installed. 
│ │ │ +0026ce10: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0026ce20: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0026ce30: 6d65 3a20 7373 7364 0a20 2020 2073 7461  me: sssd.    sta
│ │ │ +0026ce40: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +0026ce50: 656e 3a20 2722 7373 7364 2d63 6f6d 6d6f  en: '"sssd-commo
│ │ │ +0026ce60: 6e22 2069 6e20 616e 7369 626c 655f 6661  n" in ansible_fa
│ │ │ +0026ce70: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0026ce80: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0026ce90: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0026cea0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0026ceb0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0026cec0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0026ced0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0026cee0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0026cef0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0026cf00: 0a20 202d 2070 6163 6b61 6765 5f73 7373  .  - package_sss
│ │ │ +0026cf10: 645f 696e 7374 616c 6c65 640a 3c2f 636f  d_installed.
< │ │ │ +0026cf30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0026cf40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0026cf50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0026cf60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0026cf70: 6438 3637 2220 7461 6269 6e64 6578 3d22 d867" tabindex=" │ │ │ +0026cf80: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0026cf90: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0026cfa0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0026cfb0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0026cfc0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0026cfd0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0026cfe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0026d070: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0026d080: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0026d0a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0026d0c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0026d0d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0026d110: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0026d120: 6520 696e 7374 616c 6c5f 7373 7364 0a0a e install_sssd.. │ │ │ +0026d130: 636c 6173 7320 696e 7374 616c 6c5f 7373 class install_ss │ │ │ +0026d140: 7364 207b 0a20 2070 6163 6b61 6765 207b sd {. package { │ │ │ +0026d150: 2027 7373 7364 273a 0a20 2020 2065 6e73 'sssd':. ens │ │ │ +0026d160: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ +0026d170: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ +0026d190: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0026d230: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0026d240: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0026d250: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +0026d2a0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2273 ages]].name = "s │ │ │ +0026d2b0: 7373 6422 0a76 6572 7369 6f6e 203d 2022 ssd".version = " │ │ │ +0026d2c0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *".

│ │ │ 0026d2d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remed │ │ │ -0026e4f0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0026e500: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0026e510: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -0026e560: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -0026e570: 5d0a 656e 6162 6c65 6420 3d20 5b22 7373  ].enabled = ["ss
│ │ │ -0026e580: 7364 225d 0a3c 2f63 6f64 653e 3c2f 7072  sd"].
Remediation │ │ │ -0026e640: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0026e650: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0026e6e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0026e700: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0026e720: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0026e750: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0026e760: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0026e770: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ -0026e790: 655f 7373 7364 0a0a 636c 6173 7320 656e  e_sssd..class en
│ │ │ -0026e7a0: 6162 6c65 5f73 7373 6420 7b0a 2020 7365  able_sssd {.  se
│ │ │ -0026e7b0: 7276 6963 6520 7b27 7373 7364 273a 0a20  rvice {'sssd':. 
│ │ │ -0026e7c0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0026e7d0: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -0026e7e0: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -0026e7f0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0026e800: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0026e8b0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0026e8c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026e8d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026e8e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026e8f0: 7365 2220 6964 3d22 6964 3837 3322 3e3c se" id="id873">< │ │ │ -0026e900: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026e910: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026e920: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026e930: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026e940: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0026e950: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026e960: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0026e9a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026e9b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0026e9d0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0026e9e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0026ea00: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0026ea10: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0026ea20: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0026ea30: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0026ea40: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0026ea50: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0026ea60: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ -0026ea70: 3130 290a 2020 2d20 656e 6162 6c65 5f73  10).  - enable_s
│ │ │ -0026ea80: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0026ea90: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0026eaa0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0026eab0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0026eac0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0026ead0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0026eae0: 6365 5f73 7373 645f 656e 6162 6c65 640a  ce_sssd_enabled.
│ │ │ -0026eaf0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -0026eb00: 7468 6520 5353 5344 2053 6572 7669 6365  the SSSD Service
│ │ │ -0026eb10: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -0026eb20: 6520 7373 7364 0a20 2062 6c6f 636b 3a0a  e sssd.  block:.
│ │ │ -0026eb30: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -0026eb40: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0026eb50: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -0026eb60: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -0026eb70: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -0026eb80: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -0026eb90: 6e61 6d65 3a20 456e 6162 6c65 2074 6865  name: Enable the
│ │ │ -0026eba0: 2053 5353 4420 5365 7276 6963 6520 2d20   SSSD Service - 
│ │ │ -0026ebb0: 456e 6162 6c65 2053 6572 7669 6365 2073  Enable Service s
│ │ │ -0026ebc0: 7373 640a 2020 2020 616e 7369 626c 652e  ssd.    ansible.
│ │ │ -0026ebd0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0026ebe0: 0a20 2020 2020 206e 616d 653a 2073 7373  .      name: sss
│ │ │ -0026ebf0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -0026ec00: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -0026ec10: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -0026ec20: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -0026ec30: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -0026ec40: 2273 7373 642d 636f 6d6d 6f6e 2220 696e  "sssd-common" in
│ │ │ -0026ec50: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0026ec60: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0026ec70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0026ec80: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -0026ec90: 542d 3830 302d 3533 2d49 412d 3528 3130  T-800-53-IA-5(10
│ │ │ -0026eca0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -0026ecb0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0026ecc0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0026ecd0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0026ece0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0026ecf0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0026ed00: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0026ed10: 5f73 7373 645f 656e 6162 6c65 640a 2020  _sssd_enabled.  
│ │ │ -0026ed20: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -0026ed30: 655f 626c 6f63 6b0a 2020 7768 656e 3a0a  e_block.  when:.
│ │ │ -0026ed40: 2020 2d20 2722 7373 7364 2d63 6f6d 6d6f    - '"sssd-commo
│ │ │ -0026ed50: 6e22 2069 6e20 616e 7369 626c 655f 6661  n" in ansible_fa
│ │ │ -0026ed60: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0026ed70: 2d20 2820 2273 7373 642d 636f 6d6d 6f6e  - ( "sssd-common
│ │ │ -0026ed80: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0026ed90: 7473 2e70 6163 6b61 6765 7320 616e 6420  ts.packages and 
│ │ │ -0026eda0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0026edb0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0026edc0: 636b 6167 6573 0a20 2020 2029 0a3c 2f63  ckages.    ).
Comp │ │ │ +0026e590: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0026e5a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0026e5c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0026e5e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0026e5f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0026e630: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0026e640: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0026e650: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0026e660: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0026e670: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0026e680: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0026e690: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0026e6a0: 2d20 4e49 5354 2d38 3030 2d35 332d 4941 - NIST-800-53-IA │ │ │ +0026e6b0: 2d35 2831 3029 0a20 202d 2065 6e61 626c -5(10). - enabl │ │ │ +0026e6c0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0026e6d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0026e6e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0026e6f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +0026e700: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +0026e710: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ +0026e720: 7276 6963 655f 7373 7364 5f65 6e61 626c rvice_sssd_enabl │ │ │ +0026e730: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +0026e740: 6c65 2074 6865 2053 5353 4420 5365 7276 le the SSSD Serv │ │ │ +0026e750: 6963 6520 2d20 456e 6162 6c65 2073 6572 ice - Enable ser │ │ │ +0026e760: 7669 6365 2073 7373 640a 2020 626c 6f63 vice sssd. bloc │ │ │ +0026e770: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ +0026e780: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ +0026e790: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ +0026e7a0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +0026e7b0: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ +0026e7c0: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ +0026e7d0: 202d 206e 616d 653a 2045 6e61 626c 6520 - name: Enable │ │ │ +0026e7e0: 7468 6520 5353 5344 2053 6572 7669 6365 the SSSD Service │ │ │ +0026e7f0: 202d 2045 6e61 626c 6520 5365 7276 6963 - Enable Servic │ │ │ +0026e800: 6520 7373 7364 0a20 2020 2061 6e73 6962 e sssd. ansib │ │ │ +0026e810: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +0026e820: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +0026e830: 7373 7364 0a20 2020 2020 2065 6e61 626c sssd. enabl │ │ │ +0026e840: 6564 3a20 7472 7565 0a20 2020 2020 2073 ed: true. s │ │ │ +0026e850: 7461 7465 3a20 7374 6172 7465 640a 2020 tate: started. │ │ │ +0026e860: 2020 2020 6d61 736b 6564 3a20 6661 6c73 masked: fals │ │ │ +0026e870: 650a 2020 2020 7768 656e 3a0a 2020 2020 e. when:. │ │ │ +0026e880: 2d20 2722 7373 7364 2d63 6f6d 6d6f 6e22 - '"sssd-common" │ │ │ +0026e890: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +0026e8a0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +0026e8b0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +0026e8c0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +0026e8d0: 4e49 5354 2d38 3030 2d35 332d 4941 2d35 NIST-800-53-IA-5 │ │ │ +0026e8e0: 2831 3029 0a20 202d 2065 6e61 626c 655f (10). - enable_ │ │ │ +0026e8f0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0026e900: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0026e910: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0026e920: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +0026e930: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0026e940: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +0026e950: 6963 655f 7373 7364 5f65 6e61 626c 6564 ice_sssd_enabled │ │ │ +0026e960: 0a20 202d 2073 7065 6369 616c 5f73 6572 . - special_ser │ │ │ +0026e970: 7669 6365 5f62 6c6f 636b 0a20 2077 6865 vice_block. whe │ │ │ +0026e980: 6e3a 0a20 202d 2027 2273 7373 642d 636f n:. - '"sssd-co │ │ │ +0026e990: 6d6d 6f6e 2220 696e 2061 6e73 6962 6c65 mmon" in ansible │ │ │ +0026e9a0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +0026e9b0: 0a20 202d 2028 2022 7373 7364 2d63 6f6d . - ( "sssd-com │ │ │ +0026e9c0: 6d6f 6e22 2069 6e20 616e 7369 626c 655f mon" in ansible_ │ │ │ +0026e9d0: 6661 6374 732e 7061 636b 6167 6573 2061 facts.packages a │ │ │ +0026e9e0: 6e64 2022 6c69 6e75 782d 6261 7365 2220 nd "linux-base" │ │ │ +0026e9f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +0026ea00: 2e70 6163 6b61 6765 730a 2020 2020 290a .packages. ). │ │ │ +0026ea10: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ +0026eac0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0026ead0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0026eb70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0026ec10: 636c 7564 6520 656e 6162 6c65 5f73 7373  clude enable_sss
│ │ │ +0026ec20: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ +0026ec30: 7373 7364 207b 0a20 2073 6572 7669 6365  sssd {.  service
│ │ │ +0026ec40: 207b 2773 7373 6427 3a0a 2020 2020 656e   {'sssd':.    en
│ │ │ +0026ec50: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +0026ec60: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0026ec70: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +0026ec80: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0026ec90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +0026ed40: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0026ed50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0026ed60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0026eda0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0026edb0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +0026edc0: 6420 3d20 5b22 7373 7364 225d 0a3c 2f63  d = ["sssd"].
│ │ │ 0026ede0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -003fb830: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -003fb840: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -003fb850: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[[pack │ │ │ -003fb8a0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ -003fb8b0: 7564 6974 6422 0a76 6572 7369 6f6e 203d uditd".version = │ │ │ -003fb8c0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".Remediatio │ │ │ -003fb980: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -003fb990: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

< │ │ │ -003fba10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -003fba50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ +0026eb60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0026eb90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0026eba0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0026ebe0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0026ebf0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -003fba20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -003fba40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -003fba70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -003fba90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -003fbac0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -003fbad0: 7461 6c6c 5f61 7564 6974 640a 0a63 6c61  tall_auditd..cla
│ │ │ -003fbae0: 7373 2069 6e73 7461 6c6c 5f61 7564 6974  ss install_audit
│ │ │ -003fbaf0: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ -003fbb00: 2761 7564 6974 6427 3a0a 2020 2020 656e  'auditd':.    en
│ │ │ -003fbb10: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -003fbb20: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
R │ │ │ -003fbbe0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -003fbbf0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -003fbcd0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -003fbce0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -003fbd30: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -003fbd40: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -003fbd50: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -003fbd60: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -003fbd70: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -003fbd80: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ -003fbd90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -003fbda0: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ -003fbdb0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -003fbdc0: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ -003fbdd0: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ -003fbde0: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ -003fbdf0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003fbe00: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ -003fbe10: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -003fbe20: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -003fbe30: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -003fbe40: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -003fbe50: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -003fbe60: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -003fbe70: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -003fbe80: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -003fbe90: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -003fbea0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -003fbeb0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -003fbec0: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ -003fbed0: 6469 745f 696e 7374 616c 6c65 640a 0a2d  dit_installed..-
│ │ │ -003fbee0: 206e 616d 653a 2045 6e73 7572 6520 6175   name: Ensure au
│ │ │ -003fbef0: 6469 7464 2069 7320 696e 7374 616c 6c65  ditd is installe
│ │ │ -003fbf00: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -003fbf10: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -003fbf20: 206e 616d 653a 2061 7564 6974 640a 2020   name: auditd.  
│ │ │ -003fbf30: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -003fbf40: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -003fbf50: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -003fbf60: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -003fbf70: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -003fbf80: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ -003fbf90: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003fbfa0: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ -003fbfb0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ -003fbfc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -003fbfd0: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ -003fbfe0: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ -003fbff0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -003fc000: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ -003fc010: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -003fc020: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -003fc030: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ -003fc040: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ -003fc050: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ -003fc060: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -003fc070: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -003fc080: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -003fc090: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -003fc0a0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -003fc0b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -003fc0c0: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ -003fc0d0: 6974 5f69 6e73 7461 6c6c 6564 0a3c 2f63  it_installed.<
│ │ │ +003fb850: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -003fbcb0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -003fbcc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -003fbd00: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -003fbd10: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +003fb8f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +003fb940: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +003fb8d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +003fb900: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +003fb920: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +003fb930: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +003fb950: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +003fb960: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +003fb980: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +003fb990: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +003fb9a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +003fb9b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +003fb9c0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +003fb9d0: 2d38 3030 2d35 332d 4143 2d37 2861 290a  -800-53-AC-7(a).
│ │ │ +003fb9e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +003fb9f0: 4155 2d31 3228 3229 0a20 202d 204e 4953  AU-12(2).  - NIS
│ │ │ +003fba00: 542d 3830 302d 3533 2d41 552d 3134 0a20  T-800-53-AU-14. 
│ │ │ +003fba10: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +003fba20: 552d 3228 6129 0a20 202d 204e 4953 542d  U-2(a).  - NIST-
│ │ │ +003fba30: 3830 302d 3533 2d41 552d 3728 3129 0a20  800-53-AU-7(1). 
│ │ │ +003fba40: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +003fba50: 552d 3728 3229 0a20 202d 204e 4953 542d  U-7(2).  - NIST-
│ │ │ +003fba60: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +003fba70: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +003fba80: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ +003fba90: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ +003fbaa0: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ +003fbab0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +003fbac0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +003fbad0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +003fbae0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +003fbaf0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +003fbb00: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +003fbb10: 202d 2070 6163 6b61 6765 5f61 7564 6974   - package_audit
│ │ │ +003fbb20: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +003fbb30: 6d65 3a20 456e 7375 7265 2061 7564 6974  me: Ensure audit
│ │ │ +003fbb40: 6420 6973 2069 6e73 7461 6c6c 6564 0a20  d is installed. 
│ │ │ +003fbb50: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +003fbb60: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +003fbb70: 6d65 3a20 6175 6469 7464 0a20 2020 2073  me: auditd.    s
│ │ │ +003fbb80: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +003fbb90: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +003fbba0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +003fbbb0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +003fbbc0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +003fbbd0: 3830 302d 3533 2d41 432d 3728 6129 0a20  800-53-AC-7(a). 
│ │ │ +003fbbe0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +003fbbf0: 552d 3132 2832 290a 2020 2d20 4e49 5354  U-12(2).  - NIST
│ │ │ +003fbc00: 2d38 3030 2d35 332d 4155 2d31 340a 2020  -800-53-AU-14.  
│ │ │ +003fbc10: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +003fbc20: 2d32 2861 290a 2020 2d20 4e49 5354 2d38  -2(a).  - NIST-8
│ │ │ +003fbc30: 3030 2d35 332d 4155 2d37 2831 290a 2020  00-53-AU-7(1).  
│ │ │ +003fbc40: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +003fbc50: 2d37 2832 290a 2020 2d20 4e49 5354 2d38  -7(2).  - NIST-8
│ │ │ +003fbc60: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +003fbc70: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +003fbc80: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ +003fbc90: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ +003fbca0: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ +003fbcb0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +003fbcc0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +003fbcd0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +003fbce0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +003fbcf0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +003fbd00: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +003fbd10: 2d20 7061 636b 6167 655f 6175 6469 745f  - package_audit_
│ │ │ +003fbd20: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remed │ │ │ +003fbde0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +003fbdf0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +003fbe80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +003fbe90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +003fbeb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +003fbed0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +003fbee0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +003fbf20: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +003fbf30: 6520 696e 7374 616c 6c5f 6175 6469 7464 e install_auditd │ │ │ +003fbf40: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +003fbf50: 6175 6469 7464 207b 0a20 2070 6163 6b61 auditd {. packa │ │ │ +003fbf60: 6765 207b 2027 6175 6469 7464 273a 0a20 ge { 'auditd':. │ │ │ +003fbf70: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +003fbf80: 2769 6e73 7461 6c6c 6564 272c 0a20 207d 'installed',. } │ │ │ +003fbf90: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +003fbfa0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +003fc050: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +003fc060: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[[packages]].n
│ │ │ +003fc0c0: 616d 6520 3d20 2261 7564 6974 6422 0a76  ame = "auditd".v
│ │ │ +003fc0d0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 003fc0f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediat │ │ │ -003fdd80: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -003fdd90: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -003fdda0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ -003fdde0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -003fddf0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -003fde00: 656e 6162 6c65 6420 3d20 5b22 6175 6469  enabled = ["audi
│ │ │ -003fde10: 7464 225d 0a3c 2f63 6f64 653e 3c2f 7072  td"].
Remediatio │ │ │ -003fded0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -003fdee0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -003fdf60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -003fdf70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -003fdf90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -003fdfa0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -003fdfc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -003fdfe0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -003fe010: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -003fe020: 626c 655f 6175 6469 7464 0a0a 636c 6173  ble_auditd..clas
│ │ │ -003fe030: 7320 656e 6162 6c65 5f61 7564 6974 6420  s enable_auditd 
│ │ │ -003fe040: 7b0a 2020 7365 7276 6963 6520 7b27 6175  {.  service {'au
│ │ │ -003fe050: 6469 7464 273a 0a20 2020 2065 6e61 626c  ditd':.    enabl
│ │ │ -003fe060: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -003fe070: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -003fe080: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -003fe090: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -003fe150: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -003fe160: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -003fe1e0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -003fe200: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -003fe250: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -003fe2a0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -003fe2b0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -003fe2c0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -003fe2d0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -003fe2e0: 2043 4a49 532d 352e 342e 312e 310a 2020   CJIS-5.4.1.1.  
│ │ │ -003fe2f0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -003fe300: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ -003fe310: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ -003fe320: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -003fe330: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ -003fe340: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ -003fe350: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -003fe360: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ -003fe370: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ -003fe380: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ -003fe390: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003fe3a0: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ -003fe3b0: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ -003fe3c0: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ -003fe3d0: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ -003fe3e0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -003fe3f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -003fe400: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ -003fe410: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -003fe420: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -003fe430: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -003fe440: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -003fe450: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -003fe460: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -003fe470: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -003fe480: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -003fe490: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -003fe4a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -003fe4b0: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ -003fe4c0: 6c65 640a 0a2d 206e 616d 653a 2045 6e61  led..- name: Ena
│ │ │ -003fe4d0: 626c 6520 6175 6469 7464 2053 6572 7669  ble auditd Servi
│ │ │ -003fe4e0: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ -003fe4f0: 6963 6520 6175 6469 7464 0a20 2062 6c6f  ice auditd.  blo
│ │ │ -003fe500: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -003fe510: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -003fe520: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -003fe530: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -003fe540: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -003fe550: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -003fe560: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -003fe570: 2061 7564 6974 6420 5365 7276 6963 6520   auditd Service 
│ │ │ -003fe580: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -003fe590: 2061 7564 6974 640a 2020 2020 616e 7369   auditd.    ansi
│ │ │ -003fe5a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -003fe5b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -003fe5c0: 2061 7564 6974 640a 2020 2020 2020 656e   auditd.      en
│ │ │ -003fe5d0: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ -003fe5e0: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ -003fe5f0: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ -003fe600: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ -003fe610: 2020 202d 2027 2261 7564 6974 6422 2069     - '"auditd" i
│ │ │ -003fe620: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -003fe630: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -003fe640: 3a0a 2020 2d20 434a 4953 2d35 2e34 2e31  :.  - CJIS-5.4.1
│ │ │ -003fe650: 2e31 0a20 202d 204e 4953 542d 3830 302d  .1.  - NIST-800-
│ │ │ -003fe660: 3137 312d 332e 332e 310a 2020 2d20 4e49  171-3.3.1.  - NI
│ │ │ -003fe670: 5354 2d38 3030 2d31 3731 2d33 2e33 2e32  ST-800-171-3.3.2
│ │ │ -003fe680: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -003fe690: 312d 332e 332e 360a 2020 2d20 4e49 5354  1-3.3.6.  - NIST
│ │ │ -003fe6a0: 2d38 3030 2d35 332d 4143 2d32 2867 290a  -800-53-AC-2(g).
│ │ │ -003fe6b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -003fe6c0: 4143 2d36 2839 290a 2020 2d20 4e49 5354  AC-6(9).  - NIST
│ │ │ -003fe6d0: 2d38 3030 2d35 332d 4155 2d31 300a 2020  -800-53-AU-10.  
│ │ │ -003fe6e0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -003fe6f0: 2d31 3228 6329 0a20 202d 204e 4953 542d  -12(c).  - NIST-
│ │ │ -003fe700: 3830 302d 3533 2d41 552d 3134 2831 290a  800-53-AU-14(1).
│ │ │ -003fe710: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -003fe720: 4155 2d32 2864 290a 2020 2d20 4e49 5354  AU-2(d).  - NIST
│ │ │ -003fe730: 2d38 3030 2d35 332d 4155 2d33 0a20 202d  -800-53-AU-3.  -
│ │ │ -003fe740: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -003fe750: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -003fe760: 302d 3533 2d53 492d 3428 3233 290a 2020  0-53-SI-4(23).  
│ │ │ -003fe770: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -003fe780: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ -003fe790: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ -003fe7a0: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ -003fe7b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -003fe7c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -003fe7d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -003fe7e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -003fe7f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -003fe800: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -003fe810: 2d20 7365 7276 6963 655f 6175 6469 7464  - service_auditd
│ │ │ -003fe820: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -003fe830: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -003fe840: 636b 0a20 2077 6865 6e3a 0a20 202d 2027  ck.  when:.  - '
│ │ │ -003fe850: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -003fe860: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -003fe870: 636b 6167 6573 270a 2020 2d20 2722 6175  ckages'.  - '"au
│ │ │ -003fe880: 6469 7464 2220 696e 2061 6e73 6962 6c65  ditd" in ansible
│ │ │ -003fe890: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +003fdd80: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +003fdd90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +003fdda0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +003fddb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +003fddc0: 7365 2220 6964 3d22 6964 3130 3333 223e se" id="id1033"> │ │ │ +003fddd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -003fe210: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -003fe220: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -003fe260: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -003fe270: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +003fde40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +003fde60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +003fde90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +003fdeb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +003fde20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +003fde30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +003fde70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +003fde80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +003fded0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +003fdee0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +003fdef0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +003fdf00: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +003fdf10: 6773 3a0a 2020 2d20 434a 4953 2d35 2e34 gs:. - CJIS-5.4 │ │ │ +003fdf20: 2e31 2e31 0a20 202d 204e 4953 542d 3830 .1.1. - NIST-80 │ │ │ +003fdf30: 302d 3137 312d 332e 332e 310a 2020 2d20 0-171-3.3.1. - │ │ │ +003fdf40: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33 NIST-800-171-3.3 │ │ │ +003fdf50: 2e32 0a20 202d 204e 4953 542d 3830 302d .2. - NIST-800- │ │ │ +003fdf60: 3137 312d 332e 332e 360a 2020 2d20 4e49 171-3.3.6. - NI │ │ │ +003fdf70: 5354 2d38 3030 2d35 332d 4143 2d32 2867 ST-800-53-AC-2(g │ │ │ +003fdf80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +003fdf90: 332d 4143 2d36 2839 290a 2020 2d20 4e49 3-AC-6(9). - NI │ │ │ +003fdfa0: 5354 2d38 3030 2d35 332d 4155 2d31 300a ST-800-53-AU-10. │ │ │ +003fdfb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +003fdfc0: 4155 2d31 3228 6329 0a20 202d 204e 4953 AU-12(c). - NIS │ │ │ +003fdfd0: 542d 3830 302d 3533 2d41 552d 3134 2831 T-800-53-AU-14(1 │ │ │ +003fdfe0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +003fdff0: 332d 4155 2d32 2864 290a 2020 2d20 4e49 3-AU-2(d). - NI │ │ │ +003fe000: 5354 2d38 3030 2d35 332d 4155 2d33 0a20 ST-800-53-AU-3. │ │ │ +003fe010: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +003fe020: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ +003fe030: 3830 302d 3533 2d53 492d 3428 3233 290a 800-53-SI-4(23). │ │ │ +003fe040: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +003fe050: 3130 2e31 0a20 202d 2050 4349 2d44 5353 10.1. - PCI-DSS │ │ │ +003fe060: 7634 2d31 302e 320a 2020 2d20 5043 492d v4-10.2. - PCI- │ │ │ +003fe070: 4453 5376 342d 3130 2e32 2e31 0a20 202d DSSv4-10.2.1. - │ │ │ +003fe080: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +003fe090: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +003fe0a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +003fe0b0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +003fe0c0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +003fe0d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +003fe0e0: 2020 2d20 7365 7276 6963 655f 6175 6469 - service_audi │ │ │ +003fe0f0: 7464 5f65 6e61 626c 6564 0a0a 2d20 6e61 td_enabled..- na │ │ │ +003fe100: 6d65 3a20 456e 6162 6c65 2061 7564 6974 me: Enable audit │ │ │ +003fe110: 6420 5365 7276 6963 6520 2d20 456e 6162 d Service - Enab │ │ │ +003fe120: 6c65 2073 6572 7669 6365 2061 7564 6974 le service audit │ │ │ +003fe130: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20 d. block:.. - │ │ │ +003fe140: 6e61 6d65 3a20 4761 7468 6572 2074 6865 name: Gather the │ │ │ +003fe150: 2070 6163 6b61 6765 2066 6163 7473 0a20 package facts. │ │ │ +003fe160: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +003fe170: 696e 2e70 6163 6b61 6765 5f66 6163 7473 in.package_facts │ │ │ +003fe180: 3a0a 2020 2020 2020 6d61 6e61 6765 723a :. manager: │ │ │ +003fe190: 2061 7574 6f0a 0a20 202d 206e 616d 653a auto.. - name: │ │ │ +003fe1a0: 2045 6e61 626c 6520 6175 6469 7464 2053 Enable auditd S │ │ │ +003fe1b0: 6572 7669 6365 202d 2045 6e61 626c 6520 ervice - Enable │ │ │ +003fe1c0: 5365 7276 6963 6520 6175 6469 7464 0a20 Service auditd. │ │ │ +003fe1d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +003fe1e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +003fe1f0: 2020 6e61 6d65 3a20 6175 6469 7464 0a20 name: auditd. │ │ │ +003fe200: 2020 2020 2065 6e61 626c 6564 3a20 7472 enabled: tr │ │ │ +003fe210: 7565 0a20 2020 2020 2073 7461 7465 3a20 ue. state: │ │ │ +003fe220: 7374 6172 7465 640a 2020 2020 2020 6d61 started. ma │ │ │ +003fe230: 736b 6564 3a20 6661 6c73 650a 2020 2020 sked: false. │ │ │ +003fe240: 7768 656e 3a0a 2020 2020 2d20 2722 6175 when:. - '"au │ │ │ +003fe250: 6469 7464 2220 696e 2061 6e73 6962 6c65 ditd" in ansible │ │ │ +003fe260: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +003fe270: 0a20 2074 6167 733a 0a20 202d 2043 4a49 . tags:. - CJI │ │ │ +003fe280: 532d 352e 342e 312e 310a 2020 2d20 4e49 S-5.4.1.1. - NI │ │ │ +003fe290: 5354 2d38 3030 2d31 3731 2d33 2e33 2e31 ST-800-171-3.3.1 │ │ │ +003fe2a0: 0a20 202d 204e 4953 542d 3830 302d 3137 . - NIST-800-17 │ │ │ +003fe2b0: 312d 332e 332e 320a 2020 2d20 4e49 5354 1-3.3.2. - NIST │ │ │ +003fe2c0: 2d38 3030 2d31 3731 2d33 2e33 2e36 0a20 -800-171-3.3.6. │ │ │ +003fe2d0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ +003fe2e0: 432d 3228 6729 0a20 202d 204e 4953 542d C-2(g). - NIST- │ │ │ +003fe2f0: 3830 302d 3533 2d41 432d 3628 3929 0a20 800-53-AC-6(9). │ │ │ +003fe300: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ +003fe310: 552d 3130 0a20 202d 204e 4953 542d 3830 U-10. - NIST-80 │ │ │ +003fe320: 302d 3533 2d41 552d 3132 2863 290a 2020 0-53-AU-12(c). │ │ │ +003fe330: 2d20 4e49 5354 2d38 3030 2d35 332d 4155 - NIST-800-53-AU │ │ │ +003fe340: 2d31 3428 3129 0a20 202d 204e 4953 542d -14(1). - NIST- │ │ │ +003fe350: 3830 302d 3533 2d41 552d 3228 6429 0a20 800-53-AU-2(d). │ │ │ +003fe360: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ +003fe370: 552d 330a 2020 2d20 4e49 5354 2d38 3030 U-3. - NIST-800 │ │ │ +003fe380: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +003fe390: 4e49 5354 2d38 3030 2d35 332d 5349 2d34 NIST-800-53-SI-4 │ │ │ +003fe3a0: 2832 3329 0a20 202d 2050 4349 2d44 5353 (23). - PCI-DSS │ │ │ +003fe3b0: 2d52 6571 2d31 302e 310a 2020 2d20 5043 -Req-10.1. - PC │ │ │ +003fe3c0: 492d 4453 5376 342d 3130 2e32 0a20 202d I-DSSv4-10.2. - │ │ │ +003fe3d0: 2050 4349 2d44 5353 7634 2d31 302e 322e PCI-DSSv4-10.2. │ │ │ +003fe3e0: 310a 2020 2d20 656e 6162 6c65 5f73 7472 1. - enable_str │ │ │ +003fe3f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +003fe400: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +003fe410: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +003fe420: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +003fe430: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +003fe440: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +003fe450: 5f61 7564 6974 645f 656e 6162 6c65 640a _auditd_enabled. │ │ │ +003fe460: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +003fe470: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +003fe480: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261 :. - '"linux-ba │ │ │ +003fe490: 7365 2220 696e 2061 6e73 6962 6c65 5f66 se" in ansible_f │ │ │ +003fe4a0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +003fe4b0: 202d 2027 2261 7564 6974 6422 2069 6e20 - '"auditd" in │ │ │ +003fe4c0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +003fe4d0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +003fe4e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ +003fe590: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +003fe5a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +003fe5b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +003fe5c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +003fe5d0: 7365 2220 6964 3d22 6964 3130 3334 223e se" id="id1034"> │ │ │ +003fe5e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +003fe650: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +003fe670: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +003fe6a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +003fe6c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +003fe630: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +003fe640: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +003fe680: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +003fe690: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +003fe6e0: 656e 6162 6c65 5f61 7564 6974 640a 0a63 enable_auditd..c │ │ │ +003fe6f0: 6c61 7373 2065 6e61 626c 655f 6175 6469 lass enable_audi │ │ │ +003fe700: 7464 207b 0a20 2073 6572 7669 6365 207b td {. service { │ │ │ +003fe710: 2761 7564 6974 6427 3a0a 2020 2020 656e 'auditd':. en │ │ │ +003fe720: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ +003fe730: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +003fe740: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ +003fe750: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +003fe760: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +003fe810: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +003fe820: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ +003fe880: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +003fe890: 6c65 6420 3d20 5b22 6175 6469 7464 225d  led = ["auditd"]
│ │ │  003fe8a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -168,14 +151,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -1390,31 +1390,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1441,14 +1424,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -4642,31 +4642,14 @@ │ │ │ │ Rationale: password in resisting attempts at guessing and brute-force attacks. "pwquality" enforces │ │ │ │ complex password construction configuration and has the ability to limit brute-force │ │ │ │ attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4687,14 +4670,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -6200,31 +6200,14 @@ │ │ │ │ Control system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000368-GPOS-00154, SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG- │ │ │ │ References: OS-000312-GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6234,14 +6217,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -6259,31 +6259,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_apparmor_installed │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-apparmor │ │ │ │ - │ │ │ │ -class install_libpam-apparmor { │ │ │ │ - package { 'libpam-apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6300,14 +6283,31 @@ │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-apparmor │ │ │ │ + │ │ │ │ +class install_libpam-apparmor { │ │ │ │ + package { 'libpam-apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -6492,31 +6492,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_apparmor_configured │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["apparmor"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_apparmor │ │ │ │ - │ │ │ │ -class enable_apparmor { │ │ │ │ - service {'apparmor': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - name: Start apparmor.service │ │ │ │ ansible.builtin.systemd: │ │ │ │ name: apparmor.service │ │ │ │ state: started │ │ │ │ enabled: true │ │ │ │ when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ @@ -6526,14 +6509,31 @@ │ │ │ │ - NIST-800-53-AC-6(8) │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - NIST-800-53-CM-7(2) │ │ │ │ - NIST-800-53-CM-7(5)(b) │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - apparmor_configured │ │ │ │ - medium_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_apparmor │ │ │ │ + │ │ │ │ +class enable_apparmor { │ │ │ │ + service {'apparmor': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["apparmor"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr iiss eennaabblleedd iinn tthhee bboooottllooaaddeerr ccoonnffiigguurraattiioonn ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Configure AppArmor to be enabled at boot time and verify that it has not been overwritten by the │ │ │ │ bootloader boot parameters. Note: This recommendation is designed around the grub bootloader, if LILO │ │ │ │ or another bootloader is in use in your environment, enact equivalent settings. │ │ │ │ Rationale: AppArmor must be enabled at boot time in your bootloader configuration to ensure that the │ │ │ │ controls it provides are not overridden. │ │ │ │ Severity:  medium │ │ │ │ @@ -12220,31 +12220,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.7 │ │ │ │ _a_n_s_s_i R71 │ │ │ │ _p_c_i_d_s_s_4 10.5.1, 10.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "logrotate" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_logrotate │ │ │ │ - │ │ │ │ -class install_logrotate { │ │ │ │ - package { 'logrotate': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12273,14 +12256,31 @@ │ │ │ │ - PCI-DSSv4-10.5.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_logrotate_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_logrotate │ │ │ │ + │ │ │ │ +class install_logrotate { │ │ │ │ + package { 'logrotate': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "logrotate" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12634,31 +12634,14 @@ │ │ │ │ Rationale: The rsyslog-gnutls package provides Transport Layer Security (TLS) support for the │ │ │ │ rsyslog daemon, which enables secure remote logging. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsyslog-gnutls_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000120-GPOS-00061 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog-gnutls" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog-gnutls │ │ │ │ - │ │ │ │ -class install_rsyslog-gnutls { │ │ │ │ - package { 'rsyslog-gnutls': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12679,14 +12662,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog-gnutls_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog-gnutls │ │ │ │ + │ │ │ │ +class install_rsyslog-gnutls { │ │ │ │ + package { 'rsyslog-gnutls': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog-gnutls" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12711,31 +12711,14 @@ │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12758,14 +12741,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12794,31 +12794,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, │ │ │ │ A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12855,14 +12838,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33263,27 +33263,14 @@ │ │ │ │ around configuration errors, unauthorized intrusions, and other potential errors. The │ │ │ │ setroubleshoot-plugins package can be removed with the following command: │ │ │ │ $ apt-get remove setroubleshoot-plugins │ │ │ │ Rationale: The SETroubleshoot service is an unnecessary daemon to have running on a server. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_setroubleshoot-plugins_removed │ │ │ │ References: _a_n_s_s_i R49 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_setroubleshoot-plugins │ │ │ │ - │ │ │ │ -class remove_setroubleshoot-plugins { │ │ │ │ - package { 'setroubleshoot-plugins': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33305,14 +33292,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_setroubleshoot-plugins_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_setroubleshoot-plugins │ │ │ │ + │ │ │ │ +class remove_setroubleshoot-plugins { │ │ │ │ + package { 'setroubleshoot-plugins': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33353,27 +33353,14 @@ │ │ │ │ information around configuration errors, unauthorized intrusions, and other potential errors. The │ │ │ │ setroubleshoot-server package can be removed with the following command: │ │ │ │ $ apt-get remove setroubleshoot-server │ │ │ │ Rationale: The SETroubleshoot service is an unnecessary daemon to have running on a server. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_setroubleshoot-server_removed │ │ │ │ References: _a_n_s_s_i R49 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_setroubleshoot-server │ │ │ │ - │ │ │ │ -class remove_setroubleshoot-server { │ │ │ │ - package { 'setroubleshoot-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33395,14 +33382,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_setroubleshoot-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_setroubleshoot-server │ │ │ │ + │ │ │ │ +class remove_setroubleshoot-server { │ │ │ │ + package { 'setroubleshoot-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33444,27 +33444,14 @@ │ │ │ │ setroubleshoot package can be removed with the following command: │ │ │ │ $ apt-get remove setroubleshoot │ │ │ │ Rationale: The SETroubleshoot service is an unnecessary daemon to have running on a server, │ │ │ │ especially if X Windows is removed or disabled. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_setroubleshoot_removed │ │ │ │ References: _a_n_s_s_i R49 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_setroubleshoot │ │ │ │ - │ │ │ │ -class remove_setroubleshoot { │ │ │ │ - package { 'setroubleshoot': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33485,14 +33472,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_setroubleshoot_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_setroubleshoot │ │ │ │ + │ │ │ │ +class remove_setroubleshoot { │ │ │ │ + package { 'setroubleshoot': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -34075,27 +34075,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34109,14 +34096,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -34145,27 +34145,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and │ │ │ │ disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34174,14 +34161,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove kea │ │ │ │ @@ -34389,27 +34389,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34436,14 +34423,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -34531,31 +34531,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34582,14 +34565,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "chrony" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -35305,27 +35305,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35357,14 +35344,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -35413,27 +35413,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35444,14 +35431,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypbind-mt │ │ │ │ @@ -35504,27 +35504,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35540,14 +35527,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -35603,27 +35603,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-server │ │ │ │ - │ │ │ │ -class remove_rsh-server { │ │ │ │ - package { 'rsh-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh-server Package: Ensure rsh-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35638,14 +35625,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-server │ │ │ │ + │ │ │ │ +class remove_rsh-server { │ │ │ │ + package { 'rsh-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-server │ │ │ │ @@ -35683,27 +35683,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35715,14 +35702,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -35759,27 +35759,14 @@ │ │ │ │ intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ References: 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35790,14 +35777,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk-server │ │ │ │ @@ -35835,27 +35835,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35866,14 +35853,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -35936,27 +35936,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35971,14 +35958,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet-server │ │ │ │ @@ -36015,27 +36015,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36047,14 +36034,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -36113,27 +36113,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36147,14 +36134,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -36188,27 +36188,14 @@ │ │ │ │ Rationale: It is recommended that TFTP be removed, unless there is a specific need for TFTP (such as │ │ │ │ a boot server). In that case, use extreme caution when configuring the services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36219,14 +36206,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftp │ │ │ │ @@ -37157,26 +37157,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37240,14 +37228,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -37285,23 +37285,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37365,14 +37356,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37466,31 +37466,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, A.7.1.1, A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, │ │ │ │ A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sssd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sssd │ │ │ │ - │ │ │ │ -class install_sssd { │ │ │ │ - package { 'sssd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37513,14 +37496,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sssd_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sssd │ │ │ │ + │ │ │ │ +class install_sssd { │ │ │ │ + package { 'sssd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sssd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -37550,31 +37550,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, A.7.1.1, A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, │ │ │ │ A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-6(a), IA-5(10) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["sssd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_sssd │ │ │ │ - │ │ │ │ -class enable_sssd { │ │ │ │ - service {'sssd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37614,14 +37597,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_sssd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"sssd-common" in ansible_facts.packages' │ │ │ │ - ( "sssd-common" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_sssd │ │ │ │ + │ │ │ │ +class enable_sssd { │ │ │ │ + service {'sssd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["sssd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -74507,31 +74507,14 @@ │ │ │ │ SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS-00140, │ │ │ │ SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, │ │ │ │ SRG-OS-000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -74572,14 +74555,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -74640,31 +74640,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR- │ │ │ │ 001300, SRG-APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -74731,14 +74714,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_bp28_intermediary.html │ │ │ @@ -15031,133 +15031,133 @@ │ │ │ 0003ab60: 612d 7461 7267 6574 3d22 2369 6431 3522 a-target="#id15" │ │ │ 0003ab70: 2074 6162 696e 6465 783d 2230 2220 726f tabindex="0" ro │ │ │ 0003ab80: 6c65 3d22 6275 7474 6f6e 2220 6172 6961 le="button" aria │ │ │ 0003ab90: 2d65 7870 616e 6465 643d 2266 616c 7365 -expanded="false │ │ │ 0003aba0: 2220 7469 746c 653d 2241 6374 6976 6174 " title="Activat │ │ │ 0003abb0: 6520 746f 2072 6576 6561 6c22 2068 7265 e to reveal" hre │ │ │ 0003abc0: 663d 2223 2122 3e52 656d 6564 6961 7469 f="#!">Remediati │ │ │ -0003abd0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0003abe0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0003abf0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ -0003ac40: 6e61 6d65 203d 2022 6169 6465 220a 7665  name = "aide".ve
│ │ │ -0003ac50: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -0003ac70: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003ac80: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003ac90: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003aca0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003acb0: 6431 3622 2074 6162 696e 6465 783d 2230 d16" tabindex="0 │ │ │ -0003acc0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003acd0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003ace0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003acf0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003ad00: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003ad10: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0003ad20: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0003ad60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0003add0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0003adf0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0003ae20: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0003ae40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0003adb0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0003adc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0003ae00: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0003ae10: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0003ae60: 696e 7374 616c 6c5f 6169 6465 0a0a 636c install_aide..cl │ │ │ -0003ae70: 6173 7320 696e 7374 616c 6c5f 6169 6465 ass install_aide │ │ │ -0003ae80: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -0003ae90: 6169 6465 273a 0a20 2020 2065 6e73 7572 aide':. ensur │ │ │ -0003aea0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ -0003aeb0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remedi │ │ │ -0003af70: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0003af80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0003afc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0003b030: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0003b050: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0003b080: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0003b0a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0003b010: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0003b020: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0003b060: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0003b070: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -0003b0c0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0003b0d0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0003b0e0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0003b0f0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0003b100: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31 gs:. - CJIS-5.1 │ │ │ -0003b110: 302e 312e 330a 2020 2d20 4e49 5354 2d38 0.1.3. - NIST-8 │ │ │ -0003b120: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0003b130: 2d20 5043 492d 4453 532d 5265 712d 3131 - PCI-DSS-Req-11 │ │ │ -0003b140: 2e35 0a20 202d 2050 4349 2d44 5353 7634 .5. - PCI-DSSv4 │ │ │ -0003b150: 2d31 312e 352e 320a 2020 2d20 656e 6162 -11.5.2. - enab │ │ │ -0003b160: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -0003b170: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -0003b180: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -0003b190: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -0003b1a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -0003b1b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -0003b1c0: 6163 6b61 6765 5f61 6964 655f 696e 7374 ackage_aide_inst │ │ │ -0003b1d0: 616c 6c65 640a 0a2d 206e 616d 653a 2045 alled..- name: E │ │ │ -0003b1e0: 6e73 7572 6520 6169 6465 2069 7320 696e nsure aide is in │ │ │ -0003b1f0: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ -0003b200: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -0003b210: 653a 0a20 2020 206e 616d 653a 2061 6964 e:. name: aid │ │ │ -0003b220: 650a 2020 2020 7374 6174 653a 2070 7265 e. state: pre │ │ │ -0003b230: 7365 6e74 0a20 2077 6865 6e3a 2027 226c sent. when: '"l │ │ │ -0003b240: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ -0003b250: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -0003b260: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ -0003b270: 2d20 434a 4953 2d35 2e31 302e 312e 330a - CJIS-5.10.1.3. │ │ │ -0003b280: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0003b290: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -0003b2a0: 4453 532d 5265 712d 3131 2e35 0a20 202d DSS-Req-11.5. - │ │ │ -0003b2b0: 2050 4349 2d44 5353 7634 2d31 312e 352e PCI-DSSv4-11.5. │ │ │ -0003b2c0: 320a 2020 2d20 656e 6162 6c65 5f73 7472 2. - enable_str │ │ │ -0003b2d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0003b2e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0003b2f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0003b300: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -0003b310: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0003b320: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -0003b330: 5f61 6964 655f 696e 7374 616c 6c65 640a _aide_installed. │ │ │ +0003abd0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0003abe0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +0003ac60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0003ac70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0003ac90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0003aca0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0003acc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0003ace0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0003ad10: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0003ad20: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0003ad30: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0003ad40: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0003ad50: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0003ad60: 0a20 202d 2043 4a49 532d 352e 3130 2e31  .  - CJIS-5.10.1
│ │ │ +0003ad70: 2e33 0a20 202d 204e 4953 542d 3830 302d  .3.  - NIST-800-
│ │ │ +0003ad80: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +0003ad90: 4349 2d44 5353 2d52 6571 2d31 312e 350a  CI-DSS-Req-11.5.
│ │ │ +0003ada0: 2020 2d20 5043 492d 4453 5376 342d 3131    - PCI-DSSv4-11
│ │ │ +0003adb0: 2e35 2e32 0a20 202d 2065 6e61 626c 655f  .5.2.  - enable_
│ │ │ +0003adc0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0003add0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0003ade0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0003adf0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0003ae00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0003ae10: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0003ae20: 6167 655f 6169 6465 5f69 6e73 7461 6c6c  age_aide_install
│ │ │ +0003ae30: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +0003ae40: 7265 2061 6964 6520 6973 2069 6e73 7461  re aide is insta
│ │ │ +0003ae50: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +0003ae60: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0003ae70: 2020 2020 6e61 6d65 3a20 6169 6465 0a20      name: aide. 
│ │ │ +0003ae80: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +0003ae90: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0003aea0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0003aeb0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0003aec0: 7327 0a20 2074 6167 733a 0a20 202d 2043  s'.  tags:.  - C
│ │ │ +0003aed0: 4a49 532d 352e 3130 2e31 2e33 0a20 202d  JIS-5.10.1.3.  -
│ │ │ +0003aee0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0003aef0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +0003af00: 2d52 6571 2d31 312e 350a 2020 2d20 5043  -Req-11.5.  - PC
│ │ │ +0003af10: 492d 4453 5376 342d 3131 2e35 2e32 0a20  I-DSSv4-11.5.2. 
│ │ │ +0003af20: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0003af30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0003af40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0003af50: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0003af60: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0003af70: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0003af80: 640a 2020 2d20 7061 636b 6167 655f 6169  d.  - package_ai
│ │ │ +0003af90: 6465 5f69 6e73 7461 6c6c 6564 0a3c 2f63  de_installed.
│ │ │ +0003afb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0003b050: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0003b060: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0003b110: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0003b130: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0003b160: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0003b0f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0003b100: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0003b120: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0003b140: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0003b150: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0003b1a0: 2069 6e73 7461 6c6c 5f61 6964 650a 0a63 install_aide..c │ │ │ +0003b1b0: 6c61 7373 2069 6e73 7461 6c6c 5f61 6964 lass install_aid │ │ │ +0003b1c0: 6520 7b0a 2020 7061 636b 6167 6520 7b20 e {. package { │ │ │ +0003b1d0: 2761 6964 6527 3a0a 2020 2020 656e 7375 'aide':. ensu │ │ │ +0003b1e0: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ +0003b1f0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ +0003b210: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0003b220: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0003b230: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0003b240: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0003b250: 6431 3722 2074 6162 696e 6465 783d 2230 d17" tabindex="0 │ │ │ +0003b260: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +0003b270: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +0003b280: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +0003b290: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +0003b2a0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +0003b2b0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0003b2c0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0003b2d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ +0003b310: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0003b320: 735d 5d0a 6e61 6d65 203d 2022 6169 6465  s]].name = "aide
│ │ │ +0003b330: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  0003b340: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -00044af0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00044b00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -00044b50: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -00044b60: 6d65 203d 2022 7375 646f 220a 7665 7273  me = "sudo".vers
│ │ │ -00044b70: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -00044c30: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00044c40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00044c50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00044c60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00044c70: 7365 2220 6964 3d22 6964 3332 223e 3c74 se" id="id32"> │ │ │ -00044cc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00044cd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00044ce0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00044d20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00044d30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00044d50: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00044d70: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00044d80: 7374 616c 6c5f 7375 646f 0a0a 636c 6173  stall_sudo..clas
│ │ │ -00044d90: 7320 696e 7374 616c 6c5f 7375 646f 207b  s install_sudo {
│ │ │ -00044da0: 0a20 2070 6163 6b61 6765 207b 2027 7375  .  package { 'su
│ │ │ -00044db0: 646f 273a 0a20 2020 2065 6e73 7572 6520  do':.    ensure 
│ │ │ -00044dc0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -00044dd0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00044de0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00044e90: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00044ea0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00044eb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00044ec0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00044ed0: 7365 2220 6964 3d22 6964 3333 223e 3c74 se" id="id33"> │ │ │ -00044f20: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00044f30: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00044f40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00044f80: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00044f90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00044fb0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00044fd0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00044fe0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00044ff0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00045000: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00045010: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00045020: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00045030: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00045040: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00045050: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -00045060: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00045070: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00045080: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00045090: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000450a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000450b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000450c0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -000450d0: 7564 6f5f 696e 7374 616c 6c65 640a 0a2d  udo_installed..-
│ │ │ -000450e0: 206e 616d 653a 2045 6e73 7572 6520 7375   name: Ensure su
│ │ │ -000450f0: 646f 2069 7320 696e 7374 616c 6c65 640a  do is installed.
│ │ │ -00045100: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00045110: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00045120: 616d 653a 2073 7564 6f0a 2020 2020 7374  ame: sudo.    st
│ │ │ -00045130: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -00045140: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00045150: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00045160: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00045170: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00045180: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00045190: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -000451a0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -000451b0: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ -000451c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000451d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000451e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000451f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00045200: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00045210: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00045220: 6765 5f73 7564 6f5f 696e 7374 616c 6c65  ge_sudo_installe
│ │ │ -00045230: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00044af0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00044b00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ +00044b90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00044bb0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00044bd0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00044c00: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00044c10: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00044c20: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +00044c40: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00044c50: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00044c60: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00044c70: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00044c80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00044c90: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00044ca0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00044cb0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +00044cc0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00044cd0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00044ce0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00044cf0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00044d00: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00044d10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00044d20: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ +00044d30: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +00044d40: 6d65 3a20 456e 7375 7265 2073 7564 6f20  me: Ensure sudo 
│ │ │ +00044d50: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +00044d60: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00044d70: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00044d80: 3a20 7375 646f 0a20 2020 2073 7461 7465  : sudo.    state
│ │ │ +00044d90: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +00044da0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00044db0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00044dc0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +00044dd0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00044de0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +00044df0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00044e00: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +00044e10: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00044e20: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00044e30: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00044e40: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00044e50: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00044e60: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00044e70: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00044e80: 7375 646f 5f69 6e73 7461 6c6c 6564 0a3c  sudo_installed.<
│ │ │ +00044e90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +00044f40: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00044f50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00044f60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +00044fe0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00045010: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00045030: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00045040: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00045060: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00045080: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00045090: 6465 2069 6e73 7461 6c6c 5f73 7564 6f0a  de install_sudo.
│ │ │ +000450a0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ +000450b0: 7564 6f20 7b0a 2020 7061 636b 6167 6520  udo {.  package 
│ │ │ +000450c0: 7b20 2773 7564 6f27 3a0a 2020 2020 656e  { 'sudo':.    en
│ │ │ +000450d0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000450e0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +000451a0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000451b0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000451c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +00045210: 6765 735d 5d0a 6e61 6d65 203d 2022 7375 ges]].name = "su │ │ │ +00045220: 646f 220a 7665 7273 696f 6e20 3d20 222a do".version = "* │ │ │ +00045230: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 00045240: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedia │ │ │ -00079450: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00079460: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00079470: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000794b0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -000794c0: 5d5d 0a6e 616d 6520 3d20 226c 6962 7061  ]].name = "libpa
│ │ │ -000794d0: 6d2d 7077 7175 616c 6974 7922 0a76 6572  m-pwquality".ver
│ │ │ -000794e0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -000795a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000795b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00079660: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00079680: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000796b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00079640: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00079650: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00079670: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00079690: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000796a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -000796f0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -00079700: 7077 7175 616c 6974 790a 0a63 6c61 7373 pwquality..class │ │ │ -00079710: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -00079720: 7077 7175 616c 6974 7920 7b0a 2020 7061 pwquality {. pa │ │ │ -00079730: 636b 6167 6520 7b20 276c 6962 7061 6d2d ckage { 'libpam- │ │ │ -00079740: 7077 7175 616c 6974 7927 3a0a 2020 2020 pwquality':. │ │ │ -00079750: 656e 7375 7265 203d 2667 743b 2027 696e ensure => 'in │ │ │ -00079760: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a stalled',. }.}. │ │ │ -00079770: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ -00079820: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00079830: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00079840: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ -00079910: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00079920: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00079970: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00079980: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00079990: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000799a0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000799b0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -000799c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000799d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000799e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000799f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00079a00: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00079a10: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00079a20: 2d20 7061 636b 6167 655f 7061 6d5f 7077  - package_pam_pw
│ │ │ -00079a30: 7175 616c 6974 795f 696e 7374 616c 6c65  quality_installe
│ │ │ -00079a40: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -00079a50: 6520 6c69 6270 616d 2d70 7771 7561 6c69  e libpam-pwquali
│ │ │ -00079a60: 7479 2069 7320 696e 7374 616c 6c65 640a  ty is installed.
│ │ │ -00079a70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00079a80: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00079a90: 616d 653a 206c 6962 7061 6d2d 7077 7175  ame: libpam-pwqu
│ │ │ -00079aa0: 616c 6974 790a 2020 2020 7374 6174 653a  ality.    state:
│ │ │ -00079ab0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00079ac0: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -00079ad0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00079ae0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00079af0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -00079b00: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00079b10: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00079b20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00079b30: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00079b40: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00079b50: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00079b60: 6b61 6765 5f70 616d 5f70 7771 7561 6c69  kage_pam_pwquali
│ │ │ -00079b70: 7479 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ty_installed.
│ │ │ +00079470: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000794a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -000798f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00079900: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00079940: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00079950: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00079510: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00079530: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00079560: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00079580: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000794f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00079500: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00079540: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00079550: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000795a0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000795b0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +000795c0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000795d0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000795e0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ +000795f0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00079600: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00079610: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00079620: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00079630: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00079640: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +00079650: 6765 5f70 616d 5f70 7771 7561 6c69 7479 ge_pam_pwquality │ │ │ +00079660: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61 _installed..- na │ │ │ +00079670: 6d65 3a20 456e 7375 7265 206c 6962 7061 me: Ensure libpa │ │ │ +00079680: 6d2d 7077 7175 616c 6974 7920 6973 2069 m-pwquality is i │ │ │ +00079690: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ +000796a0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +000796b0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69 ge:. name: li │ │ │ +000796c0: 6270 616d 2d70 7771 7561 6c69 7479 0a20 bpam-pwquality. │ │ │ +000796d0: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ +000796e0: 740a 2020 7768 656e 3a20 2722 6c69 6270 t. when: '"libp │ │ │ +000796f0: 616d 2d72 756e 7469 6d65 2220 696e 2061 am-runtime" in a │ │ │ +00079700: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +00079710: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ +00079720: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ +00079730: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +00079740: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +00079750: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +00079760: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +00079770: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00079780: 640a 2020 2d20 7061 636b 6167 655f 7061 d. - package_pa │ │ │ +00079790: 6d5f 7077 7175 616c 6974 795f 696e 7374 m_pwquality_inst │ │ │ +000797a0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +00079860: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00079870: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00079900: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00079920: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00079930: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00079940: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00079950: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00079970: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000799b0: 616c 6c5f 6c69 6270 616d 2d70 7771 7561  all_libpam-pwqua
│ │ │ +000799c0: 6c69 7479 0a0a 636c 6173 7320 696e 7374  lity..class inst
│ │ │ +000799d0: 616c 6c5f 6c69 6270 616d 2d70 7771 7561  all_libpam-pwqua
│ │ │ +000799e0: 6c69 7479 207b 0a20 2070 6163 6b61 6765  lity {.  package
│ │ │ +000799f0: 207b 2027 6c69 6270 616d 2d70 7771 7561   { 'libpam-pwqua
│ │ │ +00079a00: 6c69 7479 273a 0a20 2020 2065 6e73 7572  lity':.    ensur
│ │ │ +00079a10: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +00079a20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +00079ae0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00079af0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00079b00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +00079b50: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +00079b60: 7061 6d2d 7077 7175 616c 6974 7922 0a76  pam-pwquality".v
│ │ │ +00079b70: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 00079b90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remedia │ │ │ -001ad930: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -001ad940: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001ad950: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001ad960: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001ad970: 7365 2220 6964 3d22 6964 3533 3422 3e3c se" id="id534">< │ │ │ -001ad980: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001ad990: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001ad9a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001ad9b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001ad9c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -001ad9d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001ad9e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -001ada20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001ada30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -001ada50: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -001ada60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -001ada80: 2072 656d 6f76 655f 6468 6370 0a0a 636c remove_dhcp..cl │ │ │ -001ada90: 6173 7320 7265 6d6f 7665 5f64 6863 7020 ass remove_dhcp │ │ │ -001adaa0: 7b0a 2020 7061 636b 6167 6520 7b20 2764 {. package { 'd │ │ │ -001adab0: 6863 7027 3a0a 2020 2020 656e 7375 7265 hcp':. ensure │ │ │ -001adac0: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ -001adad0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediati │ │ │ -001adb90: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -001adba0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001adc20: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001adc30: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001adc40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001adc80: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001adc90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001adcb0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -001adcc0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -001adce0: 556e 696e 7374 616c 6c20 4448 4350 2053  Uninstall DHCP S
│ │ │ -001adcf0: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ -001add00: 6e73 7572 6520 6468 6370 2069 7320 7265  nsure dhcp is re
│ │ │ -001add10: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -001add20: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -001add30: 3a0a 2020 2020 6e61 6d65 3a20 6468 6370  :.    name: dhcp
│ │ │ -001add40: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -001add50: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -001add60: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -001add70: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -001add80: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -001add90: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -001adda0: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ -001addb0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -001addc0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -001addd0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -001adde0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -001addf0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -001ade00: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -001ade10: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -001ade20: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001ade30: 2070 6163 6b61 6765 5f64 6863 705f 7265   package_dhcp_re
│ │ │ -001ade40: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


│ │ │ +001ad950: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001ad980: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001ad9f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001ada10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001ada40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +001ad9d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001ad9e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001ada20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001ada30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +001ada80: 2027 556e 696e 7374 616c 6c20 4448 4350 'Uninstall DHCP │ │ │ +001ada90: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ +001adaa0: 2045 6e73 7572 6520 6468 6370 2069 7320 Ensure dhcp is │ │ │ +001adab0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ +001adac0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +001adad0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6468 ge:. name: dh │ │ │ +001adae0: 6370 0a20 2020 2073 7461 7465 3a20 6162 cp. state: ab │ │ │ +001adaf0: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ +001adb00: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +001adb10: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ +001adb20: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ +001adb30: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +001adb40: 3728 6229 0a20 202d 2050 4349 2d44 5353 7(b). - PCI-DSS │ │ │ +001adb50: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ +001adb60: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ +001adb70: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +001adb80: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +001adb90: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +001adba0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +001adbb0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +001adbc0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +001adbd0: 202d 2070 6163 6b61 6765 5f64 6863 705f - package_dhcp_ │ │ │ +001adbe0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +001adbf0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +001adca0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +001adcb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +001add30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +001add40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001add50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +001add90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001adda0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +001addc0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001addd0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +001addf0: 7265 6d6f 7665 5f64 6863 700a 0a63 6c61  remove_dhcp..cla
│ │ │ +001ade00: 7373 2072 656d 6f76 655f 6468 6370 207b  ss remove_dhcp {
│ │ │ +001ade10: 0a20 2070 6163 6b61 6765 207b 2027 6468  .  package { 'dh
│ │ │ +001ade20: 6370 273a 0a20 2020 2065 6e73 7572 6520  cp':.    ensure 
│ │ │ +001ade30: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +001ade40: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation Pup │ │ │ -001aebe0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001aebf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001aecc0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001aecd0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001aed20: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -001aed30: 6b65 610a 0a63 6c61 7373 2072 656d 6f76  kea..class remov
│ │ │ -001aed40: 655f 6b65 6120 7b0a 2020 7061 636b 6167  e_kea {.  packag
│ │ │ -001aed50: 6520 7b20 276b 6561 273a 0a20 2020 2065  e { 'kea':.    e
│ │ │ -001aed60: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -001aed70: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -001aed90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001aeda0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001aedb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001aedc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001aedd0: 6435 3339 2220 7461 6269 6e64 6578 3d22 d539" tabindex=" │ │ │ -001aede0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001aedf0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001aee00: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001aee10: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001aee20: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001aee30: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001aee40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001aee50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -001aeca0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001aecb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001aecf0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001aed00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -001aeed0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001aef00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001aef20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001aef30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001aef50: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001aef60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -001aef80: 6d65 3a20 2755 6e69 6e73 7461 6c6c 206b  me: 'Uninstall k
│ │ │ -001aef90: 6561 2050 6163 6b61 6765 3a20 456e 7375  ea Package: Ensu
│ │ │ -001aefa0: 7265 206b 6561 2069 7320 7265 6d6f 7665  re kea is remove
│ │ │ -001aefb0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -001aefc0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -001aefd0: 2020 6e61 6d65 3a20 6b65 610a 2020 2020    name: kea.    
│ │ │ -001aefe0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -001aeff0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -001af000: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001af010: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001af020: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001af030: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -001af040: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001af050: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -001af060: 636b 6167 655f 6b65 615f 7265 6d6f 7665  ckage_kea_remove
│ │ │ -001af070: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +001aebd0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +001aebe0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +001aebf0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity: │ │ │ +001aecc0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001aecd0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +001aed30: 616c 6c20 6b65 6120 5061 636b 6167 653a  all kea Package:
│ │ │ +001aed40: 2045 6e73 7572 6520 6b65 6120 6973 2072   Ensure kea is r
│ │ │ +001aed50: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +001aed60: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +001aed70: 653a 0a20 2020 206e 616d 653a 206b 6561  e:.    name: kea
│ │ │ +001aed80: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +001aed90: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +001aeda0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001aedb0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001aedc0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001aedd0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001aede0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001aedf0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001aee00: 202d 2070 6163 6b61 6765 5f6b 6561 5f72   - package_kea_r
│ │ │ +001aee10: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +001aeed0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +001aeee0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +001aef60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001aefa0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +001aeca0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001aecb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001aecf0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001aed00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +001aef70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001aef90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001aefc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001aefe0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +001af010: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +001af020: 656d 6f76 655f 6b65 610a 0a63 6c61 7373  emove_kea..class
│ │ │ +001af030: 2072 656d 6f76 655f 6b65 6120 7b0a 2020   remove_kea {.  
│ │ │ +001af040: 7061 636b 6167 6520 7b20 276b 6561 273a  package { 'kea':
│ │ │ +001af050: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001af060: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +001af070: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 001af080: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -001b3b20: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -001b3b30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -001b3bd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001b3be0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001b3c30: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -001b3c70: 6e63 6c75 6465 2072 656d 6f76 655f 7365  nclude remove_se
│ │ │ -001b3c80: 6e64 6d61 696c 0a0a 636c 6173 7320 7265  ndmail..class re
│ │ │ -001b3c90: 6d6f 7665 5f73 656e 646d 6169 6c20 7b0a  move_sendmail {.
│ │ │ -001b3ca0: 2020 7061 636b 6167 6520 7b20 2773 656e    package { 'sen
│ │ │ -001b3cb0: 646d 6169 6c27 3a0a 2020 2020 656e 7375  dmail':.    ensu
│ │ │ -001b3cc0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -001b3cd0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -001b3ce0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -001b3d90: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -001b3da0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001b3db0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001b3de0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -001b3bc0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001b3bf0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001b3c00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001b3c40: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -001b3c50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -001b3e50: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001b3e70: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001b3ea0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001b3e30: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001b3e40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001b3e80: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001b3e90: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -001b3ee0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -001b3ef0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -001b3f00: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -001b3f10: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -001b3f20: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -001b3f30: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -001b3f40: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -001b3f50: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -001b3f60: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -001b3f70: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -001b3f80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -001b3f90: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -001b3fa0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -001b3fb0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -001b3fc0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -001b3fd0: 0a20 202d 2070 6163 6b61 6765 5f73 656e . - package_sen │ │ │ -001b3fe0: 646d 6169 6c5f 7265 6d6f 7665 640a 0a2d dmail_removed..- │ │ │ -001b3ff0: 206e 616d 653a 2027 556e 696e 7374 616c name: 'Uninstal │ │ │ -001b4000: 6c20 5365 6e64 6d61 696c 2050 6163 6b61 l Sendmail Packa │ │ │ -001b4010: 6765 3a20 456e 7375 7265 2073 656e 646d ge: Ensure sendm │ │ │ -001b4020: 6169 6c20 6973 2072 656d 6f76 6564 270a ail is removed'. │ │ │ -001b4030: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -001b4040: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ -001b4050: 616d 653a 2073 656e 646d 6169 6c0a 2020 ame: sendmail. │ │ │ -001b4060: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -001b4070: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -001b4080: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -001b4090: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -001b40a0: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -001b40b0: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -001b40c0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -001b40d0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ -001b40e0: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ -001b40f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -001b4100: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -001b4110: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -001b4120: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -001b4130: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -001b4140: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -001b4150: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -001b4160: 5f73 656e 646d 6169 6c5f 7265 6d6f 7665 _sendmail_remove │ │ │ -001b4170: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +001b3b20: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +001b3b30: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...

│ │ │ +001b3bd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +001b3c70: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +001b3c80: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +001b3c90: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +001b3ca0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +001b3cb0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +001b3cc0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +001b3cd0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001b3ce0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +001b3cf0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001b3d00: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +001b3d10: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +001b3d20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +001b3d30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +001b3d40: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +001b3d50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +001b3d60: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +001b3d70: 6765 5f73 656e 646d 6169 6c5f 7265 6d6f  ge_sendmail_remo
│ │ │ +001b3d80: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ +001b3d90: 696e 7374 616c 6c20 5365 6e64 6d61 696c  install Sendmail
│ │ │ +001b3da0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +001b3db0: 2073 656e 646d 6169 6c20 6973 2072 656d   sendmail is rem
│ │ │ +001b3dc0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001b3dd0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001b3de0: 0a20 2020 206e 616d 653a 2073 656e 646d  .    name: sendm
│ │ │ +001b3df0: 6169 6c0a 2020 2020 7374 6174 653a 2061  ail.    state: a
│ │ │ +001b3e00: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ +001b3e10: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +001b3e20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +001b3e30: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +001b3e40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001b3e50: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +001b3e60: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +001b3e70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001b3e80: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +001b3e90: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +001b3ea0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +001b3eb0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +001b3ec0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +001b3ed0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +001b3ee0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +001b3ef0: 6163 6b61 6765 5f73 656e 646d 6169 6c5f  ackage_sendmail_
│ │ │ +001b3f00: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +001b3f10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +001b3fc0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +001b3fd0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +001b4050: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +001b40e0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001b40f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +001b3bc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001b3bf0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001b3c00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001b3c40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +001b3c50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +001b4060: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001b4070: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +001b40b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001b40c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +001b4110: 7265 6d6f 7665 5f73 656e 646d 6169 6c0a  remove_sendmail.
│ │ │ +001b4120: 0a63 6c61 7373 2072 656d 6f76 655f 7365  .class remove_se
│ │ │ +001b4130: 6e64 6d61 696c 207b 0a20 2070 6163 6b61  ndmail {.  packa
│ │ │ +001b4140: 6765 207b 2027 7365 6e64 6d61 696c 273a  ge { 'sendmail':
│ │ │ +001b4150: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001b4160: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +001b4170: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 001b4180: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Reme │ │ │ -001bacd0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001bace0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001bad70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001bad80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001bada0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001badc0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001badd0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001bae10: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -001bae20: 7564 6520 7265 6d6f 7665 5f78 696e 6574  ude remove_xinet
│ │ │ -001bae30: 640a 0a63 6c61 7373 2072 656d 6f76 655f  d..class remove_
│ │ │ -001bae40: 7869 6e65 7464 207b 0a20 2070 6163 6b61  xinetd {.  packa
│ │ │ -001bae50: 6765 207b 2027 7869 6e65 7464 273a 0a20  ge { 'xinetd':. 
│ │ │ -001bae60: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001bae70: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -001bae80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001baf30: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001baf40: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001baf50: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001bb020: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001bb030: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001bb080: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -001bb090: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -001bb0a0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -001bb0b0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -001bb0c0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -001bb0d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -001bb0e0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -001bb0f0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -001bb100: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -001bb110: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -001bb120: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -001bb130: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -001bb140: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -001bb150: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001bb160: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001bb170: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -001bb180: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -001bb190: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -001bb1a0: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ -001bb1b0: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ -001bb1c0: 556e 696e 7374 616c 6c20 7869 6e65 7464  Uninstall xinetd
│ │ │ -001bb1d0: 2070 6163 6b61 6765 2069 6620 6e6f 7420   package if not 
│ │ │ -001bb1e0: 7573 6564 2062 7920 6e65 7477 6f72 6b20  used by network 
│ │ │ -001bb1f0: 7365 7276 6963 6573 3a20 456e 7375 7265  services: Ensure
│ │ │ -001bb200: 2078 696e 6574 6420 6973 0a20 2020 2072   xinetd is.    r
│ │ │ -001bb210: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -001bb220: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -001bb230: 653a 0a20 2020 206e 616d 653a 2078 696e  e:.    name: xin
│ │ │ -001bb240: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ -001bb250: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ -001bb260: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -001bb270: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -001bb280: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -001bb290: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -001bb2a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -001bb2b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -001bb2c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -001bb2d0: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ -001bb2e0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -001bb2f0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -001bb300: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -001bb310: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001bb320: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001bb330: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -001bb340: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -001bb350: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -001bb360: 2d20 7061 636b 6167 655f 7869 6e65 7464  - package_xinetd
│ │ │ -001bb370: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +001bacd0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +001bace0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +001bacf0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -001bb000: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001bb010: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001bb050: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001bb060: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +001bad70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001bada0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001badc0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001badd0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001badf0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001bae00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001bae20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +001bae30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +001bae40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +001bae50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +001bae60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +001bae70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +001bae80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001bae90: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +001baea0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +001baeb0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +001baec0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +001baed0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +001baee0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001baef0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001baf00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001baf10: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +001baf20: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +001baf30: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +001baf40: 6765 5f78 696e 6574 645f 7265 6d6f 7665  ge_xinetd_remove
│ │ │ +001baf50: 640a 0a2d 206e 616d 653a 2027 556e 696e  d..- name: 'Unin
│ │ │ +001baf60: 7374 616c 6c20 7869 6e65 7464 2070 6163  stall xinetd pac
│ │ │ +001baf70: 6b61 6765 2069 6620 6e6f 7420 7573 6564  kage if not used
│ │ │ +001baf80: 2062 7920 6e65 7477 6f72 6b20 7365 7276   by network serv
│ │ │ +001baf90: 6963 6573 3a20 456e 7375 7265 2078 696e  ices: Ensure xin
│ │ │ +001bafa0: 6574 6420 6973 0a20 2020 2072 656d 6f76  etd is.    remov
│ │ │ +001bafb0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +001bafc0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +001bafd0: 2020 206e 616d 653a 2078 696e 6574 640a     name: xinetd.
│ │ │ +001bafe0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +001baff0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +001bb000: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +001bb010: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +001bb020: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +001bb030: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +001bb040: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001bb050: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +001bb060: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001bb070: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +001bb080: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +001bb090: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +001bb0a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +001bb0b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +001bb0c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +001bb0d0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +001bb0e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001bb0f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +001bb100: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ +001bb110: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +001bb1d0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +001bb1e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +001bb270: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +001bb290: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +001bb2b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +001bb2e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001bb2f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +001bb320: 6f76 655f 7869 6e65 7464 0a0a 636c 6173  ove_xinetd..clas
│ │ │ +001bb330: 7320 7265 6d6f 7665 5f78 696e 6574 6420  s remove_xinetd 
│ │ │ +001bb340: 7b0a 2020 7061 636b 6167 6520 7b20 2778  {.  package { 'x
│ │ │ +001bb350: 696e 6574 6427 3a0a 2020 2020 656e 7375  inetd':.    ensu
│ │ │ +001bb360: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +001bb370: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  001bb380: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -001bc9a0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -001bc9b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -001bca50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001bca60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001bcab0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -001bcaf0: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ -001bcb00: 6269 6e64 2d6d 740a 0a63 6c61 7373 2072  bind-mt..class r
│ │ │ -001bcb10: 656d 6f76 655f 7970 6269 6e64 2d6d 7420  emove_ypbind-mt 
│ │ │ -001bcb20: 7b0a 2020 7061 636b 6167 6520 7b20 2779  {.  package { 'y
│ │ │ -001bcb30: 7062 696e 642d 6d74 273a 0a20 2020 2065  pbind-mt':.    e
│ │ │ -001bcb40: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -001bcb50: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -001bcb70: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001bcb80: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001bcb90: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001bcba0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001bcbb0: 6435 3634 2220 7461 6269 6e64 6578 3d22 d564" tabindex=" │ │ │ -001bcbc0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001bcbd0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001bcbe0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001bcbf0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001bcc00: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001bcc10: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001bcc20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001bcc30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -001bca40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001bca70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001bca80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001bcac0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -001bcad0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -001bccb0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001bcce0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001bcd00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001bcd10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001bcd30: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001bcd40: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -001bcd60: 6d65 3a20 2752 656d 6f76 6520 4e49 5320  me: 'Remove NIS 
│ │ │ -001bcd70: 436c 6965 6e74 3a20 456e 7375 7265 2079  Client: Ensure y
│ │ │ -001bcd80: 7062 696e 642d 6d74 2069 7320 7265 6d6f  pbind-mt is remo
│ │ │ -001bcd90: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -001bcda0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -001bcdb0: 2020 2020 6e61 6d65 3a20 7970 6269 6e64      name: ypbind
│ │ │ -001bcdc0: 2d6d 740a 2020 2020 7374 6174 653a 2061  -mt.    state: a
│ │ │ -001bcdd0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -001bcde0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -001bcdf0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -001bce00: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -001bce10: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -001bce20: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -001bce30: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -001bce40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -001bce50: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -001bce60: 7970 6269 6e64 5f72 656d 6f76 6564 0a20  ypbind_removed. 
│ │ │ -001bce70: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -001bce80: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.

│ │ │ +001bca50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +001bcaf0: 206e 616d 653a 2027 5265 6d6f 7665 204e   name: 'Remove N
│ │ │ +001bcb00: 4953 2043 6c69 656e 743a 2045 6e73 7572  IS Client: Ensur
│ │ │ +001bcb10: 6520 7970 6269 6e64 2d6d 7420 6973 2072  e ypbind-mt is r
│ │ │ +001bcb20: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +001bcb30: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +001bcb40: 653a 0a20 2020 206e 616d 653a 2079 7062  e:.    name: ypb
│ │ │ +001bcb50: 696e 642d 6d74 0a20 2020 2073 7461 7465  ind-mt.    state
│ │ │ +001bcb60: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +001bcb70: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +001bcb80: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +001bcb90: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +001bcba0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +001bcbb0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +001bcbc0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +001bcbd0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +001bcbe0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +001bcbf0: 6765 5f79 7062 696e 645f 7265 6d6f 7665  ge_ypbind_remove
│ │ │ +001bcc00: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +001bcc10: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.Remediati
│ │ │ +001bccd0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +001bcce0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +001bcd60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001bcda0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ +001bca40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001bca70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001bca80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001bcac0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +001bcad0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +001bcd70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001bcd90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001bcdc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001bcde0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +001bce10: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +001bce20: 656d 6f76 655f 7970 6269 6e64 2d6d 740a  emove_ypbind-mt.
│ │ │ +001bce30: 0a63 6c61 7373 2072 656d 6f76 655f 7970  .class remove_yp
│ │ │ +001bce40: 6269 6e64 2d6d 7420 7b0a 2020 7061 636b  bind-mt {.  pack
│ │ │ +001bce50: 6167 6520 7b20 2779 7062 696e 642d 6d74  age { 'ypbind-mt
│ │ │ +001bce60: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +001bce70: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +001bce80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Re │ │ │ -001be630: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -001be640: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -001be650: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -001be6f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -001be740: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -001be780: 636c 7564 6520 7265 6d6f 7665 5f79 7073  clude remove_yps
│ │ │ -001be790: 6572 760a 0a63 6c61 7373 2072 656d 6f76  erv..class remov
│ │ │ -001be7a0: 655f 7970 7365 7276 207b 0a20 2070 6163  e_ypserv {.  pac
│ │ │ -001be7b0: 6b61 6765 207b 2027 7970 7365 7276 273a  kage { 'ypserv':
│ │ │ -001be7c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -001be7d0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -001be7e0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -001be7f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -001be8a0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -001be8b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -001be6d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -001be700: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -001be720: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -001be730: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -001be750: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -001be760: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -001be930: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001be950: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001be9a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001be9d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -001be9f0: 7461 6c6c 2079 7073 6572 7620 5061 636b  tall ypserv Pack
│ │ │ -001bea00: 6167 653a 2045 6e73 7572 6520 7970 7365  age: Ensure ypse
│ │ │ -001bea10: 7276 2069 7320 7265 6d6f 7665 6427 0a20  rv is removed'. 
│ │ │ -001bea20: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -001bea30: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -001bea40: 6d65 3a20 7970 7365 7276 0a20 2020 2073  me: ypserv.    s
│ │ │ -001bea50: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -001bea60: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -001bea70: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -001bea80: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001bea90: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -001beaa0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -001beab0: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ -001beac0: 3528 3129 2863 290a 2020 2d20 5043 492d  5(1)(c).  - PCI-
│ │ │ -001bead0: 4453 532d 5265 712d 322e 322e 320a 2020  DSS-Req-2.2.2.  
│ │ │ -001beae0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -001beaf0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -001beb00: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -001beb10: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -001beb20: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -001beb30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001beb40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001beb50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -001beb60: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -001beb70: 655f 7970 7365 7276 5f72 656d 6f76 6564  e_ypserv_removed
│ │ │ +001be630: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +001be640: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -001be960: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001be970: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001be9b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001be9c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +001be6e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001be6f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001be740: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +001be780: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +001be790: 2079 7073 6572 7620 5061 636b 6167 653a   ypserv Package:
│ │ │ +001be7a0: 2045 6e73 7572 6520 7970 7365 7276 2069   Ensure ypserv i
│ │ │ +001be7b0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +001be7c0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +001be7d0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +001be7e0: 7970 7365 7276 0a20 2020 2073 7461 7465  ypserv.    state
│ │ │ +001be7f0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +001be800: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001be810: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +001be820: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +001be830: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001be840: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ +001be850: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ +001be860: 2863 290a 2020 2d20 5043 492d 4453 532d  (c).  - PCI-DSS-
│ │ │ +001be870: 5265 712d 322e 322e 320a 2020 2d20 5043  Req-2.2.2.  - PC
│ │ │ +001be880: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +001be890: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +001be8a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001be8b0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +001be8c0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +001be8d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +001be8e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +001be8f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001be900: 640a 2020 2d20 7061 636b 6167 655f 7970  d.  - package_yp
│ │ │ +001be910: 7365 7276 5f72 656d 6f76 6564 0a3c 2f63  serv_removed.
│ │ │ +001be930: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +001be9d0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +001be9e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001be9f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +001be6d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001be700: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001be710: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001be750: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001be760: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +001bea70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001beaa0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001beac0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001bead0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001beaf0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001beb00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +001beb20: 6c75 6465 2072 656d 6f76 655f 7970 7365  lude remove_ypse
│ │ │ +001beb30: 7276 0a0a 636c 6173 7320 7265 6d6f 7665  rv..class remove
│ │ │ +001beb40: 5f79 7073 6572 7620 7b0a 2020 7061 636b  _ypserv {.  pack
│ │ │ +001beb50: 6167 6520 7b20 2779 7073 6572 7627 3a0a  age { 'ypserv':.
│ │ │ +001beb60: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +001beb70: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  001beb80: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -001c06c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -001c06d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -001c0760: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -001c0780: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -001c0790: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001c07a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -001c07b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -001c07d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001c0800: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -001c0810: 6d6f 7665 5f72 7368 2d73 6572 7665 720a  move_rsh-server.
│ │ │ -001c0820: 0a63 6c61 7373 2072 656d 6f76 655f 7273  .class remove_rs
│ │ │ -001c0830: 682d 7365 7276 6572 207b 0a20 2070 6163  h-server {.  pac
│ │ │ -001c0840: 6b61 6765 207b 2027 7273 682d 7365 7276  kage { 'rsh-serv
│ │ │ -001c0850: 6572 273a 0a20 2020 2065 6e73 7572 6520  er':.    ensure 
│ │ │ -001c0860: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -001c0870: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -001c0930: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -001c0940: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001c09c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -001c09d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -001c09f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -001c0a00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -001c0a20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -001c0a40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -001c0a70: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -001c0a80: 6e69 6e73 7461 6c6c 2072 7368 2d73 6572  ninstall rsh-ser
│ │ │ -001c0a90: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -001c0aa0: 7572 6520 7273 682d 7365 7276 6572 2069  ure rsh-server i
│ │ │ -001c0ab0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -001c0ac0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -001c0ad0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -001c0ae0: 7273 682d 7365 7276 6572 0a20 2020 2073  rsh-server.    s
│ │ │ -001c0af0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -001c0b00: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -001c0b10: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -001c0b20: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001c0b30: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -001c0b40: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -001c0b50: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ -001c0b60: 3528 3129 2863 290a 2020 2d20 5043 492d  5(1)(c).  - PCI-
│ │ │ -001c0b70: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -001c0b80: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -001c0b90: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -001c0ba0: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -001c0bb0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -001c0bc0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001c0bd0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -001c0be0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001c0bf0: 2020 2d20 7061 636b 6167 655f 7273 682d    - package_rsh-
│ │ │ -001c0c00: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +001c06c0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +001c06d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +001c0750: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001c0760: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001c0780: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001c0790: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001c07b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +001c07d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +001c0800: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +001c0810: 6e69 6e73 7461 6c6c 2072 7368 2d73 6572  ninstall rsh-ser
│ │ │ +001c0820: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +001c0830: 7572 6520 7273 682d 7365 7276 6572 2069  ure rsh-server i
│ │ │ +001c0840: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +001c0850: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +001c0860: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +001c0870: 7273 682d 7365 7276 6572 0a20 2020 2073  rsh-server.    s
│ │ │ +001c0880: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +001c0890: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +001c08a0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +001c08b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +001c08c0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +001c08d0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +001c08e0: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ +001c08f0: 3528 3129 2863 290a 2020 2d20 5043 492d  5(1)(c).  - PCI-
│ │ │ +001c0900: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +001c0910: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +001c0920: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +001c0930: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +001c0940: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +001c0950: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001c0960: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +001c0970: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +001c0980: 2020 2d20 7061 636b 6167 655f 7273 682d    - package_rsh-
│ │ │ +001c0990: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +001c09a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +001c0a50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +001c0a60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +001c0b00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001c0b10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001c0b60: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +001c0ba0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +001c0bb0: 682d 7365 7276 6572 0a0a 636c 6173 7320  h-server..class 
│ │ │ +001c0bc0: 7265 6d6f 7665 5f72 7368 2d73 6572 7665  remove_rsh-serve
│ │ │ +001c0bd0: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ +001c0be0: 2772 7368 2d73 6572 7665 7227 3a0a 2020  'rsh-server':.  
│ │ │ +001c0bf0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +001c0c00: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  001c0c10: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remedi │ │ │ -001c1e00: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -001c1e10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001c1e20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001c1e50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ +001c0af0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001c0b20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001c0b30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001c0b70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001c0b80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -001c1ec0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001c1ee0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001c1f10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001c1ea0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001c1eb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001c1ef0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001c1f00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -001c1f50: 6520 7265 6d6f 7665 5f72 7368 0a0a 636c e remove_rsh..cl │ │ │ -001c1f60: 6173 7320 7265 6d6f 7665 5f72 7368 207b ass remove_rsh { │ │ │ -001c1f70: 0a20 2070 6163 6b61 6765 207b 2027 7273 . package { 'rs │ │ │ -001c1f80: 6827 3a0a 2020 2020 656e 7375 7265 203d h':. ensure = │ │ │ -001c1f90: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ -001c1fa0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ -001c2060: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -001c2070: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -001c2100: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -001c2120: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -001c2130: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001c2140: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -001c2150: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -001c2170: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001c21a0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -001c21b0: 696e 7374 616c 6c20 7273 6820 5061 636b  install rsh Pack
│ │ │ -001c21c0: 6167 653a 2045 6e73 7572 6520 7273 6820  age: Ensure rsh 
│ │ │ -001c21d0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -001c21e0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -001c21f0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -001c2200: 2072 7368 0a20 2020 2073 7461 7465 3a20   rsh.    state: 
│ │ │ -001c2210: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -001c2220: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -001c2230: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ -001c2240: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -001c2250: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -001c2260: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -001c2270: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001c2280: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001c2290: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -001c22a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001c22b0: 2070 6163 6b61 6765 5f72 7368 5f72 656d   package_rsh_rem
│ │ │ -001c22c0: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -001c22d0: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
│ │ │ +001c1ec0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +001c1ee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001c1f10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001c1ea0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +001c1eb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +001c1ed0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +001c1ef0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001c1f00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +001c1f40: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +001c1f50: 3a20 2755 6e69 6e73 7461 6c6c 2072 7368 : 'Uninstall rsh │ │ │ +001c1f60: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +001c1f70: 2072 7368 2069 7320 7265 6d6f 7665 6427 rsh is removed' │ │ │ +001c1f80: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ +001c1f90: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ +001c1fa0: 6e61 6d65 3a20 7273 680a 2020 2020 7374 name: rsh. st │ │ │ +001c1fb0: 6174 653a 2061 6273 656e 740a 2020 7461 ate: absent. ta │ │ │ +001c1fc0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +001c1fd0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +001c1fe0: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ +001c1ff0: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ +001c2000: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ +001c2010: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +001c2020: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +001c2030: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +001c2040: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +001c2050: 640a 2020 2d20 7061 636b 6167 655f 7273 d. - package_rs │ │ │ +001c2060: 685f 7265 6d6f 7665 640a 2020 2d20 756e h_removed. - un │ │ │ +001c2070: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c known_severity.< │ │ │ +001c2080: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
R │ │ │ +001c2130: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +001c2140: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +001c21e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001c21f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001c2240: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +001c2280: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +001c2290: 680a 0a63 6c61 7373 2072 656d 6f76 655f  h..class remove_
│ │ │ +001c22a0: 7273 6820 7b0a 2020 7061 636b 6167 6520  rsh {.  package 
│ │ │ +001c22b0: 7b20 2772 7368 273a 0a20 2020 2065 6e73  { 'rsh':.    ens
│ │ │ +001c22c0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +001c22d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation P │ │ │ -001c3600: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -001c3610: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +001c21d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001c2200: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001c2210: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001c2250: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001c2260: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -001c3690: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001c36b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001c3700: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001c3730: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -001c3750: 655f 7461 6c6b 2d73 6572 7665 720a 0a63  e_talk-server..c
│ │ │ -001c3760: 6c61 7373 2072 656d 6f76 655f 7461 6c6b  lass remove_talk
│ │ │ -001c3770: 2d73 6572 7665 7220 7b0a 2020 7061 636b  -server {.  pack
│ │ │ -001c3780: 6167 6520 7b20 2774 616c 6b2d 7365 7276  age { 'talk-serv
│ │ │ -001c3790: 6572 273a 0a20 2020 2065 6e73 7572 6520  er':.    ensure 
│ │ │ -001c37a0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -001c37b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -001c3870: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -001c3880: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001c3900: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -001c3940: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ -001c36c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001c36d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001c3710: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001c3720: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ -001c3910: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -001c3930: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -001c3960: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -001c3980: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -001c39b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -001c39c0: 6e69 6e73 7461 6c6c 2074 616c 6b2d 7365  ninstall talk-se
│ │ │ -001c39d0: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ -001c39e0: 7375 7265 2074 616c 6b2d 7365 7276 6572  sure talk-server
│ │ │ -001c39f0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -001c3a00: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -001c3a10: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -001c3a20: 3a20 7461 6c6b 2d73 6572 7665 720a 2020  : talk-server.  
│ │ │ -001c3a30: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -001c3a40: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -001c3a50: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -001c3a60: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -001c3a70: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -001c3a80: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -001c3a90: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001c3aa0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -001c3ab0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -001c3ac0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -001c3ad0: 640a 2020 2d20 7061 636b 6167 655f 7461  d.  - package_ta
│ │ │ -001c3ae0: 6c6b 2d73 6572 7665 725f 7265 6d6f 7665  lk-server_remove
│ │ │ -001c3af0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +001c35f0: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +001c3600: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +001c3610: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001c3690: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001c36b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001c3700: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +001c3730: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +001c36a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001c36c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001c3710: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +001c3720: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +001c3750: 7374 616c 6c20 7461 6c6b 2d73 6572 7665  stall talk-serve
│ │ │ +001c3760: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ +001c3770: 6520 7461 6c6b 2d73 6572 7665 7220 6973  e talk-server is
│ │ │ +001c3780: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +001c3790: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +001c37a0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +001c37b0: 616c 6b2d 7365 7276 6572 0a20 2020 2073  alk-server.    s
│ │ │ +001c37c0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +001c37d0: 6167 733a 0a20 202d 2050 4349 2d44 5353  ags:.  - PCI-DSS
│ │ │ +001c37e0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +001c37f0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +001c3800: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001c3810: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001c3820: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001c3830: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001c3840: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001c3850: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001c3860: 202d 2070 6163 6b61 6765 5f74 616c 6b2d   - package_talk-
│ │ │ +001c3870: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +001c3880: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +001c3930: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +001c3940: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +001c39e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001c39f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001c3a40: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +001c3a80: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ +001c3a90: 6c6b 2d73 6572 7665 720a 0a63 6c61 7373  lk-server..class
│ │ │ +001c3aa0: 2072 656d 6f76 655f 7461 6c6b 2d73 6572   remove_talk-ser
│ │ │ +001c3ab0: 7665 7220 7b0a 2020 7061 636b 6167 6520  ver {.  package 
│ │ │ +001c3ac0: 7b20 2774 616c 6b2d 7365 7276 6572 273a  { 'talk-server':
│ │ │ +001c3ad0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001c3ae0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +001c3af0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 001c3b00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Rem │ │ │ -001c4c00: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -001c4c10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001c4c20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +001c39d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001c3a00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001c3a10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001c3a50: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001c3a60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -001c4ca0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001c4cd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001c4cf0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001c4d00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001c4d20: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001c4d30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -001c4d50: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ -001c4d60: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ -001c4d70: 616c 6b20 7b0a 2020 7061 636b 6167 6520  alk {.  package 
│ │ │ -001c4d80: 7b20 2774 616c 6b27 3a0a 2020 2020 656e  { 'talk':.    en
│ │ │ -001c4d90: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -001c4da0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -001c4e60: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -001c4e70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001c4f00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001c4f10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001c4f30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001c4f50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001c4f60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001c4fa0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -001c4fb0: 653a 2027 556e 696e 7374 616c 6c20 7461  e: 'Uninstall ta
│ │ │ -001c4fc0: 6c6b 2050 6163 6b61 6765 3a20 456e 7375  lk Package: Ensu
│ │ │ -001c4fd0: 7265 2074 616c 6b20 6973 2072 656d 6f76  re talk is remov
│ │ │ -001c4fe0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -001c4ff0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -001c5000: 2020 206e 616d 653a 2074 616c 6b0a 2020     name: talk.  
│ │ │ -001c5010: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -001c5020: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -001c5030: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -001c5040: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -001c5050: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -001c5060: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -001c5070: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001c5080: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -001c5090: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -001c50a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -001c50b0: 640a 2020 2d20 7061 636b 6167 655f 7461  d.  - package_ta
│ │ │ -001c50c0: 6c6b 5f72 656d 6f76 6564 0a3c 2f63 6f64  lk_removed.
│ │ │ +001c4c20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +001c4cc0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001c4d10: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +001c4d50: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +001c4d60: 7461 6c6b 2050 6163 6b61 6765 3a20 456e  talk Package: En
│ │ │ +001c4d70: 7375 7265 2074 616c 6b20 6973 2072 656d  sure talk is rem
│ │ │ +001c4d80: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001c4d90: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001c4da0: 0a20 2020 206e 616d 653a 2074 616c 6b0a  .    name: talk.
│ │ │ +001c4db0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +001c4dc0: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ +001c4dd0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +001c4de0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +001c4df0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001c4e00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001c4e10: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001c4e20: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001c4e30: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +001c4e40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +001c4e50: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +001c4e60: 7461 6c6b 5f72 656d 6f76 6564 0a3c 2f63  talk_removed.
│ │ │ +001c4e80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +001c4f20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +001c4f30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001c4f40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +001c4ca0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001c4cd0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001c4cf0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001c4d00: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001c4d20: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001c4d30: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +001c4fc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001c4ff0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001c5010: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001c5020: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001c5040: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001c5050: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +001c5070: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ +001c5080: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +001c5090: 616c 6b20 7b0a 2020 7061 636b 6167 6520  alk {.  package 
│ │ │ +001c50a0: 7b20 2774 616c 6b27 3a0a 2020 2020 656e  { 'talk':.    en
│ │ │ +001c50b0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +001c50c0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation Pup │ │ │ -001c6e30: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001c6e40: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001c6f10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001c6f20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001c6f70: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -001c6f80: 7465 6c6e 6574 2d73 6572 7665 720a 0a63  telnet-server..c
│ │ │ -001c6f90: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -001c6fa0: 6574 2d73 6572 7665 7220 7b0a 2020 7061  et-server {.  pa
│ │ │ -001c6fb0: 636b 6167 6520 7b20 2774 656c 6e65 742d  ckage { 'telnet-
│ │ │ -001c6fc0: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ -001c6fd0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -001c6fe0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -001c70a0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -001c70b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -001c6ef0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001c6f00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001c6f40: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001c6f50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -001c7160: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001c7180: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001c71b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001c7140: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001c7150: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001c7170: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001c7190: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001c71a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001c71e0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001c71f0: 3a20 2755 6e69 6e73 7461 6c6c 2074 656c : 'Uninstall tel │ │ │ -001c7200: 6e65 742d 7365 7276 6572 2050 6163 6b61 net-server Packa │ │ │ -001c7210: 6765 3a20 456e 7375 7265 2074 656c 6e65 ge: Ensure telne │ │ │ -001c7220: 742d 7365 7276 6572 2069 7320 7265 6d6f t-server is remo │ │ │ -001c7230: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -001c7240: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -001c7250: 2020 2020 6e61 6d65 3a20 7465 6c6e 6574 name: telnet │ │ │ -001c7260: 2d73 6572 7665 720a 2020 2020 7374 6174 -server. stat │ │ │ -001c7270: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -001c7280: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ -001c7290: 332d 434d 2d36 2861 290a 2020 2d20 4e49 3-CM-6(a). - NI │ │ │ -001c72a0: 5354 2d38 3030 2d35 332d 434d 2d37 2861 ST-800-53-CM-7(a │ │ │ -001c72b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -001c72c0: 332d 434d 2d37 2862 290a 2020 2d20 5043 3-CM-7(b). - PC │ │ │ -001c72d0: 492d 4453 532d 5265 712d 322e 322e 320a I-DSS-Req-2.2.2. │ │ │ -001c72e0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -001c72f0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -001c7300: 322e 322e 340a 2020 2d20 6469 7361 626c 2.2.4. - disabl │ │ │ -001c7310: 655f 7374 7261 7465 6779 0a20 202d 2068 e_strategy. - h │ │ │ -001c7320: 6967 685f 7365 7665 7269 7479 0a20 202d igh_severity. - │ │ │ -001c7330: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -001c7340: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -001c7350: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74 on. - no_reboot │ │ │ -001c7360: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -001c7370: 6167 655f 7465 6c6e 6574 2d73 6572 7665 age_telnet-serve │ │ │ -001c7380: 725f 7265 6d6f 7665 640a 3c2f 636f 6465 r_removed.Remediation Ans │ │ │ +001c6e30: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +001c6e40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001c6f10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001c6f20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +001c6f80: 616c 6c20 7465 6c6e 6574 2d73 6572 7665  all telnet-serve
│ │ │ +001c6f90: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ +001c6fa0: 6520 7465 6c6e 6574 2d73 6572 7665 7220  e telnet-server 
│ │ │ +001c6fb0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +001c6fc0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +001c6fd0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +001c6fe0: 2074 656c 6e65 742d 7365 7276 6572 0a20   telnet-server. 
│ │ │ +001c6ff0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +001c7000: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +001c7010: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001c7020: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001c7030: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001c7040: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001c7050: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001c7060: 2d32 2e32 2e32 0a20 202d 2050 4349 2d44  -2.2.2.  - PCI-D
│ │ │ +001c7070: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +001c7080: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +001c7090: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +001c70a0: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +001c70b0: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +001c70c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +001c70d0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +001c70e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001c70f0: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ +001c7100: 742d 7365 7276 6572 5f72 656d 6f76 6564  t-server_removed
│ │ │ +001c7110: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +001c71d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +001c71e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +001c6ef0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001c6f00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001c6f40: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001c6f50: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +001c72b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001c72c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +001c7310: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +001c7320: 7465 6c6e 6574 2d73 6572 7665 720a 0a63  telnet-server..c
│ │ │ +001c7330: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ +001c7340: 6574 2d73 6572 7665 7220 7b0a 2020 7061  et-server {.  pa
│ │ │ +001c7350: 636b 6167 6520 7b20 2774 656c 6e65 742d  ckage { 'telnet-
│ │ │ +001c7360: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ +001c7370: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +001c7380: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -001c8550: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -001c8560: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001c8570: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001c85a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +001c7290: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001c72a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001c72e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +001c72f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -001c8610: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001c8630: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001c8660: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001c85f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001c8600: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001c8640: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001c8650: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -001c86a0: 6520 7265 6d6f 7665 5f74 656c 6e65 740a e remove_telnet. │ │ │ -001c86b0: 0a63 6c61 7373 2072 656d 6f76 655f 7465 .class remove_te │ │ │ -001c86c0: 6c6e 6574 207b 0a20 2070 6163 6b61 6765 lnet {. package │ │ │ -001c86d0: 207b 2027 7465 6c6e 6574 273a 0a20 2020 { 'telnet':. │ │ │ -001c86e0: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -001c86f0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.

Re │ │ │ -001c87b0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -001c87c0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -001c8860: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001c8870: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001c88c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -001c8900: 6e61 6d65 3a20 2752 656d 6f76 6520 7465  name: 'Remove te
│ │ │ -001c8910: 6c6e 6574 2043 6c69 656e 7473 3a20 456e  lnet Clients: En
│ │ │ -001c8920: 7375 7265 2074 656c 6e65 7420 6973 2072  sure telnet is r
│ │ │ -001c8930: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -001c8940: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -001c8950: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -001c8960: 6e65 740a 2020 2020 7374 6174 653a 2061  net.    state: a
│ │ │ -001c8970: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -001c8980: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -001c8990: 2e31 2e31 330a 2020 2d20 5043 492d 4453  .1.13.  - PCI-DS
│ │ │ -001c89a0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -001c89b0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -001c89c0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -001c89d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001c89e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001c89f0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -001c8a00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -001c8a10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001c8a20: 2070 6163 6b61 6765 5f74 656c 6e65 745f   package_telnet_
│ │ │ -001c8a30: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +001c8550: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +001c8560: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
C │ │ │ -001c8850: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001c8880: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001c8890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001c88d0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -001c88e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +001c8610: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +001c8630: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001c8660: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001c85f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +001c8600: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +001c8620: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +001c8640: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001c8650: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +001c8690: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +001c86a0: 3a20 2752 656d 6f76 6520 7465 6c6e 6574 : 'Remove telnet │ │ │ +001c86b0: 2043 6c69 656e 7473 3a20 456e 7375 7265 Clients: Ensure │ │ │ +001c86c0: 2074 656c 6e65 7420 6973 2072 656d 6f76 telnet is remov │ │ │ +001c86d0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +001c86e0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +001c86f0: 2020 206e 616d 653a 2074 656c 6e65 740a name: telnet. │ │ │ +001c8700: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +001c8710: 740a 2020 7461 6773 3a0a 2020 2d20 4e49 t. tags:. - NI │ │ │ +001c8720: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31 ST-800-171-3.1.1 │ │ │ +001c8730: 330a 2020 2d20 5043 492d 4453 5376 342d 3. - PCI-DSSv4- │ │ │ +001c8740: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +001c8750: 342d 322e 322e 340a 2020 2d20 6469 7361 4-2.2.4. - disa │ │ │ +001c8760: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +001c8770: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +001c8780: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +001c8790: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ +001c87a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +001c87b0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +001c87c0: 6b61 6765 5f74 656c 6e65 745f 7265 6d6f kage_telnet_remo │ │ │ +001c87d0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
Remediation │ │ │ +001c8890: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +001c88a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001c8920: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001c8940: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001c8990: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +001c89c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +001c8930: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001c8950: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001c89a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +001c89b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +001c89e0: 7665 5f74 656c 6e65 740a 0a63 6c61 7373  ve_telnet..class
│ │ │ +001c89f0: 2072 656d 6f76 655f 7465 6c6e 6574 207b   remove_telnet {
│ │ │ +001c8a00: 0a20 2070 6163 6b61 6765 207b 2027 7465  .  package { 'te
│ │ │ +001c8a10: 6c6e 6574 273a 0a20 2020 2065 6e73 7572  lnet':.    ensur
│ │ │ +001c8a20: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +001c8a30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  001c8a40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -001ca560: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -001ca570: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001ca580: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001ca600: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001ca630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001ca650: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001ca660: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001ca680: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001ca690: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -001ca6b0: 6c75 6465 2072 656d 6f76 655f 7466 7470  lude remove_tftp
│ │ │ -001ca6c0: 642d 6870 610a 0a63 6c61 7373 2072 656d  d-hpa..class rem
│ │ │ -001ca6d0: 6f76 655f 7466 7470 642d 6870 6120 7b0a  ove_tftpd-hpa {.
│ │ │ -001ca6e0: 2020 7061 636b 6167 6520 7b20 2774 6674    package { 'tft
│ │ │ -001ca6f0: 7064 2d68 7061 273a 0a20 2020 2065 6e73  pd-hpa':.    ens
│ │ │ -001ca700: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -001ca710: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -001ca7d0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -001ca7e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -001ca890: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001ca8b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001ca8e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001ca870: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001ca880: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001ca8a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001ca8c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001ca8d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001ca910: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001ca920: 3a20 2755 6e69 6e73 7461 6c6c 2074 6674 : 'Uninstall tft │ │ │ -001ca930: 7064 2d68 7061 2050 6163 6b61 6765 3a20 pd-hpa Package: │ │ │ -001ca940: 456e 7375 7265 2074 6674 7064 2d68 7061 Ensure tftpd-hpa │ │ │ -001ca950: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -001ca960: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -001ca970: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -001ca980: 3a20 7466 7470 642d 6870 610a 2020 2020 : tftpd-hpa. │ │ │ -001ca990: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -001ca9a0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001ca9b0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -001ca9c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -001ca9d0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -001ca9e0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -001ca9f0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -001caa00: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -001caa10: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ -001caa20: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -001caa30: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -001caa40: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -001caa50: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -001caa60: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -001caa70: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -001caa80: 655f 7466 7470 2d73 6572 7665 725f 7265 e_tftp-server_re │ │ │ -001caa90: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.

│ │ │ +001ca580: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +001ca620: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001ca670: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +001ca6b0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +001ca6c0: 7466 7470 642d 6870 6120 5061 636b 6167  tftpd-hpa Packag
│ │ │ +001ca6d0: 653a 2045 6e73 7572 6520 7466 7470 642d  e: Ensure tftpd-
│ │ │ +001ca6e0: 6870 6120 6973 2072 656d 6f76 6564 270a  hpa is removed'.
│ │ │ +001ca6f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +001ca700: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +001ca710: 616d 653a 2074 6674 7064 2d68 7061 0a20  ame: tftpd-hpa. 
│ │ │ +001ca720: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +001ca730: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +001ca740: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001ca750: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001ca760: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001ca770: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001ca780: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +001ca790: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +001ca7a0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +001ca7b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +001ca7c0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +001ca7d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +001ca7e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +001ca7f0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +001ca800: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +001ca810: 6b61 6765 5f74 6674 702d 7365 7276 6572  kage_tftp-server
│ │ │ +001ca820: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +001ca830: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +001ca8e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +001ca8f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +001ca900: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001ca910: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001ca920: 7365 2220 6964 3d22 6964 3539 3622 3e3c se" id="id596">< │ │ │ +001ca930: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001ca940: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001ca950: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001ca960: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001ca970: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +001caa00: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +001caa10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Co │ │ │ +001ca600: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001ca630: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001ca650: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001ca660: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001ca680: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001ca690: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +001ca980: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001ca990: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +001ca9d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001ca9e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +001caa30: 2072 656d 6f76 655f 7466 7470 642d 6870 remove_tftpd-hp │ │ │ +001caa40: 610a 0a63 6c61 7373 2072 656d 6f76 655f a..class remove_ │ │ │ +001caa50: 7466 7470 642d 6870 6120 7b0a 2020 7061 tftpd-hpa {. pa │ │ │ +001caa60: 636b 6167 6520 7b20 2774 6674 7064 2d68 ckage { 'tftpd-h │ │ │ +001caa70: 7061 273a 0a20 2020 2065 6e73 7572 6520 pa':. ensure │ │ │ +001caa80: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +001caa90: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation P │ │ │ -001cba90: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -001cbaa0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -001cbb20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001cbb40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001cbb90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001cbbc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -001cbbe0: 655f 7466 7470 0a0a 636c 6173 7320 7265  e_tftp..class re
│ │ │ -001cbbf0: 6d6f 7665 5f74 6674 7020 7b0a 2020 7061  move_tftp {.  pa
│ │ │ -001cbc00: 636b 6167 6520 7b20 2774 6674 7027 3a0a  ckage { 'tftp':.
│ │ │ -001cbc10: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -001cbc20: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -001cbc30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001cbcf0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001cbd00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -001cbb50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001cbb60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001cbba0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001cbbb0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -001cbdd0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001cbde0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ -001cbe40: 2074 6674 7020 4461 656d 6f6e 3a20 456e   tftp Daemon: En
│ │ │ -001cbe50: 7375 7265 2074 6674 7020 6973 2072 656d  sure tftp is rem
│ │ │ -001cbe60: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -001cbe70: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -001cbe80: 0a20 2020 206e 616d 653a 2074 6674 700a  .    name: tftp.
│ │ │ -001cbe90: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -001cbea0: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -001cbeb0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -001cbec0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -001cbed0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -001cbee0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -001cbef0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001cbf00: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -001cbf10: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -001cbf20: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001cbf30: 0a20 202d 2070 6163 6b61 6765 5f74 6674  .  - package_tft
│ │ │ -001cbf40: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.Remediation A
│ │ │ +001cba90: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +001cbaa0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -001cbdb0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001cbdc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001cbe00: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001cbe10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +001cbb20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001cbb40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001cbb90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +001cbbc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +001cbb30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001cbb50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001cbba0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +001cbbb0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ +001cbbe0: 7665 2074 6674 7020 4461 656d 6f6e 3a20  ve tftp Daemon: 
│ │ │ +001cbbf0: 456e 7375 7265 2074 6674 7020 6973 2072  Ensure tftp is r
│ │ │ +001cbc00: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +001cbc10: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +001cbc20: 653a 0a20 2020 206e 616d 653a 2074 6674  e:.    name: tft
│ │ │ +001cbc30: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ +001cbc40: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +001cbc50: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +001cbc60: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +001cbc70: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +001cbc80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +001cbc90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +001cbca0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +001cbcb0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +001cbcc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001cbcd0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +001cbce0: 6674 705f 7265 6d6f 7665 640a 3c2f 636f  ftp_removed.
< │ │ │ +001cbd00: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +001cbd10: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +001cbd20: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001cbd30: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +001cbd40: 6436 3030 2220 7461 6269 6e64 6578 3d22 d600" tabindex=" │ │ │ +001cbd50: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +001cbd60: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +001cbd70: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +001cbd80: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +001cbd90: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +001cbda0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +001cbdb0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +001cbe40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001cbe50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +001cbe70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +001cbe90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +001cbea0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +001cbee0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +001cbef0: 7564 6520 7265 6d6f 7665 5f74 6674 700a  ude remove_tftp.
│ │ │ +001cbf00: 0a63 6c61 7373 2072 656d 6f76 655f 7466  .class remove_tf
│ │ │ +001cbf10: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ +001cbf20: 2027 7466 7470 273a 0a20 2020 2065 6e73   'tftp':.    ens
│ │ │ +001cbf30: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +001cbf40: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediatio │ │ │ -001da670: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -001da680: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
...includ
│ │ │ -001da6d0: 6520 7373 685f 7072 6976 6174 655f 6b65  e ssh_private_ke
│ │ │ -001da6e0: 795f 7065 726d 730a 0a63 6c61 7373 2073  y_perms..class s
│ │ │ -001da6f0: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ -001da700: 6572 6d73 207b 0a20 2065 7865 6320 7b20  erms {.  exec { 
│ │ │ -001da710: 2773 7368 645f 7072 6976 5f6b 6579 273a  'sshd_priv_key':
│ │ │ -001da720: 0a20 2020 2063 6f6d 6d61 6e64 203d 2667  .    command =&g
│ │ │ -001da730: 743b 2022 6368 6d6f 6420 3036 3030 202f  t; "chmod 0600 /
│ │ │ -001da740: 6574 632f 7373 682f 2a5f 6b65 7922 2c0a  etc/ssh/*_key",.
│ │ │ -001da750: 2020 2020 7061 7468 2020 2020 3d26 6774      path    =>
│ │ │ -001da760: 3b20 272f 6269 6e3a 2f75 7372 2f62 696e  ; '/bin:/usr/bin
│ │ │ -001da770: 270a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  '.  }.}.<
│ │ │ -001da780: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -001da830: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -001da840: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001da850: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001da860: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001da870: 7365 2220 6964 3d22 6964 3632 3822 3e3c se" id="id628">< │ │ │ -001da880: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001da890: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001da8a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001da8b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001da8c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -001da8d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001da8e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -001da920: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001da930: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -001da950: 3c74 643e 636f 6e66 6967 7572 653c 2f74 configure< │ │ │ -001da970: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001da980: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001da990: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -001da9a0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -001da9b0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -001da9c0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001da9d0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ -001da9e0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -001da9f0: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ -001daa00: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ -001daa10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001daa20: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ -001daa30: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -001daa40: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -001daa50: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ -001daa60: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -001daa70: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ -001daa80: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ -001daa90: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ -001daaa0: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ -001daab0: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ -001daac0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001daad0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001daae0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001daaf0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001dab00: 5f6e 6565 6465 640a 0a2d 206e 616d 653a _needed..- name: │ │ │ -001dab10: 2046 696e 6420 726f 6f74 3a72 6f6f 742d Find root:root- │ │ │ -001dab20: 6f77 6e65 6420 6b65 7973 0a20 2061 6e73 owned keys. ans │ │ │ -001dab30: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -001dab40: 6d61 6e64 3a20 6669 6e64 202d 4820 2f65 mand: find -H /e │ │ │ -001dab50: 7463 2f73 7368 2f20 2d6d 6178 6465 7074 tc/ssh/ -maxdept │ │ │ -001dab60: 6820 3120 2d75 7365 7220 726f 6f74 202d h 1 -user root - │ │ │ -001dab70: 7265 6765 7820 222e 2a5f 6b65 7924 220a regex ".*_key$". │ │ │ -001dab80: 2020 2020 2d74 7970 6520 6620 2d67 726f -type f -gro │ │ │ -001dab90: 7570 2072 6f6f 7420 2d70 6572 6d20 2f75 up root -perm /u │ │ │ -001daba0: 2b78 732c 672b 7877 7273 2c6f 2b78 7772 +xs,g+xwrs,o+xwr │ │ │ -001dabb0: 740a 2020 7265 6769 7374 6572 3a20 726f t. register: ro │ │ │ -001dabc0: 6f74 5f6f 776e 6564 5f6b 6579 730a 2020 ot_owned_keys. │ │ │ -001dabd0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -001dabe0: 6c73 650a 2020 6661 696c 6564 5f77 6865 lse. failed_whe │ │ │ -001dabf0: 6e3a 2066 616c 7365 0a20 2063 6865 636b n: false. check │ │ │ -001dac00: 5f6d 6f64 653a 2066 616c 7365 0a20 2077 _mode: false. w │ │ │ -001dac10: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -001dac20: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -001dac30: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ -001dac40: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001dac50: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ -001dac60: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -001dac70: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ -001dac80: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ -001dac90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001daca0: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ -001dacb0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -001dacc0: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -001dacd0: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ -001dace0: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -001dacf0: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ -001dad00: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ -001dad10: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ -001dad20: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ -001dad30: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ -001dad40: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001dad50: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001dad60: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001dad70: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001dad80: 5f6e 6565 6465 640a 0a2d 206e 616d 653a _needed..- name: │ │ │ -001dad90: 2053 6574 2070 6572 6d69 7373 696f 6e73 Set permissions │ │ │ -001dada0: 2066 6f72 2072 6f6f 743a 726f 6f74 2d6f for root:root-o │ │ │ -001dadb0: 776e 6564 206b 6579 730a 2020 616e 7369 wned keys. ansi │ │ │ -001dadc0: 626c 652e 6275 696c 7469 6e2e 6669 6c65 ble.builtin.file │ │ │ -001dadd0: 3a0a 2020 2020 7061 7468 3a20 277b 7b20 :. path: '{{ │ │ │ -001dade0: 6974 656d 207d 7d27 0a20 2020 206d 6f64 item }}'. mod │ │ │ -001dadf0: 653a 2075 2d78 732c 672d 7877 7273 2c6f e: u-xs,g-xwrs,o │ │ │ -001dae00: 2d78 7772 740a 2020 2020 7374 6174 653a -xwrt. state: │ │ │ -001dae10: 2066 696c 650a 2020 7769 7468 5f69 7465 file. with_ite │ │ │ -001dae20: 6d73 3a0a 2020 2d20 277b 7b20 726f 6f74 ms:. - '{{ root │ │ │ -001dae30: 5f6f 776e 6564 5f6b 6579 732e 7374 646f _owned_keys.stdo │ │ │ -001dae40: 7574 5f6c 696e 6573 207d 7d27 0a20 2077 ut_lines }}'. w │ │ │ -001dae50: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -001dae60: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -001dae70: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ -001dae80: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001dae90: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ -001daea0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -001daeb0: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ -001daec0: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ -001daed0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001daee0: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ -001daef0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -001daf00: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -001daf10: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ -001daf20: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -001daf30: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ -001daf40: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ -001daf50: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ -001daf60: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ -001daf70: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ -001daf80: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001daf90: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001dafa0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001dafb0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001dafc0: 5f6e 6565 6465 640a 3c2f 636f 6465 3e3c _needed.< │ │ │ +001da670: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +001da680: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +001da700: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001da710: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001da730: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001da740: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001da760: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +001da780: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ +001da7a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +001da7c0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +001da7d0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +001da7e0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +001da7f0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +001da800: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +001da810: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +001da820: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +001da830: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +001da840: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +001da850: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +001da860: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +001da870: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +001da880: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +001da890: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +001da8a0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +001da8b0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +001da8c0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +001da8d0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +001da8e0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +001da8f0: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +001da900: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +001da910: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +001da920: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +001da930: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +001da940: 6565 6465 640a 0a2d 206e 616d 653a 2046 eeded..- name: F │ │ │ +001da950: 696e 6420 726f 6f74 3a72 6f6f 742d 6f77 ind root:root-ow │ │ │ +001da960: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ +001da970: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +001da980: 6e64 3a20 6669 6e64 202d 4820 2f65 7463 nd: find -H /etc │ │ │ +001da990: 2f73 7368 2f20 2d6d 6178 6465 7074 6820 /ssh/ -maxdepth │ │ │ +001da9a0: 3120 2d75 7365 7220 726f 6f74 202d 7265 1 -user root -re │ │ │ +001da9b0: 6765 7820 222e 2a5f 6b65 7924 220a 2020 gex ".*_key$". │ │ │ +001da9c0: 2020 2d74 7970 6520 6620 2d67 726f 7570 -type f -group │ │ │ +001da9d0: 2072 6f6f 7420 2d70 6572 6d20 2f75 2b78 root -perm /u+x │ │ │ +001da9e0: 732c 672b 7877 7273 2c6f 2b78 7772 740a s,g+xwrs,o+xwrt. │ │ │ +001da9f0: 2020 7265 6769 7374 6572 3a20 726f 6f74 register: root │ │ │ +001daa00: 5f6f 776e 6564 5f6b 6579 730a 2020 6368 _owned_keys. ch │ │ │ +001daa10: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +001daa20: 650a 2020 6661 696c 6564 5f77 6865 6e3a e. failed_when: │ │ │ +001daa30: 2066 616c 7365 0a20 2063 6865 636b 5f6d false. check_m │ │ │ +001daa40: 6f64 653a 2066 616c 7365 0a20 2077 6865 ode: false. whe │ │ │ +001daa50: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +001daa60: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +001daa70: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +001daa80: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +001daa90: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +001daaa0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +001daab0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +001daac0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +001daad0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +001daae0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +001daaf0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +001dab00: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +001dab10: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +001dab20: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +001dab30: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +001dab40: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +001dab50: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +001dab60: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +001dab70: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +001dab80: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +001dab90: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +001daba0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +001dabb0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +001dabc0: 6565 6465 640a 0a2d 206e 616d 653a 2053 eeded..- name: S │ │ │ +001dabd0: 6574 2070 6572 6d69 7373 696f 6e73 2066 et permissions f │ │ │ +001dabe0: 6f72 2072 6f6f 743a 726f 6f74 2d6f 776e or root:root-own │ │ │ +001dabf0: 6564 206b 6579 730a 2020 616e 7369 626c ed keys. ansibl │ │ │ +001dac00: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a e.builtin.file:. │ │ │ +001dac10: 2020 2020 7061 7468 3a20 277b 7b20 6974 path: '{{ it │ │ │ +001dac20: 656d 207d 7d27 0a20 2020 206d 6f64 653a em }}'. mode: │ │ │ +001dac30: 2075 2d78 732c 672d 7877 7273 2c6f 2d78 u-xs,g-xwrs,o-x │ │ │ +001dac40: 7772 740a 2020 2020 7374 6174 653a 2066 wrt. state: f │ │ │ +001dac50: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ +001dac60: 3a0a 2020 2d20 277b 7b20 726f 6f74 5f6f :. - '{{ root_o │ │ │ +001dac70: 776e 6564 5f6b 6579 732e 7374 646f 7574 wned_keys.stdout │ │ │ +001dac80: 5f6c 696e 6573 207d 7d27 0a20 2077 6865 _lines }}'. whe │ │ │ +001dac90: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +001daca0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +001dacb0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +001dacc0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +001dacd0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +001dace0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +001dacf0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +001dad00: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +001dad10: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +001dad20: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +001dad30: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +001dad40: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +001dad50: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +001dad60: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +001dad70: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +001dad80: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +001dad90: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +001dada0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +001dadb0: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +001dadc0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +001dadd0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +001dade0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +001dadf0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +001dae00: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70 eeded.

Remediatio │ │ │ +001daec0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +001daed0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
...includ
│ │ │ +001daf20: 6520 7373 685f 7072 6976 6174 655f 6b65  e ssh_private_ke
│ │ │ +001daf30: 795f 7065 726d 730a 0a63 6c61 7373 2073  y_perms..class s
│ │ │ +001daf40: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ +001daf50: 6572 6d73 207b 0a20 2065 7865 6320 7b20  erms {.  exec { 
│ │ │ +001daf60: 2773 7368 645f 7072 6976 5f6b 6579 273a  'sshd_priv_key':
│ │ │ +001daf70: 0a20 2020 2063 6f6d 6d61 6e64 203d 2667  .    command =&g
│ │ │ +001daf80: 743b 2022 6368 6d6f 6420 3036 3030 202f  t; "chmod 0600 /
│ │ │ +001daf90: 6574 632f 7373 682f 2a5f 6b65 7922 2c0a  etc/ssh/*_key",.
│ │ │ +001dafa0: 2020 2020 7061 7468 2020 2020 3d26 6774      path    =>
│ │ │ +001dafb0: 3b20 272f 6269 6e3a 2f75 7372 2f62 696e  ; '/bin:/usr/bin
│ │ │ +001dafc0: 270a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  '.  }.}.<
│ │ │  001dafd0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -001dc420: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -001dc430: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001dc440: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
in
│ │ │ -001dc480: 636c 7564 6520 7373 685f 7075 626c 6963  clude ssh_public
│ │ │ -001dc490: 5f6b 6579 5f70 6572 6d73 0a0a 636c 6173  _key_perms..clas
│ │ │ -001dc4a0: 7320 7373 685f 7075 626c 6963 5f6b 6579  s ssh_public_key
│ │ │ -001dc4b0: 5f70 6572 6d73 207b 0a20 2065 7865 6320  _perms {.  exec 
│ │ │ -001dc4c0: 7b20 2773 7368 645f 7075 625f 6b65 7927  { 'sshd_pub_key'
│ │ │ -001dc4d0: 3a0a 2020 2020 636f 6d6d 616e 6420 3d26  :.    command =&
│ │ │ -001dc4e0: 6774 3b20 2263 686d 6f64 2030 3634 3420  gt; "chmod 0644 
│ │ │ -001dc4f0: 2f65 7463 2f73 7368 2f2a 2e70 7562 222c  /etc/ssh/*.pub",
│ │ │ -001dc500: 0a20 2020 2070 6174 6820 2020 203d 2667  .    path    =&g
│ │ │ -001dc510: 743b 2027 2f62 696e 3a2f 7573 722f 6269  t; '/bin:/usr/bi
│ │ │ -001dc520: 6e27 0a20 207d 0a7d 0a3c 2f63 6f64 653e  n'.  }.}.
│ │ │ -001dc530: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -001dc5e0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -001dc5f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001dc600: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001dc630: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -001dc6a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001dc6c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001dc6f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001dc680: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001dc690: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001dc6d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001dc6e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
configure
│ │ │ -001dc720: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -001dc730: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -001dc740: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -001dc750: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -001dc760: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -001dc770: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -001dc780: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ -001dc790: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -001dc7a0: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ -001dc7b0: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ -001dc7c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001dc7d0: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ -001dc7e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -001dc7f0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -001dc800: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ -001dc810: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -001dc820: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -001dc830: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ -001dc840: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ -001dc850: 6d69 7373 696f 6e73 5f73 7368 645f 7075  missions_sshd_pu
│ │ │ -001dc860: 625f 6b65 790a 2020 2d20 6c6f 775f 636f  b_key.  - low_co
│ │ │ -001dc870: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -001dc880: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001dc890: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001dc8a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001dc8b0: 6564 6564 0a0a 2d20 6e61 6d65 3a20 4669  eded..- name: Fi
│ │ │ -001dc8c0: 6e64 202f 6574 632f 7373 682f 2066 696c  nd /etc/ssh/ fil
│ │ │ -001dc8d0: 6528 7329 0a20 2061 6e73 6962 6c65 2e62  e(s).  ansible.b
│ │ │ -001dc8e0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -001dc8f0: 6669 6e64 202d 5020 2f65 7463 2f73 7368  find -P /etc/ssh
│ │ │ -001dc900: 2f20 2d6d 6178 6465 7074 6820 3120 2d70  / -maxdepth 1 -p
│ │ │ -001dc910: 6572 6d20 2f75 2b78 732c 672b 7877 732c  erm /u+xs,g+xws,
│ │ │ -001dc920: 6f2b 7877 7420 202d 7479 7065 0a20 2020  o+xwt  -type.   
│ │ │ -001dc930: 2066 202d 7265 6765 7874 7970 6520 706f   f -regextype po
│ │ │ -001dc940: 7369 782d 6578 7465 6e64 6564 202d 7265  six-extended -re
│ │ │ -001dc950: 6765 7820 225e 2e2a 5c2e 7075 6224 220a  gex "^.*\.pub$".
│ │ │ -001dc960: 2020 7265 6769 7374 6572 3a20 6669 6c65    register: file
│ │ │ -001dc970: 735f 666f 756e 640a 2020 6368 616e 6765  s_found.  change
│ │ │ -001dc980: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -001dc990: 6661 696c 6564 5f77 6865 6e3a 2066 616c  failed_when: fal
│ │ │ -001dc9a0: 7365 0a20 2063 6865 636b 5f6d 6f64 653a  se.  check_mode:
│ │ │ -001dc9b0: 2066 616c 7365 0a20 2077 6865 6e3a 2027   false.  when: '
│ │ │ -001dc9c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -001dc9d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -001dc9e0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -001dc9f0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -001dca00: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354  -3.1.13.  - NIST
│ │ │ -001dca10: 2d38 3030 2d31 3731 2d33 2e31 332e 3130  -800-171-3.13.10
│ │ │ -001dca20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001dca30: 2d41 432d 3137 2861 290a 2020 2d20 4e49  -AC-17(a).  - NI
│ │ │ -001dca40: 5354 2d38 3030 2d35 332d 4143 2d36 2831  ST-800-53-AC-6(1
│ │ │ -001dca50: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001dca60: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -001dca70: 492d 4453 532d 5265 712d 322e 322e 340a  I-DSS-Req-2.2.4.
│ │ │ -001dca80: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -001dca90: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -001dcaa0: 322e 322e 360a 2020 2d20 636f 6e66 6967  2.2.6.  - config
│ │ │ -001dcab0: 7572 655f 7374 7261 7465 6779 0a20 202d  ure_strategy.  -
│ │ │ -001dcac0: 2066 696c 655f 7065 726d 6973 7369 6f6e   file_permission
│ │ │ -001dcad0: 735f 7373 6864 5f70 7562 5f6b 6579 0a20  s_sshd_pub_key. 
│ │ │ -001dcae0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001dcaf0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001dcb00: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -001dcb10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -001dcb20: 7265 626f 6f74 5f6e 6565 6465 640a 0a2d  reboot_needed..-
│ │ │ -001dcb30: 206e 616d 653a 2053 6574 2070 6572 6d69   name: Set permi
│ │ │ -001dcb40: 7373 696f 6e73 2066 6f72 202f 6574 632f  ssions for /etc/
│ │ │ -001dcb50: 7373 682f 2066 696c 6528 7329 0a20 2061  ssh/ file(s).  a
│ │ │ -001dcb60: 6e73 6962 6c65 2e62 7569 6c74 696e 2e66  nsible.builtin.f
│ │ │ -001dcb70: 696c 653a 0a20 2020 2070 6174 683a 2027  ile:.    path: '
│ │ │ -001dcb80: 7b7b 2069 7465 6d20 7d7d 270a 2020 2020  {{ item }}'.    
│ │ │ -001dcb90: 6d6f 6465 3a20 752d 7873 2c67 2d78 7773  mode: u-xs,g-xws
│ │ │ -001dcba0: 2c6f 2d78 7774 0a20 2020 2073 7461 7465  ,o-xwt.    state
│ │ │ -001dcbb0: 3a20 6669 6c65 0a20 2077 6974 685f 6974  : file.  with_it
│ │ │ -001dcbc0: 656d 733a 0a20 202d 2027 7b7b 2066 696c  ems:.  - '{{ fil
│ │ │ -001dcbd0: 6573 5f66 6f75 6e64 2e73 7464 6f75 745f  es_found.stdout_
│ │ │ -001dcbe0: 6c69 6e65 7320 7d7d 270a 2020 7768 656e  lines }}'.  when
│ │ │ -001dcbf0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -001dcc00: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -001dcc10: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -001dcc20: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -001dcc30: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ -001dcc40: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ -001dcc50: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ -001dcc60: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ -001dcc70: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -001dcc80: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ -001dcc90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -001dcca0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ -001dccb0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -001dccc0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -001dccd0: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ -001dcce0: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ -001dccf0: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ -001dcd00: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ -001dcd10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001dcd20: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001dcd30: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -001dcd40: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -001dcd50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001dc420: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +001dc430: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +001dc440: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +001dc4e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001dc530: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
-
│ │ │ +001dc570: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +001dc580: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +001dc590: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +001dc5a0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +001dc5b0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +001dc5c0: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ +001dc5d0: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ +001dc5e0: 3137 312d 332e 3133 2e31 300a 2020 2d20  171-3.13.10.  - 
│ │ │ +001dc5f0: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ +001dc600: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +001dc610: 302d 3533 2d41 432d 3628 3129 0a20 202d  0-53-AC-6(1).  -
│ │ │ +001dc620: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +001dc630: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +001dc640: 2d52 6571 2d32 2e32 2e34 0a20 202d 2050  -Req-2.2.4.  - P
│ │ │ +001dc650: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +001dc660: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +001dc670: 0a20 202d 2063 6f6e 6669 6775 7265 5f73  .  - configure_s
│ │ │ +001dc680: 7472 6174 6567 790a 2020 2d20 6669 6c65  trategy.  - file
│ │ │ +001dc690: 5f70 6572 6d69 7373 696f 6e73 5f73 7368  _permissions_ssh
│ │ │ +001dc6a0: 645f 7075 625f 6b65 790a 2020 2d20 6c6f  d_pub_key.  - lo
│ │ │ +001dc6b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001dc6c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001dc6d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +001dc6e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001dc6f0: 745f 6e65 6564 6564 0a0a 2d20 6e61 6d65  t_needed..- name
│ │ │ +001dc700: 3a20 4669 6e64 202f 6574 632f 7373 682f  : Find /etc/ssh/
│ │ │ +001dc710: 2066 696c 6528 7329 0a20 2061 6e73 6962   file(s).  ansib
│ │ │ +001dc720: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +001dc730: 6e64 3a20 6669 6e64 202d 5020 2f65 7463  nd: find -P /etc
│ │ │ +001dc740: 2f73 7368 2f20 2d6d 6178 6465 7074 6820  /ssh/ -maxdepth 
│ │ │ +001dc750: 3120 2d70 6572 6d20 2f75 2b78 732c 672b  1 -perm /u+xs,g+
│ │ │ +001dc760: 7877 732c 6f2b 7877 7420 202d 7479 7065  xws,o+xwt  -type
│ │ │ +001dc770: 0a20 2020 2066 202d 7265 6765 7874 7970  .    f -regextyp
│ │ │ +001dc780: 6520 706f 7369 782d 6578 7465 6e64 6564  e posix-extended
│ │ │ +001dc790: 202d 7265 6765 7820 225e 2e2a 5c2e 7075   -regex "^.*\.pu
│ │ │ +001dc7a0: 6224 220a 2020 7265 6769 7374 6572 3a20  b$".  register: 
│ │ │ +001dc7b0: 6669 6c65 735f 666f 756e 640a 2020 6368  files_found.  ch
│ │ │ +001dc7c0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +001dc7d0: 650a 2020 6661 696c 6564 5f77 6865 6e3a  e.  failed_when:
│ │ │ +001dc7e0: 2066 616c 7365 0a20 2063 6865 636b 5f6d   false.  check_m
│ │ │ +001dc7f0: 6f64 653a 2066 616c 7365 0a20 2077 6865  ode: false.  whe
│ │ │ +001dc800: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +001dc810: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +001dc820: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +001dc830: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +001dc840: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ +001dc850: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +001dc860: 332e 3130 0a20 202d 204e 4953 542d 3830  3.10.  - NIST-80
│ │ │ +001dc870: 302d 3533 2d41 432d 3137 2861 290a 2020  0-53-AC-17(a).  
│ │ │ +001dc880: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +001dc890: 2d36 2831 290a 2020 2d20 4e49 5354 2d38  -6(1).  - NIST-8
│ │ │ +001dc8a0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +001dc8b0: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ +001dc8c0: 322e 340a 2020 2d20 5043 492d 4453 5376  2.4.  - PCI-DSSv
│ │ │ +001dc8d0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +001dc8e0: 5376 342d 322e 322e 360a 2020 2d20 636f  Sv4-2.2.6.  - co
│ │ │ +001dc8f0: 6e66 6967 7572 655f 7374 7261 7465 6779  nfigure_strategy
│ │ │ +001dc900: 0a20 202d 2066 696c 655f 7065 726d 6973  .  - file_permis
│ │ │ +001dc910: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b  sions_sshd_pub_k
│ │ │ +001dc920: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ +001dc930: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +001dc940: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +001dc950: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +001dc960: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001dc970: 640a 0a2d 206e 616d 653a 2053 6574 2070  d..- name: Set p
│ │ │ +001dc980: 6572 6d69 7373 696f 6e73 2066 6f72 202f  ermissions for /
│ │ │ +001dc990: 6574 632f 7373 682f 2066 696c 6528 7329  etc/ssh/ file(s)
│ │ │ +001dc9a0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +001dc9b0: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ +001dc9c0: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ +001dc9d0: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ +001dc9e0: 2d78 7773 2c6f 2d78 7774 0a20 2020 2073  -xws,o-xwt.    s
│ │ │ +001dc9f0: 7461 7465 3a20 6669 6c65 0a20 2077 6974  tate: file.  wit
│ │ │ +001dca00: 685f 6974 656d 733a 0a20 202d 2027 7b7b  h_items:.  - '{{
│ │ │ +001dca10: 2066 696c 6573 5f66 6f75 6e64 2e73 7464   files_found.std
│ │ │ +001dca20: 6f75 745f 6c69 6e65 7320 7d7d 270a 2020  out_lines }}'.  
│ │ │ +001dca30: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +001dca40: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +001dca50: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +001dca60: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +001dca70: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +001dca80: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +001dca90: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +001dcaa0: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +001dcab0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001dcac0: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +001dcad0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001dcae0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001dcaf0: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +001dcb00: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +001dcb10: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +001dcb20: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +001dcb30: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +001dcb40: 6d69 7373 696f 6e73 5f73 7368 645f 7075  missions_sshd_pu
│ │ │ +001dcb50: 625f 6b65 790a 2020 2d20 6c6f 775f 636f  b_key.  - low_co
│ │ │ +001dcb60: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001dcb70: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001dcb80: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +001dcb90: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +001dcba0: 6564 6564 0a3c 2f63 6f64 653e 3c2f 7072  eded.Remediation
│ │ │ +001dcc60: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +001dcc70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
│ │ │ +001dccb0: 3c63 6f64 653e 696e 636c 7564 6520 7373  include ss
│ │ │ +001dccc0: 685f 7075 626c 6963 5f6b 6579 5f70 6572  h_public_key_per
│ │ │ +001dccd0: 6d73 0a0a 636c 6173 7320 7373 685f 7075  ms..class ssh_pu
│ │ │ +001dcce0: 626c 6963 5f6b 6579 5f70 6572 6d73 207b  blic_key_perms {
│ │ │ +001dccf0: 0a20 2065 7865 6320 7b20 2773 7368 645f  .  exec { 'sshd_
│ │ │ +001dcd00: 7075 625f 6b65 7927 3a0a 2020 2020 636f  pub_key':.    co
│ │ │ +001dcd10: 6d6d 616e 6420 3d26 6774 3b20 2263 686d  mmand => "chm
│ │ │ +001dcd20: 6f64 2030 3634 3420 2f65 7463 2f73 7368  od 0644 /etc/ssh
│ │ │ +001dcd30: 2f2a 2e70 7562 222c 0a20 2020 2070 6174  /*.pub",.    pat
│ │ │ +001dcd40: 6820 2020 203d 2667 743b 2027 2f62 696e  h    => '/bin
│ │ │ +001dcd50: 3a2f 7573 722f 6269 6e27 0a20 207d 0a7d  :/usr/bin'.  }.}
│ │ │  001dcd60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -001e03d0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -001e03e0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -001e03f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -001e0430: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -001e0440: 735d 5d0a 6e61 6d65 203d 2022 7373 7364  s]].name = "sssd
│ │ │ -001e0450: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -001e0460: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001e0510: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -001e0520: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Co │ │ │ +001dc4c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001dc4f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001dc510: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001dc520: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001dc540: 3c2f 7468 3e3c 7464 3e63 6f6e 6669 6775 configu │ │ │ +001dc550: 7265 3c2f 7464 3e3c 2f74 723e 3c2f 7461 re
│ │ │ -001e05c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -001e0660: 636c 7564 6520 696e 7374 616c 6c5f 7373  clude install_ss
│ │ │ -001e0670: 7364 0a0a 636c 6173 7320 696e 7374 616c  sd..class instal
│ │ │ -001e0680: 6c5f 7373 7364 207b 0a20 2070 6163 6b61  l_sssd {.  packa
│ │ │ -001e0690: 6765 207b 2027 7373 7364 273a 0a20 2020  ge { 'sssd':.   
│ │ │ -001e06a0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -001e06b0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -001e06c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001e0780: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001e0790: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ -001e05b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001e05e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001e05f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -001e0630: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -001e0640: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -001e0860: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001e0870: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -001e08c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -001e08d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -001e08e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -001e08f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -001e0900: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -001e0910: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -001e0920: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -001e0930: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001e0940: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001e0950: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001e0960: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001e0970: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -001e0980: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -001e0990: 6765 5f73 7373 645f 696e 7374 616c 6c65  ge_sssd_installe
│ │ │ -001e09a0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -001e09b0: 6520 7373 7364 2069 7320 696e 7374 616c  e sssd is instal
│ │ │ -001e09c0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -001e09d0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -001e09e0: 2020 206e 616d 653a 2073 7373 640a 2020     name: sssd.  
│ │ │ -001e09f0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -001e0a00: 0a20 2077 6865 6e3a 2027 2273 7373 642d  .  when: '"sssd-
│ │ │ -001e0a10: 636f 6d6d 6f6e 2220 696e 2061 6e73 6962  common" in ansib
│ │ │ -001e0a20: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -001e0a30: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -001e0a40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -001e0a50: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -001e0a60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -001e0a70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -001e0a80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -001e0a90: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -001e0aa0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -001e0ab0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -001e0ac0: 655f 7373 7364 5f69 6e73 7461 6c6c 6564  e_sssd_installed
│ │ │ +001e03d0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +001e03e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
low
Disru │ │ │ -001e0840: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001e0850: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001e0890: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -001e08a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +001e0490: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +001e04b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001e04e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001e0470: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +001e0480: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +001e04a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +001e04c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001e04d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +001e0520: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +001e0530: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +001e0540: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +001e0550: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +001e0560: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +001e0570: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +001e0580: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +001e0590: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +001e05a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +001e05b0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +001e05c0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +001e05d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +001e05e0: 2020 2d20 7061 636b 6167 655f 7373 7364 - package_sssd │ │ │ +001e05f0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61 _installed..- na │ │ │ +001e0600: 6d65 3a20 456e 7375 7265 2073 7373 6420 me: Ensure sssd │ │ │ +001e0610: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ +001e0620: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +001e0630: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +001e0640: 3a20 7373 7364 0a20 2020 2073 7461 7465 : sssd. state │ │ │ +001e0650: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ +001e0660: 3a20 2722 7373 7364 2d63 6f6d 6d6f 6e22 : '"sssd-common" │ │ │ +001e0670: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +001e0680: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +001e0690: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +001e06a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +001e06b0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +001e06c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +001e06d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +001e06e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +001e06f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +001e0700: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +001e0710: 202d 2070 6163 6b61 6765 5f73 7373 645f - package_sssd_ │ │ │ +001e0720: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.

Remedi │ │ │ +001e07e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +001e07f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001e0800: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001e0830: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001e08a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001e08c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001e08f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +001e0910: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +001e0880: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001e0890: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001e08d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001e08e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +001e0930: 696e 7374 616c 6c5f 7373 7364 0a0a 636c install_sssd..cl │ │ │ +001e0940: 6173 7320 696e 7374 616c 6c5f 7373 7364 ass install_sssd │ │ │ +001e0950: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +001e0960: 7373 7364 273a 0a20 2020 2065 6e73 7572 sssd':. ensur │ │ │ +001e0970: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +001e0980: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +001e0a40: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +001e0a50: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +001e0a60: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +001e0ab0: 6573 5d5d 0a6e 616d 6520 3d20 2273 7373  es]].name = "sss
│ │ │ +001e0ac0: 6422 0a76 6572 7369 6f6e 203d 2022 2a22  d".version = "*"
│ │ │  001e0ad0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedia │ │ │ -001e1d00: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -001e1d10: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -001e1d20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -001e1d60: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -001e1d70: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -001e1d80: 656e 6162 6c65 6420 3d20 5b22 7373 7364  enabled = ["sssd
│ │ │ -001e1d90: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -001e1da0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -001e1e50: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -001e1e60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -001e1ee0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001e1f00: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001e1f50: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -001e1fa0: 7373 7364 0a0a 636c 6173 7320 656e 6162  sssd..class enab
│ │ │ -001e1fb0: 6c65 5f73 7373 6420 7b0a 2020 7365 7276  le_sssd {.  serv
│ │ │ -001e1fc0: 6963 6520 7b27 7373 7364 273a 0a20 2020  ice {'sssd':.   
│ │ │ -001e1fd0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -001e1fe0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -001e1ff0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -001e2000: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -001e20c0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -001e20d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001e2150: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -001e2190: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disr │ │ │ -001e1f10: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001e1f20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001e1f60: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -001e1f70: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -001e2160: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -001e2180: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -001e21b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -001e21d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -001e2200: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -001e2210: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -001e2220: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -001e2230: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -001e2240: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -001e2250: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001e2260: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -001e2270: 542d 3830 302d 3533 2d49 412d 3528 3130  T-800-53-IA-5(10
│ │ │ -001e2280: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -001e2290: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -001e22a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -001e22b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001e22c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001e22d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001e22e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -001e22f0: 5f73 7373 645f 656e 6162 6c65 640a 0a2d  _sssd_enabled..-
│ │ │ -001e2300: 206e 616d 653a 2045 6e61 626c 6520 7468   name: Enable th
│ │ │ -001e2310: 6520 5353 5344 2053 6572 7669 6365 202d  e SSSD Service -
│ │ │ -001e2320: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -001e2330: 7373 7364 0a20 2062 6c6f 636b 3a0a 0a20  sssd.  block:.. 
│ │ │ -001e2340: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -001e2350: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -001e2360: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -001e2370: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -001e2380: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -001e2390: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -001e23a0: 6d65 3a20 456e 6162 6c65 2074 6865 2053  me: Enable the S
│ │ │ -001e23b0: 5353 4420 5365 7276 6963 6520 2d20 456e  SSD Service - En
│ │ │ -001e23c0: 6162 6c65 2053 6572 7669 6365 2073 7373  able Service sss
│ │ │ -001e23d0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -001e23e0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -001e23f0: 2020 2020 206e 616d 653a 2073 7373 640a       name: sssd.
│ │ │ -001e2400: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ -001e2410: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ -001e2420: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ -001e2430: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ -001e2440: 2077 6865 6e3a 0a20 2020 202d 2027 2273   when:.    - '"s
│ │ │ -001e2450: 7373 642d 636f 6d6d 6f6e 2220 696e 2061  ssd-common" in a
│ │ │ -001e2460: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -001e2470: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -001e2480: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -001e2490: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -001e24a0: 3830 302d 3533 2d49 412d 3528 3130 290a  800-53-IA-5(10).
│ │ │ -001e24b0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -001e24c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -001e24d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -001e24e0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -001e24f0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -001e2500: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -001e2510: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -001e2520: 7373 645f 656e 6162 6c65 640a 2020 2d20  ssd_enabled.  - 
│ │ │ -001e2530: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -001e2540: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ -001e2550: 2d20 2722 7373 7364 2d63 6f6d 6d6f 6e22  - '"sssd-common"
│ │ │ -001e2560: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -001e2570: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ -001e2580: 2820 2273 7373 642d 636f 6d6d 6f6e 2220  ( "sssd-common" 
│ │ │ -001e2590: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -001e25a0: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ -001e25b0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -001e25c0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001e25d0: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
│ │ │ +001e1d20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001e1d50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001e1dc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001e1de0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001e1e10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +001e1e30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +001e1da0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001e1db0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001e1df0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001e1e00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +001e1e50: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +001e1e60: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +001e1e70: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +001e1e80: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +001e1e90: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +001e1ea0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +001e1eb0: 4e49 5354 2d38 3030 2d35 332d 4941 2d35 NIST-800-53-IA-5 │ │ │ +001e1ec0: 2831 3029 0a20 202d 2065 6e61 626c 655f (10). - enable_ │ │ │ +001e1ed0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +001e1ee0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +001e1ef0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +001e1f00: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +001e1f10: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +001e1f20: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +001e1f30: 6963 655f 7373 7364 5f65 6e61 626c 6564 ice_sssd_enabled │ │ │ +001e1f40: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65 ..- name: Enable │ │ │ +001e1f50: 2074 6865 2053 5353 4420 5365 7276 6963 the SSSD Servic │ │ │ +001e1f60: 6520 2d20 456e 6162 6c65 2073 6572 7669 e - Enable servi │ │ │ +001e1f70: 6365 2073 7373 640a 2020 626c 6f63 6b3a ce sssd. block: │ │ │ +001e1f80: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468 .. - name: Gath │ │ │ +001e1f90: 6572 2074 6865 2070 6163 6b61 6765 2066 er the package f │ │ │ +001e1fa0: 6163 7473 0a20 2020 2061 6e73 6962 6c65 acts. ansible │ │ │ +001e1fb0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +001e1fc0: 5f66 6163 7473 3a0a 2020 2020 2020 6d61 _facts:. ma │ │ │ +001e1fd0: 6e61 6765 723a 2061 7574 6f0a 0a20 202d nager: auto.. - │ │ │ +001e1fe0: 206e 616d 653a 2045 6e61 626c 6520 7468 name: Enable th │ │ │ +001e1ff0: 6520 5353 5344 2053 6572 7669 6365 202d e SSSD Service - │ │ │ +001e2000: 2045 6e61 626c 6520 5365 7276 6963 6520 Enable Service │ │ │ +001e2010: 7373 7364 0a20 2020 2061 6e73 6962 6c65 sssd. ansible │ │ │ +001e2020: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ +001e2030: 3a0a 2020 2020 2020 6e61 6d65 3a20 7373 :. name: ss │ │ │ +001e2040: 7364 0a20 2020 2020 2065 6e61 626c 6564 sd. enabled │ │ │ +001e2050: 3a20 7472 7565 0a20 2020 2020 2073 7461 : true. sta │ │ │ +001e2060: 7465 3a20 7374 6172 7465 640a 2020 2020 te: started. │ │ │ +001e2070: 2020 6d61 736b 6564 3a20 6661 6c73 650a masked: false. │ │ │ +001e2080: 2020 2020 7768 656e 3a0a 2020 2020 2d20 when:. - │ │ │ +001e2090: 2722 7373 7364 2d63 6f6d 6d6f 6e22 2069 '"sssd-common" i │ │ │ +001e20a0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +001e20b0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +001e20c0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ +001e20d0: 332d 434d 2d36 2861 290a 2020 2d20 4e49 3-CM-6(a). - NI │ │ │ +001e20e0: 5354 2d38 3030 2d35 332d 4941 2d35 2831 ST-800-53-IA-5(1 │ │ │ +001e20f0: 3029 0a20 202d 2065 6e61 626c 655f 7374 0). - enable_st │ │ │ +001e2100: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +001e2110: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +001e2120: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +001e2130: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +001e2140: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +001e2150: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +001e2160: 655f 7373 7364 5f65 6e61 626c 6564 0a20 e_sssd_enabled. │ │ │ +001e2170: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ +001e2180: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ +001e2190: 0a20 202d 2027 2273 7373 642d 636f 6d6d . - '"sssd-comm │ │ │ +001e21a0: 6f6e 2220 696e 2061 6e73 6962 6c65 5f66 on" in ansible_f │ │ │ +001e21b0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +001e21c0: 202d 2028 2022 7373 7364 2d63 6f6d 6d6f - ( "sssd-commo │ │ │ +001e21d0: 6e22 2069 6e20 616e 7369 626c 655f 6661 n" in ansible_fa │ │ │ +001e21e0: 6374 732e 7061 636b 6167 6573 2061 6e64 cts.packages and │ │ │ +001e21f0: 2022 6c69 6e75 782d 6261 7365 2220 696e "linux-base" in │ │ │ +001e2200: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +001e2210: 6163 6b61 6765 730a 2020 2020 290a 3c2f ackages. ).
Re │ │ │ +001e22d0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001e22e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001e22f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +001e2390: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001e23e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001e2370: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001e23a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001e23c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001e23d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001e23f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +001e2400: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +001e2420: 7564 6520 656e 6162 6c65 5f73 7373 640a  ude enable_sssd.
│ │ │ +001e2430: 0a63 6c61 7373 2065 6e61 626c 655f 7373  .class enable_ss
│ │ │ +001e2440: 7364 207b 0a20 2073 6572 7669 6365 207b  sd {.  service {
│ │ │ +001e2450: 2773 7373 6427 3a0a 2020 2020 656e 6162  'sssd':.    enab
│ │ │ +001e2460: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +001e2470: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +001e2480: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +001e2490: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +001e2550: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +001e2560: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +001e25b0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +001e25c0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +001e25d0: 3d20 5b22 7373 7364 225d 0a3c 2f63 6f64  = ["sssd"].
│ │ │ -001ed450: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -001ed460: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -001ed470: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -001ed4c0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -001ed4d0: 2022 6175 6469 7464 220a 7665 7273 696f   "auditd".versio
│ │ │ -001ed4e0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -001ed4f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -001ed5a0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001ed5b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001ed630: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001ed640: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001ed650: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001ed690: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001ed6a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001ed6c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -001ed6e0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -001ed6f0: 7374 616c 6c5f 6175 6469 7464 0a0a 636c  stall_auditd..cl
│ │ │ -001ed700: 6173 7320 696e 7374 616c 6c5f 6175 6469  ass install_audi
│ │ │ -001ed710: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ -001ed720: 2027 6175 6469 7464 273a 0a20 2020 2065   'auditd':.    e
│ │ │ -001ed730: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -001ed740: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -001ed750: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -001ed800: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -001ed810: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -001ed8b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -001ed950: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -001ed960: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -001ed970: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -001ed980: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -001ed990: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -001ed9a0: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ -001ed9b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001ed9c0: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ -001ed9d0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ -001ed9e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001ed9f0: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ -001eda00: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ -001eda10: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001eda20: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ -001eda30: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -001eda40: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -001eda50: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ -001eda60: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ -001eda70: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ -001eda80: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -001eda90: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001edaa0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001edab0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -001edac0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -001edad0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001edae0: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ -001edaf0: 6974 5f69 6e73 7461 6c6c 6564 0a0a 2d20  it_installed..- 
│ │ │ -001edb00: 6e61 6d65 3a20 456e 7375 7265 2061 7564  name: Ensure aud
│ │ │ -001edb10: 6974 6420 6973 2069 6e73 7461 6c6c 6564  itd is installed
│ │ │ -001edb20: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -001edb30: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -001edb40: 6e61 6d65 3a20 6175 6469 7464 0a20 2020  name: auditd.   
│ │ │ -001edb50: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -001edb60: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -001edb70: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -001edb80: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -001edb90: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -001edba0: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ -001edbb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001edbc0: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ -001edbd0: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ -001edbe0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001edbf0: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ -001edc00: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ -001edc10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001edc20: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ -001edc30: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -001edc40: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -001edc50: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ -001edc60: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ -001edc70: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ -001edc80: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -001edc90: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001edca0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001edcb0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -001edcc0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -001edcd0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001edce0: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ -001edcf0: 745f 696e 7374 616c 6c65 640a 3c2f 636f  t_installed.
│ │ │ -001ed8a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001ed8d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001ed8e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -001ed920: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -001ed930: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +001ed540: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001ed550: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +001ed5a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +001ed5b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +001ed5c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +001ed5d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +001ed5e0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +001ed5f0: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ +001ed600: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001ed610: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ +001ed620: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +001ed630: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ +001ed640: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ +001ed650: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ +001ed660: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001ed670: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ +001ed680: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +001ed690: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +001ed6a0: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ +001ed6b0: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ +001ed6c0: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ +001ed6d0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +001ed6e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +001ed6f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +001ed700: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +001ed710: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +001ed720: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001ed730: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ +001ed740: 6469 745f 696e 7374 616c 6c65 640a 0a2d  dit_installed..-
│ │ │ +001ed750: 206e 616d 653a 2045 6e73 7572 6520 6175   name: Ensure au
│ │ │ +001ed760: 6469 7464 2069 7320 696e 7374 616c 6c65  ditd is installe
│ │ │ +001ed770: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +001ed780: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +001ed790: 206e 616d 653a 2061 7564 6974 640a 2020   name: auditd.  
│ │ │ +001ed7a0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +001ed7b0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +001ed7c0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +001ed7d0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +001ed7e0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +001ed7f0: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ +001ed800: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001ed810: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ +001ed820: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ +001ed830: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001ed840: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ +001ed850: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ +001ed860: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001ed870: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ +001ed880: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001ed890: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001ed8a0: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ +001ed8b0: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ +001ed8c0: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ +001ed8d0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +001ed8e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +001ed8f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +001ed900: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +001ed910: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +001ed920: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001ed930: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ +001ed940: 6974 5f69 6e73 7461 6c6c 6564 0a3c 2f63  it_installed.
│ │ │ +001ed960: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +001eda00: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +001eda10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001eda20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +001ed520: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001ed530: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001ed570: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +001ed580: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +001edaa0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001edad0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001edaf0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001edb00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001edb20: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +001edb40: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +001edb50: 6465 2069 6e73 7461 6c6c 5f61 7564 6974  de install_audit
│ │ │ +001edb60: 640a 0a63 6c61 7373 2069 6e73 7461 6c6c  d..class install
│ │ │ +001edb70: 5f61 7564 6974 6420 7b0a 2020 7061 636b  _auditd {.  pack
│ │ │ +001edb80: 6167 6520 7b20 2761 7564 6974 6427 3a0a  age { 'auditd':.
│ │ │ +001edb90: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +001edba0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +001edbb0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +001edc70: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +001edc80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +001edcd0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +001edce0: 6d65 203d 2022 6175 6469 7464 220a 7665  me = "auditd".ve
│ │ │ +001edcf0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 001edd10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 001edd20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 001edd30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 001edd40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 001edd50: 6436 3534 2220 7461 6269 6e64 6578 3d22 d654" tabindex=" │ │ │ 001edd60: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -126867,193 +126867,193 @@ │ │ │ 001ef920: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 001ef930: 6765 743d 2223 6964 3635 3622 2074 6162 get="#id656" tab │ │ │ 001ef940: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 001ef950: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 001ef960: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 001ef970: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 001ef980: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -001ef990: 2122 3e52 656d 6564 6961 7469 6f6e 204f !">Remediation O │ │ │ -001ef9a0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -001ef9b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -001ef9c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -001efa00: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -001efa10: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -001efa20: 6420 3d20 5b22 6175 6469 7464 225d 0a3c  d = ["auditd"].<
│ │ │ -001efa30: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -001efae0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -001efaf0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -001efb90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001efba0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001efbf0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -001efc30: 6c75 6465 2065 6e61 626c 655f 6175 6469  lude enable_audi
│ │ │ -001efc40: 7464 0a0a 636c 6173 7320 656e 6162 6c65  td..class enable
│ │ │ -001efc50: 5f61 7564 6974 6420 7b0a 2020 7365 7276  _auditd {.  serv
│ │ │ -001efc60: 6963 6520 7b27 6175 6469 7464 273a 0a20  ice {'auditd':. 
│ │ │ -001efc70: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -001efc80: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -001efc90: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -001efca0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -001efcb0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -001efd60: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -001efd70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -001efd80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001efd90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001efda0: 7365 2220 6964 3d22 6964 3635 3822 3e3c se" id="id658">< │ │ │ -001efdb0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001efdc0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001efdd0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001efde0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001efdf0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -001efe80: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -001efe90: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -001efb80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001efbb0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001efbc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001efc00: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -001efc10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ -001efe00: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001efe10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -001efe50: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001efe60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -001efeb0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -001efec0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -001efed0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -001efee0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -001efef0: 733a 0a20 202d 2043 4a49 532d 352e 342e  s:.  - CJIS-5.4.
│ │ │ -001eff00: 312e 310a 2020 2d20 4e49 5354 2d38 3030  1.1.  - NIST-800
│ │ │ -001eff10: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e  -171-3.3.1.  - N
│ │ │ -001eff20: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -001eff30: 320a 2020 2d20 4e49 5354 2d38 3030 2d31  2.  - NIST-800-1
│ │ │ -001eff40: 3731 2d33 2e33 2e36 0a20 202d 204e 4953  71-3.3.6.  - NIS
│ │ │ -001eff50: 542d 3830 302d 3533 2d41 432d 3228 6729  T-800-53-AC-2(g)
│ │ │ +001ef990: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +001ef9a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +001ef9b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +001efa30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001efa50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001efaa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +001efad0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +001efaf0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +001efb00: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +001efb10: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +001efb20: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +001efb30: 2d20 434a 4953 2d35 2e34 2e31 2e31 0a20  - CJIS-5.4.1.1. 
│ │ │ +001efb40: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +001efb50: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ +001efb60: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ +001efb70: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +001efb80: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ +001efb90: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ +001efba0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +001efbb0: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ +001efbc0: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ +001efbd0: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +001efbe0: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ +001efbf0: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ +001efc00: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ +001efc10: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ +001efc20: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ +001efc30: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001efc40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001efc50: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ +001efc60: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +001efc70: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +001efc80: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +001efc90: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +001efca0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001efcb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001efcc0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001efcd0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001efce0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001efcf0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001efd00: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ +001efd10: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ +001efd20: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ +001efd30: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +001efd40: 7669 6365 2061 7564 6974 640a 2020 626c  vice auditd.  bl
│ │ │ +001efd50: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +001efd60: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +001efd70: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +001efd80: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +001efd90: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +001efda0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +001efdb0: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +001efdc0: 6520 6175 6469 7464 2053 6572 7669 6365  e auditd Service
│ │ │ +001efdd0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +001efde0: 6520 6175 6469 7464 0a20 2020 2061 6e73  e auditd.    ans
│ │ │ +001efdf0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +001efe00: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +001efe10: 3a20 6175 6469 7464 0a20 2020 2020 2065  : auditd.      e
│ │ │ +001efe20: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +001efe30: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +001efe40: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +001efe50: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +001efe60: 2020 2020 2d20 2722 6175 6469 7464 2220      - '"auditd" 
│ │ │ +001efe70: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +001efe80: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +001efe90: 733a 0a20 202d 2043 4a49 532d 352e 342e  s:.  - CJIS-5.4.
│ │ │ +001efea0: 312e 310a 2020 2d20 4e49 5354 2d38 3030  1.1.  - NIST-800
│ │ │ +001efeb0: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e  -171-3.3.1.  - N
│ │ │ +001efec0: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +001efed0: 320a 2020 2d20 4e49 5354 2d38 3030 2d31  2.  - NIST-800-1
│ │ │ +001efee0: 3731 2d33 2e33 2e36 0a20 202d 204e 4953  71-3.3.6.  - NIS
│ │ │ +001efef0: 542d 3830 302d 3533 2d41 432d 3228 6729  T-800-53-AC-2(g)
│ │ │ +001eff00: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001eff10: 2d41 432d 3628 3929 0a20 202d 204e 4953  -AC-6(9).  - NIS
│ │ │ +001eff20: 542d 3830 302d 3533 2d41 552d 3130 0a20  T-800-53-AU-10. 
│ │ │ +001eff30: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +001eff40: 552d 3132 2863 290a 2020 2d20 4e49 5354  U-12(c).  - NIST
│ │ │ +001eff50: 2d38 3030 2d35 332d 4155 2d31 3428 3129  -800-53-AU-14(1)
│ │ │  001eff60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001eff70: 2d41 432d 3628 3929 0a20 202d 204e 4953  -AC-6(9).  - NIS
│ │ │ -001eff80: 542d 3830 302d 3533 2d41 552d 3130 0a20  T-800-53-AU-10. 
│ │ │ -001eff90: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -001effa0: 552d 3132 2863 290a 2020 2d20 4e49 5354  U-12(c).  - NIST
│ │ │ -001effb0: 2d38 3030 2d35 332d 4155 2d31 3428 3129  -800-53-AU-14(1)
│ │ │ -001effc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001effd0: 2d41 552d 3228 6429 0a20 202d 204e 4953  -AU-2(d).  - NIS
│ │ │ -001effe0: 542d 3830 302d 3533 2d41 552d 330a 2020  T-800-53-AU-3.  
│ │ │ -001efff0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001f0000: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -001f0010: 3030 2d35 332d 5349 2d34 2832 3329 0a20  00-53-SI-4(23). 
│ │ │ -001f0020: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -001f0030: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ -001f0040: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ -001f0050: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ -001f0060: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -001f0070: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -001f0080: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -001f0090: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -001f00a0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -001f00b0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -001f00c0: 202d 2073 6572 7669 6365 5f61 7564 6974   - service_audit
│ │ │ -001f00d0: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ -001f00e0: 653a 2045 6e61 626c 6520 6175 6469 7464  e: Enable auditd
│ │ │ -001f00f0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -001f0100: 6520 7365 7276 6963 6520 6175 6469 7464  e service auditd
│ │ │ -001f0110: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -001f0120: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -001f0130: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -001f0140: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001f0150: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ -001f0160: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ -001f0170: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ -001f0180: 456e 6162 6c65 2061 7564 6974 6420 5365  Enable auditd Se
│ │ │ -001f0190: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ -001f01a0: 6572 7669 6365 2061 7564 6974 640a 2020  ervice auditd.  
│ │ │ -001f01b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001f01c0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -001f01d0: 206e 616d 653a 2061 7564 6974 640a 2020   name: auditd.  
│ │ │ -001f01e0: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -001f01f0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -001f0200: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -001f0210: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -001f0220: 6865 6e3a 0a20 2020 202d 2027 2261 7564  hen:.    - '"aud
│ │ │ -001f0230: 6974 6422 2069 6e20 616e 7369 626c 655f  itd" in ansible_
│ │ │ -001f0240: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -001f0250: 2020 7461 6773 3a0a 2020 2d20 434a 4953    tags:.  - CJIS
│ │ │ -001f0260: 2d35 2e34 2e31 2e31 0a20 202d 204e 4953  -5.4.1.1.  - NIS
│ │ │ -001f0270: 542d 3830 302d 3137 312d 332e 332e 310a  T-800-171-3.3.1.
│ │ │ -001f0280: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -001f0290: 2d33 2e33 2e32 0a20 202d 204e 4953 542d  -3.3.2.  - NIST-
│ │ │ -001f02a0: 3830 302d 3137 312d 332e 332e 360a 2020  800-171-3.3.6.  
│ │ │ -001f02b0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -001f02c0: 2d32 2867 290a 2020 2d20 4e49 5354 2d38  -2(g).  - NIST-8
│ │ │ -001f02d0: 3030 2d35 332d 4143 2d36 2839 290a 2020  00-53-AC-6(9).  
│ │ │ -001f02e0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -001f02f0: 2d31 300a 2020 2d20 4e49 5354 2d38 3030  -10.  - NIST-800
│ │ │ -001f0300: 2d35 332d 4155 2d31 3228 6329 0a20 202d  -53-AU-12(c).  -
│ │ │ -001f0310: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -001f0320: 3134 2831 290a 2020 2d20 4e49 5354 2d38  14(1).  - NIST-8
│ │ │ -001f0330: 3030 2d35 332d 4155 2d32 2864 290a 2020  00-53-AU-2(d).  
│ │ │ -001f0340: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -001f0350: 2d33 0a20 202d 204e 4953 542d 3830 302d  -3.  - NIST-800-
│ │ │ -001f0360: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -001f0370: 4953 542d 3830 302d 3533 2d53 492d 3428  IST-800-53-SI-4(
│ │ │ -001f0380: 3233 290a 2020 2d20 5043 492d 4453 532d  23).  - PCI-DSS-
│ │ │ -001f0390: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ -001f03a0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ -001f03b0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ -001f03c0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -001f03d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -001f03e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001f03f0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -001f0400: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -001f0410: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -001f0420: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -001f0430: 6175 6469 7464 5f65 6e61 626c 6564 0a20  auditd_enabled. 
│ │ │ -001f0440: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -001f0450: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -001f0460: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ -001f0470: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -001f0480: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -001f0490: 2d20 2722 6175 6469 7464 2220 696e 2061  - '"auditd" in a
│ │ │ -001f04a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -001f04b0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
< │ │ │ +001f0100: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001f01b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001f01c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ +001efa40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001efa60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001efab0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +001efac0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +001f0290: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001f02a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +001f02f0: 696e 636c 7564 6520 656e 6162 6c65 5f61  include enable_a
│ │ │ +001f0300: 7564 6974 640a 0a63 6c61 7373 2065 6e61  uditd..class ena
│ │ │ +001f0310: 626c 655f 6175 6469 7464 207b 0a20 2073  ble_auditd {.  s
│ │ │ +001f0320: 6572 7669 6365 207b 2761 7564 6974 6427  ervice {'auditd'
│ │ │ +001f0330: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +001f0340: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +001f0350: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +001f0360: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ +001f0420: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +001f0430: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +001f0440: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +001f0490: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +001f04a0: 5d0a 656e 6162 6c65 6420 3d20 5b22 6175  ].enabled = ["au
│ │ │ +001f04b0: 6469 7464 225d 0a3c 2f63 6f64 653e 3c2f  ditd"].
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -165,14 +148,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -572,31 +572,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -623,14 +606,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -3732,31 +3732,14 @@ │ │ │ │ Rationale: password in resisting attempts at guessing and brute-force attacks. "pwquality" enforces │ │ │ │ complex password construction configuration and has the ability to limit brute-force │ │ │ │ attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -3777,14 +3760,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -26989,27 +26989,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27023,14 +27010,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -27059,27 +27059,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and │ │ │ │ disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27088,14 +27075,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove kea │ │ │ │ @@ -27303,27 +27303,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -27350,14 +27337,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -27740,27 +27740,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -27792,14 +27779,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -27848,27 +27848,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27879,14 +27866,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypbind-mt │ │ │ │ @@ -27939,27 +27939,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27975,14 +27962,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -28038,27 +28038,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-server │ │ │ │ - │ │ │ │ -class remove_rsh-server { │ │ │ │ - package { 'rsh-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh-server Package: Ensure rsh-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28073,14 +28060,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-server │ │ │ │ + │ │ │ │ +class remove_rsh-server { │ │ │ │ + package { 'rsh-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-server │ │ │ │ @@ -28118,27 +28118,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28150,14 +28137,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -28194,27 +28194,14 @@ │ │ │ │ intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ References: 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28225,14 +28212,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk-server │ │ │ │ @@ -28270,27 +28270,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28301,14 +28288,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -28371,27 +28371,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28406,14 +28393,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet-server │ │ │ │ @@ -28450,27 +28450,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28482,14 +28469,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -28548,27 +28548,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28582,14 +28569,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -28623,27 +28623,14 @@ │ │ │ │ Rationale: It is recommended that TFTP be removed, unless there is a specific need for TFTP (such as │ │ │ │ a boot server). In that case, use extreme caution when configuring the services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28654,14 +28641,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftp │ │ │ │ @@ -29592,26 +29592,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -29675,14 +29663,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -29720,23 +29720,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -29800,14 +29791,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -29901,31 +29901,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, A.7.1.1, A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, │ │ │ │ A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sssd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sssd │ │ │ │ - │ │ │ │ -class install_sssd { │ │ │ │ - package { 'sssd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -29948,14 +29931,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sssd_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sssd │ │ │ │ + │ │ │ │ +class install_sssd { │ │ │ │ + package { 'sssd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sssd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -29985,31 +29985,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, A.7.1.1, A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, │ │ │ │ A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-6(a), IA-5(10) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["sssd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_sssd │ │ │ │ - │ │ │ │ -class enable_sssd { │ │ │ │ - service {'sssd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -30049,14 +30032,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_sssd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"sssd-common" in ansible_facts.packages' │ │ │ │ - ( "sssd-common" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_sssd │ │ │ │ + │ │ │ │ +class enable_sssd { │ │ │ │ + service {'sssd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["sssd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -30805,31 +30805,14 @@ │ │ │ │ SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS-00140, │ │ │ │ SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, │ │ │ │ SRG-OS-000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -30870,14 +30853,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -30938,31 +30938,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR- │ │ │ │ 001300, SRG-APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -31029,14 +31012,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_bp28_minimal.html │ │ │ @@ -23582,129 +23582,129 @@ │ │ │ 0005c1d0: 6c61 7073 6522 2064 6174 612d 7461 7267 lapse" data-targ │ │ │ 0005c1e0: 6574 3d22 2369 6434 3922 2074 6162 696e et="#id49" tabin │ │ │ 0005c1f0: 6465 783d 2230 2220 726f 6c65 3d22 6275 dex="0" role="bu │ │ │ 0005c200: 7474 6f6e 2220 6172 6961 2d65 7870 616e tton" aria-expan │ │ │ 0005c210: 6465 643d 2266 616c 7365 2220 7469 746c ded="false" titl │ │ │ 0005c220: 653d 2241 6374 6976 6174 6520 746f 2072 e="Activate to r │ │ │ 0005c230: 6576 6561 6c22 2068 7265 663d 2223 2122 eveal" href="#!" │ │ │ -0005c240: 3e52 656d 6564 6961 7469 6f6e 204f 5342 >Remediation OSB │ │ │ -0005c250: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0005c260: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ -0005c2b0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -0005c2c0: 2022 6c69 6270 616d 2d70 7771 7561 6c69   "libpam-pwquali
│ │ │ -0005c2d0: 7479 220a 7665 7273 696f 6e20 3d20 222a  ty".version = "*
│ │ │ -0005c2e0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -0005c2f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ -0005c3a0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0005c3b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +001f0270: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001f0280: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001f02c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +001f02d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -0005c440: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0005c4e0: 636c 7564 6520 696e 7374 616c 6c5f 6c69  clude install_li
│ │ │ -0005c4f0: 6270 616d 2d70 7771 7561 6c69 7479 0a0a  bpam-pwquality..
│ │ │ -0005c500: 636c 6173 7320 696e 7374 616c 6c5f 6c69  class install_li
│ │ │ -0005c510: 6270 616d 2d70 7771 7561 6c69 7479 207b  bpam-pwquality {
│ │ │ -0005c520: 0a20 2070 6163 6b61 6765 207b 2027 6c69  .  package { 'li
│ │ │ -0005c530: 6270 616d 2d70 7771 7561 6c69 7479 273a  bpam-pwquality':
│ │ │ -0005c540: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0005c550: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -0005c560: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -0005c620: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -0005c630: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
│ │ │ -0005c430: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0005c460: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0005c470: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0005c4b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0005c4c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0005c6b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0005c6d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0005c720: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0005c750: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0005c770: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0005c780: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0005c790: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0005c7a0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0005c7b0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0005c7c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0005c7d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0005c7e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0005c7f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0005c800: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0005c810: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ -0005c820: 5f70 7771 7561 6c69 7479 5f69 6e73 7461  _pwquality_insta
│ │ │ -0005c830: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -0005c840: 7375 7265 206c 6962 7061 6d2d 7077 7175  sure libpam-pwqu
│ │ │ -0005c850: 616c 6974 7920 6973 2069 6e73 7461 6c6c  ality is install
│ │ │ -0005c860: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -0005c870: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0005c880: 2020 6e61 6d65 3a20 6c69 6270 616d 2d70    name: libpam-p
│ │ │ -0005c890: 7771 7561 6c69 7479 0a20 2020 2073 7461  wquality.    sta
│ │ │ -0005c8a0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -0005c8b0: 656e 3a20 2722 6c69 6270 616d 2d72 756e  en: '"libpam-run
│ │ │ -0005c8c0: 7469 6d65 2220 696e 2061 6e73 6962 6c65  time" in ansible
│ │ │ -0005c8d0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -0005c8e0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -0005c8f0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0005c900: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0005c910: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0005c920: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0005c930: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0005c940: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0005c950: 7061 636b 6167 655f 7061 6d5f 7077 7175  package_pam_pwqu
│ │ │ -0005c960: 616c 6974 795f 696e 7374 616c 6c65 640a  ality_installed.
│ │ │ +0005c240: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +0005c250: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0005c260: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:< │ │ │ -0005c6c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0005c6e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0005c730: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0005c740: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +0005c330: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0005c340: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +0005c390: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0005c3a0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0005c3b0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0005c3c0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0005c3d0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +0005c3e0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +0005c3f0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0005c400: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0005c410: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0005c420: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0005c430: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0005c440: 2d20 7061 636b 6167 655f 7061 6d5f 7077  - package_pam_pw
│ │ │ +0005c450: 7175 616c 6974 795f 696e 7374 616c 6c65  quality_installe
│ │ │ +0005c460: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +0005c470: 6520 6c69 6270 616d 2d70 7771 7561 6c69  e libpam-pwquali
│ │ │ +0005c480: 7479 2069 7320 696e 7374 616c 6c65 640a  ty is installed.
│ │ │ +0005c490: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0005c4a0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0005c4b0: 616d 653a 206c 6962 7061 6d2d 7077 7175  ame: libpam-pwqu
│ │ │ +0005c4c0: 616c 6974 790a 2020 2020 7374 6174 653a  ality.    state:
│ │ │ +0005c4d0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +0005c4e0: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ +0005c4f0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0005c500: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0005c510: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +0005c520: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0005c530: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0005c540: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0005c550: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0005c560: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0005c570: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0005c580: 6b61 6765 5f70 616d 5f70 7771 7561 6c69  kage_pam_pwquali
│ │ │ +0005c590: 7479 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ty_installed.
│ │ │ +0005c5b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0005c650: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0005c660: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ +0005c310: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0005c320: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0005c360: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0005c370: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0005c710: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0005c730: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0005c760: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0005c6f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0005c700: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0005c720: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0005c740: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0005c750: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0005c7a0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +0005c7b0: 7077 7175 616c 6974 790a 0a63 6c61 7373 pwquality..class │ │ │ +0005c7c0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +0005c7d0: 7077 7175 616c 6974 7920 7b0a 2020 7061 pwquality {. pa │ │ │ +0005c7e0: 636b 6167 6520 7b20 276c 6962 7061 6d2d ckage { 'libpam- │ │ │ +0005c7f0: 7077 7175 616c 6974 7927 3a0a 2020 2020 pwquality':. │ │ │ +0005c800: 656e 7375 7265 203d 2667 743b 2027 696e ensure => 'in │ │ │ +0005c810: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a stalled',. }.}. │ │ │ +0005c820: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

R │ │ │ +0005c8d0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0005c8e0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0005c8f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0005c900: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0005c930: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +0005c940: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +0005c950: 6c69 6270 616d 2d70 7771 7561 6c69 7479 libpam-pwquality │ │ │ +0005c960: 220a 7665 7273 696f 6e20 3d20 222a 220a ".version = "*". │ │ │ 0005c970: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remedi │ │ │ -0006ad30: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0006ad40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0006ad50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -0006ad80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0006ad90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0006ada0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0006adb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0006adc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0006add0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0006ade0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0006ae20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0006ae30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0006ae50: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0006ae60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0006ae80: 2072 656d 6f76 655f 6468 6370 0a0a 636c remove_dhcp..cl │ │ │ -0006ae90: 6173 7320 7265 6d6f 7665 5f64 6863 7020 ass remove_dhcp │ │ │ -0006aea0: 7b0a 2020 7061 636b 6167 6520 7b20 2764 {. package { 'd │ │ │ -0006aeb0: 6863 7027 3a0a 2020 2020 656e 7375 7265 hcp':. ensure │ │ │ -0006aec0: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ -0006aed0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediatio │ │ │ -0006af90: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0006afa0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -0006b030: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0006b050: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0006b060: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0006b070: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0006b080: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0006b0a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0006b0d0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0006b0e0: 696e 7374 616c 6c20 4448 4350 2053 6572  install DHCP Ser
│ │ │ -0006b0f0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -0006b100: 7572 6520 6468 6370 2069 7320 7265 6d6f  ure dhcp is remo
│ │ │ -0006b110: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -0006b120: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0006b130: 2020 2020 6e61 6d65 3a20 6468 6370 0a20      name: dhcp. 
│ │ │ -0006b140: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0006b150: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0006b160: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0006b170: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0006b180: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -0006b190: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -0006b1a0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0006b1b0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0006b1c0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -0006b1d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0006b1e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0006b1f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0006b200: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0006b210: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0006b220: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0006b230: 6163 6b61 6765 5f64 6863 705f 7265 6d6f  ackage_dhcp_remo
│ │ │ -0006b240: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +0006ad80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0006adf0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0006ae10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0006ae40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0006add0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0006ade0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0006ae20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0006ae30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0006ae80: 2027 556e 696e 7374 616c 6c20 4448 4350 'Uninstall DHCP │ │ │ +0006ae90: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ +0006aea0: 2045 6e73 7572 6520 6468 6370 2069 7320 Ensure dhcp is │ │ │ +0006aeb0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ +0006aec0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +0006aed0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6468 ge:. name: dh │ │ │ +0006aee0: 6370 0a20 2020 2073 7461 7465 3a20 6162 cp. state: ab │ │ │ +0006aef0: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ +0006af00: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0006af10: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ +0006af20: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ +0006af30: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0006af40: 3728 6229 0a20 202d 2050 4349 2d44 5353 7(b). - PCI-DSS │ │ │ +0006af50: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ +0006af60: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ +0006af70: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +0006af80: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +0006af90: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +0006afa0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +0006afb0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0006afc0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0006afd0: 202d 2070 6163 6b61 6765 5f64 6863 705f - package_dhcp_ │ │ │ +0006afe0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +0006aff0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediati │ │ │ +0006b0a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0006b0b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +0006b140: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0006b160: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0006b170: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0006b180: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0006b190: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0006b1b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0006b1e0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0006b1f0: 6d6f 7665 5f64 6863 700a 0a63 6c61 7373  move_dhcp..class
│ │ │ +0006b200: 2072 656d 6f76 655f 6468 6370 207b 0a20   remove_dhcp {. 
│ │ │ +0006b210: 2070 6163 6b61 6765 207b 2027 6468 6370   package { 'dhcp
│ │ │ +0006b220: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0006b230: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0006b240: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remed │ │ │ -0006bfd0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0006bfe0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0006c020: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0006c090: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0006c0b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0006c0e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0006c070: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0006c080: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0006c0c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0006c0d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -0006c120: 6520 7265 6d6f 7665 5f6b 6561 0a0a 636c e remove_kea..cl │ │ │ -0006c130: 6173 7320 7265 6d6f 7665 5f6b 6561 207b ass remove_kea { │ │ │ -0006c140: 0a20 2070 6163 6b61 6765 207b 2027 6b65 . package { 'ke │ │ │ -0006c150: 6127 3a0a 2020 2020 656e 7375 7265 203d a':. ensure = │ │ │ -0006c160: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ -0006c170: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ -0006c230: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0006c240: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0006c2c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0006c2e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0006c330: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0006c360: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0006c2d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0006c2f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0006c340: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0006c350: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0006c380: 7374 616c 6c20 6b65 6120 5061 636b 6167  stall kea Packag
│ │ │ -0006c390: 653a 2045 6e73 7572 6520 6b65 6120 6973  e: Ensure kea is
│ │ │ -0006c3a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0006c3b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0006c3c0: 6167 653a 0a20 2020 206e 616d 653a 206b  age:.    name: k
│ │ │ -0006c3d0: 6561 0a20 2020 2073 7461 7465 3a20 6162  ea.    state: ab
│ │ │ -0006c3e0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0006c3f0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0006c400: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0006c410: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0006c420: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0006c430: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0006c440: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0006c450: 0a20 202d 2070 6163 6b61 6765 5f6b 6561  .  - package_kea
│ │ │ -0006c460: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0006bfd0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +0006bfe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
│ │ │ +0006c090: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0006c0b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0006c0e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0006c070: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0006c080: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0006c0a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0006c0c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0006c0d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0006c110: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0006c120: 3a20 2755 6e69 6e73 7461 6c6c 206b 6561 : 'Uninstall kea │ │ │ +0006c130: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +0006c140: 206b 6561 2069 7320 7265 6d6f 7665 6427 kea is removed' │ │ │ +0006c150: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ +0006c160: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ +0006c170: 6e61 6d65 3a20 6b65 610a 2020 2020 7374 name: kea. st │ │ │ +0006c180: 6174 653a 2061 6273 656e 740a 2020 7461 ate: absent. ta │ │ │ +0006c190: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +0006c1a0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0006c1b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0006c1c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0006c1d0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +0006c1e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0006c1f0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +0006c200: 6167 655f 6b65 615f 7265 6d6f 7665 640a age_kea_removed. │ │ │ +0006c210: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
R │ │ │ +0006c2c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0006c2d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +0006c380: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0006c3d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0006c410: 636c 7564 6520 7265 6d6f 7665 5f6b 6561  clude remove_kea
│ │ │ +0006c420: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6b  ..class remove_k
│ │ │ +0006c430: 6561 207b 0a20 2070 6163 6b61 6765 207b  ea {.  package {
│ │ │ +0006c440: 2027 6b65 6127 3a0a 2020 2020 656e 7375   'kea':.    ensu
│ │ │ +0006c450: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +0006c460: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  0006c470: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Reme │ │ │ -0006e130: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0006e140: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Co │ │ │ +0006c360: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0006c390: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0006c3b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0006c3c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0006c3e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0006c3f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0006e1f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0006e210: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0006e240: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0006e1d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0006e1e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0006e200: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0006e220: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0006e230: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0006e270: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0006e280: 6465 2072 656d 6f76 655f 7365 6e64 6d61 de remove_sendma │ │ │ -0006e290: 696c 0a0a 636c 6173 7320 7265 6d6f 7665 il..class remove │ │ │ -0006e2a0: 5f73 656e 646d 6169 6c20 7b0a 2020 7061 _sendmail {. pa │ │ │ -0006e2b0: 636b 6167 6520 7b20 2773 656e 646d 6169 ckage { 'sendmai │ │ │ -0006e2c0: 6c27 3a0a 2020 2020 656e 7375 7265 203d l':. ensure = │ │ │ -0006e2d0: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ -0006e2e0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation │ │ │ -0006e3a0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0006e3b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0006e430: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0006e450: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0006e4a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0006e4d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0006e440: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0006e460: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0006e4b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0006e4c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0006e4f0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0006e500: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0006e510: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0006e520: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0006e530: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0006e540: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0006e550: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0006e560: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0006e570: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0006e580: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0006e590: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0006e5a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0006e5b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0006e5c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0006e5d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0006e5e0: 6163 6b61 6765 5f73 656e 646d 6169 6c5f  ackage_sendmail_
│ │ │ -0006e5f0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -0006e600: 2027 556e 696e 7374 616c 6c20 5365 6e64   'Uninstall Send
│ │ │ -0006e610: 6d61 696c 2050 6163 6b61 6765 3a20 456e  mail Package: En
│ │ │ -0006e620: 7375 7265 2073 656e 646d 6169 6c20 6973  sure sendmail is
│ │ │ -0006e630: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0006e640: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0006e650: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ -0006e660: 656e 646d 6169 6c0a 2020 2020 7374 6174  endmail.    stat
│ │ │ -0006e670: 653a 2061 6273 656e 740a 2020 7768 656e  e: absent.  when
│ │ │ -0006e680: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -0006e690: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0006e6a0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0006e6b0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0006e6c0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0006e6d0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0006e6e0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0006e6f0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0006e700: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0006e710: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0006e720: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0006e730: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0006e740: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0006e750: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0006e760: 202d 2070 6163 6b61 6765 5f73 656e 646d   - package_sendm
│ │ │ -0006e770: 6169 6c5f 7265 6d6f 7665 640a 3c2f 636f  ail_removed.<
│ │ │ +0006e150: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +0006e1d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0006e1e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0006e200: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0006e220: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0006e230: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0006e270: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0006e280: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0006e290: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0006e2a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0006e2b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0006e2c0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0006e2d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0006e2e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0006e2f0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0006e300: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0006e310: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0006e320: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0006e330: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0006e340: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0006e350: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0006e360: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0006e370: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +0006e380: 656e 646d 6169 6c5f 7265 6d6f 7665 640a  endmail_removed.
│ │ │ +0006e390: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ +0006e3a0: 616c 6c20 5365 6e64 6d61 696c 2050 6163  all Sendmail Pac
│ │ │ +0006e3b0: 6b61 6765 3a20 456e 7375 7265 2073 656e  kage: Ensure sen
│ │ │ +0006e3c0: 646d 6169 6c20 6973 2072 656d 6f76 6564  dmail is removed
│ │ │ +0006e3d0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0006e3e0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0006e3f0: 206e 616d 653a 2073 656e 646d 6169 6c0a   name: sendmail.
│ │ │ +0006e400: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0006e410: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0006e420: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0006e430: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0006e440: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +0006e450: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0006e460: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0006e470: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0006e480: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0006e490: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0006e4a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0006e4b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0006e4c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0006e4d0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0006e4e0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0006e4f0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0006e500: 6765 5f73 656e 646d 6169 6c5f 7265 6d6f  ge_sendmail_remo
│ │ │ +0006e510: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation P │ │ │ +0006e5d0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0006e5e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ +0006e6b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0006e6c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0006e720: 5f73 656e 646d 6169 6c0a 0a63 6c61 7373  _sendmail..class
│ │ │ +0006e730: 2072 656d 6f76 655f 7365 6e64 6d61 696c   remove_sendmail
│ │ │ +0006e740: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0006e750: 7365 6e64 6d61 696c 273a 0a20 2020 2065  sendmail':.    e
│ │ │ +0006e760: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0006e770: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0006e790: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0006e7a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0006e7b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0006e7c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0006e7d0: 6437 3622 2074 6162 696e 6465 783d 2230 d76" tabindex="0 │ │ │ 0006e7e0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -28817,120 +28817,120 @@ │ │ │ 00070900: 6172 6765 743d 2223 6964 3738 2220 7461 arget="#id78" ta │ │ │ 00070910: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 00070920: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 00070930: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 00070940: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 00070950: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 00070960: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -00070970: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00070980: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +0006e690: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0006e6a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0006e6e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0006e6f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00070a00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00070a20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00070a70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00070aa0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00070ac0: 655f 7869 6e65 7464 0a0a 636c 6173 7320  e_xinetd..class 
│ │ │ -00070ad0: 7265 6d6f 7665 5f78 696e 6574 6420 7b0a  remove_xinetd {.
│ │ │ -00070ae0: 2020 7061 636b 6167 6520 7b20 2778 696e    package { 'xin
│ │ │ -00070af0: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -00070b00: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00070b10: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediatio
│ │ │ -00070bd0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -00070be0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ -00070ca0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00070cb0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -00070a30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00070a40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00070a80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00070a90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity │ │ │ -00070c70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00070c90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00070cc0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00070ce0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00070d10: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00070d20: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00070d30: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00070d40: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00070d50: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00070d60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00070d70: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00070d80: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -00070d90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00070da0: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ -00070db0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00070dc0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00070dd0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00070de0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00070df0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00070e00: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00070e10: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00070e20: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00070e30: 2020 2d20 7061 636b 6167 655f 7869 6e65    - package_xine
│ │ │ -00070e40: 7464 5f72 656d 6f76 6564 0a0a 2d20 6e61  td_removed..- na
│ │ │ -00070e50: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2078  me: 'Uninstall x
│ │ │ -00070e60: 696e 6574 6420 7061 636b 6167 6520 6966  inetd package if
│ │ │ -00070e70: 206e 6f74 2075 7365 6420 6279 206e 6574   not used by net
│ │ │ -00070e80: 776f 726b 2073 6572 7669 6365 733a 2045  work services: E
│ │ │ -00070e90: 6e73 7572 6520 7869 6e65 7464 2069 730a  nsure xinetd is.
│ │ │ -00070ea0: 2020 2020 7265 6d6f 7665 6427 0a20 2061      removed'.  a
│ │ │ -00070eb0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00070ec0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00070ed0: 3a20 7869 6e65 7464 0a20 2020 2073 7461  : xinetd.    sta
│ │ │ -00070ee0: 7465 3a20 6162 7365 6e74 0a20 2077 6865  te: absent.  whe
│ │ │ -00070ef0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00070f00: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00070f10: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00070f20: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00070f30: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00070f40: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00070f50: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00070f60: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00070f70: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -00070f80: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -00070f90: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ -00070fa0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00070fb0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00070fc0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00070fd0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00070fe0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00070ff0: 6564 0a20 202d 2070 6163 6b61 6765 5f78  ed.  - package_x
│ │ │ -00071000: 696e 6574 645f 7265 6d6f 7665 640a 3c2f  inetd_removed.
│ │ │ +00070a00: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00070a20: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00070a70: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00070aa0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00070a10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00070a30: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00070a80: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00070a90: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00070ac0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00070ad0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00070ae0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00070af0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00070b00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00070b10: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00070b20: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00070b30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00070b40: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00070b50: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00070b60: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00070b70: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00070b80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00070b90: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00070ba0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00070bb0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00070bc0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00070bd0: 2d20 7061 636b 6167 655f 7869 6e65 7464  - package_xinetd
│ │ │ +00070be0: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ +00070bf0: 3a20 2755 6e69 6e73 7461 6c6c 2078 696e  : 'Uninstall xin
│ │ │ +00070c00: 6574 6420 7061 636b 6167 6520 6966 206e  etd package if n
│ │ │ +00070c10: 6f74 2075 7365 6420 6279 206e 6574 776f  ot used by netwo
│ │ │ +00070c20: 726b 2073 6572 7669 6365 733a 2045 6e73  rk services: Ens
│ │ │ +00070c30: 7572 6520 7869 6e65 7464 2069 730a 2020  ure xinetd is.  
│ │ │ +00070c40: 2020 7265 6d6f 7665 6427 0a20 2061 6e73    removed'.  ans
│ │ │ +00070c50: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00070c60: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00070c70: 7869 6e65 7464 0a20 2020 2073 7461 7465  xinetd.    state
│ │ │ +00070c80: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ +00070c90: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00070ca0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00070cb0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00070cc0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00070cd0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00070ce0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00070cf0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00070d00: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ +00070d10: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00070d20: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +00070d30: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00070d40: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00070d50: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00070d60: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00070d70: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00070d80: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00070d90: 0a20 202d 2070 6163 6b61 6765 5f78 696e  .  - package_xin
│ │ │ +00070da0: 6574 645f 7265 6d6f 7665 640a 3c2f 636f  etd_removed.
< │ │ │ +00070dc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00070dd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00070de0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00070df0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00070e00: 6437 3922 2074 6162 696e 6465 783d 2230 d79" tabindex="0 │ │ │ +00070e10: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00070e20: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00070e30: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00070e40: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00070e50: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00070e60: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00070e70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00070eb0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00070f20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00070f40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00070f70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00070f00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00070f10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00070f50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00070f60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00070fb0: 6520 7265 6d6f 7665 5f78 696e 6574 640a e remove_xinetd. │ │ │ +00070fc0: 0a63 6c61 7373 2072 656d 6f76 655f 7869 .class remove_xi │ │ │ +00070fd0: 6e65 7464 207b 0a20 2070 6163 6b61 6765 netd {. package │ │ │ +00070fe0: 207b 2027 7869 6e65 7464 273a 0a20 2020 { 'xinetd':. │ │ │ +00070ff0: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +00071000: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.

│ │ │ -00072630: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00072640: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -000726e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000726f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00072740: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00072780: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ -00072790: 6269 6e64 2d6d 740a 0a63 6c61 7373 2072  bind-mt..class r
│ │ │ -000727a0: 656d 6f76 655f 7970 6269 6e64 2d6d 7420  emove_ypbind-mt 
│ │ │ -000727b0: 7b0a 2020 7061 636b 6167 6520 7b20 2779  {.  package { 'y
│ │ │ -000727c0: 7062 696e 642d 6d74 273a 0a20 2020 2065  pbind-mt':.    e
│ │ │ -000727d0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -000727e0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00072800: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00072810: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00072820: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00072830: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00072840: 6438 3322 2074 6162 696e 6465 783d 2230 d83" tabindex="0 │ │ │ -00072850: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00072860: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00072870: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00072880: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00072890: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -000728a0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000728b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -000726d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00072700: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00072710: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00072750: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00072760: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00072960: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00072980: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000729b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00072940: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00072950: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00072970: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00072990: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000729a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000729e0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000729f0: 3a20 2752 656d 6f76 6520 4e49 5320 436c : 'Remove NIS Cl │ │ │ -00072a00: 6965 6e74 3a20 456e 7375 7265 2079 7062 ient: Ensure ypb │ │ │ -00072a10: 696e 642d 6d74 2069 7320 7265 6d6f 7665 ind-mt is remove │ │ │ -00072a20: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -00072a30: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00072a40: 2020 6e61 6d65 3a20 7970 6269 6e64 2d6d name: ypbind-m │ │ │ -00072a50: 740a 2020 2020 7374 6174 653a 2061 6273 t. state: abs │ │ │ -00072a60: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -00072a70: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -00072a80: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -00072a90: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -00072aa0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00072ab0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00072ac0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00072ad0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00072ae0: 640a 2020 2d20 7061 636b 6167 655f 7970 d. - package_yp │ │ │ -00072af0: 6269 6e64 5f72 656d 6f76 6564 0a20 202d bind_removed. - │ │ │ -00072b00: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974 unknown_severit │ │ │ -00072b10: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c y.
< │ │ │ +00072630: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00072640: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00072650: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +000726e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00072780: 206e 616d 653a 2027 5265 6d6f 7665 204e   name: 'Remove N
│ │ │ +00072790: 4953 2043 6c69 656e 743a 2045 6e73 7572  IS Client: Ensur
│ │ │ +000727a0: 6520 7970 6269 6e64 2d6d 7420 6973 2072  e ypbind-mt is r
│ │ │ +000727b0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +000727c0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +000727d0: 653a 0a20 2020 206e 616d 653a 2079 7062  e:.    name: ypb
│ │ │ +000727e0: 696e 642d 6d74 0a20 2020 2073 7461 7465  ind-mt.    state
│ │ │ +000727f0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00072800: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00072810: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00072820: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +00072830: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00072840: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00072850: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00072860: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00072870: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00072880: 6765 5f79 7062 696e 645f 7265 6d6f 7665  ge_ypbind_remove
│ │ │ +00072890: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +000728a0: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.Remediatio
│ │ │ +00072960: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +00072970: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
low< │ │ │ +00072a40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ +000726d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00072700: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00072710: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00072750: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00072760: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00072a00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00072a20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00072a70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00072a80: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00072ab0: 6f76 655f 7970 6269 6e64 2d6d 740a 0a63  ove_ypbind-mt..c
│ │ │ +00072ac0: 6c61 7373 2072 656d 6f76 655f 7970 6269  lass remove_ypbi
│ │ │ +00072ad0: 6e64 2d6d 7420 7b0a 2020 7061 636b 6167  nd-mt {.  packag
│ │ │ +00072ae0: 6520 7b20 2779 7062 696e 642d 6d74 273a  e { 'ypbind-mt':
│ │ │ +00072af0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00072b00: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00072b10: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00072b20: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -000742c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000742d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00074350: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00074360: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00074380: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00074390: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000743b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000743d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00074400: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00074410: 656d 6f76 655f 7970 7365 7276 0a0a 636c  emove_ypserv..cl
│ │ │ -00074420: 6173 7320 7265 6d6f 7665 5f79 7073 6572  ass remove_ypser
│ │ │ -00074430: 7620 7b0a 2020 7061 636b 6167 6520 7b20  v {.  package { 
│ │ │ -00074440: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ -00074450: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00074460: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -00074520: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00074530: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00074570: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000745e0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00074600: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00074630: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -000745c0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000745d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00074610: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00074620: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00074670: 2027 556e 696e 7374 616c 6c20 7970 7365 'Uninstall ypse │ │ │ -00074680: 7276 2050 6163 6b61 6765 3a20 456e 7375 rv Package: Ensu │ │ │ -00074690: 7265 2079 7073 6572 7620 6973 2072 656d re ypserv is rem │ │ │ -000746a0: 6f76 6564 270a 2020 616e 7369 626c 652e oved'. ansible. │ │ │ -000746b0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -000746c0: 0a20 2020 206e 616d 653a 2079 7073 6572 . name: ypser │ │ │ -000746d0: 760a 2020 2020 7374 6174 653a 2061 6273 v. state: abs │ │ │ -000746e0: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -000746f0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -00074700: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00074710: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ -00074720: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -00074730: 2862 290a 2020 2d20 4e49 5354 2d38 3030 (b). - NIST-800 │ │ │ -00074740: 2d35 332d 4941 2d35 2831 2928 6329 0a20 -53-IA-5(1)(c). │ │ │ -00074750: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -00074760: 2e32 2e32 0a20 202d 2050 4349 2d44 5353 .2.2. - PCI-DSS │ │ │ -00074770: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -00074780: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ -00074790: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -000747a0: 2020 2d20 6869 6768 5f73 6576 6572 6974 - high_severit │ │ │ -000747b0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -000747c0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -000747d0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ -000747e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -000747f0: 2070 6163 6b61 6765 5f79 7073 6572 765f package_ypserv_ │ │ │ -00074800: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +000742c0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +000742d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000742e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000742f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00074300: 7365 2220 6964 3d22 6964 3836 223e 3c74 se" id="id86"> │ │ │ +00074350: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00074360: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00074370: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000743b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000743c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000743e0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +000743f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>

- name: '
│ │ │ +00074410: 556e 696e 7374 616c 6c20 7970 7365 7276  Uninstall ypserv
│ │ │ +00074420: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +00074430: 2079 7073 6572 7620 6973 2072 656d 6f76   ypserv is remov
│ │ │ +00074440: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00074450: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00074460: 2020 206e 616d 653a 2079 7073 6572 760a     name: ypserv.
│ │ │ +00074470: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +00074480: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +00074490: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000744a0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000744b0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +000744c0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +000744d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000744e0: 332d 4941 2d35 2831 2928 6329 0a20 202d  3-IA-5(1)(c).  -
│ │ │ +000744f0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +00074500: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00074510: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00074520: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00074530: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00074540: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +00074550: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00074560: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00074570: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00074580: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00074590: 6163 6b61 6765 5f79 7073 6572 765f 7265  ackage_ypserv_re
│ │ │ +000745a0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediation │ │ │ +00074660: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00074670: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000746f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00074710: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00074760: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00074790: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00074700: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00074720: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00074770: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00074780: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +000747b0: 7665 5f79 7073 6572 760a 0a63 6c61 7373  ve_ypserv..class
│ │ │ +000747c0: 2072 656d 6f76 655f 7970 7365 7276 207b   remove_ypserv {
│ │ │ +000747d0: 0a20 2070 6163 6b61 6765 207b 2027 7970  .  package { 'yp
│ │ │ +000747e0: 7365 7276 273a 0a20 2020 2065 6e73 7572  serv':.    ensur
│ │ │ +000747f0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00074800: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00074810: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00076340: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00076350: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00076360: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00076370: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00076380: 7365 2220 6964 3d22 6964 3930 223e 3c74 se" id="id90"> │ │ │ -000763d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000763e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000763f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00076430: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00076440: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00076460: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00076470: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00076490: 7265 6d6f 7665 5f72 7368 2d73 6572 7665  remove_rsh-serve
│ │ │ -000764a0: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ -000764b0: 7273 682d 7365 7276 6572 207b 0a20 2070  rsh-server {.  p
│ │ │ -000764c0: 6163 6b61 6765 207b 2027 7273 682d 7365  ackage { 'rsh-se
│ │ │ -000764d0: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ -000764e0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -000764f0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00076500: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -000765b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -000765c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00076640: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00076650: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00076670: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00076680: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000766a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000766c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -000766f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00076700: 6e69 6e73 7461 6c6c 2072 7368 2d73 6572  ninstall rsh-ser
│ │ │ -00076710: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -00076720: 7572 6520 7273 682d 7365 7276 6572 2069  ure rsh-server i
│ │ │ -00076730: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00076740: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00076750: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00076760: 7273 682d 7365 7276 6572 0a20 2020 2073  rsh-server.    s
│ │ │ -00076770: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00076780: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00076790: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -000767a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000767b0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -000767c0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -000767d0: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ -000767e0: 3528 3129 2863 290a 2020 2d20 5043 492d  5(1)(c).  - PCI-
│ │ │ -000767f0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00076800: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -00076810: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00076820: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -00076830: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -00076840: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00076850: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00076860: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00076870: 2020 2d20 7061 636b 6167 655f 7273 682d    - package_rsh-
│ │ │ -00076880: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +00076340: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +00076350: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +00076360: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00076390: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000763a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000763b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000763c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000763d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000763e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000763f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00076430: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00076440: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00076460: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00076470: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00076490: 2755 6e69 6e73 7461 6c6c 2072 7368 2d73 'Uninstall rsh-s │ │ │ +000764a0: 6572 7665 7220 5061 636b 6167 653a 2045 erver Package: E │ │ │ +000764b0: 6e73 7572 6520 7273 682d 7365 7276 6572 nsure rsh-server │ │ │ +000764c0: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ +000764d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +000764e0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +000764f0: 3a20 7273 682d 7365 7276 6572 0a20 2020 : rsh-server. │ │ │ +00076500: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +00076510: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +00076520: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +00076530: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +00076540: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ +00076550: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ +00076560: 202d 204e 4953 542d 3830 302d 3533 2d49 - NIST-800-53-I │ │ │ +00076570: 412d 3528 3129 2863 290a 2020 2d20 5043 A-5(1)(c). - PC │ │ │ +00076580: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ +00076590: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ +000765a0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +000765b0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ +000765c0: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ +000765d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +000765e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +000765f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00076600: 640a 2020 2d20 7061 636b 6167 655f 7273 d. - package_rs │ │ │ +00076610: 682d 7365 7276 6572 5f72 656d 6f76 6564 h-server_removed │ │ │ +00076620: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
│ │ │ +000766d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000766e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00076780: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00076790: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000767e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00076820: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +00076830: 682d 7365 7276 6572 0a0a 636c 6173 7320  h-server..class 
│ │ │ +00076840: 7265 6d6f 7665 5f72 7368 2d73 6572 7665  remove_rsh-serve
│ │ │ +00076850: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ +00076860: 2772 7368 2d73 6572 7665 7227 3a0a 2020  'rsh-server':.  
│ │ │ +00076870: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00076880: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  00076890: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediatio │ │ │ -00077a80: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00077a90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -00077b60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +00076770: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000767a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000767b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000767f0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00076800: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -00077b20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00077b40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00077b90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00077ba0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00077bd0: 6f76 655f 7273 680a 0a63 6c61 7373 2072  ove_rsh..class r
│ │ │ -00077be0: 656d 6f76 655f 7273 6820 7b0a 2020 7061  emove_rsh {.  pa
│ │ │ -00077bf0: 636b 6167 6520 7b20 2772 7368 273a 0a20  ckage { 'rsh':. 
│ │ │ -00077c00: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00077c10: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00077c20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00077cd0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00077ce0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -00077d80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00077d90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00077de0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00077e20: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00077e30: 2072 7368 2050 6163 6b61 6765 3a20 456e   rsh Package: En
│ │ │ -00077e40: 7375 7265 2072 7368 2069 7320 7265 6d6f  sure rsh is remo
│ │ │ -00077e50: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00077e60: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00077e70: 2020 2020 6e61 6d65 3a20 7273 680a 2020      name: rsh.  
│ │ │ -00077e80: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00077e90: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00077ea0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -00077eb0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00077ec0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00077ed0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00077ee0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00077ef0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00077f00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00077f10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00077f20: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00077f30: 655f 7273 685f 7265 6d6f 7665 640a 2020  e_rsh_removed.  
│ │ │ -00077f40: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -00077f50: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00077a80: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00077a90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00077b50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00077b60: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00077d70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00077da0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00077db0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00077df0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00077e00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +00077b20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00077b40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00077b70: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00077b90: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00077bc0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00077bd0: 696e 7374 616c 6c20 7273 6820 5061 636b  install rsh Pack
│ │ │ +00077be0: 6167 653a 2045 6e73 7572 6520 7273 6820  age: Ensure rsh 
│ │ │ +00077bf0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00077c00: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00077c10: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00077c20: 2072 7368 0a20 2020 2073 7461 7465 3a20   rsh.    state: 
│ │ │ +00077c30: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00077c40: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00077c50: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ +00077c60: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00077c70: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00077c80: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00077c90: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00077ca0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00077cb0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00077cc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00077cd0: 2070 6163 6b61 6765 5f72 7368 5f72 656d   package_rsh_rem
│ │ │ +00077ce0: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ +00077cf0: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
Remedia │ │ │ +00077db0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00077dc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00077dd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00077de0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00077df0: 7365 2220 6964 3d22 6964 3935 223e 3c74 se" id="id95"> │ │ │ +00077e40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00077e50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00077e60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00077ea0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00077eb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00077ed0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00077ee0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00077f00: 7265 6d6f 7665 5f72 7368 0a0a 636c 6173  remove_rsh..clas
│ │ │ +00077f10: 7320 7265 6d6f 7665 5f72 7368 207b 0a20  s remove_rsh {. 
│ │ │ +00077f20: 2070 6163 6b61 6765 207b 2027 7273 6827   package { 'rsh'
│ │ │ +00077f30: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00077f40: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00077f50: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00077f60: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediat │ │ │ -00079270: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00079280: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00079300: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00079310: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00079330: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00079340: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00079360: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00079380: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -000793b0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -000793c0: 656d 6f76 655f 7461 6c6b 2d73 6572 7665  emove_talk-serve
│ │ │ -000793d0: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ -000793e0: 7461 6c6b 2d73 6572 7665 7220 7b0a 2020  talk-server {.  
│ │ │ -000793f0: 7061 636b 6167 6520 7b20 2774 616c 6b2d  package { 'talk-
│ │ │ -00079400: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ -00079410: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00079420: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ -000794e0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000794f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00079500: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00079530: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00079540: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00079550: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00079560: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00079570: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00079580: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00079590: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000795d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000795e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00079600: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00079610: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00079630: 2755 6e69 6e73 7461 6c6c 2074 616c 6b2d 'Uninstall talk- │ │ │ -00079640: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ -00079650: 456e 7375 7265 2074 616c 6b2d 7365 7276 Ensure talk-serv │ │ │ -00079660: 6572 2069 7320 7265 6d6f 7665 6427 0a20 er is removed'. │ │ │ -00079670: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00079680: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -00079690: 6d65 3a20 7461 6c6b 2d73 6572 7665 720a me: talk-server. │ │ │ -000796a0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -000796b0: 740a 2020 7461 6773 3a0a 2020 2d20 5043 t. tags:. - PC │ │ │ -000796c0: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ -000796d0: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ -000796e0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -000796f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00079700: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00079710: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00079720: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00079730: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00079740: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -00079750: 7461 6c6b 2d73 6572 7665 725f 7265 6d6f talk-server_remo │ │ │ -00079760: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
< │ │ │ +00079290: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000792a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000792b0: 7365 2220 6964 3d22 6964 3938 223e 3c74 se" id="id98"> │ │ │ +00079300: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00079310: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00079320: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00079360: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00079370: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00079390: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +000793a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +000793c0: 556e 696e 7374 616c 6c20 7461 6c6b 2d73  Uninstall talk-s
│ │ │ +000793d0: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ +000793e0: 6e73 7572 6520 7461 6c6b 2d73 6572 7665  nsure talk-serve
│ │ │ +000793f0: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ +00079400: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00079410: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00079420: 653a 2074 616c 6b2d 7365 7276 6572 0a20  e: talk-server. 
│ │ │ +00079430: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00079440: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ +00079450: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00079460: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +00079470: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00079480: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00079490: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000794a0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000794b0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000794c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000794d0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +000794e0: 616c 6b2d 7365 7276 6572 5f72 656d 6f76  alk-server_remov
│ │ │ +000794f0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00079500: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +000795b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000795c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00079690: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000796a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +000796f0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00079700: 7461 6c6b 2d73 6572 7665 720a 0a63 6c61  talk-server..cla
│ │ │ +00079710: 7373 2072 656d 6f76 655f 7461 6c6b 2d73  ss remove_talk-s
│ │ │ +00079720: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ +00079730: 6520 7b20 2774 616c 6b2d 7365 7276 6572  e { 'talk-server
│ │ │ +00079740: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00079750: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00079760: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -0007a870: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0007a880: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +00079670: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00079680: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000796c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +000796d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0007a920: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007a930: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007a980: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0007a9c0: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ -0007a9d0: 6c6b 0a0a 636c 6173 7320 7265 6d6f 7665  lk..class remove
│ │ │ -0007a9e0: 5f74 616c 6b20 7b0a 2020 7061 636b 6167  _talk {.  packag
│ │ │ -0007a9f0: 6520 7b20 2774 616c 6b27 3a0a 2020 2020  e { 'talk':.    
│ │ │ -0007aa00: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -0007aa10: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -0007aa30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0007aad0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0007aae0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007aaf0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ -0007a910: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007a940: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007a950: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007a990: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007a9a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -0007ab90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007abe0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0007ac20: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0007ac30: 7461 6c6b 2050 6163 6b61 6765 3a20 456e  talk Package: En
│ │ │ -0007ac40: 7375 7265 2074 616c 6b20 6973 2072 656d  sure talk is rem
│ │ │ -0007ac50: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007ac60: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007ac70: 0a20 2020 206e 616d 653a 2074 616c 6b0a  .    name: talk.
│ │ │ -0007ac80: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007ac90: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -0007aca0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -0007acb0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -0007acc0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0007acd0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0007ace0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0007acf0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0007ad00: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0007ad10: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007ad20: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007ad30: 7461 6c6b 5f72 656d 6f76 6564 0a3c 2f63  talk_removed.
Co │ │ │ -0007ab70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007aba0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007abc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007abd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007abf0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007ac00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0007a920: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0007a9c0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0007a9d0: 6c20 7461 6c6b 2050 6163 6b61 6765 3a20  l talk Package: 
│ │ │ +0007a9e0: 456e 7375 7265 2074 616c 6b20 6973 2072  Ensure talk is r
│ │ │ +0007a9f0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +0007aa00: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0007aa10: 653a 0a20 2020 206e 616d 653a 2074 616c  e:.    name: tal
│ │ │ +0007aa20: 6b0a 2020 2020 7374 6174 653a 2061 6273  k.    state: abs
│ │ │ +0007aa30: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0007aa40: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0007aa50: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0007aa60: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0007aa70: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0007aa80: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0007aa90: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0007aaa0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0007aab0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0007aac0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0007aad0: 655f 7461 6c6b 5f72 656d 6f76 6564 0a3c  e_talk_removed.<
│ │ │ +0007aae0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0007ab90: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0007aba0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0007a910: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007a940: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007a950: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007a990: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007a9a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0007ac40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007ac50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007aca0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0007ace0: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ +0007acf0: 6c6b 0a0a 636c 6173 7320 7265 6d6f 7665  lk..class remove
│ │ │ +0007ad00: 5f74 616c 6b20 7b0a 2020 7061 636b 6167  _talk {.  packag
│ │ │ +0007ad10: 6520 7b20 2774 616c 6b27 3a0a 2020 2020  e { 'talk':.    
│ │ │ +0007ad20: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0007ad30: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0007ad50: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation P │ │ │ -0007caa0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0007cab0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +0007ac30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007ac60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007ac70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007acb0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007acc0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0007cb30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0007cb50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0007cba0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0007cbd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0007cbf0: 655f 7465 6c6e 6574 2d73 6572 7665 720a  e_telnet-server.
│ │ │ -0007cc00: 0a63 6c61 7373 2072 656d 6f76 655f 7465  .class remove_te
│ │ │ -0007cc10: 6c6e 6574 2d73 6572 7665 7220 7b0a 2020  lnet-server {.  
│ │ │ -0007cc20: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ -0007cc30: 742d 7365 7276 6572 273a 0a20 2020 2065  t-server':.    e
│ │ │ -0007cc40: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0007cc50: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0007cc70: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007cc80: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007cc90: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007cca0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007ccb0: 6431 3037 2220 7461 6269 6e64 6578 3d22 d107" tabindex=" │ │ │ -0007ccc0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007ccd0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007cce0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007ccf0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007cd00: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007cd10: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0007cd20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007cd30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -0007cb60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0007cb70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0007cbb0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0007cbc0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ -0007cdb0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007cde0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007ce00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007ce10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007ce30: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007ce40: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0007ce60: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -0007ce70: 656c 6e65 742d 7365 7276 6572 2050 6163  elnet-server Pac
│ │ │ -0007ce80: 6b61 6765 3a20 456e 7375 7265 2074 656c  kage: Ensure tel
│ │ │ -0007ce90: 6e65 742d 7365 7276 6572 2069 7320 7265  net-server is re
│ │ │ -0007cea0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0007ceb0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007cec0: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ -0007ced0: 6574 2d73 6572 7665 720a 2020 2020 7374  et-server.    st
│ │ │ -0007cee0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0007cef0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -0007cf00: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0007cf10: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0007cf20: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0007cf30: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0007cf40: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -0007cf50: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -0007cf60: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -0007cf70: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -0007cf80: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0007cf90: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ -0007cfa0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0007cfb0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0007cfc0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -0007cfd0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0007cfe0: 636b 6167 655f 7465 6c6e 6574 2d73 6572  ckage_telnet-ser
│ │ │ -0007cff0: 7665 725f 7265 6d6f 7665 640a 3c2f 636f  ver_removed.Remediation A
│ │ │ +0007caa0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0007cab0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0007cb30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007cb50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007cba0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007cbd0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007cb40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007cb60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007cbb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007cbc0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +0007cbf0: 7374 616c 6c20 7465 6c6e 6574 2d73 6572  stall telnet-ser
│ │ │ +0007cc00: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +0007cc10: 7572 6520 7465 6c6e 6574 2d73 6572 7665  ure telnet-serve
│ │ │ +0007cc20: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ +0007cc30: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0007cc40: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0007cc50: 653a 2074 656c 6e65 742d 7365 7276 6572  e: telnet-server
│ │ │ +0007cc60: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0007cc70: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0007cc80: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0007cc90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0007cca0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0007ccb0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0007ccc0: 6229 0a20 202d 2050 4349 2d44 5353 2d52  b).  - PCI-DSS-R
│ │ │ +0007ccd0: 6571 2d32 2e32 2e32 0a20 202d 2050 4349  eq-2.2.2.  - PCI
│ │ │ +0007cce0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +0007ccf0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +0007cd00: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0007cd10: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +0007cd20: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +0007cd30: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0007cd40: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0007cd50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007cd60: 0a20 202d 2070 6163 6b61 6765 5f74 656c  .  - package_tel
│ │ │ +0007cd70: 6e65 742d 7365 7276 6572 5f72 656d 6f76  net-server_remov
│ │ │ +0007cd80: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007cd90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0007ce40: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0007ce50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007ced0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007cef0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007cf40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007cf70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0007cf90: 655f 7465 6c6e 6574 2d73 6572 7665 720a  e_telnet-server.
│ │ │ +0007cfa0: 0a63 6c61 7373 2072 656d 6f76 655f 7465  .class remove_te
│ │ │ +0007cfb0: 6c6e 6574 2d73 6572 7665 7220 7b0a 2020  lnet-server {.  
│ │ │ +0007cfc0: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ +0007cfd0: 742d 7365 7276 6572 273a 0a20 2020 2065  t-server':.    e
│ │ │ +0007cfe0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0007cff0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0007d010: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0007d020: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0007d030: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0007d040: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007d050: 6431 3038 2220 7461 6269 6e64 6578 3d22 d108" tabindex=" │ │ │ 0007d060: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -32278,93 +32278,93 @@ │ │ │ 0007e150: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007e160: 6431 3130 2220 7461 6269 6e64 6578 3d22 d110" tabindex=" │ │ │ 0007e170: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 0007e180: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 0007e190: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 0007e1a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 0007e1b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007e1c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0007e1d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +0007cf00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007cf10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007cf50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007cf60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ -0007e260: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007e270: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007e290: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007e2b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007e2c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007e300: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0007e310: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ -0007e320: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ -0007e330: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ -0007e340: 6765 207b 2027 7465 6c6e 6574 273a 0a20  ge { 'telnet':. 
│ │ │ -0007e350: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0007e360: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0007e370: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0007e420: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0007e430: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0007e440: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0007e510: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007e520: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0007e570: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -0007e580: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ -0007e590: 456e 7375 7265 2074 656c 6e65 7420 6973  Ensure telnet is
│ │ │ -0007e5a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0007e5b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0007e5c0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -0007e5d0: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ -0007e5e0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -0007e5f0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -0007e600: 2d33 2e31 2e31 330a 2020 2d20 5043 492d  -3.1.13.  - PCI-
│ │ │ -0007e610: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0007e620: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -0007e630: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0007e640: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0007e650: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0007e660: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -0007e670: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0007e680: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0007e690: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ -0007e6a0: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.<
│ │ │ +0007e1e0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -0007e4f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007e500: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007e540: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0007e550: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +0007e260: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007e290: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007e2b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007e2c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007e2e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007e2f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007e310: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ +0007e320: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ +0007e330: 7265 2074 656c 6e65 7420 6973 2072 656d  re telnet is rem
│ │ │ +0007e340: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0007e350: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0007e360: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ +0007e370: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ +0007e380: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0007e390: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +0007e3a0: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ +0007e3b0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +0007e3c0: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +0007e3d0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0007e3e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0007e3f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0007e400: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +0007e410: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0007e420: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0007e430: 6163 6b61 6765 5f74 656c 6e65 745f 7265  ackage_telnet_re
│ │ │ +0007e440: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0007e500: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0007e510: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0007e5a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0007e5c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0007e5d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007e5e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0007e5f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0007e610: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0007e640: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0007e650: 6d6f 7665 5f74 656c 6e65 740a 0a63 6c61  move_telnet..cla
│ │ │ +0007e660: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ +0007e670: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0007e680: 7465 6c6e 6574 273a 0a20 2020 2065 6e73  telnet':.    ens
│ │ │ +0007e690: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0007e6a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
R │ │ │ -000801d0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -000801e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00080280: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00080290: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000802e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00080320: 6e63 6c75 6465 2072 656d 6f76 655f 7466  nclude remove_tf
│ │ │ -00080330: 7470 642d 6870 610a 0a63 6c61 7373 2072  tpd-hpa..class r
│ │ │ -00080340: 656d 6f76 655f 7466 7470 642d 6870 6120  emove_tftpd-hpa 
│ │ │ -00080350: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ -00080360: 6674 7064 2d68 7061 273a 0a20 2020 2065  ftpd-hpa':.    e
│ │ │ -00080370: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00080380: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -000803a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000803b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000803c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000803d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000803e0: 6431 3135 2220 7461 6269 6e64 6578 3d22 d115" tabindex=" │ │ │ -000803f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00080400: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00080410: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00080420: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00080430: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00080440: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00080450: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00080460: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -00080270: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000802a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000802b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000802f0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00080300: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -000804e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00080510: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00080530: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00080540: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00080560: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00080570: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00080590: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -000805a0: 6674 7064 2d68 7061 2050 6163 6b61 6765  ftpd-hpa Package
│ │ │ -000805b0: 3a20 456e 7375 7265 2074 6674 7064 2d68  : Ensure tftpd-h
│ │ │ -000805c0: 7061 2069 7320 7265 6d6f 7665 6427 0a20  pa is removed'. 
│ │ │ -000805d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000805e0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -000805f0: 6d65 3a20 7466 7470 642d 6870 610a 2020  me: tftpd-hpa.  
│ │ │ -00080600: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00080610: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00080620: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00080630: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00080640: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00080650: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00080660: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00080670: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00080680: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00080690: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -000806a0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -000806b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000806c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000806d0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -000806e0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000806f0: 6167 655f 7466 7470 2d73 6572 7665 725f  age_tftp-server_
│ │ │ -00080700: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +000801d0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +000801e0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +00080280: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00080320: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00080330: 6c20 7466 7470 642d 6870 6120 5061 636b  l tftpd-hpa Pack
│ │ │ +00080340: 6167 653a 2045 6e73 7572 6520 7466 7470  age: Ensure tftp
│ │ │ +00080350: 642d 6870 6120 6973 2072 656d 6f76 6564  d-hpa is removed
│ │ │ +00080360: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00080370: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00080380: 206e 616d 653a 2074 6674 7064 2d68 7061   name: tftpd-hpa
│ │ │ +00080390: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +000803a0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +000803b0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +000803c0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +000803d0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +000803e0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +000803f0: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +00080400: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00080410: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00080420: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00080430: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +00080440: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00080450: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00080460: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00080470: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00080480: 6163 6b61 6765 5f74 6674 702d 7365 7276  ackage_tftp-serv
│ │ │ +00080490: 6572 5f72 656d 6f76 6564 0a3c 2f63 6f64  er_removed.
Remed │ │ │ +00080550: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00080560: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00080270: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000802a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000802b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000802f0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00080300: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00080610: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00080630: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00080660: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000805f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00080600: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00080620: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00080640: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00080650: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00080690: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +000806a0: 6465 2072 656d 6f76 655f 7466 7470 642d de remove_tftpd- │ │ │ +000806b0: 6870 610a 0a63 6c61 7373 2072 656d 6f76 hpa..class remov │ │ │ +000806c0: 655f 7466 7470 642d 6870 6120 7b0a 2020 e_tftpd-hpa {. │ │ │ +000806d0: 7061 636b 6167 6520 7b20 2774 6674 7064 package { 'tftpd │ │ │ +000806e0: 2d68 7061 273a 0a20 2020 2065 6e73 7572 -hpa':. ensur │ │ │ +000806f0: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ +00080700: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ 00080710: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation │ │ │ -00081700: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00081710: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000817a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000817c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000817e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00081810: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00081820: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00081850: 6f76 655f 7466 7470 0a0a 636c 6173 7320  ove_tftp..class 
│ │ │ -00081860: 7265 6d6f 7665 5f74 6674 7020 7b0a 2020  remove_tftp {.  
│ │ │ -00081870: 7061 636b 6167 6520 7b20 2774 6674 7027  package { 'tftp'
│ │ │ -00081880: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00081890: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -000818a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000818b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00081960: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00081970: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000819f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00081a10: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00081a60: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00081a90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00081a00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00081a20: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00081a70: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00081a80: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ -00081ab0: 7665 2074 6674 7020 4461 656d 6f6e 3a20  ve tftp Daemon: 
│ │ │ -00081ac0: 456e 7375 7265 2074 6674 7020 6973 2072  Ensure tftp is r
│ │ │ -00081ad0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00081ae0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00081af0: 653a 0a20 2020 206e 616d 653a 2074 6674  e:.    name: tft
│ │ │ -00081b00: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ -00081b10: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -00081b20: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -00081b30: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -00081b40: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ -00081b50: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00081b60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00081b70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00081b80: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00081b90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00081ba0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ -00081bb0: 6674 705f 7265 6d6f 7665 640a 3c2f 636f  ftp_removed.
Complexity │ │ │ +000817a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000817c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000817d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000817e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000817f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00081810: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00081840: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ +00081850: 6d6f 7665 2074 6674 7020 4461 656d 6f6e  move tftp Daemon
│ │ │ +00081860: 3a20 456e 7375 7265 2074 6674 7020 6973  : Ensure tftp is
│ │ │ +00081870: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00081880: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00081890: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +000818a0: 6674 700a 2020 2020 7374 6174 653a 2061  ftp.    state: a
│ │ │ +000818b0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +000818c0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +000818d0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +000818e0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +000818f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00081900: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00081910: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00081920: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +00081930: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00081940: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00081950: 5f74 6674 705f 7265 6d6f 7665 640a 3c2f  _tftp_removed.
Re │ │ │ +00081a10: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00081a20: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00081a30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00081ad0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00081b20: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00081b60: 636c 7564 6520 7265 6d6f 7665 5f74 6674  clude remove_tft
│ │ │ +00081b70: 700a 0a63 6c61 7373 2072 656d 6f76 655f  p..class remove_
│ │ │ +00081b80: 7466 7470 207b 0a20 2070 6163 6b61 6765  tftp {.  package
│ │ │ +00081b90: 207b 2027 7466 7470 273a 0a20 2020 2065   { 'tftp':.    e
│ │ │ +00081ba0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00081bb0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00081bd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00081be0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00081bf0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00081c00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00081c10: 6431 3230 2220 7461 6269 6e64 6578 3d22 d120" tabindex=" │ │ │ 00081c20: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ ├── html2text {} │ │ │ │ @@ -2162,31 +2162,14 @@ │ │ │ │ Rationale: effectiveness of a password in resisting attempts at guessing and brute-force │ │ │ │ attacks. "pwquality" enforces complex password construction configuration and has │ │ │ │ the ability to limit brute-force attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2207,14 +2190,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -2833,27 +2833,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -2867,14 +2854,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -2903,27 +2903,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally │ │ │ │ reactivated and disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -2932,14 +2919,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove kea │ │ │ │ @@ -3005,27 +3005,14 @@ │ │ │ │ 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -3052,14 +3039,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -3134,27 +3134,14 @@ │ │ │ │ A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -3186,14 +3173,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -3244,27 +3244,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e) │ │ │ │ (1), 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3275,14 +3262,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypbind-mt │ │ │ │ @@ -3337,27 +3337,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3373,14 +3360,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -3436,27 +3436,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, │ │ │ │ A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-server │ │ │ │ - │ │ │ │ -class remove_rsh-server { │ │ │ │ - package { 'rsh-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh-server Package: Ensure rsh-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3471,14 +3458,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-server │ │ │ │ + │ │ │ │ +class remove_rsh-server { │ │ │ │ + package { 'rsh-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-server │ │ │ │ @@ -3518,27 +3518,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312 │ │ │ │ (e)(1), 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3550,14 +3537,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -3594,27 +3594,14 @@ │ │ │ │ accidental (or intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e) │ │ │ │ References: (1), 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3625,14 +3612,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk-server │ │ │ │ @@ -3672,27 +3672,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e) │ │ │ │ (1), 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3703,14 +3690,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -3774,27 +3774,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3809,14 +3796,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet-server │ │ │ │ @@ -3857,27 +3857,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312 │ │ │ │ (e)(1), 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3889,14 +3876,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -3955,27 +3955,14 @@ │ │ │ │ A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3989,14 +3976,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -4033,27 +4033,14 @@ │ │ │ │ Rationale: (such as a boot server). In that case, use extreme caution when configuring the │ │ │ │ services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4064,14 +4051,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftp │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_average.html │ │ │ @@ -20938,128 +20938,128 @@ │ │ │ 00051c90: 6172 6765 743d 2223 6964 3338 2220 7461 arget="#id38" ta │ │ │ 00051ca0: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 00051cb0: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 00051cc0: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 00051cd0: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 00051ce0: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 00051cf0: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -00051d00: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00051d10: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -00051d60: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00051d70: 6520 3d20 2273 7973 6c6f 672d 6e67 220a  e = "syslog-ng".
│ │ │ -00051d80: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -00051e40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00051e50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00051e60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +00081ab0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00081ae0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00081b00: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00081b10: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00081b30: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00081b40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -00051ee0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00051ef0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00051f10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00051f30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00051f40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00051f80: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00051f90: 6520 696e 7374 616c 6c5f 7379 736c 6f67 e install_syslog │ │ │ -00051fa0: 2d6e 670a 0a63 6c61 7373 2069 6e73 7461 -ng..class insta │ │ │ -00051fb0: 6c6c 5f73 7973 6c6f 672d 6e67 207b 0a20 ll_syslog-ng {. │ │ │ -00051fc0: 2070 6163 6b61 6765 207b 2027 7379 736c package { 'sysl │ │ │ -00051fd0: 6f67 2d6e 6727 3a0a 2020 2020 656e 7375 og-ng':. ensu │ │ │ -00051fe0: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -00051ff0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.
< │ │ │ -00052010: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00052020: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00052030: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00052040: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00052050: 6434 3022 2074 6162 696e 6465 783d 2230 d40" tabindex="0 │ │ │ -00052060: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00052070: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00052080: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00052090: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -000520a0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -000520b0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000520c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00052170: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00052190: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000521c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00052150: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00052160: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00052180: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000521a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000521b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00052200: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00052210: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00052220: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00052230: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00052240: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00052250: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00052260: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -00052270: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00052280: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00052290: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -000522a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -000522b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -000522c0: 2020 2d20 7061 636b 6167 655f 7379 736c - package_sysl │ │ │ -000522d0: 6f67 6e67 5f69 6e73 7461 6c6c 6564 0a0a ogng_installed.. │ │ │ -000522e0: 2d20 6e61 6d65 3a20 456e 7375 7265 2073 - name: Ensure s │ │ │ -000522f0: 7973 6c6f 672d 6e67 2069 7320 696e 7374 yslog-ng is inst │ │ │ -00052300: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ -00052310: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -00052320: 0a20 2020 206e 616d 653a 2073 7973 6c6f . name: syslo │ │ │ -00052330: 672d 6e67 0a20 2020 2073 7461 7465 3a20 g-ng. state: │ │ │ -00052340: 7072 6573 656e 740a 2020 7768 656e 3a20 present. when: │ │ │ -00052350: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -00052360: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00052370: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ -00052380: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00052390: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ -000523a0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -000523b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -000523c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -000523d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -000523e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -000523f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00052400: 7061 636b 6167 655f 7379 736c 6f67 6e67 package_syslogng │ │ │ -00052410: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

│ │ │ +00051d90: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00051db0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00051e00: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00051e30: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00051e50: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00051e60: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00051e70: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00051e80: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00051e90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00051ea0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00051eb0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00051ec0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00051ed0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00051ee0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00051ef0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00051f00: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00051f10: 6b61 6765 5f73 7973 6c6f 676e 675f 696e  kage_syslogng_in
│ │ │ +00051f20: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00051f30: 2045 6e73 7572 6520 7379 736c 6f67 2d6e   Ensure syslog-n
│ │ │ +00051f40: 6720 6973 2069 6e73 7461 6c6c 6564 0a20  g is installed. 
│ │ │ +00051f50: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00051f60: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00051f70: 6d65 3a20 7379 736c 6f67 2d6e 670a 2020  me: syslog-ng.  
│ │ │ +00051f80: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00051f90: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00051fa0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00051fb0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00051fc0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +00051fd0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00051fe0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00051ff0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00052000: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00052010: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00052020: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00052030: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00052040: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00052050: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +00052060: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation P │ │ │ +00052120: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00052130: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +00051da0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00051dc0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00051e10: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00051e20: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +00052200: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00052210: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00052260: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00052270: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ +00052280: 2069 6e73 7461 6c6c 5f73 7973 6c6f 672d   install_syslog-
│ │ │ +00052290: 6e67 207b 0a20 2070 6163 6b61 6765 207b  ng {.  package {
│ │ │ +000522a0: 2027 7379 736c 6f67 2d6e 6727 3a0a 2020   'syslog-ng':.  
│ │ │ +000522b0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000522c0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000522d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000522e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +00052390: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000523a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +000523f0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +00052400: 2022 7379 736c 6f67 2d6e 6722 0a76 6572   "syslog-ng".ver
│ │ │ +00052410: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediati │ │ │ -000534b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000534c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000534d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizatio
│ │ │ -00053520: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -00053530: 626c 6564 203d 205b 2273 7973 6c6f 672d  bled = ["syslog-
│ │ │ -00053540: 6e67 225d 0a3c 2f63 6f64 653e 3c2f 7072  ng"].
Remediation │ │ │ -00053600: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00053610: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +000521e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000521f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00052230: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00052240: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00053690: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000536b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00053700: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -00053750: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ -00053760: 2065 6e61 626c 655f 7379 736c 6f67 2d6e   enable_syslog-n
│ │ │ -00053770: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ -00053780: 7379 736c 6f67 2d6e 6727 3a0a 2020 2020  syslog-ng':.    
│ │ │ -00053790: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ -000537a0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -000537b0: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ -000537c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -00053880: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -00053890: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low
Disr │ │ │ -000536c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000536d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00053710: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00053720: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00053910: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00053930: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00053980: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000539b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -000539d0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000539e0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -000539f0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00053a00: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00053a10: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00053a20: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -00053a30: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00053a40: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00053a50: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00053a60: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00053a70: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00053a80: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00053a90: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00053aa0: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ -00053ab0: 6c6f 676e 675f 656e 6162 6c65 640a 0a2d  logng_enabled..-
│ │ │ -00053ac0: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ -00053ad0: 736c 6f67 2d6e 6720 5365 7276 6963 6520  slog-ng Service 
│ │ │ -00053ae0: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -00053af0: 2073 7973 6c6f 672d 6e67 0a20 2062 6c6f   syslog-ng.  blo
│ │ │ -00053b00: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -00053b10: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00053b20: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -00053b30: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00053b40: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -00053b50: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -00053b60: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -00053b70: 2073 7973 6c6f 672d 6e67 2053 6572 7669   syslog-ng Servi
│ │ │ -00053b80: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ -00053b90: 6963 6520 7379 736c 6f67 2d6e 670a 2020  ice syslog-ng.  
│ │ │ -00053ba0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00053bb0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00053bc0: 206e 616d 653a 2073 7973 6c6f 672d 6e67   name: syslog-ng
│ │ │ -00053bd0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00053be0: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -00053bf0: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -00053c00: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -00053c10: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -00053c20: 7379 736c 6f67 2d6e 6722 2069 6e20 616e  syslog-ng" in an
│ │ │ -00053c30: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00053c40: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -00053c50: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00053c60: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -00053c70: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00053c80: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00053c90: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00053ca0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00053cb0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00053cc0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00053cd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00053ce0: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ -00053cf0: 6c6f 676e 675f 656e 6162 6c65 640a 2020  logng_enabled.  
│ │ │ -00053d00: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00053d10: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00053d20: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00053d30: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00053d40: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +000534b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +000534c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +00053540: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00053580: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -00053920: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00053940: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00053990: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000539a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ +00053550: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00053570: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000535a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000535c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000535f0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00053600: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00053610: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00053620: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00053630: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00053640: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00053650: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ +00053660: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00053670: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00053680: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00053690: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000536a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000536b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000536c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000536d0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +000536e0: 7379 736c 6f67 6e67 5f65 6e61 626c 6564  syslogng_enabled
│ │ │ +000536f0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +00053700: 2073 7973 6c6f 672d 6e67 2053 6572 7669   syslog-ng Servi
│ │ │ +00053710: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ +00053720: 6963 6520 7379 736c 6f67 2d6e 670a 2020  ice syslog-ng.  
│ │ │ +00053730: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00053740: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +00053750: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +00053760: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00053770: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00053780: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00053790: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +000537a0: 626c 6520 7379 736c 6f67 2d6e 6720 5365  ble syslog-ng Se
│ │ │ +000537b0: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ +000537c0: 6572 7669 6365 2073 7973 6c6f 672d 6e67  ervice syslog-ng
│ │ │ +000537d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +000537e0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +000537f0: 2020 2020 6e61 6d65 3a20 7379 736c 6f67      name: syslog
│ │ │ +00053800: 2d6e 670a 2020 2020 2020 656e 6162 6c65  -ng.      enable
│ │ │ +00053810: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +00053820: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +00053830: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +00053840: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +00053850: 2027 2273 7973 6c6f 672d 6e67 2220 696e   '"syslog-ng" in
│ │ │ +00053860: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00053870: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00053880: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00053890: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ +000538a0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +000538b0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000538c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000538d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000538e0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000538f0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00053900: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00053910: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00053920: 7379 736c 6f67 6e67 5f65 6e61 626c 6564  syslogng_enabled
│ │ │ +00053930: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +00053940: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +00053950: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00053960: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00053970: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00053990: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000539a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000539b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000539c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000539d0: 6434 3422 2074 6162 696e 6465 783d 2230 d44" tabindex="0 │ │ │ +000539e0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +000539f0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00053a00: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00053a10: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00053a20: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00053a30: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00053a40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00053a80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00053af0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00053b10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00053b40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00053b60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00053ad0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00053ae0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00053b20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00053b30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00053b80: 656e 6162 6c65 5f73 7973 6c6f 672d 6e67 enable_syslog-ng │ │ │ +00053b90: 0a0a 636c 6173 7320 656e 6162 6c65 5f73 ..class enable_s │ │ │ +00053ba0: 7973 6c6f 672d 6e67 207b 0a20 2073 6572 yslog-ng {. ser │ │ │ +00053bb0: 7669 6365 207b 2773 7973 6c6f 672d 6e67 vice {'syslog-ng │ │ │ +00053bc0: 273a 0a20 2020 2065 6e61 626c 6520 3d26 ':. enable =& │ │ │ +00053bd0: 6774 3b20 7472 7565 2c0a 2020 2020 656e gt; true,. en │ │ │ +00053be0: 7375 7265 203d 2667 743b 2027 7275 6e6e sure => 'runn │ │ │ +00053bf0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f ing',. }.}.
< │ │ │ +00053c10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00053c20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00053c30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00053c40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00053c50: 6434 3522 2074 6162 696e 6465 783d 2230 d45" tabindex="0 │ │ │ +00053c60: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00053c70: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00053c80: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00053c90: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00053ca0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00053cb0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00053cc0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00053cd0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ +00053d10: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00053d20: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00053d30: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ +00053d40: 6c6f 672d 6e67 225d 0a3c 2f63 6f64 653e  log-ng"].
│ │ │  00053d50: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00054ef0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00054f00: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00054f10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -00054f50: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -00054f60: 5d5d 0a6e 616d 6520 3d20 2272 7379 736c  ]].name = "rsysl
│ │ │ -00054f70: 6f67 220a 7665 7273 696f 6e20 3d20 222a  og".version = "*
│ │ │ -00054f80: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -00054f90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ -00055040: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00055050: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -000550e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00055180: 636c 7564 6520 696e 7374 616c 6c5f 7273  clude install_rs
│ │ │ -00055190: 7973 6c6f 670a 0a63 6c61 7373 2069 6e73  yslog..class ins
│ │ │ -000551a0: 7461 6c6c 5f72 7379 736c 6f67 207b 0a20  tall_rsyslog {. 
│ │ │ -000551b0: 2070 6163 6b61 6765 207b 2027 7273 7973   package { 'rsys
│ │ │ -000551c0: 6c6f 6727 3a0a 2020 2020 656e 7375 7265  log':.    ensure
│ │ │ -000551d0: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -000551e0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ -000552a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000552b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000552c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000552f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00055300: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00055310: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00055320: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00055330: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -000553c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -000553d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -000550d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00055100: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00055110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00055150: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00055160: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00055340: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00055350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00055390: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000553a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -000553f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00055400: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00055410: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00055420: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00055430: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00055440: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00055450: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00055460: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00055470: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00055480: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00055490: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000554a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000554b0: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -000554c0: 675f 696e 7374 616c 6c65 640a 0a2d 206e  g_installed..- n
│ │ │ -000554d0: 616d 653a 2045 6e73 7572 6520 7273 7973  ame: Ensure rsys
│ │ │ -000554e0: 6c6f 6720 6973 2069 6e73 7461 6c6c 6564  log is installed
│ │ │ -000554f0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00055500: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00055510: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ -00055520: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -00055530: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00055540: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00055550: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00055560: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -00055570: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00055580: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -00055590: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000555a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000555b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000555c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000555d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000555e0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000555f0: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ -00055600: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00054ef0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +00054f00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00054f40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00054fb0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00054fd0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00055000: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00055020: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00054f90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00054fa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00054fe0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00054ff0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00055040: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00055050: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00055060: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00055070: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00055080: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00055090: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +000550a0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +000550b0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +000550c0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +000550d0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +000550e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +000550f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +00055100: 202d 2070 6163 6b61 6765 5f72 7379 736c - package_rsysl │ │ │ +00055110: 6f67 5f69 6e73 7461 6c6c 6564 0a0a 2d20 og_installed..- │ │ │ +00055120: 6e61 6d65 3a20 456e 7375 7265 2072 7379 name: Ensure rsy │ │ │ +00055130: 736c 6f67 2069 7320 696e 7374 616c 6c65 slog is installe │ │ │ +00055140: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ +00055150: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +00055160: 206e 616d 653a 2072 7379 736c 6f67 0a20 name: rsyslog. │ │ │ +00055170: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ +00055180: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ +00055190: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ +000551a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +000551b0: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ +000551c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ +000551d0: 6129 0a20 202d 2065 6e61 626c 655f 7374 a). - enable_st │ │ │ +000551e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +000551f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00055200: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00055210: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +00055220: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00055230: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +00055240: 655f 7273 7973 6c6f 675f 696e 7374 616c e_rsyslog_instal │ │ │ +00055250: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
Remediation P │ │ │ +00055310: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00055320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ +000553f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00055400: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00055450: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00055460: 7273 7973 6c6f 670a 0a63 6c61 7373 2069  rsyslog..class i
│ │ │ +00055470: 6e73 7461 6c6c 5f72 7379 736c 6f67 207b  nstall_rsyslog {
│ │ │ +00055480: 0a20 2070 6163 6b61 6765 207b 2027 7273  .  package { 'rs
│ │ │ +00055490: 7973 6c6f 6727 3a0a 2020 2020 656e 7375  yslog':.    ensu
│ │ │ +000554a0: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +000554b0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +000554d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000554e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000554f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00055500: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00055510: 6435 3022 2074 6162 696e 6465 783d 2230 d50" tabindex="0 │ │ │ +00055520: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00055530: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00055540: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00055550: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00055560: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00055570: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00055580: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00055590: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ +000555d0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000555e0: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ +000555f0: 6c6f 6722 0a76 6572 7369 6f6e 203d 2022  log".version = "
│ │ │ +00055600: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 00055610: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation OSB │ │ │ -00056880: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00056890: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[cu
│ │ │ -000568e0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -000568f0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ -00056900: 205b 2272 7379 736c 6f67 225d 0a3c 2f63   ["rsyslog"].
│ │ │ -00056920: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -000569c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -000569d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +000553d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000553e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00055420: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00055430: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00056a80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00056aa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00056ad0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00056a60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00056a70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00056a90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00056ab0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00056ac0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00056b10: 2065 6e61 626c 655f 7273 7973 6c6f 670a enable_rsyslog. │ │ │ -00056b20: 0a63 6c61 7373 2065 6e61 626c 655f 7273 .class enable_rs │ │ │ -00056b30: 7973 6c6f 6720 7b0a 2020 7365 7276 6963 yslog {. servic │ │ │ -00056b40: 6520 7b27 7273 7973 6c6f 6727 3a0a 2020 e {'rsyslog':. │ │ │ -00056b50: 2020 656e 6162 6c65 203d 2667 743b 2074 enable => t │ │ │ -00056b60: 7275 652c 0a20 2020 2065 6e73 7572 6520 rue,. ensure │ │ │ -00056b70: 3d26 6774 3b20 2772 756e 6e69 6e67 272c => 'running', │ │ │ -00056b80: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediatio │ │ │ -00056c40: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00056c50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -00056ce0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00056d00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00056d10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00056d20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00056d30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00056d50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -00056d90: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00056da0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00056db0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00056dc0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00056dd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00056de0: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ -00056df0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00056e00: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00056e10: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00056e20: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00056e30: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00056e40: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00056e50: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00056e60: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ -00056e70: 7379 736c 6f67 5f65 6e61 626c 6564 0a0a  syslog_enabled..
│ │ │ -00056e80: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ -00056e90: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ -00056ea0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -00056eb0: 7273 7973 6c6f 670a 2020 626c 6f63 6b3a  rsyslog.  block:
│ │ │ -00056ec0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -00056ed0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00056ee0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -00056ef0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00056f00: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -00056f10: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -00056f20: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ -00056f30: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ -00056f40: 456e 6162 6c65 2053 6572 7669 6365 2072  Enable Service r
│ │ │ -00056f50: 7379 736c 6f67 0a20 2020 2061 6e73 6962  syslog.    ansib
│ │ │ -00056f60: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00056f70: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00056f80: 7273 7973 6c6f 670a 2020 2020 2020 656e  rsyslog.      en
│ │ │ -00056f90: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ -00056fa0: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ -00056fb0: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ -00056fc0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ -00056fd0: 2020 202d 2027 2272 7379 736c 6f67 2220     - '"rsyslog" 
│ │ │ -00056fe0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00056ff0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00057000: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00057010: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -00057020: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00057030: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00057040: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00057050: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00057060: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00057070: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00057080: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00057090: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -000570a0: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ -000570b0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -000570c0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -000570d0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -000570e0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000570f0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.Remediation Ans
│ │ │ +00056880: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00056890: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +00056960: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00056970: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000569c0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000569d0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000569e0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000569f0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00056a00: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00056a10: 4953 542d 3830 302d 3533 2d41 552d 3428  IST-800-53-AU-4(
│ │ │ +00056a20: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +00056a30: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +00056a40: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00056a50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00056a60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00056a70: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00056a80: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00056a90: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00056aa0: 2d20 7365 7276 6963 655f 7273 7973 6c6f  - service_rsyslo
│ │ │ +00056ab0: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ +00056ac0: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ +00056ad0: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ +00056ae0: 6c65 2073 6572 7669 6365 2072 7379 736c  le service rsysl
│ │ │ +00056af0: 6f67 0a20 2062 6c6f 636b 3a0a 0a20 202d  og.  block:..  -
│ │ │ +00056b00: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00056b10: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00056b20: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00056b30: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ +00056b40: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ +00056b50: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ +00056b60: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ +00056b70: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00056b80: 6520 5365 7276 6963 6520 7273 7973 6c6f  e Service rsyslo
│ │ │ +00056b90: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ +00056ba0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00056bb0: 2020 2020 206e 616d 653a 2072 7379 736c       name: rsysl
│ │ │ +00056bc0: 6f67 0a20 2020 2020 2065 6e61 626c 6564  og.      enabled
│ │ │ +00056bd0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ +00056be0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ +00056bf0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ +00056c00: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ +00056c10: 2722 7273 7973 6c6f 6722 2069 6e20 616e  '"rsyslog" in an
│ │ │ +00056c20: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00056c30: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00056c40: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00056c50: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ +00056c60: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00056c70: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00056c80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00056c90: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00056ca0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00056cb0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00056cc0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00056cd0: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ +00056ce0: 736c 6f67 5f65 6e61 626c 6564 0a20 202d  slog_enabled.  -
│ │ │ +00056cf0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00056d00: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00056d10: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00056d20: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00056d30: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00056d40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ +00056df0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00056e00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00056ec0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00056ed0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +00056940: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00056950: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00056990: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000569a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +00056e90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00056eb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00056ee0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00056f00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00056f40: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ +00056f50: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ +00056f60: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ +00056f70: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ +00056f80: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00056f90: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00056fa0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00056fb0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00056fc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +00057070: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00057080: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[cu
│ │ │ +000570d0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +000570e0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +000570f0: 205b 2272 7379 736c 6f67 225d 0a3c 2f63   ["rsyslog"].
│ │ │ 00057110: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remed │ │ │ -00079470: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00079480: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00079530: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00079550: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00079580: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00079510: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00079520: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00079540: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00079560: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00079570: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000795b0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -000795c0: 6465 2072 656d 6f76 655f 696e 6574 7574 de remove_inetut │ │ │ -000795d0: 696c 732d 7465 6c6e 6574 640a 0a63 6c61 ils-telnetd..cla │ │ │ -000795e0: 7373 2072 656d 6f76 655f 696e 6574 7574 ss remove_inetut │ │ │ -000795f0: 696c 732d 7465 6c6e 6574 6420 7b0a 2020 ils-telnetd {. │ │ │ -00079600: 7061 636b 6167 6520 7b20 2769 6e65 7475 package { 'inetu │ │ │ -00079610: 7469 6c73 2d74 656c 6e65 7464 273a 0a20 tils-telnetd':. │ │ │ -00079620: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -00079630: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ -00079640: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ -000796f0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00079700: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00079710: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000797e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000797f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00079840: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00079850: 6c6c 2074 6865 2069 6e65 742d 6261 7365  ll the inet-base
│ │ │ -00079860: 6420 7465 6c6e 6574 2073 6572 7665 723a  d telnet server:
│ │ │ -00079870: 2045 6e73 7572 6520 696e 6574 7574 696c   Ensure inetutil
│ │ │ -00079880: 732d 7465 6c6e 6574 6420 6973 2072 656d  s-telnetd is rem
│ │ │ -00079890: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -000798a0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000798b0: 0a20 2020 206e 616d 653a 2069 6e65 7475  .    name: inetu
│ │ │ -000798c0: 7469 6c73 2d74 656c 6e65 7464 0a20 2020  tils-telnetd.   
│ │ │ -000798d0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -000798e0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -000798f0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00079900: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00079910: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -00079920: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -00079930: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00079940: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -00079950: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -00079960: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00079970: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00079980: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00079990: 0a20 202d 2070 6163 6b61 6765 5f69 6e65  .  - package_ine
│ │ │ -000799a0: 7475 7469 6c73 2d74 656c 6e65 7464 5f72  tutils-telnetd_r
│ │ │ -000799b0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Complexity:low
Disrup │ │ │ -000797c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000797d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00079810: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00079820: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +00079510: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00079520: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00079540: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00079560: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00079570: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +000795b0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000795c0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +000795d0: 6520 696e 6574 2d62 6173 6564 2074 656c  e inet-based tel
│ │ │ +000795e0: 6e65 7420 7365 7276 6572 3a20 456e 7375  net server: Ensu
│ │ │ +000795f0: 7265 2069 6e65 7475 7469 6c73 2d74 656c  re inetutils-tel
│ │ │ +00079600: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ +00079610: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00079620: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00079630: 6e61 6d65 3a20 696e 6574 7574 696c 732d  name: inetutils-
│ │ │ +00079640: 7465 6c6e 6574 640a 2020 2020 7374 6174  telnetd.    stat
│ │ │ +00079650: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00079660: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00079670: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00079680: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00079690: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000796a0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +000796b0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +000796c0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +000796d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000796e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000796f0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00079700: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00079710: 7061 636b 6167 655f 696e 6574 7574 696c  package_inetutil
│ │ │ +00079720: 732d 7465 6c6e 6574 645f 7265 6d6f 7665  s-telnetd_remove
│ │ │ +00079730: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00079740: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ +000797f0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00079800: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000798d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000798e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00079940: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ +00079950: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ +00079960: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ +00079970: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ +00079980: 2027 696e 6574 7574 696c 732d 7465 6c6e   'inetutils-teln
│ │ │ +00079990: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ +000799a0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +000799b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
│ │ │ -0007a7a0: 5265 6d65 6469 6174 696f 6e20 5075 7070  Remediation Pupp
│ │ │ -0007a7b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f  et snippet ...
low
Disru │ │ │ +000798b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000798c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00079900: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00079910: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0007a850: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0007a8f0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ -0007a900: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ -0007a910: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ -0007a920: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ -0007a930: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0007a940: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0007aa00: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0007aa10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0007a840: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007a870: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007a880: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007a8c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007a8d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -0007aaa0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007aab0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007aad0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007aaf0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007ab00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007ab40: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007ab50: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -0007ab60: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ -0007ab70: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ -0007ab80: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007ab90: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007aba0: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ -0007abb0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0007abc0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -0007abd0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0007abe0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0007abf0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0007ac00: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0007ac10: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0007ac20: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0007ac30: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ -0007ac40: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0007a7a0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +0007a7b0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +0007a7c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0007a890: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007a8a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007a8f0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0007a900: 6c6c 2074 6865 206e 6973 2070 6163 6b61  ll the nis packa
│ │ │ +0007a910: 6765 3a20 456e 7375 7265 206e 6973 2069  ge: Ensure nis i
│ │ │ +0007a920: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0007a930: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0007a940: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0007a950: 6e69 730a 2020 2020 7374 6174 653a 2061  nis.    state: a
│ │ │ +0007a960: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +0007a970: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0007a980: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0007a990: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007a9a0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +0007a9b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0007a9c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0007a9d0: 202d 2070 6163 6b61 6765 5f6e 6973 5f72   - package_nis_r
│ │ │ +0007a9e0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0007aaa0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0007aab0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0007ab30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0007ab70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +0007a870: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007a880: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007a8c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007a8d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +0007ab40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0007ab60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0007ab90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0007abb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0007abe0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0007abf0: 656d 6f76 655f 6e69 730a 0a63 6c61 7373  emove_nis..class
│ │ │ +0007ac00: 2072 656d 6f76 655f 6e69 7320 7b0a 2020   remove_nis {.  
│ │ │ +0007ac10: 7061 636b 6167 6520 7b20 276e 6973 273a  package { 'nis':
│ │ │ +0007ac20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0007ac30: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0007ac40: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0007ac50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Reme │ │ │ -0007b870: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0007b880: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0007b910: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007b920: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007b940: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007b960: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007b970: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007b9b0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0007b9c0: 7564 6520 7265 6d6f 7665 5f6e 7470 6461  ude remove_ntpda
│ │ │ -0007b9d0: 7465 0a0a 636c 6173 7320 7265 6d6f 7665  te..class remove
│ │ │ -0007b9e0: 5f6e 7470 6461 7465 207b 0a20 2070 6163  _ntpdate {.  pac
│ │ │ -0007b9f0: 6b61 6765 207b 2027 6e74 7064 6174 6527  kage { 'ntpdate'
│ │ │ -0007ba00: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0007ba10: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0007ba20: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0007ba30: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -0007bae0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0007baf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0007bb70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007bb90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007bbe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007bc10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007bb80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007bba0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007bbf0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007bc00: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0007bc30: 7374 616c 6c20 7468 6520 6e74 7064 6174  stall the ntpdat
│ │ │ -0007bc40: 6520 7061 636b 6167 653a 2045 6e73 7572  e package: Ensur
│ │ │ -0007bc50: 6520 6e74 7064 6174 6520 6973 2072 656d  e ntpdate is rem
│ │ │ -0007bc60: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007bc70: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007bc80: 0a20 2020 206e 616d 653a 206e 7470 6461  .    name: ntpda
│ │ │ -0007bc90: 7465 0a20 2020 2073 7461 7465 3a20 6162  te.    state: ab
│ │ │ -0007bca0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0007bcb0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0007bcc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0007bcd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0007bce0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -0007bcf0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0007bd00: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0007bd10: 2d20 7061 636b 6167 655f 6e74 7064 6174  - package_ntpdat
│ │ │ -0007bd20: 655f 7265 6d6f 7665 640a 3c2f 636f 6465  e_removed.<
│ │ │ +0007b890: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +0007b910: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007b940: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007b960: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007b970: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007b990: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007b9a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007b9c0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +0007b9d0: 6865 206e 7470 6461 7465 2070 6163 6b61  he ntpdate packa
│ │ │ +0007b9e0: 6765 3a20 456e 7375 7265 206e 7470 6461  ge: Ensure ntpda
│ │ │ +0007b9f0: 7465 2069 7320 7265 6d6f 7665 6427 0a20  te is removed'. 
│ │ │ +0007ba00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0007ba10: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0007ba20: 6d65 3a20 6e74 7064 6174 650a 2020 2020  me: ntpdate.    
│ │ │ +0007ba30: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0007ba40: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +0007ba50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0007ba60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0007ba70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0007ba80: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +0007ba90: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0007baa0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0007bab0: 6765 5f6e 7470 6461 7465 5f72 656d 6f76  ge_ntpdate_remov
│ │ │ +0007bac0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007bad0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0007bb80: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0007bb90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007bc10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007bc30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007bc80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007bcb0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0007bcd0: 655f 6e74 7064 6174 650a 0a63 6c61 7373  e_ntpdate..class
│ │ │ +0007bce0: 2072 656d 6f76 655f 6e74 7064 6174 6520   remove_ntpdate 
│ │ │ +0007bcf0: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ +0007bd00: 7470 6461 7465 273a 0a20 2020 2065 6e73  tpdate':.    ens
│ │ │ +0007bd10: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0007bd20: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ -0007d0b0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0007d0c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0007d0d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007d0e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007d0f0: 7365 2220 6964 3d22 6964 3132 3322 3e3c se" id="id123">< │ │ │ -0007d100: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007d110: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007d120: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007d130: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007d140: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ -0007d1d0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0007d1e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +0007bc40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007bc50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007bc90: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007bca0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ -0007d150: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007d160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0007d1a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007d1b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -0007d200: 2072 656d 6f76 655f 7465 6c6e 6574 642d remove_telnetd- │ │ │ -0007d210: 7373 6c0a 0a63 6c61 7373 2072 656d 6f76 ssl..class remov │ │ │ -0007d220: 655f 7465 6c6e 6574 642d 7373 6c20 7b0a e_telnetd-ssl {. │ │ │ -0007d230: 2020 7061 636b 6167 6520 7b20 2774 656c package { 'tel │ │ │ -0007d240: 6e65 7464 2d73 736c 273a 0a20 2020 2065 netd-ssl':. e │ │ │ -0007d250: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ -0007d260: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ -0007d280: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007d290: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007d2a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007d2b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007d2c0: 6431 3234 2220 7461 6269 6e64 6578 3d22 d124" tabindex=" │ │ │ -0007d2d0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007d2e0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007d2f0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007d300: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007d310: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007d320: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0007d330: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007d340: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007d3c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007d3f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007d410: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007d420: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007d440: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007d450: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0007d470: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -0007d480: 6865 2073 736c 2063 6f6d 706c 6961 6e74  he ssl compliant
│ │ │ -0007d490: 2074 656c 6e65 7420 7365 7276 6572 3a20   telnet server: 
│ │ │ -0007d4a0: 456e 7375 7265 2074 656c 6e65 7464 2d73  Ensure telnetd-s
│ │ │ -0007d4b0: 736c 2069 7320 7265 6d6f 7665 6427 0a20  sl is removed'. 
│ │ │ -0007d4c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0007d4d0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0007d4e0: 6d65 3a20 7465 6c6e 6574 642d 7373 6c0a  me: telnetd-ssl.
│ │ │ -0007d4f0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007d500: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -0007d510: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0007d520: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0007d530: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0007d540: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0007d550: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -0007d560: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -0007d570: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -0007d580: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007d590: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007d5a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007d5b0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007d5c0: 7465 6c6e 6574 642d 7373 6c5f 7265 6d6f  telnetd-ssl_remo
│ │ │ -0007d5d0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +0007d0d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007d100: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0007d170: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007d190: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007d1c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0007d150: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007d160: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007d1a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007d1b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0007d200: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ +0007d210: 7373 6c20 636f 6d70 6c69 616e 7420 7465 ssl compliant te │ │ │ +0007d220: 6c6e 6574 2073 6572 7665 723a 2045 6e73 lnet server: Ens │ │ │ +0007d230: 7572 6520 7465 6c6e 6574 642d 7373 6c20 ure telnetd-ssl │ │ │ +0007d240: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ +0007d250: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +0007d260: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ +0007d270: 2074 656c 6e65 7464 2d73 736c 0a20 2020 telnetd-ssl. │ │ │ +0007d280: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +0007d290: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +0007d2a0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +0007d2b0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0007d2c0: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ +0007d2d0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ +0007d2e0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ +0007d2f0: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ +0007d300: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ +0007d310: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0007d320: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0007d330: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0007d340: 0a20 202d 2070 6163 6b61 6765 5f74 656c . - package_tel │ │ │ +0007d350: 6e65 7464 2d73 736c 5f72 656d 6f76 6564 netd-ssl_removed │ │ │ +0007d360: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Pup │ │ │ +0007d420: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0007d430: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ +0007d500: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007d510: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007d560: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0007d570: 7465 6c6e 6574 642d 7373 6c0a 0a63 6c61  telnetd-ssl..cla
│ │ │ +0007d580: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ +0007d590: 642d 7373 6c20 7b0a 2020 7061 636b 6167  d-ssl {.  packag
│ │ │ +0007d5a0: 6520 7b20 2774 656c 6e65 7464 2d73 736c  e { 'telnetd-ssl
│ │ │ +0007d5b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0007d5c0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0007d5d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation P │ │ │ -0007e970: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0007e980: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +0007d4e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007d4f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007d530: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007d540: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0007ea00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0007ea20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0007ea70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0007eaa0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0007eac0: 655f 7465 6c6e 6574 640a 0a63 6c61 7373  e_telnetd..class
│ │ │ -0007ead0: 2072 656d 6f76 655f 7465 6c6e 6574 6420   remove_telnetd 
│ │ │ -0007eae0: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ -0007eaf0: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ -0007eb00: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0007eb10: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0007ebd0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0007ebe0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ -0007ea30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0007ea40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0007ea80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0007ea90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -0007ec90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007ecb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007ece0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007ec70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007ec80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007eca0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007ecc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007ecd0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007ed10: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0007ed20: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -0007ed30: 2074 656c 6e65 7420 7365 7276 6572 3a20 telnet server: │ │ │ -0007ed40: 456e 7375 7265 2074 656c 6e65 7464 2069 Ensure telnetd i │ │ │ -0007ed50: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ -0007ed60: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -0007ed70: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -0007ed80: 7465 6c6e 6574 640a 2020 2020 7374 6174 telnetd. stat │ │ │ -0007ed90: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -0007eda0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ -0007edb0: 332d 434d 2d36 2861 290a 2020 2d20 4e49 3-CM-6(a). - NI │ │ │ -0007edc0: 5354 2d38 3030 2d35 332d 434d 2d37 2861 ST-800-53-CM-7(a │ │ │ -0007edd0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -0007ede0: 332d 434d 2d37 2862 290a 2020 2d20 6469 3-CM-7(b). - di │ │ │ -0007edf0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -0007ee00: 202d 2068 6967 685f 7365 7665 7269 7479 - high_severity │ │ │ -0007ee10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0007ee20: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0007ee30: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -0007ee40: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0007ee50: 7061 636b 6167 655f 7465 6c6e 6574 645f package_telnetd_ │ │ │ -0007ee60: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +0007e960: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +0007e970: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +0007e980: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0007ea00: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007ea20: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007ea70: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007eaa0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007ea10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007ea30: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007ea80: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007ea90: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +0007eac0: 7374 616c 6c20 7468 6520 7465 6c6e 6574  stall the telnet
│ │ │ +0007ead0: 2073 6572 7665 723a 2045 6e73 7572 6520   server: Ensure 
│ │ │ +0007eae0: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ +0007eaf0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0007eb00: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0007eb10: 2020 206e 616d 653a 2074 656c 6e65 7464     name: telnetd
│ │ │ +0007eb20: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0007eb30: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0007eb40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0007eb50: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0007eb60: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0007eb70: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0007eb80: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0007eb90: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0007eba0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0007ebb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0007ebc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0007ebd0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0007ebe0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0007ebf0: 5f74 656c 6e65 7464 5f72 656d 6f76 6564  _telnetd_removed
│ │ │ +0007ec00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0007ecc0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0007ecd0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0007eda0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007edb0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007ee00: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0007ee10: 7465 6c6e 6574 640a 0a63 6c61 7373 2072  telnetd..class r
│ │ │ +0007ee20: 656d 6f76 655f 7465 6c6e 6574 6420 7b0a  emove_telnetd {.
│ │ │ +0007ee30: 2020 7061 636b 6167 6520 7b20 2774 656c    package { 'tel
│ │ │ +0007ee40: 6e65 7464 273a 0a20 2020 2065 6e73 7572  netd':.    ensur
│ │ │ +0007ee50: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +0007ee60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  0007ee70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediatio
│ │ │ -00081050: 6e20 4f53 4275 696c 6420 426c 7565 7072  n OSBuild Bluepr
│ │ │ -00081060: 696e 7420 736e 6970 7065 7420 e287 b23c  int snippet ...<
│ │ │ -00081070: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
.[[packages]].
│ │ │ -000810c0: 6e61 6d65 203d 2022 6e74 7022 0a76 6572  name = "ntp".ver
│ │ │ -000810d0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -00081190: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000811a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +0007ed80: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007ed90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007edd0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007ede0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00081250: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00081270: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000812a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00081230: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00081240: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00081260: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00081280: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00081290: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -000812e0: 2069 6e73 7461 6c6c 5f6e 7470 0a0a 636c install_ntp..cl │ │ │ -000812f0: 6173 7320 696e 7374 616c 6c5f 6e74 7020 ass install_ntp │ │ │ -00081300: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ -00081310: 7470 273a 0a20 2020 2065 6e73 7572 6520 tp':. ensure │ │ │ -00081320: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ -00081330: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00081340: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -000813f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00081400: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00081410: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00081440: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000814b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000814d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00081500: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00081520: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00081490: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000814a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000814e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000814f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00081540: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00081550: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00081560: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00081570: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00081580: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00081590: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -000815a0: 5043 492d 4453 532d 5265 712d 3130 2e34 PCI-DSS-Req-10.4 │ │ │ -000815b0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ -000815c0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ -000815d0: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ -000815e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -000815f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00081600: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00081610: 640a 2020 2d20 7061 636b 6167 655f 6e74 d. - package_nt │ │ │ -00081620: 705f 696e 7374 616c 6c65 640a 0a2d 206e p_installed..- n │ │ │ -00081630: 616d 653a 2045 6e73 7572 6520 6e74 7020 ame: Ensure ntp │ │ │ -00081640: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ -00081650: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -00081660: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -00081670: 3a20 6e74 700a 2020 2020 7374 6174 653a : ntp. state: │ │ │ -00081680: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ -00081690: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -000816a0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -000816b0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ -000816c0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ -000816d0: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ -000816e0: 492d 4453 532d 5265 712d 3130 2e34 0a20 I-DSS-Req-10.4. │ │ │ -000816f0: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ -00081700: 6779 0a20 202d 2068 6967 685f 7365 7665 gy. - high_seve │ │ │ -00081710: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d rity. - low_com │ │ │ -00081720: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00081730: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ -00081740: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00081750: 2020 2d20 7061 636b 6167 655f 6e74 705f - package_ntp_ │ │ │ -00081760: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
< │ │ │ +000810e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000810f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00081110: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00081120: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00081140: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00081160: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00081190: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +000811a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +000811b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +000811c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +000811d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +000811e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000811f0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +00081200: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ +00081210: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00081220: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +00081230: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +00081240: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00081250: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00081260: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00081270: 202d 2070 6163 6b61 6765 5f6e 7470 5f69   - package_ntp_i
│ │ │ +00081280: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +00081290: 3a20 456e 7375 7265 206e 7470 2069 7320  : Ensure ntp is 
│ │ │ +000812a0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +000812b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000812c0: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ +000812d0: 7470 0a20 2020 2073 7461 7465 3a20 7072  tp.    state: pr
│ │ │ +000812e0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +000812f0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00081300: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00081310: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00081320: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00081330: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00081340: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +00081350: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00081360: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00081370: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00081380: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00081390: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +000813a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000813b0: 2070 6163 6b61 6765 5f6e 7470 5f69 6e73   package_ntp_ins
│ │ │ +000813c0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediati │ │ │ +00081480: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00081490: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00081510: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00081520: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00081540: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00081550: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00081570: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00081590: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000815c0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000815d0: 7461 6c6c 5f6e 7470 0a0a 636c 6173 7320  tall_ntp..class 
│ │ │ +000815e0: 696e 7374 616c 6c5f 6e74 7020 7b0a 2020  install_ntp {.  
│ │ │ +000815f0: 7061 636b 6167 6520 7b20 276e 7470 273a  package { 'ntp':
│ │ │ +00081600: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00081610: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +00081620: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +000816e0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +000816f0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +00081750: 616d 6520 3d20 226e 7470 220a 7665 7273  ame = "ntp".vers
│ │ │ +00081760: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2022,14 +2005,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2059,31 +2059,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2120,14 +2103,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2160,31 +2160,14 @@ │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2207,14 +2190,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2247,31 +2247,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2308,14 +2291,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4606,27 +4606,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4639,14 +4626,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4680,27 +4680,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4709,14 +4696,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -4751,27 +4751,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4780,14 +4767,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -4839,27 +4839,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -4872,14 +4859,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -4931,27 +4931,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4963,14 +4950,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -5064,31 +5064,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5113,14 +5096,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_high.html │ │ │ @@ -21556,129 +21556,129 @@ │ │ │ 00054330: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 00054340: 6765 743d 2223 6964 3431 2220 7461 6269 get="#id41" tabi │ │ │ 00054350: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 00054360: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 00054370: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 00054380: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 00054390: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -000543a0: 223e 5265 6d65 6469 6174 696f 6e20 4f53 ">Remediation OS │ │ │ -000543b0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000543c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000543d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ -00054410: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -00054420: 3d20 2273 7973 6c6f 672d 6e67 220a 7665  = "syslog-ng".ve
│ │ │ -00054430: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -00054450: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00054460: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00054470: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00054480: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00054490: 6434 3222 2074 6162 696e 6465 783d 2230 d42" tabindex="0 │ │ │ -000544a0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -000544b0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -000544c0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -000544d0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -000544e0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -000544f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00054500: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00054540: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000545b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000545d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00054600: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00054620: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00054590: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000545a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000545e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000545f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00054640: 696e 7374 616c 6c5f 7379 736c 6f67 2d6e install_syslog-n │ │ │ -00054650: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ -00054660: 5f73 7973 6c6f 672d 6e67 207b 0a20 2070 _syslog-ng {. p │ │ │ -00054670: 6163 6b61 6765 207b 2027 7379 736c 6f67 ackage { 'syslog │ │ │ -00054680: 2d6e 6727 3a0a 2020 2020 656e 7375 7265 -ng':. ensure │ │ │ -00054690: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ -000546a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedia │ │ │ -00054760: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00054770: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00054780: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000547b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000547c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000547d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000547e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000547f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00054800: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00054810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00054850: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00054860: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00054880: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00054890: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -000548b0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000548c0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -000548d0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000548e0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000548f0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00054900: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00054910: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00054920: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00054930: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00054940: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00054950: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00054960: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00054970: 2d20 7061 636b 6167 655f 7379 736c 6f67  - package_syslog
│ │ │ -00054980: 6e67 5f69 6e73 7461 6c6c 6564 0a0a 2d20  ng_installed..- 
│ │ │ -00054990: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ -000549a0: 6c6f 672d 6e67 2069 7320 696e 7374 616c  log-ng is instal
│ │ │ -000549b0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -000549c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -000549d0: 2020 206e 616d 653a 2073 7973 6c6f 672d     name: syslog-
│ │ │ -000549e0: 6e67 0a20 2020 2073 7461 7465 3a20 7072  ng.    state: pr
│ │ │ -000549f0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00054a00: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00054a10: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00054a20: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00054a30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00054a40: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -00054a50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00054a60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00054a70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00054a80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00054a90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00054aa0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00054ab0: 636b 6167 655f 7379 736c 6f67 6e67 5f69  ckage_syslogng_i
│ │ │ -00054ac0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000543a0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000543b0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000543c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity: │ │ │ +00054490: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000544a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000544f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00054500: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00054510: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00054520: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00054530: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00054540: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00054550: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +00054560: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00054570: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00054580: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00054590: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000545a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000545b0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000545c0: 6765 5f73 7973 6c6f 676e 675f 696e 7374  ge_syslogng_inst
│ │ │ +000545d0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +000545e0: 6e73 7572 6520 7379 736c 6f67 2d6e 6720  nsure syslog-ng 
│ │ │ +000545f0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +00054600: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00054610: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00054620: 3a20 7379 736c 6f67 2d6e 670a 2020 2020  : syslog-ng.    
│ │ │ +00054630: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +00054640: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +00054650: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +00054660: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00054670: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00054680: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00054690: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000546a0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000546b0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000546c0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000546d0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000546e0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000546f0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +00054700: 7973 6c6f 676e 675f 696e 7374 616c 6c65  yslogng_installe
│ │ │ +00054710: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00054720: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +000547d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000547e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +00054470: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00054480: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000544c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000544d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00054870: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00054910: 636c 7564 6520 696e 7374 616c 6c5f 7379  clude install_sy
│ │ │ +00054920: 736c 6f67 2d6e 670a 0a63 6c61 7373 2069  slog-ng..class i
│ │ │ +00054930: 6e73 7461 6c6c 5f73 7973 6c6f 672d 6e67  nstall_syslog-ng
│ │ │ +00054940: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00054950: 7379 736c 6f67 2d6e 6727 3a0a 2020 2020  syslog-ng':.    
│ │ │ +00054960: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +00054970: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +00054980: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +00054a30: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00054a40: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00054a50: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00054a60: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00054a90: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +00054aa0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +00054ab0: 7379 736c 6f67 2d6e 6722 0a76 6572 7369 syslog-ng".versi │ │ │ +00054ac0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e on = "*". │ │ │ 00054ad0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remediation │ │ │ -00055b60: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00055b70: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -00055bc0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00055bd0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -00055be0: 6564 203d 205b 2273 7973 6c6f 672d 6e67  ed = ["syslog-ng
│ │ │ -00055bf0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00055c00: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -00055cb0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00055cc0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +00054860: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00054890: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000548a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000548e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000548f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00055d90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00055da0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00055df0: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ -00055e00: 736c 6f67 2d6e 670a 0a63 6c61 7373 2065  slog-ng..class e
│ │ │ -00055e10: 6e61 626c 655f 7379 736c 6f67 2d6e 6720  nable_syslog-ng 
│ │ │ -00055e20: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ -00055e30: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ -00055e40: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ -00055e50: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00055e60: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ -00055e70: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00055e80: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -00055f30: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00055f40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ -00055d70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00055d80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00055dc0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00055dd0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -00056010: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00056020: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00056070: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00056080: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00056090: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000560a0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000560b0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000560c0: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -000560d0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -000560e0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -000560f0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00056100: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00056110: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00056120: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00056130: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00056140: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00056150: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ -00056160: 676e 675f 656e 6162 6c65 640a 0a2d 206e  gng_enabled..- n
│ │ │ -00056170: 616d 653a 2045 6e61 626c 6520 7379 736c  ame: Enable sysl
│ │ │ -00056180: 6f67 2d6e 6720 5365 7276 6963 6520 2d20  og-ng Service - 
│ │ │ -00056190: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ -000561a0: 7973 6c6f 672d 6e67 0a20 2062 6c6f 636b  yslog-ng.  block
│ │ │ -000561b0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -000561c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000561d0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -000561e0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000561f0: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -00056200: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -00056210: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -00056220: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ -00056230: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00056240: 6520 7379 736c 6f67 2d6e 670a 2020 2020  e syslog-ng.    
│ │ │ -00056250: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00056260: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00056270: 616d 653a 2073 7973 6c6f 672d 6e67 0a20  ame: syslog-ng. 
│ │ │ -00056280: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -00056290: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -000562a0: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -000562b0: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -000562c0: 7768 656e 3a0a 2020 2020 2d20 2722 7379  when:.    - '"sy
│ │ │ -000562d0: 736c 6f67 2d6e 6722 2069 6e20 616e 7369  slog-ng" in ansi
│ │ │ -000562e0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000562f0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00056300: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -00056310: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00056320: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00056330: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00056340: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00056350: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00056360: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00056370: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00056380: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00056390: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ -000563a0: 676e 675f 656e 6162 6c65 640a 2020 2d20  gng_enabled.  - 
│ │ │ -000563b0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -000563c0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -000563d0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -000563e0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000563f0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
low< │ │ │ +00055c40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00055c90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -00055ff0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00056000: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00056040: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00056050: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00055c00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00055c20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00055c70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00055c80: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +00055cb0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00055cc0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00055cd0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00055ce0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00055cf0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00055d00: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +00055d10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00055d20: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00055d30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00055d40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00055d50: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00055d60: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00055d70: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00055d80: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +00055d90: 736c 6f67 6e67 5f65 6e61 626c 6564 0a0a  slogng_enabled..
│ │ │ +00055da0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +00055db0: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ +00055dc0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ +00055dd0: 6520 7379 736c 6f67 2d6e 670a 2020 626c  e syslog-ng.  bl
│ │ │ +00055de0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00055df0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00055e00: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00055e10: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00055e20: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00055e30: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00055e40: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +00055e50: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ +00055e60: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +00055e70: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ +00055e80: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00055e90: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00055ea0: 2020 6e61 6d65 3a20 7379 736c 6f67 2d6e    name: syslog-n
│ │ │ +00055eb0: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ +00055ec0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00055ed0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +00055ee0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +00055ef0: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +00055f00: 2273 7973 6c6f 672d 6e67 2220 696e 2061  "syslog-ng" in a
│ │ │ +00055f10: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00055f20: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00055f30: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00055f40: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +00055f50: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00055f60: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00055f70: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00055f80: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00055f90: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00055fa0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00055fb0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00055fc0: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +00055fd0: 736c 6f67 6e67 5f65 6e61 626c 6564 0a20  slogng_enabled. 
│ │ │ +00055fe0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00055ff0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00056000: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00056010: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00056020: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedia │ │ │ +000560e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000560f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00056100: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00056110: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00056120: 7365 2220 6964 3d22 6964 3437 223e 3c74 se" id="id47"> │ │ │ +00056170: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00056180: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00056190: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000561d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000561e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00056200: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00056220: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +00056230: 6162 6c65 5f73 7973 6c6f 672d 6e67 0a0a  able_syslog-ng..
│ │ │ +00056240: 636c 6173 7320 656e 6162 6c65 5f73 7973  class enable_sys
│ │ │ +00056250: 6c6f 672d 6e67 207b 0a20 2073 6572 7669  log-ng {.  servi
│ │ │ +00056260: 6365 207b 2773 7973 6c6f 672d 6e67 273a  ce {'syslog-ng':
│ │ │ +00056270: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00056280: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ +00056290: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ +000562a0: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedia │ │ │ +00056360: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00056370: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00056380: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[customizat
│ │ │ +000563d0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +000563e0: 6e61 626c 6564 203d 205b 2273 7973 6c6f  nabled = ["syslo
│ │ │ +000563f0: 672d 6e67 225d 0a3c 2f63 6f64 653e 3c2f  g-ng"].
Remediat │ │ │ -000575a0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000575b0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000575c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]]
│ │ │ -00057610: 0a6e 616d 6520 3d20 2272 7379 736c 6f67  .name = "rsyslog
│ │ │ -00057620: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -00057630: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -000576e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -000576f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -000577a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000577f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00057780: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000577b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000577d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000577e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00057800: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00057810: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00057830: 7564 6520 696e 7374 616c 6c5f 7273 7973  ude install_rsys
│ │ │ -00057840: 6c6f 670a 0a63 6c61 7373 2069 6e73 7461  log..class insta
│ │ │ -00057850: 6c6c 5f72 7379 736c 6f67 207b 0a20 2070  ll_rsyslog {.  p
│ │ │ -00057860: 6163 6b61 6765 207b 2027 7273 7973 6c6f  ackage { 'rsyslo
│ │ │ -00057870: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ -00057880: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00057890: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000578a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00057950: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00057960: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -000579e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000579f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00057a10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00057a20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00057a40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00057a60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00057a90: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00057aa0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00057ab0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00057ac0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00057ad0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00057ae0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00057af0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00057b00: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00057b10: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00057b20: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00057b30: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00057b40: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00057b50: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00057b60: 7061 636b 6167 655f 7273 7973 6c6f 675f  package_rsyslog_
│ │ │ -00057b70: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -00057b80: 653a 2045 6e73 7572 6520 7273 7973 6c6f  e: Ensure rsyslo
│ │ │ -00057b90: 6720 6973 2069 6e73 7461 6c6c 6564 0a20  g is installed. 
│ │ │ -00057ba0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00057bb0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00057bc0: 6d65 3a20 7273 7973 6c6f 670a 2020 2020  me: rsyslog.    
│ │ │ -00057bd0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -00057be0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00057bf0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00057c00: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00057c10: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00057c20: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00057c30: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00057c40: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00057c50: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00057c60: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00057c70: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00057c80: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00057c90: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00057ca0: 7379 736c 6f67 5f69 6e73 7461 6c6c 6564  syslog_installed
│ │ │ +000575a0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000575b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000575c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000575d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000575e0: 7365 2220 6964 3d22 6964 3531 223e 3c74 se" id="id51"> │ │ │ +00057630: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00057640: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00057650: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00057690: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000576a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000576c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000576e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000576f0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00057700: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00057710: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00057720: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00057730: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00057740: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +00057750: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00057760: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00057770: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00057780: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00057790: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000577a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000577b0: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ +000577c0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +000577d0: 6d65 3a20 456e 7375 7265 2072 7379 736c  me: Ensure rsysl
│ │ │ +000577e0: 6f67 2069 7320 696e 7374 616c 6c65 640a  og is installed.
│ │ │ +000577f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00057800: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00057810: 616d 653a 2072 7379 736c 6f67 0a20 2020  ame: rsyslog.   
│ │ │ +00057820: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +00057830: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00057840: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00057850: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00057860: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00057870: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00057880: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00057890: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000578a0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000578b0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000578c0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000578d0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000578e0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000578f0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +00057900: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00057910: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +000579c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000579d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00057a60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00057b00: 636c 7564 6520 696e 7374 616c 6c5f 7273  clude install_rs
│ │ │ +00057b10: 7973 6c6f 670a 0a63 6c61 7373 2069 6e73  yslog..class ins
│ │ │ +00057b20: 7461 6c6c 5f72 7379 736c 6f67 207b 0a20  tall_rsyslog {. 
│ │ │ +00057b30: 2070 6163 6b61 6765 207b 2027 7273 7973   package { 'rsys
│ │ │ +00057b40: 6c6f 6727 3a0a 2020 2020 656e 7375 7265  log':.    ensure
│ │ │ +00057b50: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +00057b60: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ +00057c20: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00057c30: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00057c40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ +00057c90: 5d0a 6e61 6d65 203d 2022 7273 7973 6c6f  ].name = "rsyslo
│ │ │ +00057ca0: 6722 0a76 6572 7369 6f6e 203d 2022 2a22  g".version = "*"
│ │ │  00057cb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
R │ │ │ -00058f20: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00058f30: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00058f40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00058f50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00058f80: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00058f90: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00058fa0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -00058fb0: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].
Remedi │ │ │ -00059070: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00059080: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00059090: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000590c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000590d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000590e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000590f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00059100: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00059190: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -000591a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +00057a50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00057a80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00057a90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00057ad0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00057ae0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00059110: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00059120: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00059160: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00059170: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include e
│ │ │ -000591c0: 6e61 626c 655f 7273 7973 6c6f 670a 0a63  nable_rsyslog..c
│ │ │ -000591d0: 6c61 7373 2065 6e61 626c 655f 7273 7973  lass enable_rsys
│ │ │ -000591e0: 6c6f 6720 7b0a 2020 7365 7276 6963 6520  log {.  service 
│ │ │ -000591f0: 7b27 7273 7973 6c6f 6727 3a0a 2020 2020  {'rsyslog':.    
│ │ │ -00059200: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ -00059210: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00059220: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ -00059230: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000592f0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00059300: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00059380: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000593a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000593f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00059420: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00059440: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00059450: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00059460: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00059470: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00059480: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00059490: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -000594a0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000594b0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000594c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000594d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -000594e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -000594f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00059500: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00059510: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -00059520: 736c 6f67 5f65 6e61 626c 6564 0a0a 2d20  slog_enabled..- 
│ │ │ -00059530: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ -00059540: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ -00059550: 6e61 626c 6520 7365 7276 6963 6520 7273  nable service rs
│ │ │ -00059560: 7973 6c6f 670a 2020 626c 6f63 6b3a 0a0a  yslog.  block:..
│ │ │ -00059570: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -00059580: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00059590: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -000595a0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -000595b0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -000595c0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -000595d0: 616d 653a 2045 6e61 626c 6520 7273 7973  ame: Enable rsys
│ │ │ -000595e0: 6c6f 6720 5365 7276 6963 6520 2d20 456e  log Service - En
│ │ │ -000595f0: 6162 6c65 2053 6572 7669 6365 2072 7379  able Service rsy
│ │ │ -00059600: 736c 6f67 0a20 2020 2061 6e73 6962 6c65  slog.    ansible
│ │ │ -00059610: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00059620: 3a0a 2020 2020 2020 6e61 6d65 3a20 7273  :.      name: rs
│ │ │ -00059630: 7973 6c6f 670a 2020 2020 2020 656e 6162  yslog.      enab
│ │ │ -00059640: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -00059650: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -00059660: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -00059670: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -00059680: 202d 2027 2272 7379 736c 6f67 2220 696e   - '"rsyslog" in
│ │ │ -00059690: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000596a0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -000596b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000596c0: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ -000596d0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000596e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000596f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00059700: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00059710: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00059720: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00059730: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00059740: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00059750: 7273 7973 6c6f 675f 656e 6162 6c65 640a  rsyslog_enabled.
│ │ │ -00059760: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -00059770: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ -00059780: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00059790: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000597a0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Complexity:< │ │ │ -00059390: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000593b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00059400: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00059410: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00058fd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00058fe0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00059030: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00059070: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00059080: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00059090: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000590a0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000590b0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000590c0: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ +000590d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000590e0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +000590f0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00059100: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00059110: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00059120: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00059130: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00059140: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00059150: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ +00059160: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +00059170: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ +00059180: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00059190: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ +000591a0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +000591b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000591c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000591d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000591e0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +000591f0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +00059200: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +00059210: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ +00059220: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +00059230: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ +00059240: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00059250: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00059260: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ +00059270: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00059280: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +00059290: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +000592a0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +000592b0: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +000592c0: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ +000592d0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000592e0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000592f0: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00059300: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00059310: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00059320: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00059330: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00059340: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00059350: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00059360: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00059370: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00059380: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ +00059390: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ +000593a0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +000593b0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +000593c0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +000593d0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000593e0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediation │ │ │ +000594a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000594b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
C │ │ │ +00058fc0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00058ff0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00059000: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00059040: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00059050: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00059530: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00059550: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000595a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000595d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +000595f0: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +00059600: 656e 6162 6c65 5f72 7379 736c 6f67 207b  enable_rsyslog {
│ │ │ +00059610: 0a20 2073 6572 7669 6365 207b 2772 7379  .  service {'rsy
│ │ │ +00059620: 736c 6f67 273a 0a20 2020 2065 6e61 626c  slog':.    enabl
│ │ │ +00059630: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00059640: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00059650: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +00059660: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +00059710: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00059720: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00059730: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00059740: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00059770: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00059780: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00059790: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000597a0: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].
Rem │ │ │ -0007bcc0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0007bcd0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0007bce0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -0007bd30: 6167 6573 5d5d 0a6e 616d 6520 3d20 2263 ages]].name = "c │ │ │ -0007bd40: 726f 6e22 0a76 6572 7369 6f6e 203d 2022 ron".version = " │ │ │ -0007bd50: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ -0007bd60: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ -0007be10: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0007be20: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

Complexity:< │ │ │ +00059540: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00059560: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000595b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000595c0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -0007bea0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0007bec0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0007bf10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -0007bf60: 5f63 726f 6e0a 0a63 6c61 7373 2069 6e73  _cron..class ins
│ │ │ -0007bf70: 7461 6c6c 5f63 726f 6e20 7b0a 2020 7061  tall_cron {.  pa
│ │ │ -0007bf80: 636b 6167 6520 7b20 2763 726f 6e27 3a0a  ckage { 'cron':.
│ │ │ -0007bf90: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0007bfa0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -0007bfb0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0007c070: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0007c080: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0007c150: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0007c1a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ -0007bed0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0007bee0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0007bf20: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0007bf30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -0007c110: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0007c130: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0007c180: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007c190: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -0007c1c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0007c1d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0007c1e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0007c1f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0007c200: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0007c210: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -0007c220: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0007c230: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -0007c240: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0007c250: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0007c260: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0007c270: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0007c280: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0007c290: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0007c2a0: 2020 2d20 7061 636b 6167 655f 6372 6f6e    - package_cron
│ │ │ -0007c2b0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -0007c2c0: 6d65 3a20 456e 7375 7265 2063 726f 6e20  me: Ensure cron 
│ │ │ -0007c2d0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0007c2e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0007c2f0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0007c300: 3a20 6372 6f6e 0a20 2020 2073 7461 7465  : cron.    state
│ │ │ -0007c310: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -0007c320: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -0007c330: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0007c340: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0007c350: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0007c360: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0007c370: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -0007c380: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -0007c390: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0007c3a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0007c3b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0007c3c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0007c3d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0007c3e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007c3f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007c400: 6372 6f6e 5f69 6e73 7461 6c6c 6564 0a3c  cron_installed.<
│ │ │ +0007bcc0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +0007bcd0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +0007bce0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0007bd80: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007bdd0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0007bd60: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007bd90: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007bdb0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007bdc0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007bde0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0007bdf0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007be10: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0007be20: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0007be30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0007be40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0007be50: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0007be60: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0007be70: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0007be80: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +0007be90: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ +0007bea0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0007beb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0007bec0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0007bed0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0007bee0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0007bef0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0007bf00: 6b61 6765 5f63 726f 6e5f 696e 7374 616c  kage_cron_instal
│ │ │ +0007bf10: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +0007bf20: 7572 6520 6372 6f6e 2069 7320 696e 7374  ure cron is inst
│ │ │ +0007bf30: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +0007bf40: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0007bf50: 0a20 2020 206e 616d 653a 2063 726f 6e0a  .    name: cron.
│ │ │ +0007bf60: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +0007bf70: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +0007bf80: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0007bf90: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0007bfa0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0007bfb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0007bfc0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ +0007bfd0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +0007bfe0: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ +0007bff0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0007c000: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0007c010: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0007c020: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0007c030: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0007c040: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0007c050: 2070 6163 6b61 6765 5f63 726f 6e5f 696e   package_cron_in
│ │ │ +0007c060: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0007c070: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0007c120: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0007c130: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0007c1b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0007c1c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007c1d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0007c210: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007c220: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0007c240: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0007c260: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +0007c270: 7374 616c 6c5f 6372 6f6e 0a0a 636c 6173  stall_cron..clas
│ │ │ +0007c280: 7320 696e 7374 616c 6c5f 6372 6f6e 207b  s install_cron {
│ │ │ +0007c290: 0a20 2070 6163 6b61 6765 207b 2027 6372  .  package { 'cr
│ │ │ +0007c2a0: 6f6e 273a 0a20 2020 2065 6e73 7572 6520  on':.    ensure 
│ │ │ +0007c2b0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +0007c2c0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0007c2d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007c380: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0007c390: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0007c3a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0007c3e0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +0007c3f0: 5d5d 0a6e 616d 6520 3d20 2263 726f 6e22  ]].name = "cron"
│ │ │ +0007c400: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  0007c410: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -0007d950: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0007d960: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0007d9e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007da00: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007da50: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007da80: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007d9f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007da10: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007da60: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007da70: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0007daa0: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ -0007dab0: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ -0007dac0: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ -0007dad0: 6e65 7464 207b 0a20 2070 6163 6b61 6765  netd {.  package
│ │ │ -0007dae0: 207b 2027 696e 6574 7574 696c 732d 7465   { 'inetutils-te
│ │ │ -0007daf0: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ -0007db00: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0007db10: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0007db20: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0007dbd0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0007dbe0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007dbf0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007dc20: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0007dc90: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007dcb0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007dce0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0007dc70: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007dc80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007dcc0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007dcd0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0007dd20: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ -0007dd30: 696e 6574 2d62 6173 6564 2074 656c 6e65 inet-based telne │ │ │ -0007dd40: 7420 7365 7276 6572 3a20 456e 7375 7265 t server: Ensure │ │ │ -0007dd50: 2069 6e65 7475 7469 6c73 2d74 656c 6e65 inetutils-telne │ │ │ -0007dd60: 7464 2069 7320 7265 6d6f 7665 6427 0a20 td is removed'. │ │ │ -0007dd70: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -0007dd80: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -0007dd90: 6d65 3a20 696e 6574 7574 696c 732d 7465 me: inetutils-te │ │ │ -0007dda0: 6c6e 6574 640a 2020 2020 7374 6174 653a lnetd. state: │ │ │ -0007ddb0: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ -0007ddc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0007ddd0: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -0007dde0: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ -0007ddf0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0007de00: 434d 2d37 2862 290a 2020 2d20 6469 7361 CM-7(b). - disa │ │ │ -0007de10: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0007de20: 2068 6967 685f 7365 7665 7269 7479 0a20 high_severity. │ │ │ -0007de30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -0007de40: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -0007de50: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -0007de60: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -0007de70: 636b 6167 655f 696e 6574 7574 696c 732d ckage_inetutils- │ │ │ -0007de80: 7465 6c6e 6574 645f 7265 6d6f 7665 640a telnetd_removed. │ │ │ +0007d950: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +0007d960: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...

Complexity: │ │ │ +0007d9f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0007da10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0007da30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0007da60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007da70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0007daa0: 6e73 7461 6c6c 2074 6865 2069 6e65 742d  nstall the inet-
│ │ │ +0007dab0: 6261 7365 6420 7465 6c6e 6574 2073 6572  based telnet ser
│ │ │ +0007dac0: 7665 723a 2045 6e73 7572 6520 696e 6574  ver: Ensure inet
│ │ │ +0007dad0: 7574 696c 732d 7465 6c6e 6574 6420 6973  utils-telnetd is
│ │ │ +0007dae0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0007daf0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0007db00: 6167 653a 0a20 2020 206e 616d 653a 2069  age:.    name: i
│ │ │ +0007db10: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +0007db20: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0007db30: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0007db40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0007db50: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0007db60: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0007db70: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0007db80: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0007db90: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0007dba0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0007dbb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0007dbc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0007dbd0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0007dbe0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0007dbf0: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ +0007dc00: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
Remed │ │ │ +0007dcc0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0007dcd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0007dd80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0007dda0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0007ddd0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0007dd60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0007dd70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0007dd90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0007ddb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0007ddc0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0007de00: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0007de10: 6465 2072 656d 6f76 655f 696e 6574 7574 de remove_inetut │ │ │ +0007de20: 696c 732d 7465 6c6e 6574 640a 0a63 6c61 ils-telnetd..cla │ │ │ +0007de30: 7373 2072 656d 6f76 655f 696e 6574 7574 ss remove_inetut │ │ │ +0007de40: 696c 732d 7465 6c6e 6574 6420 7b0a 2020 ils-telnetd {. │ │ │ +0007de50: 7061 636b 6167 6520 7b20 2769 6e65 7475 package { 'inetu │ │ │ +0007de60: 7469 6c73 2d74 656c 6e65 7464 273a 0a20 tils-telnetd':. │ │ │ +0007de70: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +0007de80: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 0007de90: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remedia │ │ │ -0007ec80: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0007ec90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0007eca0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007ecb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007ecc0: 7365 2220 6964 3d22 6964 3132 3322 3e3c se" id="id123">< │ │ │ -0007ecd0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007ece0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007ecf0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007ed00: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007ed10: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0007ed20: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007ed30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0007ed70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007ed80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0007eda0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0007edb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0007edd0: 2072 656d 6f76 655f 6e69 730a 0a63 6c61 remove_nis..cla │ │ │ -0007ede0: 7373 2072 656d 6f76 655f 6e69 7320 7b0a ss remove_nis {. │ │ │ -0007edf0: 2020 7061 636b 6167 6520 7b20 276e 6973 package { 'nis │ │ │ -0007ee00: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -0007ee10: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -0007ee20: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -0007eee0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0007eef0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0007ef80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0007efa0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0007efc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0007eff0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007f000: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0007f030: 6e73 7461 6c6c 2074 6865 206e 6973 2070  nstall the nis p
│ │ │ -0007f040: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -0007f050: 6973 2069 7320 7265 6d6f 7665 6427 0a20  is is removed'. 
│ │ │ -0007f060: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0007f070: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0007f080: 6d65 3a20 6e69 730a 2020 2020 7374 6174  me: nis.    stat
│ │ │ -0007f090: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0007f0a0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0007f0b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0007f0c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0007f0d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0007f0e0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -0007f0f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0007f100: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -0007f110: 6973 5f72 656d 6f76 6564 0a3c 2f63 6f64  is_removed.
│ │ │ +0007eca0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007ecd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0007ed40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007ed60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007ed90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0007ed20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007ed30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007ed70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007ed80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0007edd0: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ +0007ede0: 6e69 7320 7061 636b 6167 653a 2045 6e73 nis package: Ens │ │ │ +0007edf0: 7572 6520 6e69 7320 6973 2072 656d 6f76 ure nis is remov │ │ │ +0007ee00: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +0007ee10: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +0007ee20: 2020 206e 616d 653a 206e 6973 0a20 2020 name: nis. │ │ │ +0007ee30: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +0007ee40: 2074 6167 733a 0a20 202d 2064 6973 6162 tags:. - disab │ │ │ +0007ee50: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0007ee60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0007ee70: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0007ee80: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ +0007ee90: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0007eea0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +0007eeb0: 6167 655f 6e69 735f 7265 6d6f 7665 640a age_nis_removed. │ │ │ +0007eec0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

│ │ │ +0007ef70: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0007ef80: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0007f020: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +0007f0c0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +0007f0d0: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ +0007f0e0: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ +0007f0f0: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ +0007f100: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0007f110: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -0007fd50: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0007fd60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0007fe30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ +0007f010: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007f040: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007f050: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007f090: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007f0a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -0007fdf0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0007fe10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0007fe60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007fe70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0007fea0: 6f76 655f 6e74 7064 6174 650a 0a63 6c61  ove_ntpdate..cla
│ │ │ -0007feb0: 7373 2072 656d 6f76 655f 6e74 7064 6174  ss remove_ntpdat
│ │ │ -0007fec0: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ -0007fed0: 276e 7470 6461 7465 273a 0a20 2020 2065  'ntpdate':.    e
│ │ │ -0007fee0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0007fef0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0007ff10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007ff20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007ff30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007ff40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007ff50: 6431 3238 2220 7461 6269 6e64 6578 3d22 d128" tabindex=" │ │ │ -0007ff60: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007ff70: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007ff80: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007ff90: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007ffa0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007ffb0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0007ffc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007ffd0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00080050: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00080080: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000800a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000800b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000800d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -000800e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00080100: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -00080110: 6865 206e 7470 6461 7465 2070 6163 6b61  he ntpdate packa
│ │ │ -00080120: 6765 3a20 456e 7375 7265 206e 7470 6461  ge: Ensure ntpda
│ │ │ -00080130: 7465 2069 7320 7265 6d6f 7665 6427 0a20  te is removed'. 
│ │ │ -00080140: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00080150: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00080160: 6d65 3a20 6e74 7064 6174 650a 2020 2020  me: ntpdate.    
│ │ │ -00080170: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00080180: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -00080190: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000801a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000801b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000801c0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -000801d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000801e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000801f0: 6765 5f6e 7470 6461 7465 5f72 656d 6f76  ge_ntpdate_remov
│ │ │ -00080200: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007fd50: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0007fd60: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0007fdf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0007fe10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0007fe20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007fe30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0007fe40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0007fe60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0007fe90: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0007fea0: 696e 7374 616c 6c20 7468 6520 6e74 7064  install the ntpd
│ │ │ +0007feb0: 6174 6520 7061 636b 6167 653a 2045 6e73  ate package: Ens
│ │ │ +0007fec0: 7572 6520 6e74 7064 6174 6520 6973 2072  ure ntpdate is r
│ │ │ +0007fed0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +0007fee0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0007fef0: 653a 0a20 2020 206e 616d 653a 206e 7470  e:.    name: ntp
│ │ │ +0007ff00: 6461 7465 0a20 2020 2073 7461 7465 3a20  date.    state: 
│ │ │ +0007ff10: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0007ff20: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0007ff30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0007ff40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0007ff50: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +0007ff60: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +0007ff70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0007ff80: 2020 2d20 7061 636b 6167 655f 6e74 7064    - package_ntpd
│ │ │ +0007ff90: 6174 655f 7265 6d6f 7665 640a 3c2f 636f  ate_removed.
< │ │ │ +0007ffb0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0007ffc0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0007ffd0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0007ffe0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0007fff0: 6431 3238 2220 7461 6269 6e64 6578 3d22 d128" tabindex=" │ │ │ +00080000: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00080010: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00080020: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00080030: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00080040: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00080050: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00080060: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000800f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00080100: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00080120: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00080140: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00080150: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00080190: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +000801a0: 7564 6520 7265 6d6f 7665 5f6e 7470 6461  ude remove_ntpda
│ │ │ +000801b0: 7465 0a0a 636c 6173 7320 7265 6d6f 7665  te..class remove
│ │ │ +000801c0: 5f6e 7470 6461 7465 207b 0a20 2070 6163  _ntpdate {.  pac
│ │ │ +000801d0: 6b61 6765 207b 2027 6e74 7064 6174 6527  kage { 'ntpdate'
│ │ │ +000801e0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +000801f0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00080200: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00080210: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -00081590: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000815a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00081670: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00081680: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -000816e0: 5f74 656c 6e65 7464 2d73 736c 0a0a 636c  _telnetd-ssl..cl
│ │ │ -000816f0: 6173 7320 7265 6d6f 7665 5f74 656c 6e65  ass remove_telne
│ │ │ -00081700: 7464 2d73 736c 207b 0a20 2070 6163 6b61  td-ssl {.  packa
│ │ │ -00081710: 6765 207b 2027 7465 6c6e 6574 642d 7373  ge { 'telnetd-ss
│ │ │ -00081720: 6c27 3a0a 2020 2020 656e 7375 7265 203d  l':.    ensure =
│ │ │ -00081730: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00081740: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -00081800: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -00081810: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -000818d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000818e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ -00081650: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00081660: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000816a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -000816b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -000818a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -000818c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -000818f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00081910: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00081940: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00081950: 696e 7374 616c 6c20 7468 6520 7373 6c20  install the ssl 
│ │ │ -00081960: 636f 6d70 6c69 616e 7420 7465 6c6e 6574  compliant telnet
│ │ │ -00081970: 2073 6572 7665 723a 2045 6e73 7572 6520   server: Ensure 
│ │ │ -00081980: 7465 6c6e 6574 642d 7373 6c20 6973 2072  telnetd-ssl is r
│ │ │ -00081990: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -000819a0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000819b0: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -000819c0: 6e65 7464 2d73 736c 0a20 2020 2073 7461  netd-ssl.    sta
│ │ │ -000819d0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -000819e0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000819f0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00081a00: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00081a10: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00081a20: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00081a30: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00081a40: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -00081a50: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00081a60: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00081a70: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00081a80: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00081a90: 2070 6163 6b61 6765 5f74 656c 6e65 7464   package_telnetd
│ │ │ -00081aa0: 2d73 736c 5f72 656d 6f76 6564 0a3c 2f63  -ssl_removed.Remediation An
│ │ │ +00081590: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000815a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +00081620: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00081640: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00081690: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +000816c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +000816e0: 7461 6c6c 2074 6865 2073 736c 2063 6f6d  tall the ssl com
│ │ │ +000816f0: 706c 6961 6e74 2074 656c 6e65 7420 7365  pliant telnet se
│ │ │ +00081700: 7276 6572 3a20 456e 7375 7265 2074 656c  rver: Ensure tel
│ │ │ +00081710: 6e65 7464 2d73 736c 2069 7320 7265 6d6f  netd-ssl is remo
│ │ │ +00081720: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00081730: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00081740: 2020 2020 6e61 6d65 3a20 7465 6c6e 6574      name: telnet
│ │ │ +00081750: 642d 7373 6c0a 2020 2020 7374 6174 653a  d-ssl.    state:
│ │ │ +00081760: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +00081770: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00081780: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00081790: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +000817a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000817b0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +000817c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000817d0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +000817e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000817f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00081800: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +00081810: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00081820: 636b 6167 655f 7465 6c6e 6574 642d 7373  ckage_telnetd-ss
│ │ │ +00081830: 6c5f 7265 6d6f 7665 640a 3c2f 636f 6465  l_removed.
Remedi │ │ │ +000818f0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00081900: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00081910: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00081940: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +00081650: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00081660: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000816a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +000816b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +000819b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000819d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00081a00: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00081990: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000819a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000819e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000819f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00081a40: 6520 7265 6d6f 7665 5f74 656c 6e65 7464 e remove_telnetd │ │ │ +00081a50: 2d73 736c 0a0a 636c 6173 7320 7265 6d6f -ssl..class remo │ │ │ +00081a60: 7665 5f74 656c 6e65 7464 2d73 736c 207b ve_telnetd-ssl { │ │ │ +00081a70: 0a20 2070 6163 6b61 6765 207b 2027 7465 . package { 'te │ │ │ +00081a80: 6c6e 6574 642d 7373 6c27 3a0a 2020 2020 lnetd-ssl':. │ │ │ +00081a90: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +00081aa0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.

│ │ │ 00081ac0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -00082e40: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00082e50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00082ee0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00082ef0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00082f10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00082f30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00082f40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00082f80: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00082f90: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ -00082fa0: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ -00082fb0: 5f74 656c 6e65 7464 207b 0a20 2070 6163  _telnetd {.  pac
│ │ │ -00082fc0: 6b61 6765 207b 2027 7465 6c6e 6574 6427  kage { 'telnetd'
│ │ │ -00082fd0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00082fe0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00082ff0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00083000: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -000830b0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000830c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00083140: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00083160: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000831b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -000831e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00083150: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00083170: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000831c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -000831d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -00083200: 7374 616c 6c20 7468 6520 7465 6c6e 6574  stall the telnet
│ │ │ -00083210: 2073 6572 7665 723a 2045 6e73 7572 6520   server: Ensure 
│ │ │ -00083220: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ -00083230: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00083240: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00083250: 2020 206e 616d 653a 2074 656c 6e65 7464     name: telnetd
│ │ │ -00083260: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00083270: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -00083280: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00083290: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -000832a0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -000832b0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -000832c0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -000832d0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -000832e0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -000832f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00083300: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00083310: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00083320: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00083330: 5f74 656c 6e65 7464 5f72 656d 6f76 6564  _telnetd_removed
│ │ │ +00082e40: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00082e50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00082e60: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +00082ee0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00082f10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00082f30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00082f40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00082f60: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00082f70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00082f90: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +00082fa0: 6865 2074 656c 6e65 7420 7365 7276 6572  he telnet server
│ │ │ +00082fb0: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ +00082fc0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00082fd0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00082fe0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00082ff0: 3a20 7465 6c6e 6574 640a 2020 2020 7374  : telnetd.    st
│ │ │ +00083000: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00083010: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00083020: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00083030: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00083040: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00083050: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +00083060: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00083070: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +00083080: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +00083090: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000830a0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +000830b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000830c0: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +000830d0: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.
Remedi │ │ │ +00083190: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000831a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000831b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000831e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00083250: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00083270: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000832a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00083230: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00083240: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00083280: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00083290: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +000832e0: 6520 7265 6d6f 7665 5f74 656c 6e65 7464 e remove_telnetd │ │ │ +000832f0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74 ..class remove_t │ │ │ +00083300: 656c 6e65 7464 207b 0a20 2070 6163 6b61 elnetd {. packa │ │ │ +00083310: 6765 207b 2027 7465 6c6e 6574 6427 3a0a ge { 'telnetd':. │ │ │ +00083320: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +00083330: 2027 7075 7267 6564 272c 0a20 207d 0a7d 'purged',. }.} │ │ │ 00083340: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

R │ │ │ -00085520: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00085530: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00085540: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00085550: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00085580: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00085590: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000855a0: 226e 7470 220a 7665 7273 696f 6e20 3d20  "ntp".version = 
│ │ │ -000855b0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -00085670: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00085680: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00085700: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00085720: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00085770: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000857a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000857c0: 6c5f 6e74 700a 0a63 6c61 7373 2069 6e73  l_ntp..class ins
│ │ │ -000857d0: 7461 6c6c 5f6e 7470 207b 0a20 2070 6163  tall_ntp {.  pac
│ │ │ -000857e0: 6b61 6765 207b 2027 6e74 7027 3a0a 2020  kage { 'ntp':.  
│ │ │ -000857f0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00085800: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -00085810: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00085820: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000858d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000858e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ -00085710: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00085730: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00085780: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00085790: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00085960: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00085980: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000859d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -00085a20: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00085a30: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00085a40: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00085a50: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00085a60: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00085a70: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -00085a80: 2d52 6571 2d31 302e 340a 2020 2d20 656e  -Req-10.4.  - en
│ │ │ -00085a90: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00085aa0: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -00085ab0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00085ac0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00085ad0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00085ae0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00085af0: 6163 6b61 6765 5f6e 7470 5f69 6e73 7461  ackage_ntp_insta
│ │ │ -00085b00: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -00085b10: 7375 7265 206e 7470 2069 7320 696e 7374  sure ntp is inst
│ │ │ -00085b20: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00085b30: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00085b40: 0a20 2020 206e 616d 653a 206e 7470 0a20  .    name: ntp. 
│ │ │ -00085b50: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -00085b60: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -00085b70: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00085b80: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00085b90: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -00085ba0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00085bb0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00085bc0: 6571 2d31 302e 340a 2020 2d20 656e 6162  eq-10.4.  - enab
│ │ │ -00085bd0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00085be0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -00085bf0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00085c00: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00085c10: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00085c20: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00085c30: 6b61 6765 5f6e 7470 5f69 6e73 7461 6c6c  kage_ntp_install
│ │ │ -00085c40: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00085520: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00085530: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disr │ │ │ -00085990: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000859a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000859e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000859f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +000855d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00085670: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00085680: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00085690: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +000856a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000856b0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +000856c0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000856d0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +000856e0: 712d 3130 2e34 0a20 202d 2065 6e61 626c  q-10.4.  - enabl
│ │ │ +000856f0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +00085700: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +00085710: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00085720: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00085730: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +00085740: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00085750: 6167 655f 6e74 705f 696e 7374 616c 6c65  age_ntp_installe
│ │ │ +00085760: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +00085770: 6520 6e74 7020 6973 2069 6e73 7461 6c6c  e ntp is install
│ │ │ +00085780: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +00085790: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000857a0: 2020 6e61 6d65 3a20 6e74 700a 2020 2020    name: ntp.    
│ │ │ +000857b0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +000857c0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +000857d0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +000857e0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000857f0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00085800: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00085810: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +00085820: 3130 2e34 0a20 202d 2065 6e61 626c 655f  10.4.  - enable_
│ │ │ +00085830: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +00085840: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +00085850: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00085860: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00085870: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00085880: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00085890: 655f 6e74 705f 696e 7374 616c 6c65 640a  e_ntp_installed.
│ │ │ +000858a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00085950: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00085960: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000855c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000855f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00085600: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00085640: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00085650: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00085a00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00085aa0: 636c 7564 6520 696e 7374 616c 6c5f 6e74  clude install_nt
│ │ │ +00085ab0: 700a 0a63 6c61 7373 2069 6e73 7461 6c6c  p..class install
│ │ │ +00085ac0: 5f6e 7470 207b 0a20 2070 6163 6b61 6765  _ntp {.  package
│ │ │ +00085ad0: 207b 2027 6e74 7027 3a0a 2020 2020 656e   { 'ntp':.    en
│ │ │ +00085ae0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +00085af0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +00085bb0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00085bc0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00085bd0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00085be0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00085bf0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00085c00: 7365 2220 6964 3d22 6964 3134 3122 3e3c se" id="id141">< │ │ │ +00085c10: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +00085c20: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +00085c30: 6e74 7022 0a76 6572 7369 6f6e 203d 2022 ntp".version = " │ │ │ +00085c40: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ 00085c50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Rem │ │ │ -00086de0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00086df0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00086e00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00086e50: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00086e60: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -00086e70: 6e74 7022 5d0a 3c2f 636f 6465 3e3c 2f70 ntp"].

Remediatio │ │ │ -00086f30: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00086f40: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00087000: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00087010: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +000859f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00085a20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00085a30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00085a70: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00085a80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00086fd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00086ff0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00087020: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00087040: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ -00087080: 6c65 5f6e 7470 0a0a 636c 6173 7320 656e  le_ntp..class en
│ │ │ -00087090: 6162 6c65 5f6e 7470 207b 0a20 2073 6572  able_ntp {.  ser
│ │ │ -000870a0: 7669 6365 207b 276e 7470 273a 0a20 2020  vice {'ntp':.   
│ │ │ -000870b0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -000870c0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -000870d0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -000870e0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000871a0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000871b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00087230: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00087240: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00087260: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00087270: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00087290: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000872b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000872e0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000872f0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00087300: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00087310: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00087320: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00087330: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00087340: 2d41 552d 3828 3129 2861 290a 2020 2d20  -AU-8(1)(a).  - 
│ │ │ -00087350: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00087360: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -00087370: 5265 712d 3130 2e34 0a20 202d 2050 4349  Req-10.4.  - PCI
│ │ │ -00087380: 2d44 5353 7634 2d31 302e 360a 2020 2d20  -DSSv4-10.6.  - 
│ │ │ -00087390: 5043 492d 4453 5376 342d 3130 2e36 2e31  PCI-DSSv4-10.6.1
│ │ │ -000873a0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000873b0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -000873c0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -000873d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000873e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000873f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00087400: 640a 2020 2d20 7365 7276 6963 655f 6e74  d.  - service_nt
│ │ │ -00087410: 705f 656e 6162 6c65 640a 0a2d 206e 616d  p_enabled..- nam
│ │ │ -00087420: 653a 2045 6e61 626c 6520 7468 6520 4e54  e: Enable the NT
│ │ │ -00087430: 5020 4461 656d 6f6e 202d 2045 6e61 626c  P Daemon - Enabl
│ │ │ -00087440: 6520 7365 7276 6963 6520 6e74 700a 2020  e service ntp.  
│ │ │ -00087450: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -00087460: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ -00087470: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ -00087480: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00087490: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000874a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000874b0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ -000874c0: 626c 6520 7468 6520 4e54 5020 4461 656d  ble the NTP Daem
│ │ │ -000874d0: 6f6e 202d 2045 6e61 626c 6520 5365 7276  on - Enable Serv
│ │ │ -000874e0: 6963 6520 6e74 700a 2020 2020 616e 7369  ice ntp.    ansi
│ │ │ -000874f0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00087500: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00087510: 206e 7470 0a20 2020 2020 2065 6e61 626c   ntp.      enabl
│ │ │ -00087520: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -00087530: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -00087540: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -00087550: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -00087560: 2d20 2722 6e74 7022 2069 6e20 616e 7369  - '"ntp" in ansi
│ │ │ -00087570: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00087580: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00087590: 4e49 5354 2d38 3030 2d35 332d 4155 2d38  NIST-800-53-AU-8
│ │ │ -000875a0: 2831 2928 6129 0a20 202d 204e 4953 542d  (1)(a).  - NIST-
│ │ │ -000875b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000875c0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -000875d0: 302e 340a 2020 2d20 5043 492d 4453 5376  0.4.  - PCI-DSSv
│ │ │ -000875e0: 342d 3130 2e36 0a20 202d 2050 4349 2d44  4-10.6.  - PCI-D
│ │ │ -000875f0: 5353 7634 2d31 302e 362e 310a 2020 2d20  SSv4-10.6.1.  - 
│ │ │ -00087600: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00087610: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -00087620: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00087630: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00087640: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00087650: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00087660: 2073 6572 7669 6365 5f6e 7470 5f65 6e61   service_ntp_ena
│ │ │ -00087670: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00087680: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00087690: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -000876a0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -000876b0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000876c0: 6573 270a 2020 2d20 2722 6e74 7022 2069  es'.  - '"ntp" i
│ │ │ -000876d0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000876e0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
│ │ │ +00086e00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00086ea0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00086ef0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00086e80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00086eb0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00086ed0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00086ee0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00086f00: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00086f10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00086f30: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00086f40: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00086f50: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00086f60: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00086f70: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00086f80: 2d38 3030 2d35 332d 4155 2d38 2831 2928  -800-53-AU-8(1)(
│ │ │ +00086f90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00086fa0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +00086fb0: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ +00086fc0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +00086fd0: 2e36 0a20 202d 2050 4349 2d44 5353 7634  .6.  - PCI-DSSv4
│ │ │ +00086fe0: 2d31 302e 362e 310a 2020 2d20 656e 6162  -10.6.1.  - enab
│ │ │ +00086ff0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00087000: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +00087010: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00087020: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00087030: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00087040: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00087050: 7669 6365 5f6e 7470 5f65 6e61 626c 6564  vice_ntp_enabled
│ │ │ +00087060: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +00087070: 2074 6865 204e 5450 2044 6165 6d6f 6e20   the NTP Daemon 
│ │ │ +00087080: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +00087090: 206e 7470 0a20 2062 6c6f 636b 3a0a 0a20   ntp.  block:.. 
│ │ │ +000870a0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +000870b0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000870c0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +000870d0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +000870e0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +000870f0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00087100: 6d65 3a20 456e 6162 6c65 2074 6865 204e  me: Enable the N
│ │ │ +00087110: 5450 2044 6165 6d6f 6e20 2d20 456e 6162  TP Daemon - Enab
│ │ │ +00087120: 6c65 2053 6572 7669 6365 206e 7470 0a20  le Service ntp. 
│ │ │ +00087130: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00087140: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00087150: 2020 6e61 6d65 3a20 6e74 700a 2020 2020    name: ntp.    
│ │ │ +00087160: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +00087170: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +00087180: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +00087190: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +000871a0: 6e3a 0a20 2020 202d 2027 226e 7470 2220  n:.    - '"ntp" 
│ │ │ +000871b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000871c0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +000871d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000871e0: 3533 2d41 552d 3828 3129 2861 290a 2020  53-AU-8(1)(a).  
│ │ │ +000871f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00087200: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00087210: 532d 5265 712d 3130 2e34 0a20 202d 2050  S-Req-10.4.  - P
│ │ │ +00087220: 4349 2d44 5353 7634 2d31 302e 360a 2020  CI-DSSv4-10.6.  
│ │ │ +00087230: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ +00087240: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ +00087250: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +00087260: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +00087270: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00087280: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00087290: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000872a0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +000872b0: 6e74 705f 656e 6162 6c65 640a 2020 2d20  ntp_enabled.  - 
│ │ │ +000872c0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +000872d0: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ +000872e0: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ +000872f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00087300: 2e70 6163 6b61 6765 7327 0a20 202d 2027  .packages'.  - '
│ │ │ +00087310: 226e 7470 2220 696e 2061 6e73 6962 6c65  "ntp" in ansible
│ │ │ +00087320: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00087330: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +000873f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00087400: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +000874d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000874e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00087530: 6e63 6c75 6465 2065 6e61 626c 655f 6e74  nclude enable_nt
│ │ │ +00087540: 700a 0a63 6c61 7373 2065 6e61 626c 655f  p..class enable_
│ │ │ +00087550: 6e74 7020 7b0a 2020 7365 7276 6963 6520  ntp {.  service 
│ │ │ +00087560: 7b27 6e74 7027 3a0a 2020 2020 656e 6162  {'ntp':.    enab
│ │ │ +00087570: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +00087580: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00087590: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +000875a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00087660: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00087670: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +000876c0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +000876d0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +000876e0: 3d20 5b22 6e74 7022 5d0a 3c2f 636f 6465  = ["ntp"].
Remediation OS │ │ │ -00095f50: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00095f60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00095f70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -00095fb0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -00095fc0: 203d 2022 6175 6469 7464 220a 7665 7273   = "auditd".vers
│ │ │ -00095fd0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -00096090: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000960a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000960b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000960e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +000874b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000874c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00087500: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00087510: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00096150: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00096170: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000961a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000961c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00096130: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00096140: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00096180: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00096190: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000961e0: 696e 7374 616c 6c5f 6175 6469 7464 0a0a install_auditd.. │ │ │ -000961f0: 636c 6173 7320 696e 7374 616c 6c5f 6175 class install_au │ │ │ -00096200: 6469 7464 207b 0a20 2070 6163 6b61 6765 ditd {. package │ │ │ -00096210: 207b 2027 6175 6469 7464 273a 0a20 2020 { 'auditd':. │ │ │ -00096220: 2065 6e73 7572 6520 3d26 6774 3b20 2769 ensure => 'i │ │ │ -00096230: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d nstalled',. }.} │ │ │ -00096240: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
Remediation Ans │ │ │ -00096300: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00096310: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000963e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000963f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00096440: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00096450: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00096460: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00096470: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00096480: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00096490: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ -000964a0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -000964b0: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ -000964c0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -000964d0: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ -000964e0: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ -000964f0: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ -00096500: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -00096510: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ -00096520: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00096530: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00096540: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ -00096550: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ -00096560: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ -00096570: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00096580: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00096590: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000965a0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000965b0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000965c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000965d0: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -000965e0: 7564 6974 5f69 6e73 7461 6c6c 6564 0a0a  udit_installed..
│ │ │ -000965f0: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -00096600: 7564 6974 6420 6973 2069 6e73 7461 6c6c  uditd is install
│ │ │ -00096610: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -00096620: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00096630: 2020 6e61 6d65 3a20 6175 6469 7464 0a20    name: auditd. 
│ │ │ -00096640: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -00096650: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -00096660: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00096670: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00096680: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -00096690: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ -000966a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -000966b0: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ -000966c0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -000966d0: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ -000966e0: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ -000966f0: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ -00096700: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00096710: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ -00096720: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00096730: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00096740: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -00096750: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -00096760: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -00096770: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00096780: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00096790: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000967a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000967b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000967c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000967d0: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ -000967e0: 6469 745f 696e 7374 616c 6c65 640a 3c2f  dit_installed.Remediation An
│ │ │ +00095f50: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00095f60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disru │ │ │ -000963c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000963d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00096410: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00096420: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00095fe0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00096000: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00096050: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000960a0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000960b0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000960c0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000960d0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000960e0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +000960f0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00096100: 302d 3533 2d41 552d 3132 2832 290a 2020  0-53-AU-12(2).  
│ │ │ +00096110: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00096120: 2d31 340a 2020 2d20 4e49 5354 2d38 3030  -14.  - NIST-800
│ │ │ +00096130: 2d35 332d 4155 2d32 2861 290a 2020 2d20  -53-AU-2(a).  - 
│ │ │ +00096140: 4e49 5354 2d38 3030 2d35 332d 4155 2d37  NIST-800-53-AU-7
│ │ │ +00096150: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00096160: 2d35 332d 4155 2d37 2832 290a 2020 2d20  -53-AU-7(2).  - 
│ │ │ +00096170: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00096180: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +00096190: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ +000961a0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ +000961b0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ +000961c0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000961d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000961e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000961f0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00096200: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00096210: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00096220: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00096230: 6175 6469 745f 696e 7374 616c 6c65 640a  audit_installed.
│ │ │ +00096240: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00096250: 6175 6469 7464 2069 7320 696e 7374 616c  auditd is instal
│ │ │ +00096260: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +00096270: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00096280: 2020 206e 616d 653a 2061 7564 6974 640a     name: auditd.
│ │ │ +00096290: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000962a0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +000962b0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +000962c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000962d0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000962e0: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ +000962f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00096300: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ +00096310: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00096320: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ +00096330: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ +00096340: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ +00096350: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +00096360: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ +00096370: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00096380: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00096390: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +000963a0: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +000963b0: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +000963c0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000963d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000963e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000963f0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00096400: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00096410: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00096420: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +00096430: 7564 6974 5f69 6e73 7461 6c6c 6564 0a3c  udit_installed.<
│ │ │ +00096440: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000964f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00096500: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00096010: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00096020: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00096060: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00096070: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +000965a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000965b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00096600: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00096640: 6c75 6465 2069 6e73 7461 6c6c 5f61 7564  lude install_aud
│ │ │ +00096650: 6974 640a 0a63 6c61 7373 2069 6e73 7461  itd..class insta
│ │ │ +00096660: 6c6c 5f61 7564 6974 6420 7b0a 2020 7061  ll_auditd {.  pa
│ │ │ +00096670: 636b 6167 6520 7b20 2761 7564 6974 6427  ckage { 'auditd'
│ │ │ +00096680: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00096690: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +000966a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00096760: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00096770: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00096780: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +000967d0: 6e61 6d65 203d 2022 6175 6469 7464 220a  name = "auditd".
│ │ │ +000967e0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediation │ │ │ -00098490: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000984a0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
C │ │ │ +00096590: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000965c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000965d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00096610: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00096620: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -000986c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000986d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00098720: 6e63 6c75 6465 2065 6e61 626c 655f 6175  nclude enable_au
│ │ │ -00098730: 6469 7464 0a0a 636c 6173 7320 656e 6162  ditd..class enab
│ │ │ -00098740: 6c65 5f61 7564 6974 6420 7b0a 2020 7365  le_auditd {.  se
│ │ │ -00098750: 7276 6963 6520 7b27 6175 6469 7464 273a  rvice {'auditd':
│ │ │ -00098760: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00098770: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -00098780: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -00098790: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ -00098850: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00098860: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -000986a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000986b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000986f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00098700: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00098910: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00098930: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00098960: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000988f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00098900: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00098920: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00098940: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00098950: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -000989a0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -000989b0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -000989c0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -000989d0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -000989e0: 6167 733a 0a20 202d 2043 4a49 532d 352e ags:. - CJIS-5. │ │ │ -000989f0: 342e 312e 310a 2020 2d20 4e49 5354 2d38 4.1.1. - NIST-8 │ │ │ -00098a00: 3030 2d31 3731 2d33 2e33 2e31 0a20 202d 00-171-3.3.1. - │ │ │ -00098a10: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -00098a20: 332e 320a 2020 2d20 4e49 5354 2d38 3030 3.2. - NIST-800 │ │ │ -00098a30: 2d31 3731 2d33 2e33 2e36 0a20 202d 204e -171-3.3.6. - N │ │ │ -00098a40: 4953 542d 3830 302d 3533 2d41 432d 3228 IST-800-53-AC-2( │ │ │ -00098a50: 6729 0a20 202d 204e 4953 542d 3830 302d g). - NIST-800- │ │ │ -00098a60: 3533 2d41 432d 3628 3929 0a20 202d 204e 53-AC-6(9). - N │ │ │ -00098a70: 4953 542d 3830 302d 3533 2d41 552d 3130 IST-800-53-AU-10 │ │ │ -00098a80: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00098a90: 2d41 552d 3132 2863 290a 2020 2d20 4e49 -AU-12(c). - NI │ │ │ -00098aa0: 5354 2d38 3030 2d35 332d 4155 2d31 3428 ST-800-53-AU-14( │ │ │ -00098ab0: 3129 0a20 202d 204e 4953 542d 3830 302d 1). - NIST-800- │ │ │ -00098ac0: 3533 2d41 552d 3228 6429 0a20 202d 204e 53-AU-2(d). - N │ │ │ -00098ad0: 4953 542d 3830 302d 3533 2d41 552d 330a IST-800-53-AU-3. │ │ │ -00098ae0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00098af0: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -00098b00: 2d38 3030 2d35 332d 5349 2d34 2832 3329 -800-53-SI-4(23) │ │ │ -00098b10: 0a20 202d 2050 4349 2d44 5353 2d52 6571 . - PCI-DSS-Req │ │ │ -00098b20: 2d31 302e 310a 2020 2d20 5043 492d 4453 -10.1. - PCI-DS │ │ │ -00098b30: 5376 342d 3130 2e32 0a20 202d 2050 4349 Sv4-10.2. - PCI │ │ │ -00098b40: 2d44 5353 7634 2d31 302e 322e 310a 2020 -DSSv4-10.2.1. │ │ │ -00098b50: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -00098b60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00098b70: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00098b80: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00098b90: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00098ba0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00098bb0: 0a20 202d 2073 6572 7669 6365 5f61 7564 . - service_aud │ │ │ -00098bc0: 6974 645f 656e 6162 6c65 640a 0a2d 206e itd_enabled..- n │ │ │ -00098bd0: 616d 653a 2045 6e61 626c 6520 6175 6469 ame: Enable audi │ │ │ -00098be0: 7464 2053 6572 7669 6365 202d 2045 6e61 td Service - Ena │ │ │ -00098bf0: 626c 6520 7365 7276 6963 6520 6175 6469 ble service audi │ │ │ -00098c00: 7464 0a20 2062 6c6f 636b 3a0a 0a20 202d td. block:.. - │ │ │ -00098c10: 206e 616d 653a 2047 6174 6865 7220 7468 name: Gather th │ │ │ -00098c20: 6520 7061 636b 6167 6520 6661 6374 730a e package facts. │ │ │ -00098c30: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -00098c40: 7469 6e2e 7061 636b 6167 655f 6661 6374 tin.package_fact │ │ │ -00098c50: 733a 0a20 2020 2020 206d 616e 6167 6572 s:. manager │ │ │ -00098c60: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65 : auto.. - name │ │ │ -00098c70: 3a20 456e 6162 6c65 2061 7564 6974 6420 : Enable auditd │ │ │ -00098c80: 5365 7276 6963 6520 2d20 456e 6162 6c65 Service - Enable │ │ │ -00098c90: 2053 6572 7669 6365 2061 7564 6974 640a Service auditd. │ │ │ -00098ca0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -00098cb0: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ -00098cc0: 2020 206e 616d 653a 2061 7564 6974 640a name: auditd. │ │ │ -00098cd0: 2020 2020 2020 656e 6162 6c65 643a 2074 enabled: t │ │ │ -00098ce0: 7275 650a 2020 2020 2020 7374 6174 653a rue. state: │ │ │ -00098cf0: 2073 7461 7274 6564 0a20 2020 2020 206d started. m │ │ │ -00098d00: 6173 6b65 643a 2066 616c 7365 0a20 2020 asked: false. │ │ │ -00098d10: 2077 6865 6e3a 0a20 2020 202d 2027 2261 when:. - '"a │ │ │ -00098d20: 7564 6974 6422 2069 6e20 616e 7369 626c uditd" in ansibl │ │ │ -00098d30: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -00098d40: 270a 2020 7461 6773 3a0a 2020 2d20 434a '. tags:. - CJ │ │ │ -00098d50: 4953 2d35 2e34 2e31 2e31 0a20 202d 204e IS-5.4.1.1. - N │ │ │ -00098d60: 4953 542d 3830 302d 3137 312d 332e 332e IST-800-171-3.3. │ │ │ -00098d70: 310a 2020 2d20 4e49 5354 2d38 3030 2d31 1. - NIST-800-1 │ │ │ -00098d80: 3731 2d33 2e33 2e32 0a20 202d 204e 4953 71-3.3.2. - NIS │ │ │ -00098d90: 542d 3830 302d 3137 312d 332e 332e 360a T-800-171-3.3.6. │ │ │ -00098da0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00098db0: 4143 2d32 2867 290a 2020 2d20 4e49 5354 AC-2(g). - NIST │ │ │ -00098dc0: 2d38 3030 2d35 332d 4143 2d36 2839 290a -800-53-AC-6(9). │ │ │ -00098dd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00098de0: 4155 2d31 300a 2020 2d20 4e49 5354 2d38 AU-10. - NIST-8 │ │ │ -00098df0: 3030 2d35 332d 4155 2d31 3228 6329 0a20 00-53-AU-12(c). │ │ │ -00098e00: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -00098e10: 552d 3134 2831 290a 2020 2d20 4e49 5354 U-14(1). - NIST │ │ │ -00098e20: 2d38 3030 2d35 332d 4155 2d32 2864 290a -800-53-AU-2(d). │ │ │ -00098e30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00098e40: 4155 2d33 0a20 202d 204e 4953 542d 3830 AU-3. - NIST-80 │ │ │ -00098e50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00098e60: 204e 4953 542d 3830 302d 3533 2d53 492d NIST-800-53-SI- │ │ │ -00098e70: 3428 3233 290a 2020 2d20 5043 492d 4453 4(23). - PCI-DS │ │ │ -00098e80: 532d 5265 712d 3130 2e31 0a20 202d 2050 S-Req-10.1. - P │ │ │ -00098e90: 4349 2d44 5353 7634 2d31 302e 320a 2020 CI-DSSv4-10.2. │ │ │ -00098ea0: 2d20 5043 492d 4453 5376 342d 3130 2e32 - PCI-DSSv4-10.2 │ │ │ -00098eb0: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ -00098ec0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00098ed0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00098ee0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00098ef0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00098f00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00098f10: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -00098f20: 655f 6175 6469 7464 5f65 6e61 626c 6564 e_auditd_enabled │ │ │ -00098f30: 0a20 202d 2073 7065 6369 616c 5f73 6572 . - special_ser │ │ │ -00098f40: 7669 6365 5f62 6c6f 636b 0a20 2077 6865 vice_block. whe │ │ │ -00098f50: 6e3a 0a20 202d 2027 226c 696e 7578 2d62 n:. - '"linux-b │ │ │ -00098f60: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -00098f70: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -00098f80: 2020 2d20 2722 6175 6469 7464 2220 696e - '"auditd" in │ │ │ -00098f90: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00098fa0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00098490: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +000984a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

Complexity │ │ │ +00098530: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00098550: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00098560: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00098570: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00098580: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000985a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000985e0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000985f0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00098600: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00098610: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00098620: 2020 2d20 434a 4953 2d35 2e34 2e31 2e31    - CJIS-5.4.1.1
│ │ │ +00098630: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00098640: 312d 332e 332e 310a 2020 2d20 4e49 5354  1-3.3.1.  - NIST
│ │ │ +00098650: 2d38 3030 2d31 3731 2d33 2e33 2e32 0a20  -800-171-3.3.2. 
│ │ │ +00098660: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00098670: 332e 332e 360a 2020 2d20 4e49 5354 2d38  3.3.6.  - NIST-8
│ │ │ +00098680: 3030 2d35 332d 4143 2d32 2867 290a 2020  00-53-AC-2(g).  
│ │ │ +00098690: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +000986a0: 2d36 2839 290a 2020 2d20 4e49 5354 2d38  -6(9).  - NIST-8
│ │ │ +000986b0: 3030 2d35 332d 4155 2d31 300a 2020 2d20  00-53-AU-10.  - 
│ │ │ +000986c0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +000986d0: 3228 6329 0a20 202d 204e 4953 542d 3830  2(c).  - NIST-80
│ │ │ +000986e0: 302d 3533 2d41 552d 3134 2831 290a 2020  0-53-AU-14(1).  
│ │ │ +000986f0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00098700: 2d32 2864 290a 2020 2d20 4e49 5354 2d38  -2(d).  - NIST-8
│ │ │ +00098710: 3030 2d35 332d 4155 2d33 0a20 202d 204e  00-53-AU-3.  - N
│ │ │ +00098720: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00098730: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00098740: 3533 2d53 492d 3428 3233 290a 2020 2d20  53-SI-4(23).  - 
│ │ │ +00098750: 5043 492d 4453 532d 5265 712d 3130 2e31  PCI-DSS-Req-10.1
│ │ │ +00098760: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +00098770: 302e 320a 2020 2d20 5043 492d 4453 5376  0.2.  - PCI-DSSv
│ │ │ +00098780: 342d 3130 2e32 2e31 0a20 202d 2065 6e61  4-10.2.1.  - ena
│ │ │ +00098790: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000987a0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000987b0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000987c0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000987d0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000987e0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000987f0: 7365 7276 6963 655f 6175 6469 7464 5f65  service_auditd_e
│ │ │ +00098800: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +00098810: 456e 6162 6c65 2061 7564 6974 6420 5365  Enable auditd Se
│ │ │ +00098820: 7276 6963 6520 2d20 456e 6162 6c65 2073  rvice - Enable s
│ │ │ +00098830: 6572 7669 6365 2061 7564 6974 640a 2020  ervice auditd.  
│ │ │ +00098840: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00098850: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +00098860: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +00098870: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00098880: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00098890: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000988a0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +000988b0: 626c 6520 6175 6469 7464 2053 6572 7669  ble auditd Servi
│ │ │ +000988c0: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ +000988d0: 6963 6520 6175 6469 7464 0a20 2020 2061  ice auditd.    a
│ │ │ +000988e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +000988f0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00098900: 6d65 3a20 6175 6469 7464 0a20 2020 2020  me: auditd.     
│ │ │ +00098910: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +00098920: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +00098930: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +00098940: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +00098950: 3a0a 2020 2020 2d20 2722 6175 6469 7464  :.    - '"auditd
│ │ │ +00098960: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00098970: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00098980: 6167 733a 0a20 202d 2043 4a49 532d 352e  ags:.  - CJIS-5.
│ │ │ +00098990: 342e 312e 310a 2020 2d20 4e49 5354 2d38  4.1.1.  - NIST-8
│ │ │ +000989a0: 3030 2d31 3731 2d33 2e33 2e31 0a20 202d  00-171-3.3.1.  -
│ │ │ +000989b0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +000989c0: 332e 320a 2020 2d20 4e49 5354 2d38 3030  3.2.  - NIST-800
│ │ │ +000989d0: 2d31 3731 2d33 2e33 2e36 0a20 202d 204e  -171-3.3.6.  - N
│ │ │ +000989e0: 4953 542d 3830 302d 3533 2d41 432d 3228  IST-800-53-AC-2(
│ │ │ +000989f0: 6729 0a20 202d 204e 4953 542d 3830 302d  g).  - NIST-800-
│ │ │ +00098a00: 3533 2d41 432d 3628 3929 0a20 202d 204e  53-AC-6(9).  - N
│ │ │ +00098a10: 4953 542d 3830 302d 3533 2d41 552d 3130  IST-800-53-AU-10
│ │ │ +00098a20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00098a30: 2d41 552d 3132 2863 290a 2020 2d20 4e49  -AU-12(c).  - NI
│ │ │ +00098a40: 5354 2d38 3030 2d35 332d 4155 2d31 3428  ST-800-53-AU-14(
│ │ │ +00098a50: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +00098a60: 3533 2d41 552d 3228 6429 0a20 202d 204e  53-AU-2(d).  - N
│ │ │ +00098a70: 4953 542d 3830 302d 3533 2d41 552d 330a  IST-800-53-AU-3.
│ │ │ +00098a80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00098a90: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00098aa0: 2d38 3030 2d35 332d 5349 2d34 2832 3329  -800-53-SI-4(23)
│ │ │ +00098ab0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +00098ac0: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ +00098ad0: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ +00098ae0: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ +00098af0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00098b00: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00098b10: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00098b20: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00098b30: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00098b40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00098b50: 0a20 202d 2073 6572 7669 6365 5f61 7564  .  - service_aud
│ │ │ +00098b60: 6974 645f 656e 6162 6c65 640a 2020 2d20  itd_enabled.  - 
│ │ │ +00098b70: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +00098b80: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ +00098b90: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ +00098ba0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00098bb0: 2e70 6163 6b61 6765 7327 0a20 202d 2027  .packages'.  - '
│ │ │ +00098bc0: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ +00098bd0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00098be0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00098ca0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00098cb0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00098d30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00098d50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00098da0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00098dd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +00098df0: 5f61 7564 6974 640a 0a63 6c61 7373 2065  _auditd..class e
│ │ │ +00098e00: 6e61 626c 655f 6175 6469 7464 207b 0a20  nable_auditd {. 
│ │ │ +00098e10: 2073 6572 7669 6365 207b 2761 7564 6974   service {'audit
│ │ │ +00098e20: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +00098e30: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +00098e40: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +00098e50: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +00098e70: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00098f10: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00098f20: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00098f30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +00098f80: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00098f90: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ +00098fa0: 6175 6469 7464 225d 0a3c 2f63 6f64 653e auditd"]. │ │ │ 00098fb0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2220,14 +2203,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2257,31 +2257,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2318,14 +2301,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2358,31 +2358,14 @@ │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2405,14 +2388,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2445,31 +2445,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2506,14 +2489,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4808,31 +4808,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4859,14 +4842,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4905,27 +4905,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4938,14 +4925,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4979,27 +4979,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5008,14 +4995,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -5050,27 +5050,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5079,14 +5066,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -5138,27 +5138,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -5171,14 +5158,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -5230,27 +5230,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5262,14 +5249,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -5363,31 +5363,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5412,14 +5395,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -5453,31 +5453,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5522,14 +5505,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ntp"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6449,31 +6449,14 @@ │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6514,14 +6497,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6593,31 +6593,14 @@ │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6684,14 +6667,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_minimal.html │ │ │ @@ -15705,128 +15705,128 @@ │ │ │ 0003d580: 7461 7267 6574 3d22 2369 6432 3122 2074 target="#id21" t │ │ │ 0003d590: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0003d5a0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0003d5b0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0003d5c0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0003d5d0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0003d5e0: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0003d5f0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0003d600: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

Complexity:< │ │ │ +00098d40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00098d60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00098db0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00098dc0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -0003d7d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0003d800: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0003d820: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0003d830: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0003d850: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0003d870: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0003d880: 6465 2069 6e73 7461 6c6c 5f73 7973 6c6f  de install_syslo
│ │ │ -0003d890: 672d 6e67 0a0a 636c 6173 7320 696e 7374  g-ng..class inst
│ │ │ -0003d8a0: 616c 6c5f 7379 736c 6f67 2d6e 6720 7b0a  all_syslog-ng {.
│ │ │ -0003d8b0: 2020 7061 636b 6167 6520 7b20 2773 7973    package { 'sys
│ │ │ -0003d8c0: 6c6f 672d 6e67 273a 0a20 2020 2065 6e73  log-ng':.    ens
│ │ │ -0003d8d0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -0003d8e0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -0003d900: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -0003d9a0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0003d9b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003d9c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0003da40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003da50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003da70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003da90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003daa0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003dae0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0003daf0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0003db00: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0003db10: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0003db20: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0003db30: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -0003db40: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0003db50: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -0003db60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0003db70: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0003db80: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0003db90: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0003dba0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0003dbb0: 0a20 202d 2070 6163 6b61 6765 5f73 7973 . - package_sys │ │ │ -0003dbc0: 6c6f 676e 675f 696e 7374 616c 6c65 640a logng_installed. │ │ │ -0003dbd0: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ -0003dbe0: 7379 736c 6f67 2d6e 6720 6973 2069 6e73 syslog-ng is ins │ │ │ -0003dbf0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65 talled. ansible │ │ │ -0003dc00: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -0003dc10: 3a0a 2020 2020 6e61 6d65 3a20 7379 736c :. name: sysl │ │ │ -0003dc20: 6f67 2d6e 670a 2020 2020 7374 6174 653a og-ng. state: │ │ │ -0003dc30: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ -0003dc40: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -0003dc50: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -0003dc60: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ -0003dc70: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ -0003dc80: 332d 434d 2d36 2861 290a 2020 2d20 656e 3-CM-6(a). - en │ │ │ -0003dc90: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0003dca0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -0003dcb0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -0003dcc0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -0003dcd0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -0003dce0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -0003dcf0: 2070 6163 6b61 6765 5f73 7973 6c6f 676e package_syslogn │ │ │ -0003dd00: 675f 696e 7374 616c 6c65 640a 3c2f 636f g_installed.
Complexity: │ │ │ +0003d690: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0003d6b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0003d6d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0003d700: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0003d710: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0003d720: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +0003d740: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0003d750: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0003d760: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0003d770: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0003d780: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0003d790: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +0003d7a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0003d7b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0003d7c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0003d7d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0003d7e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0003d7f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0003d800: 636b 6167 655f 7379 736c 6f67 6e67 5f69  ckage_syslogng_i
│ │ │ +0003d810: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +0003d820: 3a20 456e 7375 7265 2073 7973 6c6f 672d  : Ensure syslog-
│ │ │ +0003d830: 6e67 2069 7320 696e 7374 616c 6c65 640a  ng is installed.
│ │ │ +0003d840: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0003d850: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0003d860: 616d 653a 2073 7973 6c6f 672d 6e67 0a20  ame: syslog-ng. 
│ │ │ +0003d870: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +0003d880: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0003d890: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0003d8a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0003d8b0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +0003d8c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0003d8d0: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +0003d8e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0003d8f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0003d900: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0003d910: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0003d920: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0003d930: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0003d940: 655f 7379 736c 6f67 6e67 5f69 6e73 7461  e_syslogng_insta
│ │ │ +0003d950: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +0003da10: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0003da20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +0003daa0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0003dac0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0003db10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0003db60: 5f73 7973 6c6f 672d 6e67 0a0a 636c 6173  _syslog-ng..clas
│ │ │ +0003db70: 7320 696e 7374 616c 6c5f 7379 736c 6f67  s install_syslog
│ │ │ +0003db80: 2d6e 6720 7b0a 2020 7061 636b 6167 6520  -ng {.  package 
│ │ │ +0003db90: 7b20 2773 7973 6c6f 672d 6e67 273a 0a20  { 'syslog-ng':. 
│ │ │ +0003dba0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0003dbb0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +0003dbc0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0003dbd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation OS │ │ │ +0003dc80: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0003dc90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0003dca0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ +0003dce0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +0003dcf0: 3d20 2273 7973 6c6f 672d 6e67 220a 7665  = "syslog-ng".ve
│ │ │ +0003dd00: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 0003dd20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0003dd30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0003dd40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0003dd50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0003dd60: 6432 3422 2074 6162 696e 6465 783d 2230 d24" tabindex="0 │ │ │ 0003dd70: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -16084,152 +16084,152 @@ │ │ │ 0003ed30: 7461 2d74 6172 6765 743d 2223 6964 3236 ta-target="#id26 │ │ │ 0003ed40: 2220 7461 6269 6e64 6578 3d22 3022 2072 " tabindex="0" r │ │ │ 0003ed50: 6f6c 653d 2262 7574 746f 6e22 2061 7269 ole="button" ari │ │ │ 0003ed60: 612d 6578 7061 6e64 6564 3d22 6661 6c73 a-expanded="fals │ │ │ 0003ed70: 6522 2074 6974 6c65 3d22 4163 7469 7661 e" title="Activa │ │ │ 0003ed80: 7465 2074 6f20 7265 7665 616c 2220 6872 te to reveal" hr │ │ │ 0003ed90: 6566 3d22 2321 223e 5265 6d65 6469 6174 ef="#!">Remediat │ │ │ -0003eda0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0003edb0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0003edc0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizati
│ │ │ -0003ee10: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -0003ee20: 6162 6c65 6420 3d20 5b22 7379 736c 6f67  abled = ["syslog
│ │ │ -0003ee30: 2d6e 6722 5d0a 3c2f 636f 6465 3e3c 2f70  -ng"].

Remediation │ │ │ -0003eef0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0003ef00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low
Disr │ │ │ +0003dad0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0003dae0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0003db20: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0003db30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0003ef80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0003efa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0003eff0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0003f020: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -0003f040: 5f73 7973 6c6f 672d 6e67 0a0a 636c 6173  _syslog-ng..clas
│ │ │ -0003f050: 7320 656e 6162 6c65 5f73 7973 6c6f 672d  s enable_syslog-
│ │ │ -0003f060: 6e67 207b 0a20 2073 6572 7669 6365 207b  ng {.  service {
│ │ │ -0003f070: 2773 7973 6c6f 672d 6e67 273a 0a20 2020  'syslog-ng':.   
│ │ │ -0003f080: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -0003f090: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -0003f0a0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -0003f0b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -0003f170: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0003f180: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -0003f250: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0003f2a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0003ef90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0003efb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0003f000: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0003f010: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -0003f210: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0003f230: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0003f280: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0003f290: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -0003f2c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0003f2d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0003f2e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0003f2f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0003f300: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0003f310: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -0003f320: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0003f330: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -0003f340: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0003f350: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0003f360: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0003f370: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0003f380: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0003f390: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -0003f3a0: 736c 6f67 6e67 5f65 6e61 626c 6564 0a0a  slogng_enabled..
│ │ │ -0003f3b0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -0003f3c0: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ -0003f3d0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -0003f3e0: 6520 7379 736c 6f67 2d6e 670a 2020 626c  e syslog-ng.  bl
│ │ │ -0003f3f0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -0003f400: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -0003f410: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -0003f420: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0003f430: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -0003f440: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0003f450: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -0003f460: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ -0003f470: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -0003f480: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ -0003f490: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0003f4a0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0003f4b0: 2020 6e61 6d65 3a20 7379 736c 6f67 2d6e    name: syslog-n
│ │ │ -0003f4c0: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ -0003f4d0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -0003f4e0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -0003f4f0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -0003f500: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -0003f510: 2273 7973 6c6f 672d 6e67 2220 696e 2061  "syslog-ng" in a
│ │ │ -0003f520: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0003f530: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -0003f540: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0003f550: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -0003f560: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0003f570: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -0003f580: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0003f590: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0003f5a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0003f5b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0003f5c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0003f5d0: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -0003f5e0: 736c 6f67 6e67 5f65 6e61 626c 6564 0a20  slogng_enabled. 
│ │ │ -0003f5f0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0003f600: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0003f610: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0003f620: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0003f630: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +0003edc0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003edd0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003ede0: 7365 2220 6964 3d22 6964 3236 223e 3c74 se" id="id26"> │ │ │ +0003ee30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0003ee40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0003ee50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0003ee90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0003eea0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0003eec0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0003eee0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0003eef0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0003ef00: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0003ef10: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0003ef20: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0003ef30: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0003ef40: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +0003ef50: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0003ef60: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +0003ef70: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0003ef80: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0003ef90: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0003efa0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0003efb0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0003efc0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0003efd0: 5f73 7973 6c6f 676e 675f 656e 6162 6c65  _syslogng_enable
│ │ │ +0003efe0: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +0003eff0: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ +0003f000: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +0003f010: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ +0003f020: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0003f030: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0003f040: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +0003f050: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0003f060: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0003f070: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +0003f080: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +0003f090: 6162 6c65 2073 7973 6c6f 672d 6e67 2053  able syslog-ng S
│ │ │ +0003f0a0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +0003f0b0: 5365 7276 6963 6520 7379 736c 6f67 2d6e  Service syslog-n
│ │ │ +0003f0c0: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ +0003f0d0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0003f0e0: 2020 2020 206e 616d 653a 2073 7973 6c6f       name: syslo
│ │ │ +0003f0f0: 672d 6e67 0a20 2020 2020 2065 6e61 626c  g-ng.      enabl
│ │ │ +0003f100: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +0003f110: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +0003f120: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +0003f130: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +0003f140: 2d20 2722 7379 736c 6f67 2d6e 6722 2069  - '"syslog-ng" i
│ │ │ +0003f150: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0003f160: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0003f170: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0003f180: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +0003f190: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0003f1a0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +0003f1b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0003f1c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0003f1d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0003f1e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0003f1f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0003f200: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0003f210: 5f73 7973 6c6f 676e 675f 656e 6162 6c65  _syslogng_enable
│ │ │ +0003f220: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0003f230: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +0003f240: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0003f250: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0003f260: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +0003f280: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0003f320: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0003f330: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0003f3e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0003f400: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0003f430: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0003f3c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0003f3d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0003f3f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0003f410: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0003f420: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0003f470: 2065 6e61 626c 655f 7379 736c 6f67 2d6e enable_syslog-n │ │ │ +0003f480: 670a 0a63 6c61 7373 2065 6e61 626c 655f g..class enable_ │ │ │ +0003f490: 7379 736c 6f67 2d6e 6720 7b0a 2020 7365 syslog-ng {. se │ │ │ +0003f4a0: 7276 6963 6520 7b27 7379 736c 6f67 2d6e rvice {'syslog-n │ │ │ +0003f4b0: 6727 3a0a 2020 2020 656e 6162 6c65 203d g':. enable = │ │ │ +0003f4c0: 2667 743b 2074 7275 652c 0a20 2020 2065 > true,. e │ │ │ +0003f4d0: 6e73 7572 6520 3d26 6774 3b20 2772 756e nsure => 'run │ │ │ +0003f4e0: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63 ning',. }.}.

│ │ │ +0003f500: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0003f5a0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0003f5b0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0003f5c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ +0003f610: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0003f620: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ +0003f630: 736c 6f67 2d6e 6722 5d0a 3c2f 636f 6465  slog-ng"].
Remed │ │ │ -000407e0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000407f0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00040800: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ -00040840: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -00040850: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ -00040860: 6c6f 6722 0a76 6572 7369 6f6e 203d 2022  log".version = "
│ │ │ -00040870: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -00040880: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -00040930: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00040940: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00040a10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00040a20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00040a70: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ -00040a80: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ -00040a90: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ -00040aa0: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ -00040ab0: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ -00040ac0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00040ad0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -00040b90: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00040ba0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00040be0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -000409f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00040a00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00040a40: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00040a50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00040c50: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00040c70: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00040ca0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00040cc0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00040c30: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00040c40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00040c80: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00040c90: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00040ce0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00040cf0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00040d00: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00040d10: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00040d20: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00040d30: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00040d40: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -00040d50: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -00040d60: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -00040d70: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -00040d80: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00040d90: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00040da0: 202d 2070 6163 6b61 6765 5f72 7379 736c - package_rsysl │ │ │ -00040db0: 6f67 5f69 6e73 7461 6c6c 6564 0a0a 2d20 og_installed..- │ │ │ -00040dc0: 6e61 6d65 3a20 456e 7375 7265 2072 7379 name: Ensure rsy │ │ │ -00040dd0: 736c 6f67 2069 7320 696e 7374 616c 6c65 slog is installe │ │ │ -00040de0: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -00040df0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -00040e00: 206e 616d 653a 2072 7379 736c 6f67 0a20 name: rsyslog. │ │ │ -00040e10: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -00040e20: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ -00040e30: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -00040e40: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -00040e50: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ -00040e60: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00040e70: 6129 0a20 202d 2065 6e61 626c 655f 7374 a). - enable_st │ │ │ -00040e80: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00040e90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00040ea0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00040eb0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00040ec0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00040ed0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00040ee0: 655f 7273 7973 6c6f 675f 696e 7374 616c e_rsyslog_instal │ │ │ -00040ef0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
│ │ │ +000408a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000408c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000408f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00040880: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00040890: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000408b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000408d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000408e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +00040930: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00040940: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00040950: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00040960: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00040970: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00040980: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00040990: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +000409a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +000409b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +000409c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +000409d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +000409e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +000409f0: 2020 2d20 7061 636b 6167 655f 7273 7973 - package_rsys │ │ │ +00040a00: 6c6f 675f 696e 7374 616c 6c65 640a 0a2d log_installed..- │ │ │ +00040a10: 206e 616d 653a 2045 6e73 7572 6520 7273 name: Ensure rs │ │ │ +00040a20: 7973 6c6f 6720 6973 2069 6e73 7461 6c6c yslog is install │ │ │ +00040a30: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ +00040a40: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +00040a50: 2020 6e61 6d65 3a20 7273 7973 6c6f 670a name: rsyslog. │ │ │ +00040a60: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ +00040a70: 6e74 0a20 2077 6865 6e3a 2027 226c 696e nt. when: '"lin │ │ │ +00040a80: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ +00040a90: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +00040aa0: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +00040ab0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +00040ac0: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +00040ad0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00040ae0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00040af0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00040b00: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00040b10: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00040b20: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +00040b30: 6765 5f72 7379 736c 6f67 5f69 6e73 7461 ge_rsyslog_insta │ │ │ +00040b40: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.

Remediation │ │ │ +00040c00: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00040c10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +00040c90: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00040cb0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00040d00: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00040d50: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +00040d60: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ +00040d70: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +00040d80: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ +00040d90: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00040da0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00040dc0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00040e60: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00040e70: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00040e80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ +00040ed0: 6573 5d5d 0a6e 616d 6520 3d20 2272 7379  es]].name = "rsy
│ │ │ +00040ee0: 736c 6f67 220a 7665 7273 696f 6e20 3d20  slog".version = 
│ │ │ +00040ef0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation OS │ │ │ -00042170: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00042180: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00042190: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ -000421d0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -000421e0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -000421f0: 3d20 5b22 7273 7973 6c6f 6722 5d0a 3c2f  = ["rsyslog"].
Rem │ │ │ -000422b0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000422c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000422d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +00040cc0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00040cd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00040d10: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00040d20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00042350: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00042360: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00042380: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000423a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000423b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000423f0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00042400: 6520 656e 6162 6c65 5f72 7379 736c 6f67 e enable_rsyslog │ │ │ -00042410: 0a0a 636c 6173 7320 656e 6162 6c65 5f72 ..class enable_r │ │ │ -00042420: 7379 736c 6f67 207b 0a20 2073 6572 7669 syslog {. servi │ │ │ -00042430: 6365 207b 2772 7379 736c 6f67 273a 0a20 ce {'rsyslog':. │ │ │ -00042440: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ -00042450: 7472 7565 2c0a 2020 2020 656e 7375 7265 true,. ensure │ │ │ -00042460: 203d 2667 743b 2027 7275 6e6e 696e 6727 => 'running' │ │ │ -00042470: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00042480: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediati │ │ │ -00042530: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00042540: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -000425c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000425d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000425f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00042600: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00042620: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00042640: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00042670: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00042680: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00042690: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000426a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000426b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000426c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000426d0: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ -000426e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000426f0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00042700: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00042710: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00042720: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00042730: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00042740: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00042750: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00042760: 7273 7973 6c6f 675f 656e 6162 6c65 640a  rsyslog_enabled.
│ │ │ -00042770: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -00042780: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -00042790: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -000427a0: 2072 7379 736c 6f67 0a20 2062 6c6f 636b   rsyslog.  block
│ │ │ -000427b0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -000427c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000427d0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -000427e0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000427f0: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -00042800: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -00042810: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ -00042820: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ -00042830: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -00042840: 7273 7973 6c6f 670a 2020 2020 616e 7369  rsyslog.    ansi
│ │ │ -00042850: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00042860: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00042870: 2072 7379 736c 6f67 0a20 2020 2020 2065   rsyslog.      e
│ │ │ -00042880: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -00042890: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -000428a0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -000428b0: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -000428c0: 2020 2020 2d20 2722 7273 7973 6c6f 6722      - '"rsyslog"
│ │ │ -000428d0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000428e0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -000428f0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00042900: 2d35 332d 4155 2d34 2831 290a 2020 2d20  -53-AU-4(1).  - 
│ │ │ -00042910: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00042920: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -00042930: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00042940: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00042950: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00042960: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00042970: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00042980: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00042990: 6365 5f72 7379 736c 6f67 5f65 6e61 626c  ce_rsyslog_enabl
│ │ │ -000429a0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -000429b0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -000429c0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000429d0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000429e0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation An
│ │ │ +00042170: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00042180: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity: │ │ │ +00042250: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00042260: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000422b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000422c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000422d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000422e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000422f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00042300: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00042310: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00042320: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00042330: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00042340: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00042350: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00042360: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00042370: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00042380: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00042390: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ +000423a0: 6f67 5f65 6e61 626c 6564 0a0a 2d20 6e61  og_enabled..- na
│ │ │ +000423b0: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ +000423c0: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ +000423d0: 626c 6520 7365 7276 6963 6520 7273 7973  ble service rsys
│ │ │ +000423e0: 6c6f 670a 2020 626c 6f63 6b3a 0a0a 2020  log.  block:..  
│ │ │ +000423f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00042400: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00042410: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00042420: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ +00042430: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ +00042440: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ +00042450: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ +00042460: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ +00042470: 6c65 2053 6572 7669 6365 2072 7379 736c  le Service rsysl
│ │ │ +00042480: 6f67 0a20 2020 2061 6e73 6962 6c65 2e62  og.    ansible.b
│ │ │ +00042490: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +000424a0: 2020 2020 2020 6e61 6d65 3a20 7273 7973        name: rsys
│ │ │ +000424b0: 6c6f 670a 2020 2020 2020 656e 6162 6c65  log.      enable
│ │ │ +000424c0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +000424d0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +000424e0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +000424f0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +00042500: 2027 2272 7379 736c 6f67 2220 696e 2061   '"rsyslog" in a
│ │ │ +00042510: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00042520: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00042530: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00042540: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +00042550: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00042560: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00042570: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00042580: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00042590: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000425a0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000425b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000425c0: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ +000425d0: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ +000425e0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +000425f0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +00042600: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00042610: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00042620: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00042630: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +000426e0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000426f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00042770: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ +000427b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disru │ │ │ +00042230: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00042240: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00042280: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00042290: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +00042780: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000427a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000427d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000427f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00042820: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +00042830: 626c 655f 7273 7973 6c6f 670a 0a63 6c61  ble_rsyslog..cla
│ │ │ +00042840: 7373 2065 6e61 626c 655f 7273 7973 6c6f  ss enable_rsyslo
│ │ │ +00042850: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ +00042860: 7273 7973 6c6f 6727 3a0a 2020 2020 656e  rsyslog':.    en
│ │ │ +00042870: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +00042880: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00042890: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +000428a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +000428b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation OS │ │ │ +00042960: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00042970: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00042980: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ +000429c0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +000429d0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +000429e0: 3d20 5b22 7273 7973 6c6f 6722 5d0a 3c2f  = ["rsyslog"].
Remediation Pup │ │ │ -00058ac0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00058ad0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -00058b60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00058c00: 696e 636c 7564 6520 7265 6d6f 7665 5f69  include remove_i
│ │ │ -00058c10: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -00058c20: 0a0a 636c 6173 7320 7265 6d6f 7665 5f69  ..class remove_i
│ │ │ -00058c30: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -00058c40: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00058c50: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00058c60: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -00058c70: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00058c80: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -00058d40: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -00058d50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
│ │ │ -00058b50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00058b80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00058b90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00058bd0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00058be0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00058dd0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00058df0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00058e40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00058e70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00058de0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00058e00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00058e50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00058e60: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -00058e90: 7374 616c 6c20 7468 6520 696e 6574 2d62  stall the inet-b
│ │ │ -00058ea0: 6173 6564 2074 656c 6e65 7420 7365 7276  ased telnet serv
│ │ │ -00058eb0: 6572 3a20 456e 7375 7265 2069 6e65 7475  er: Ensure inetu
│ │ │ -00058ec0: 7469 6c73 2d74 656c 6e65 7464 2069 7320  tils-telnetd is 
│ │ │ -00058ed0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00058ee0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00058ef0: 6765 3a0a 2020 2020 6e61 6d65 3a20 696e  ge:.    name: in
│ │ │ -00058f00: 6574 7574 696c 732d 7465 6c6e 6574 640a  etutils-telnetd.
│ │ │ -00058f10: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00058f20: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -00058f30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00058f40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00058f50: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00058f60: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00058f70: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00058f80: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -00058f90: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -00058fa0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00058fb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00058fc0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00058fd0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00058fe0: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00058ff0: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.Remediation Ans
│ │ │ +00058ac0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00058ad0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +00058ba0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00058bb0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00058c00: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +00058c10: 6c6c 2074 6865 2069 6e65 742d 6261 7365  ll the inet-base
│ │ │ +00058c20: 6420 7465 6c6e 6574 2073 6572 7665 723a  d telnet server:
│ │ │ +00058c30: 2045 6e73 7572 6520 696e 6574 7574 696c   Ensure inetutil
│ │ │ +00058c40: 732d 7465 6c6e 6574 6420 6973 2072 656d  s-telnetd is rem
│ │ │ +00058c50: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00058c60: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00058c70: 0a20 2020 206e 616d 653a 2069 6e65 7475  .    name: inetu
│ │ │ +00058c80: 7469 6c73 2d74 656c 6e65 7464 0a20 2020  tils-telnetd.   
│ │ │ +00058c90: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00058ca0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00058cb0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00058cc0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00058cd0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00058ce0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00058cf0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00058d00: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +00058d10: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +00058d20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00058d30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00058d40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00058d50: 0a20 202d 2070 6163 6b61 6765 5f69 6e65  .  - package_ine
│ │ │ +00058d60: 7475 7469 6c73 2d74 656c 6e65 7464 5f72  tutils-telnetd_r
│ │ │ +00058d70: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediatio
│ │ │ +00058e30: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +00058e40: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
low< │ │ │ +00058f10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ +00058b80: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00058b90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00058bd0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00058be0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00058ed0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00058ef0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00058f40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00058f50: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00058f80: 6f76 655f 696e 6574 7574 696c 732d 7465  ove_inetutils-te
│ │ │ +00058f90: 6c6e 6574 640a 0a63 6c61 7373 2072 656d  lnetd..class rem
│ │ │ +00058fa0: 6f76 655f 696e 6574 7574 696c 732d 7465  ove_inetutils-te
│ │ │ +00058fb0: 6c6e 6574 6420 7b0a 2020 7061 636b 6167  lnetd {.  packag
│ │ │ +00058fc0: 6520 7b20 2769 6e65 7475 7469 6c73 2d74  e { 'inetutils-t
│ │ │ +00058fd0: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ +00058fe0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00058ff0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
R │ │ │ -00059de0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00059df0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -00059ea0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00059ef0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00059f30: 636c 7564 6520 7265 6d6f 7665 5f6e 6973  clude remove_nis
│ │ │ -00059f40: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6e  ..class remove_n
│ │ │ -00059f50: 6973 207b 0a20 2070 6163 6b61 6765 207b  is {.  package {
│ │ │ -00059f60: 2027 6e69 7327 3a0a 2020 2020 656e 7375   'nis':.    ensu
│ │ │ -00059f70: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00059f80: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00059f90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -0005a040: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0005a050: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0005a060: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0005a070: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0005a080: 7365 2220 6964 3d22 6964 3834 223e 3c74 se" id="id84"> │ │ │ -0005a0d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -0005a160: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0005a170: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -00059e80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00059eb0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00059ed0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00059ee0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00059f00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00059f10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -0005a0e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0005a0f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0005a130: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0005a140: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -0005a190: 556e 696e 7374 616c 6c20 7468 6520 6e69  Uninstall the ni
│ │ │ -0005a1a0: 7320 7061 636b 6167 653a 2045 6e73 7572  s package: Ensur
│ │ │ -0005a1b0: 6520 6e69 7320 6973 2072 656d 6f76 6564  e nis is removed
│ │ │ -0005a1c0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0005a1d0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0005a1e0: 206e 616d 653a 206e 6973 0a20 2020 2073   name: nis.    s
│ │ │ -0005a1f0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0005a200: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0005a210: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0005a220: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0005a230: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0005a240: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -0005a250: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0005a260: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0005a270: 655f 6e69 735f 7265 6d6f 7665 640a 3c2f  e_nis_removed.
< │ │ │ +00059e90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00059ea0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00059ef0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00059f30: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00059f40: 2074 6865 206e 6973 2070 6163 6b61 6765   the nis package
│ │ │ +00059f50: 3a20 456e 7375 7265 206e 6973 2069 7320  : Ensure nis is 
│ │ │ +00059f60: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00059f70: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00059f80: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e69  ge:.    name: ni
│ │ │ +00059f90: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ +00059fa0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00059fb0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00059fc0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00059fd0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00059fe0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00059ff0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0005a000: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0005a010: 2070 6163 6b61 6765 5f6e 6973 5f72 656d   package_nis_rem
│ │ │ +0005a020: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation 
│ │ │ +0005a0e0: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +0005a0f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ +00059e80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00059eb0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00059ec0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00059f00: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00059f10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0005a170: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0005a190: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0005a1e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0005a210: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0005a230: 655f 6e69 730a 0a63 6c61 7373 2072 656d  e_nis..class rem
│ │ │ +0005a240: 6f76 655f 6e69 7320 7b0a 2020 7061 636b  ove_nis {.  pack
│ │ │ +0005a250: 6167 6520 7b20 276e 6973 273a 0a20 2020  age { 'nis':.   
│ │ │ +0005a260: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0005a270: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation Pup │ │ │ -0005b5f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0005b600: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +0005a1a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0005a1b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0005a1f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0005a200: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -0005b690: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0005b730: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -0005b740: 656c 6e65 7464 2d73 736c 0a0a 636c 6173  elnetd-ssl..clas
│ │ │ -0005b750: 7320 7265 6d6f 7665 5f74 656c 6e65 7464  s remove_telnetd
│ │ │ -0005b760: 2d73 736c 207b 0a20 2070 6163 6b61 6765  -ssl {.  package
│ │ │ -0005b770: 207b 2027 7465 6c6e 6574 642d 7373 6c27   { 'telnetd-ssl'
│ │ │ -0005b780: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0005b790: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0005b7a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0005b7b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -0005b860: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0005b870: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0005b680: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0005b6b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0005b6c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0005b700: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0005b710: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -0005b940: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0005b950: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -0005b9b0: 616c 6c20 7468 6520 7373 6c20 636f 6d70  all the ssl comp
│ │ │ -0005b9c0: 6c69 616e 7420 7465 6c6e 6574 2073 6572  liant telnet ser
│ │ │ -0005b9d0: 7665 723a 2045 6e73 7572 6520 7465 6c6e  ver: Ensure teln
│ │ │ -0005b9e0: 6574 642d 7373 6c20 6973 2072 656d 6f76  etd-ssl is remov
│ │ │ -0005b9f0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0005ba00: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0005ba10: 2020 206e 616d 653a 2074 656c 6e65 7464     name: telnetd
│ │ │ -0005ba20: 2d73 736c 0a20 2020 2073 7461 7465 3a20  -ssl.    state: 
│ │ │ -0005ba30: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0005ba40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0005ba50: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0005ba60: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0005ba70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0005ba80: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0005ba90: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0005baa0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -0005bab0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0005bac0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0005bad0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0005bae0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0005baf0: 6b61 6765 5f74 656c 6e65 7464 2d73 736c  kage_telnetd-ssl
│ │ │ -0005bb00: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0005b5e0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +0005b5f0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0005b600: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disru │ │ │ -0005b920: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0005b930: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0005b970: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0005b980: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0005b6d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0005b6e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0005b730: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0005b740: 6c6c 2074 6865 2073 736c 2063 6f6d 706c  ll the ssl compl
│ │ │ +0005b750: 6961 6e74 2074 656c 6e65 7420 7365 7276  iant telnet serv
│ │ │ +0005b760: 6572 3a20 456e 7375 7265 2074 656c 6e65  er: Ensure telne
│ │ │ +0005b770: 7464 2d73 736c 2069 7320 7265 6d6f 7665  td-ssl is remove
│ │ │ +0005b780: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0005b790: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0005b7a0: 2020 6e61 6d65 3a20 7465 6c6e 6574 642d    name: telnetd-
│ │ │ +0005b7b0: 7373 6c0a 2020 2020 7374 6174 653a 2061  ssl.    state: a
│ │ │ +0005b7c0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +0005b7d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0005b7e0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +0005b7f0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +0005b800: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0005b810: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +0005b820: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +0005b830: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +0005b840: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0005b850: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0005b860: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +0005b870: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0005b880: 6167 655f 7465 6c6e 6574 642d 7373 6c5f  age_telnetd-ssl_
│ │ │ +0005b890: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +0005b8a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ +0005b950: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0005b960: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0005ba20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0005ba30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +0005b6b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0005b6c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0005b700: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0005b710: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +0005b9f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0005ba10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0005ba40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0005ba60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0005ba90: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0005baa0: 6d6f 7665 5f74 656c 6e65 7464 2d73 736c  move_telnetd-ssl
│ │ │ +0005bab0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +0005bac0: 656c 6e65 7464 2d73 736c 207b 0a20 2070  elnetd-ssl {.  p
│ │ │ +0005bad0: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ +0005bae0: 642d 7373 6c27 3a0a 2020 2020 656e 7375  d-ssl':.    ensu
│ │ │ +0005baf0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +0005bb00: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  0005bb10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation │ │ │ -0005cea0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0005ceb0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ -0005cf30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0005cf50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0005cfa0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0005cfd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0005cff0: 655f 7465 6c6e 6574 640a 0a63 6c61 7373  e_telnetd..class
│ │ │ -0005d000: 2072 656d 6f76 655f 7465 6c6e 6574 6420   remove_telnetd 
│ │ │ -0005d010: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ -0005d020: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ -0005d030: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0005d040: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ -0005d100: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0005d110: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0005d120: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -0005d150: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0005d160: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0005d170: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0005d180: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0005d190: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0005d220: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0005d230: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ -0005cf60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0005cf70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0005cfb0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0005cfc0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ -0005d1a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0005d1b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0005d1f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0005d200: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0005d250: 2755 6e69 6e73 7461 6c6c 2074 6865 2074 'Uninstall the t │ │ │ -0005d260: 656c 6e65 7420 7365 7276 6572 3a20 456e elnet server: En │ │ │ -0005d270: 7375 7265 2074 656c 6e65 7464 2069 7320 sure telnetd is │ │ │ -0005d280: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ -0005d290: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -0005d2a0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465 ge:. name: te │ │ │ -0005d2b0: 6c6e 6574 640a 2020 2020 7374 6174 653a lnetd. state: │ │ │ -0005d2c0: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ -0005d2d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0005d2e0: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -0005d2f0: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ -0005d300: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0005d310: 434d 2d37 2862 290a 2020 2d20 6469 7361 CM-7(b). - disa │ │ │ -0005d320: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0005d330: 2068 6967 685f 7365 7665 7269 7479 0a20 high_severity. │ │ │ -0005d340: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -0005d350: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -0005d360: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -0005d370: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -0005d380: 636b 6167 655f 7465 6c6e 6574 645f 7265 ckage_telnetd_re │ │ │ -0005d390: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.


│ │ │ +0005cf30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0005cf50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0005cfa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0005cfd0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0005cf40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0005cf60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0005cfb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0005cfc0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +0005cff0: 7374 616c 6c20 7468 6520 7465 6c6e 6574  stall the telnet
│ │ │ +0005d000: 2073 6572 7665 723a 2045 6e73 7572 6520   server: Ensure 
│ │ │ +0005d010: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ +0005d020: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0005d030: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0005d040: 2020 206e 616d 653a 2074 656c 6e65 7464     name: telnetd
│ │ │ +0005d050: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0005d060: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0005d070: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0005d080: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0005d090: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0005d0a0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0005d0b0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0005d0c0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0005d0d0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0005d0e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0005d0f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0005d100: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0005d110: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0005d120: 5f74 656c 6e65 7464 5f72 656d 6f76 6564  _telnetd_removed
│ │ │ +0005d130: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +0005d1e0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0005d1f0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +0005d290: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0005d2a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0005d2f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0005d330: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ +0005d340: 6c6e 6574 640a 0a63 6c61 7373 2072 656d  lnetd..class rem
│ │ │ +0005d350: 6f76 655f 7465 6c6e 6574 6420 7b0a 2020  ove_telnetd {.  
│ │ │ +0005d360: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ +0005d370: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ +0005d380: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0005d390: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -364,14 +347,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -401,31 +401,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -462,14 +445,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -502,31 +502,14 @@ │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -549,14 +532,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -589,31 +589,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -650,14 +633,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -1893,27 +1893,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -1926,14 +1913,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -1967,27 +1967,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -1996,14 +1983,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -2055,27 +2055,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -2088,14 +2075,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -2147,27 +2147,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -2179,14 +2166,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_restrictive.html │ │ │ @@ -20948,129 +20948,129 @@ │ │ │ 00051d30: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 00051d40: 743d 2223 6964 3338 2220 7461 6269 6e64 t="#id38" tabind │ │ │ 00051d50: 6578 3d22 3022 2072 6f6c 653d 2262 7574 ex="0" role="but │ │ │ 00051d60: 746f 6e22 2061 7269 612d 6578 7061 6e64 ton" aria-expand │ │ │ 00051d70: 6564 3d22 6661 6c73 6522 2074 6974 6c65 ed="false" title │ │ │ 00051d80: 3d22 4163 7469 7661 7465 2074 6f20 7265 ="Activate to re │ │ │ 00051d90: 7665 616c 2220 6872 6566 3d22 2321 223e veal" href="#!"> │ │ │ -00051da0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00051db0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00051dc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00051e00: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00051e10: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00051e20: 2273 7973 6c6f 672d 6e67 220a 7665 7273  "syslog-ng".vers
│ │ │ -00051e30: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -00051ef0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00051f00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00051f10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00051f20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00051f30: 7365 2220 6964 3d22 6964 3339 223e 3c74 se" id="id39"> │ │ │ -00051f80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00052010: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ +0005d280: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0005d2b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0005d2c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0005d300: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0005d310: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -00051f90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00051fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00051fe0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00051ff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -00052030: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00052040: 7374 616c 6c5f 7379 736c 6f67 2d6e 670a  stall_syslog-ng.
│ │ │ -00052050: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ -00052060: 7973 6c6f 672d 6e67 207b 0a20 2070 6163  yslog-ng {.  pac
│ │ │ -00052070: 6b61 6765 207b 2027 7379 736c 6f67 2d6e  kage { 'syslog-n
│ │ │ -00052080: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ -00052090: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -000520a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000520b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00052160: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00052170: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -000521f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00052200: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00052220: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00052230: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00052250: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00052270: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000522a0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000522b0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000522c0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000522d0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000522e0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000522f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00052300: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00052310: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00052320: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00052330: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00052340: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00052350: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00052360: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00052370: 7061 636b 6167 655f 7379 736c 6f67 6e67  package_syslogng
│ │ │ -00052380: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -00052390: 6d65 3a20 456e 7375 7265 2073 7973 6c6f  me: Ensure syslo
│ │ │ -000523a0: 672d 6e67 2069 7320 696e 7374 616c 6c65  g-ng is installe
│ │ │ -000523b0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000523c0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000523d0: 206e 616d 653a 2073 7973 6c6f 672d 6e67   name: syslog-ng
│ │ │ -000523e0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000523f0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -00052400: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00052410: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00052420: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00052430: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00052440: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00052450: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00052460: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00052470: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00052480: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00052490: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000524a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000524b0: 6167 655f 7379 736c 6f67 6e67 5f69 6e73  age_syslogng_ins
│ │ │ -000524c0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +00051e50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00051ef0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00051f00: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00051f10: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00051f20: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00051f30: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00051f40: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00051f50: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00051f60: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00051f70: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00051f80: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00051f90: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00051fa0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00051fb0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00051fc0: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +00051fd0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00051fe0: 7572 6520 7379 736c 6f67 2d6e 6720 6973  ure syslog-ng is
│ │ │ +00051ff0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00052000: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00052010: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00052020: 7379 736c 6f67 2d6e 670a 2020 2020 7374  syslog-ng.    st
│ │ │ +00052030: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00052040: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00052050: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00052060: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00052070: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00052080: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00052090: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000520a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000520b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000520c0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000520d0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000520e0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000520f0: 0a20 202d 2070 6163 6b61 6765 5f73 7973  .  - package_sys
│ │ │ +00052100: 6c6f 676e 675f 696e 7374 616c 6c65 640a  logng_installed.
│ │ │ +00052110: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +000521c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000521d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00051e40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00051e70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00051e80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00051ec0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00051ed0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00052280: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000522d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00052260: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00052290: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000522b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000522c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000522e0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000522f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00052310: 7564 6520 696e 7374 616c 6c5f 7379 736c  ude install_sysl
│ │ │ +00052320: 6f67 2d6e 670a 0a63 6c61 7373 2069 6e73  og-ng..class ins
│ │ │ +00052330: 7461 6c6c 5f73 7973 6c6f 672d 6e67 207b  tall_syslog-ng {
│ │ │ +00052340: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ +00052350: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ +00052360: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +00052370: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +00052430: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00052440: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00052450: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +000524a0: 6765 735d 5d0a 6e61 6d65 203d 2022 7379 ges]].name = "sy │ │ │ +000524b0: 736c 6f67 2d6e 6722 0a76 6572 7369 6f6e slog-ng".version │ │ │ +000524c0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Remediation O │ │ │ -00053560: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00053570: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00053580: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -000535c0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -000535d0: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -000535e0: 203d 205b 2273 7973 6c6f 672d 6e67 225d   = ["syslog-ng"]
│ │ │ -000535f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -000536a0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000536b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -00053750: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00053760: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000537b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -000537f0: 6c75 6465 2065 6e61 626c 655f 7379 736c  lude enable_sysl
│ │ │ -00053800: 6f67 2d6e 670a 0a63 6c61 7373 2065 6e61  og-ng..class ena
│ │ │ -00053810: 626c 655f 7379 736c 6f67 2d6e 6720 7b0a  ble_syslog-ng {.
│ │ │ -00053820: 2020 7365 7276 6963 6520 7b27 7379 736c    service {'sysl
│ │ │ -00053830: 6f67 2d6e 6727 3a0a 2020 2020 656e 6162  og-ng':.    enab
│ │ │ -00053840: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -00053850: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00053860: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -00053870: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -00053920: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00053930: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00053940: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -00053740: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00053770: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00053780: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000537c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000537d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -000539d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00053a70: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00053a80: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00053a90: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00053aa0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00053ab0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00053ac0: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ -00053ad0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00053ae0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00053af0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00053b00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00053b10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00053b20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00053b30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00053b40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00053b50: 2073 6572 7669 6365 5f73 7973 6c6f 676e   service_syslogn
│ │ │ -00053b60: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ -00053b70: 653a 2045 6e61 626c 6520 7379 736c 6f67  e: Enable syslog
│ │ │ -00053b80: 2d6e 6720 5365 7276 6963 6520 2d20 456e  -ng Service - En
│ │ │ -00053b90: 6162 6c65 2073 6572 7669 6365 2073 7973  able service sys
│ │ │ -00053ba0: 6c6f 672d 6e67 0a20 2062 6c6f 636b 3a0a  log-ng.  block:.
│ │ │ -00053bb0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00053bc0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00053bd0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00053be0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00053bf0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00053c00: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00053c10: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ -00053c20: 6c6f 672d 6e67 2053 6572 7669 6365 202d  log-ng Service -
│ │ │ -00053c30: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -00053c40: 7379 736c 6f67 2d6e 670a 2020 2020 616e  syslog-ng.    an
│ │ │ -00053c50: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00053c60: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00053c70: 653a 2073 7973 6c6f 672d 6e67 0a20 2020  e: syslog-ng.   
│ │ │ -00053c80: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -00053c90: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00053ca0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -00053cb0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -00053cc0: 656e 3a0a 2020 2020 2d20 2722 7379 736c  en:.    - '"sysl
│ │ │ -00053cd0: 6f67 2d6e 6722 2069 6e20 616e 7369 626c  og-ng" in ansibl
│ │ │ -00053ce0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00053cf0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -00053d00: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ -00053d10: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00053d20: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00053d30: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00053d40: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00053d50: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00053d60: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00053d70: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00053d80: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00053d90: 2073 6572 7669 6365 5f73 7973 6c6f 676e   service_syslogn
│ │ │ -00053da0: 675f 656e 6162 6c65 640a 2020 2d20 7370  g_enabled.  - sp
│ │ │ -00053db0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -00053dc0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -00053dd0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00053de0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00053df0: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation A
│ │ │ +00053560: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00053570: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ -000539c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000539f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00053a00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00053a40: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00053a50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000535f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00053610: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00053660: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000536b0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000536c0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000536d0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000536e0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000536f0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00053700: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +00053710: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00053720: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00053730: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00053740: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00053750: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00053760: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00053770: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00053780: 2020 2d20 7365 7276 6963 655f 7379 736c    - service_sysl
│ │ │ +00053790: 6f67 6e67 5f65 6e61 626c 6564 0a0a 2d20  ogng_enabled..- 
│ │ │ +000537a0: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ +000537b0: 6c6f 672d 6e67 2053 6572 7669 6365 202d  log-ng Service -
│ │ │ +000537c0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +000537d0: 7379 736c 6f67 2d6e 670a 2020 626c 6f63  syslog-ng.  bloc
│ │ │ +000537e0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ +000537f0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00053800: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ +00053810: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00053820: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ +00053830: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ +00053840: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ +00053850: 7379 736c 6f67 2d6e 6720 5365 7276 6963  syslog-ng Servic
│ │ │ +00053860: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +00053870: 6365 2073 7973 6c6f 672d 6e67 0a20 2020  ce syslog-ng.   
│ │ │ +00053880: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00053890: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +000538a0: 6e61 6d65 3a20 7379 736c 6f67 2d6e 670a  name: syslog-ng.
│ │ │ +000538b0: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +000538c0: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +000538d0: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +000538e0: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +000538f0: 2077 6865 6e3a 0a20 2020 202d 2027 2273   when:.    - '"s
│ │ │ +00053900: 7973 6c6f 672d 6e67 2220 696e 2061 6e73  yslog-ng" in ans
│ │ │ +00053910: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00053920: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00053930: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00053940: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +00053950: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00053960: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00053970: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00053980: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00053990: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000539a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000539b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000539c0: 2020 2d20 7365 7276 6963 655f 7379 736c    - service_sysl
│ │ │ +000539d0: 6f67 6e67 5f65 6e61 626c 6564 0a20 202d  ogng_enabled.  -
│ │ │ +000539e0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +000539f0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00053a00: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00053a10: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00053a20: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00053a30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ +00053ae0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00053af0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00053bb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00053bc0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +00053620: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00053630: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00053670: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00053680: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +00053b80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00053ba0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00053bd0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00053bf0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00053c30: 6c65 5f73 7973 6c6f 672d 6e67 0a0a 636c  le_syslog-ng..cl
│ │ │ +00053c40: 6173 7320 656e 6162 6c65 5f73 7973 6c6f  ass enable_syslo
│ │ │ +00053c50: 672d 6e67 207b 0a20 2073 6572 7669 6365  g-ng {.  service
│ │ │ +00053c60: 207b 2773 7973 6c6f 672d 6e67 273a 0a20   {'syslog-ng':. 
│ │ │ +00053c70: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00053c80: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ +00053c90: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ +00053ca0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00053cb0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +00053d60: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00053d70: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00053d80: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizatio
│ │ │ +00053dd0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +00053de0: 626c 6564 203d 205b 2273 7973 6c6f 672d  bled = ["syslog-
│ │ │ +00053df0: 6e67 225d 0a3c 2f63 6f64 653e 3c2f 7072  ng"].
Remediatio │ │ │ -00054fa0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00054fb0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00054fc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ -00055010: 616d 6520 3d20 2272 7379 736c 6f67 220a  ame = "rsyslog".
│ │ │ -00055020: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -000550e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000550f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00055100: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -00055180: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00055190: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000551b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000551d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000551e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00055220: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00055230: 6520 696e 7374 616c 6c5f 7273 7973 6c6f e install_rsyslo │ │ │ -00055240: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ -00055250: 5f72 7379 736c 6f67 207b 0a20 2070 6163 _rsyslog {. pac │ │ │ -00055260: 6b61 6765 207b 2027 7273 7973 6c6f 6727 kage { 'rsyslog' │ │ │ -00055270: 3a0a 2020 2020 656e 7375 7265 203d 2667 :. ensure =&g │ │ │ -00055280: 743b 2027 696e 7374 616c 6c65 6427 2c0a t; 'installed',. │ │ │ -00055290: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -00055350: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00055360: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -000553f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00055410: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00055430: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00055460: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00055470: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00055480: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -000554a0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000554b0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -000554c0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -000554d0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -000554e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000554f0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -00055500: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00055510: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00055520: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00055530: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00055540: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00055550: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00055560: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ -00055570: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -00055580: 2045 6e73 7572 6520 7273 7973 6c6f 6720   Ensure rsyslog 
│ │ │ -00055590: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000555a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000555b0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000555c0: 3a20 7273 7973 6c6f 670a 2020 2020 7374  : rsyslog.    st
│ │ │ -000555d0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000555e0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000555f0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00055600: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00055610: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00055620: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00055630: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00055640: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00055650: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00055660: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00055670: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00055680: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00055690: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ -000556a0: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a3c  slog_installed.<
│ │ │ +00054fa0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +00054fb0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
Complexity │ │ │ +00055040: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00055060: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00055070: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00055080: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00055090: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000550b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000550f0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00055100: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00055110: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00055120: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00055130: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00055140: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00055150: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00055160: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00055170: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00055180: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00055190: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000551a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000551b0: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +000551c0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +000551d0: 3a20 456e 7375 7265 2072 7379 736c 6f67  : Ensure rsyslog
│ │ │ +000551e0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000551f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00055200: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00055210: 653a 2072 7379 736c 6f67 0a20 2020 2073  e: rsyslog.    s
│ │ │ +00055220: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +00055230: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00055240: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00055250: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00055260: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00055270: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00055280: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00055290: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000552a0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000552b0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000552c0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000552d0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000552e0: 640a 2020 2d20 7061 636b 6167 655f 7273  d.  - package_rs
│ │ │ +000552f0: 7973 6c6f 675f 696e 7374 616c 6c65 640a  yslog_installed.
│ │ │ +00055300: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +000553b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000553c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +00055470: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000554c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00055450: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00055480: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000554a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000554b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000554d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000554e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00055500: 7564 6520 696e 7374 616c 6c5f 7273 7973  ude install_rsys
│ │ │ +00055510: 6c6f 670a 0a63 6c61 7373 2069 6e73 7461  log..class insta
│ │ │ +00055520: 6c6c 5f72 7379 736c 6f67 207b 0a20 2070  ll_rsyslog {.  p
│ │ │ +00055530: 6163 6b61 6765 207b 2027 7273 7973 6c6f  ackage { 'rsyslo
│ │ │ +00055540: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ +00055550: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +00055560: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00055570: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +00055620: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00055630: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00055640: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ +00055690: 6e61 6d65 203d 2022 7273 7973 6c6f 6722  name = "rsyslog"
│ │ │ +000556a0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  000556b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -00056920: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00056930: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00056940: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[custom │ │ │ -00056990: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -000569a0: 735d 0a65 6e61 626c 6564 203d 205b 2272 s].enabled = ["r │ │ │ -000569b0: 7379 736c 6f67 225d 0a3c 2f63 6f64 653e syslog"]. │ │ │ -000569c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remediat │ │ │ -00056a70: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00056a80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00056b00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00056b10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00056b30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00056b40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00056b60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00056b80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00056bb0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -00056bc0: 626c 655f 7273 7973 6c6f 670a 0a63 6c61  ble_rsyslog..cla
│ │ │ -00056bd0: 7373 2065 6e61 626c 655f 7273 7973 6c6f  ss enable_rsyslo
│ │ │ -00056be0: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ -00056bf0: 7273 7973 6c6f 6727 3a0a 2020 2020 656e  rsyslog':.    en
│ │ │ -00056c00: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ -00056c10: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00056c20: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ -00056c30: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00056c40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation An │ │ │ -00056cf0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00056d00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -00056dd0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00056de0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00056e30: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00056e40: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00056e50: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00056e60: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00056e70: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00056e80: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -00056e90: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00056ea0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00056eb0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00056ec0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00056ed0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00056ee0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00056ef0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00056f00: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00056f10: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ -00056f20: 6f67 5f65 6e61 626c 6564 0a0a 2d20 6e61  og_enabled..- na
│ │ │ -00056f30: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ -00056f40: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ -00056f50: 626c 6520 7365 7276 6963 6520 7273 7973  ble service rsys
│ │ │ -00056f60: 6c6f 670a 2020 626c 6f63 6b3a 0a0a 2020  log.  block:..  
│ │ │ -00056f70: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00056f80: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00056f90: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00056fa0: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -00056fb0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -00056fc0: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -00056fd0: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ -00056fe0: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ -00056ff0: 6c65 2053 6572 7669 6365 2072 7379 736c  le Service rsysl
│ │ │ -00057000: 6f67 0a20 2020 2061 6e73 6962 6c65 2e62  og.    ansible.b
│ │ │ -00057010: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00057020: 2020 2020 2020 6e61 6d65 3a20 7273 7973        name: rsys
│ │ │ -00057030: 6c6f 670a 2020 2020 2020 656e 6162 6c65  log.      enable
│ │ │ -00057040: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ -00057050: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ -00057060: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ -00057070: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ -00057080: 2027 2272 7379 736c 6f67 2220 696e 2061   '"rsyslog" in a
│ │ │ -00057090: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000570a0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000570b0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000570c0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -000570d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000570e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000570f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00057100: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00057110: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00057120: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00057130: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00057140: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -00057150: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ -00057160: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00057170: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00057180: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00057190: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000571a0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00056920: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00056930: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00056940: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -00056db0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00056dc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00056e00: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00056e10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +000569c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000569f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00056a10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00056a20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00056a40: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00056a60: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00056a70: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00056a80: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00056a90: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00056aa0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00056ab0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00056ac0: 3830 302d 3533 2d41 552d 3428 3129 0a20  800-53-AU-4(1). 
│ │ │ +00056ad0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00056ae0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +00056af0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00056b00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00056b10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00056b20: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00056b30: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00056b40: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00056b50: 7276 6963 655f 7273 7973 6c6f 675f 656e  rvice_rsyslog_en
│ │ │ +00056b60: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ +00056b70: 6e61 626c 6520 7273 7973 6c6f 6720 5365  nable rsyslog Se
│ │ │ +00056b80: 7276 6963 6520 2d20 456e 6162 6c65 2073  rvice - Enable s
│ │ │ +00056b90: 6572 7669 6365 2072 7379 736c 6f67 0a20  ervice rsyslog. 
│ │ │ +00056ba0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00056bb0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00056bc0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00056bd0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00056be0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00056bf0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00056c00: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00056c10: 6162 6c65 2072 7379 736c 6f67 2053 6572  able rsyslog Ser
│ │ │ +00056c20: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ +00056c30: 7276 6963 6520 7273 7973 6c6f 670a 2020  rvice rsyslog.  
│ │ │ +00056c40: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00056c50: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00056c60: 206e 616d 653a 2072 7379 736c 6f67 0a20   name: rsyslog. 
│ │ │ +00056c70: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ +00056c80: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ +00056c90: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ +00056ca0: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ +00056cb0: 7768 656e 3a0a 2020 2020 2d20 2722 7273  when:.    - '"rs
│ │ │ +00056cc0: 7973 6c6f 6722 2069 6e20 616e 7369 626c  yslog" in ansibl
│ │ │ +00056cd0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00056ce0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +00056cf0: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ +00056d00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00056d10: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +00056d20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00056d30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00056d40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00056d50: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00056d60: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00056d70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00056d80: 2073 6572 7669 6365 5f72 7379 736c 6f67   service_rsyslog
│ │ │ +00056d90: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ +00056da0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00056db0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +00056dc0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00056dd0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00056de0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation P │ │ │ +00056ea0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00056eb0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ +00056f80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00056f90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00056fe0: 696e 636c 7564 6520 656e 6162 6c65 5f72  include enable_r
│ │ │ +00056ff0: 7379 736c 6f67 0a0a 636c 6173 7320 656e  syslog..class en
│ │ │ +00057000: 6162 6c65 5f72 7379 736c 6f67 207b 0a20  able_rsyslog {. 
│ │ │ +00057010: 2073 6572 7669 6365 207b 2772 7379 736c   service {'rsysl
│ │ │ +00057020: 6f67 273a 0a20 2020 2065 6e61 626c 6520  og':.    enable 
│ │ │ +00057030: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +00057040: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +00057050: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Rem │ │ │ +00057110: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00057120: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00057130: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[custom │ │ │ +00057180: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00057190: 735d 0a65 6e61 626c 6564 203d 205b 2272 s].enabled = ["r │ │ │ +000571a0: 7379 736c 6f67 225d 0a3c 2f63 6f64 653e syslog"]. │ │ │ 000571b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remediatio │ │ │ -000796c0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000796d0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -000796e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -00079730: 6e61 6d65 203d 2022 6372 6f6e 220a 7665  name = "cron".ve
│ │ │ -00079740: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -00079760: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00079770: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00079780: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00079790: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000797a0: 6431 3132 2220 7461 6269 6e64 6578 3d22 d112" tabindex=" │ │ │ -000797b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000797c0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000797d0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000797e0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000797f0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00079800: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00079810: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +00056f60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00056f70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00056fb0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00056fc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -000798a0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000798b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000798d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000798f0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00079900: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00079940: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00079950: 6520 696e 7374 616c 6c5f 6372 6f6e 0a0a e install_cron.. │ │ │ -00079960: 636c 6173 7320 696e 7374 616c 6c5f 6372 class install_cr │ │ │ -00079970: 6f6e 207b 0a20 2070 6163 6b61 6765 207b on {. package { │ │ │ -00079980: 2027 6372 6f6e 273a 0a20 2020 2065 6e73 'cron':. ens │ │ │ -00079990: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ -000799a0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ -000799c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00079a60: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00079a70: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00079a80: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00079b20: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00079b70: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00079b00: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00079b30: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00079b50: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00079b60: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00079b80: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00079b90: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00079bb0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00079bc0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00079bd0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00079be0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00079bf0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00079c00: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00079c10: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00079c20: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00079c30: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ -00079c40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00079c50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00079c60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00079c70: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00079c80: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00079c90: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00079ca0: 6b61 6765 5f63 726f 6e5f 696e 7374 616c  kage_cron_instal
│ │ │ -00079cb0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -00079cc0: 7572 6520 6372 6f6e 2069 7320 696e 7374  ure cron is inst
│ │ │ -00079cd0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00079ce0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00079cf0: 0a20 2020 206e 616d 653a 2063 726f 6e0a  .    name: cron.
│ │ │ -00079d00: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -00079d10: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00079d20: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00079d30: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00079d40: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00079d50: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00079d60: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ -00079d70: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00079d80: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ -00079d90: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00079da0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00079db0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00079dc0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00079dd0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00079de0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00079df0: 2070 6163 6b61 6765 5f63 726f 6e5f 696e   package_cron_in
│ │ │ -00079e00: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000796c0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +000796d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00079750: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00079760: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00079780: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00079790: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000797b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000797d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00079800: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00079810: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00079820: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00079830: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00079840: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00079850: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00079860: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +00079870: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00079880: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00079890: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000798a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000798b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000798c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000798d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000798e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000798f0: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ +00079900: 6f6e 5f69 6e73 7461 6c6c 6564 0a0a 2d20  on_installed..- 
│ │ │ +00079910: 6e61 6d65 3a20 456e 7375 7265 2063 726f  name: Ensure cro
│ │ │ +00079920: 6e20 6973 2069 6e73 7461 6c6c 6564 0a20  n is installed. 
│ │ │ +00079930: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00079940: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00079950: 6d65 3a20 6372 6f6e 0a20 2020 2073 7461  me: cron.    sta
│ │ │ +00079960: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +00079970: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00079980: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00079990: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +000799a0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +000799b0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +000799c0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +000799d0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +000799e0: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ +000799f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00079a00: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00079a10: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00079a20: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00079a30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00079a40: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00079a50: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564  e_cron_installed
│ │ │ +00079a60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00079b20: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00079b30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00079c00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00079c10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00079c60: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f63  nclude install_c
│ │ │ +00079c70: 726f 6e0a 0a63 6c61 7373 2069 6e73 7461  ron..class insta
│ │ │ +00079c80: 6c6c 5f63 726f 6e20 7b0a 2020 7061 636b  ll_cron {.  pack
│ │ │ +00079c90: 6167 6520 7b20 2763 726f 6e27 3a0a 2020  age { 'cron':.  
│ │ │ +00079ca0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00079cb0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +00079cc0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00079cd0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00079d80: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00079d90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00079da0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00079de0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00079df0: 203d 2022 6372 6f6e 220a 7665 7273 696f   = "cron".versio
│ │ │ +00079e00: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  00079e10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -0007b340: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0007b350: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007b360: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +00079be0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00079bf0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00079c30: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00079c40: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -0007b3e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007b410: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007b430: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007b440: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007b460: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007b470: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0007b490: 6c75 6465 2072 656d 6f76 655f 696e 6574  lude remove_inet
│ │ │ -0007b4a0: 7574 696c 732d 7465 6c6e 6574 640a 0a63  utils-telnetd..c
│ │ │ -0007b4b0: 6c61 7373 2072 656d 6f76 655f 696e 6574  lass remove_inet
│ │ │ -0007b4c0: 7574 696c 732d 7465 6c6e 6574 6420 7b0a  utils-telnetd {.
│ │ │ -0007b4d0: 2020 7061 636b 6167 6520 7b20 2769 6e65    package { 'ine
│ │ │ -0007b4e0: 7475 7469 6c73 2d74 656c 6e65 7464 273a  tutils-telnetd':
│ │ │ -0007b4f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0007b500: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0007b510: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0007b520: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0007b5d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0007b5e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0007b660: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0007b680: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0007b6d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0007b700: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0007b720: 7461 6c6c 2074 6865 2069 6e65 742d 6261  tall the inet-ba
│ │ │ -0007b730: 7365 6420 7465 6c6e 6574 2073 6572 7665  sed telnet serve
│ │ │ -0007b740: 723a 2045 6e73 7572 6520 696e 6574 7574  r: Ensure inetut
│ │ │ -0007b750: 696c 732d 7465 6c6e 6574 6420 6973 2072  ils-telnetd is r
│ │ │ -0007b760: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0007b770: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0007b780: 653a 0a20 2020 206e 616d 653a 2069 6e65  e:.    name: ine
│ │ │ -0007b790: 7475 7469 6c73 2d74 656c 6e65 7464 0a20  tutils-telnetd. 
│ │ │ -0007b7a0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0007b7b0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0007b7c0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0007b7d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0007b7e0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -0007b7f0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -0007b800: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0007b810: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -0007b820: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -0007b830: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0007b840: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0007b850: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0007b860: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -0007b870: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -0007b880: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007b340: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +0007b350: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +0007b360: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -0007b690: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0007b6a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0007b6e0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0007b6f0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ +0007b400: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007b450: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0007b490: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +0007b4a0: 7468 6520 696e 6574 2d62 6173 6564 2074  the inet-based t
│ │ │ +0007b4b0: 656c 6e65 7420 7365 7276 6572 3a20 456e  elnet server: En
│ │ │ +0007b4c0: 7375 7265 2069 6e65 7475 7469 6c73 2d74  sure inetutils-t
│ │ │ +0007b4d0: 656c 6e65 7464 2069 7320 7265 6d6f 7665  elnetd is remove
│ │ │ +0007b4e0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0007b4f0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0007b500: 2020 6e61 6d65 3a20 696e 6574 7574 696c    name: inetutil
│ │ │ +0007b510: 732d 7465 6c6e 6574 640a 2020 2020 7374  s-telnetd.    st
│ │ │ +0007b520: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0007b530: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0007b540: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0007b550: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0007b560: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0007b570: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0007b580: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0007b590: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +0007b5a0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +0007b5b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007b5c0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0007b5d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007b5e0: 2d20 7061 636b 6167 655f 696e 6574 7574  - package_inetut
│ │ │ +0007b5f0: 696c 732d 7465 6c6e 6574 645f 7265 6d6f  ils-telnetd_remo
│ │ │ +0007b600: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0007b6c0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0007b6d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +0007b3e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007b410: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007b430: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007b440: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007b460: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007b470: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0007b750: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007b770: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007b7c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007b7f0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007b760: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007b780: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007b7d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007b7e0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0007b810: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ +0007b820: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ +0007b830: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ +0007b840: 6e65 7464 207b 0a20 2070 6163 6b61 6765  netd {.  package
│ │ │ +0007b850: 207b 2027 696e 6574 7574 696c 732d 7465   { 'inetutils-te
│ │ │ +0007b860: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ +0007b870: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +0007b880: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  0007b890: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation Pu │ │ │ -0007c680: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0007c690: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0007c760: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0007c770: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0007c7d0: 5f6e 6973 0a0a 636c 6173 7320 7265 6d6f  _nis..class remo
│ │ │ -0007c7e0: 7665 5f6e 6973 207b 0a20 2070 6163 6b61  ve_nis {.  packa
│ │ │ -0007c7f0: 6765 207b 2027 6e69 7327 3a0a 2020 2020  ge { 'nis':.    
│ │ │ -0007c800: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -0007c810: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -0007c830: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0007c8d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0007c8e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007c8f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ -0007c740: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0007c750: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0007c790: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0007c7a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -0007c990: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007c9e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0007ca20: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0007ca30: 7468 6520 6e69 7320 7061 636b 6167 653a  the nis package:
│ │ │ -0007ca40: 2045 6e73 7572 6520 6e69 7320 6973 2072   Ensure nis is r
│ │ │ -0007ca50: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0007ca60: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0007ca70: 653a 0a20 2020 206e 616d 653a 206e 6973  e:.    name: nis
│ │ │ -0007ca80: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0007ca90: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -0007caa0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0007cab0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0007cac0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0007cad0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -0007cae0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0007caf0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0007cb00: 7061 636b 6167 655f 6e69 735f 7265 6d6f  package_nis_remo
│ │ │ -0007cb10: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation An │ │ │ +0007c680: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0007c690: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -0007c970: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007c9a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007c9c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007c9d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007c9f0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007ca00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0007c710: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007c730: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007c780: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007c7b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0007c7d0: 7461 6c6c 2074 6865 206e 6973 2070 6163  tall the nis pac
│ │ │ +0007c7e0: 6b61 6765 3a20 456e 7375 7265 206e 6973  kage: Ensure nis
│ │ │ +0007c7f0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +0007c800: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0007c810: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0007c820: 3a20 6e69 730a 2020 2020 7374 6174 653a  : nis.    state:
│ │ │ +0007c830: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0007c840: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0007c850: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0007c860: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0007c870: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +0007c880: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +0007c890: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007c8a0: 0a20 202d 2070 6163 6b61 6765 5f6e 6973  .  - package_nis
│ │ │ +0007c8b0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007c8c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007c970: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007c980: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007c990: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007c9a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007c9b0: 7365 2220 6964 3d22 6964 3132 3122 3e3c se" id="id121">< │ │ │ +0007c9c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007c9d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007c9e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007c9f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007ca00: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0007ca90: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0007caa0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +0007c740: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007c750: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007c790: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007c7a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ +0007ca10: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007ca20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0007ca60: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007ca70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0007cac0: 2072 656d 6f76 655f 6e69 730a 0a63 6c61 remove_nis..cla │ │ │ +0007cad0: 7373 2072 656d 6f76 655f 6e69 7320 7b0a ss remove_nis {. │ │ │ +0007cae0: 2020 7061 636b 6167 6520 7b20 276e 6973 package { 'nis │ │ │ +0007caf0: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +0007cb00: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +0007cb10: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Re │ │ │ -0007d740: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007d750: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007d760: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0007d800: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007d850: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0007d890: 636c 7564 6520 7265 6d6f 7665 5f6e 7470  clude remove_ntp
│ │ │ -0007d8a0: 6461 7465 0a0a 636c 6173 7320 7265 6d6f  date..class remo
│ │ │ -0007d8b0: 7665 5f6e 7470 6461 7465 207b 0a20 2070  ve_ntpdate {.  p
│ │ │ -0007d8c0: 6163 6b61 6765 207b 2027 6e74 7064 6174  ackage { 'ntpdat
│ │ │ -0007d8d0: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ -0007d8e0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0007d8f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -0007d9b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -0007d9c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -0007da80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007da90: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ -0007d7e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007d810: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007d830: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007d840: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007d860: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007d870: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -0007da50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0007da70: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0007daa0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0007dac0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0007daf0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0007db00: 696e 7374 616c 6c20 7468 6520 6e74 7064  install the ntpd
│ │ │ -0007db10: 6174 6520 7061 636b 6167 653a 2045 6e73  ate package: Ens
│ │ │ -0007db20: 7572 6520 6e74 7064 6174 6520 6973 2072  ure ntpdate is r
│ │ │ -0007db30: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0007db40: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0007db50: 653a 0a20 2020 206e 616d 653a 206e 7470  e:.    name: ntp
│ │ │ -0007db60: 6461 7465 0a20 2020 2073 7461 7465 3a20  date.    state: 
│ │ │ -0007db70: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0007db80: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0007db90: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0007dba0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0007dbb0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0007dbc0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0007dbd0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0007dbe0: 2020 2d20 7061 636b 6167 655f 6e74 7064    - package_ntpd
│ │ │ -0007dbf0: 6174 655f 7265 6d6f 7665 640a 3c2f 636f  ate_removed.
< │ │ │ +0007d7f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007d800: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007d850: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0007d890: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0007d8a0: 2074 6865 206e 7470 6461 7465 2070 6163   the ntpdate pac
│ │ │ +0007d8b0: 6b61 6765 3a20 456e 7375 7265 206e 7470  kage: Ensure ntp
│ │ │ +0007d8c0: 6461 7465 2069 7320 7265 6d6f 7665 6427  date is removed'
│ │ │ +0007d8d0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0007d8e0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0007d8f0: 6e61 6d65 3a20 6e74 7064 6174 650a 2020  name: ntpdate.  
│ │ │ +0007d900: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0007d910: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0007d920: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0007d930: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0007d940: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0007d950: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0007d960: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0007d970: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0007d980: 6b61 6765 5f6e 7470 6461 7465 5f72 656d  kage_ntpdate_rem
│ │ │ +0007d990: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation
│ │ │ +0007da50: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +0007da60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +0007db30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +0007d7e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007d810: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007d820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007d860: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007d870: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0007daf0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0007db10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0007db60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007db70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0007dba0: 6f76 655f 6e74 7064 6174 650a 0a63 6c61  ove_ntpdate..cla
│ │ │ +0007dbb0: 7373 2072 656d 6f76 655f 6e74 7064 6174  ss remove_ntpdat
│ │ │ +0007dbc0: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ +0007dbd0: 276e 7470 6461 7465 273a 0a20 2020 2065  'ntpdate':.    e
│ │ │ +0007dbe0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0007dbf0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0007dc10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0007dc20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0007dc30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0007dc40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007dc50: 6431 3236 2220 7461 6269 6e64 6578 3d22 d126" tabindex=" │ │ │ 0007dc60: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -32498,97 +32498,97 @@ │ │ │ 0007ef10: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 0007ef20: 3132 3822 2074 6162 696e 6465 783d 2230 128" tabindex="0 │ │ │ 0007ef30: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 0007ef40: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 0007ef50: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 0007ef60: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 0007ef70: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0007ef80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0007ef90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007f040: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007f060: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007f090: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007f020: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007f030: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007f050: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007f070: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007f080: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007f0c0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0007f0d0: 6465 2072 656d 6f76 655f 7465 6c6e 6574 de remove_telnet │ │ │ -0007f0e0: 642d 7373 6c0a 0a63 6c61 7373 2072 656d d-ssl..class rem │ │ │ -0007f0f0: 6f76 655f 7465 6c6e 6574 642d 7373 6c20 ove_telnetd-ssl │ │ │ -0007f100: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ -0007f110: 656c 6e65 7464 2d73 736c 273a 0a20 2020 elnetd-ssl':. │ │ │ -0007f120: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -0007f130: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Re │ │ │ -0007f1f0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0007f200: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0007f2a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007f2b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007f300: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0007f340: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0007f350: 2074 6865 2073 736c 2063 6f6d 706c 6961   the ssl complia
│ │ │ -0007f360: 6e74 2074 656c 6e65 7420 7365 7276 6572  nt telnet server
│ │ │ -0007f370: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ -0007f380: 2d73 736c 2069 7320 7265 6d6f 7665 6427  -ssl is removed'
│ │ │ -0007f390: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0007f3a0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0007f3b0: 6e61 6d65 3a20 7465 6c6e 6574 642d 7373  name: telnetd-ss
│ │ │ -0007f3c0: 6c0a 2020 2020 7374 6174 653a 2061 6273  l.    state: abs
│ │ │ -0007f3d0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0007f3e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0007f3f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0007f400: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0007f410: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0007f420: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0007f430: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -0007f440: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -0007f450: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0007f460: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0007f470: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0007f480: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0007f490: 655f 7465 6c6e 6574 642d 7373 6c5f 7265  e_telnetd-ssl_re
│ │ │ -0007f4a0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

C │ │ │ -0007f290: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007f2c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007f2d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007f310: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007f320: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +0007f020: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0007f030: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0007f050: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0007f070: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0007f080: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0007f0c0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0007f0d0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +0007f0e0: 6520 7373 6c20 636f 6d70 6c69 616e 7420  e ssl compliant 
│ │ │ +0007f0f0: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ +0007f100: 6e73 7572 6520 7465 6c6e 6574 642d 7373  nsure telnetd-ss
│ │ │ +0007f110: 6c20 6973 2072 656d 6f76 6564 270a 2020  l is removed'.  
│ │ │ +0007f120: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0007f130: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0007f140: 653a 2074 656c 6e65 7464 2d73 736c 0a20  e: telnetd-ssl. 
│ │ │ +0007f150: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0007f160: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0007f170: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0007f180: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0007f190: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0007f1a0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0007f1b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0007f1c0: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0007f1d0: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0007f1e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0007f1f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0007f200: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007f210: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +0007f220: 656c 6e65 7464 2d73 736c 5f72 656d 6f76  elnetd-ssl_remov
│ │ │ +0007f230: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007f240: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0007f2f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0007f300: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007f380: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007f3a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007f3f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007f420: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0007f440: 655f 7465 6c6e 6574 642d 7373 6c0a 0a63  e_telnetd-ssl..c
│ │ │ +0007f450: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ +0007f460: 6574 642d 7373 6c20 7b0a 2020 7061 636b  etd-ssl {.  pack
│ │ │ +0007f470: 6167 6520 7b20 2774 656c 6e65 7464 2d73  age { 'telnetd-s
│ │ │ +0007f480: 736c 273a 0a20 2020 2065 6e73 7572 6520  sl':.    ensure 
│ │ │ +0007f490: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0007f4a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -00080840: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00080850: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00080920: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ +0007f3b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007f3c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007f400: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007f410: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -000808e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00080900: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00080950: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00080960: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00080990: 6f76 655f 7465 6c6e 6574 640a 0a63 6c61  ove_telnetd..cla
│ │ │ -000809a0: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ -000809b0: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ -000809c0: 2774 656c 6e65 7464 273a 0a20 2020 2065  'telnetd':.    e
│ │ │ -000809d0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -000809e0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00080a00: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00080a10: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00080a20: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00080a30: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00080a40: 6431 3333 2220 7461 6269 6e64 6578 3d22 d133" tabindex=" │ │ │ -00080a50: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00080a60: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00080a70: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00080a80: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00080a90: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00080aa0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00080ab0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00080ac0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00080b40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00080b70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00080b90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00080ba0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00080bc0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00080bd0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00080bf0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -00080c00: 6865 2074 656c 6e65 7420 7365 7276 6572  he telnet server
│ │ │ -00080c10: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ -00080c20: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00080c30: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00080c40: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00080c50: 3a20 7465 6c6e 6574 640a 2020 2020 7374  : telnetd.    st
│ │ │ -00080c60: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00080c70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00080c80: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00080c90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00080ca0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00080cb0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00080cc0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00080cd0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -00080ce0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -00080cf0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00080d00: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -00080d10: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00080d20: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ -00080d30: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.
Complexity │ │ │ +000808e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00080900: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00080910: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00080920: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00080930: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00080950: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00080980: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00080990: 696e 7374 616c 6c20 7468 6520 7465 6c6e  install the teln
│ │ │ +000809a0: 6574 2073 6572 7665 723a 2045 6e73 7572  et server: Ensur
│ │ │ +000809b0: 6520 7465 6c6e 6574 6420 6973 2072 656d  e telnetd is rem
│ │ │ +000809c0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +000809d0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +000809e0: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ +000809f0: 7464 0a20 2020 2073 7461 7465 3a20 6162  td.    state: ab
│ │ │ +00080a00: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +00080a10: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00080a20: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00080a30: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00080a40: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00080a50: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +00080a60: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +00080a70: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +00080a80: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00080a90: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00080aa0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00080ab0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00080ac0: 6765 5f74 656c 6e65 7464 5f72 656d 6f76  ge_telnetd_remov
│ │ │ +00080ad0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00080ae0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00080b90: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00080ba0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00080c20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00080c40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00080c90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00080cc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00080ce0: 655f 7465 6c6e 6574 640a 0a63 6c61 7373  e_telnetd..class
│ │ │ +00080cf0: 2072 656d 6f76 655f 7465 6c6e 6574 6420   remove_telnetd 
│ │ │ +00080d00: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ +00080d10: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ +00080d20: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00080d30: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediat │ │ │ -00082f20: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00082f30: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00082f40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00082f90: 5d0a 6e61 6d65 203d 2022 6e74 7022 0a76  ].name = "ntp".v
│ │ │ -00082fa0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00082fc0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00083060: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00083070: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00083080: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +00080c50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00080c60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00080ca0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00080cb0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ -00083100: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00083130: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00083150: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00083160: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00083180: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000831a0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000831b0: 6465 2069 6e73 7461 6c6c 5f6e 7470 0a0a  de install_ntp..
│ │ │ -000831c0: 636c 6173 7320 696e 7374 616c 6c5f 6e74  class install_nt
│ │ │ -000831d0: 7020 7b0a 2020 7061 636b 6167 6520 7b20  p {.  package { 
│ │ │ -000831e0: 276e 7470 273a 0a20 2020 2065 6e73 7572  'ntp':.    ensur
│ │ │ -000831f0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00083200: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000832c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000832d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00083360: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00083370: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00083390: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000833b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000833c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00083400: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00083410: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00083420: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00083430: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00083440: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00083450: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00083460: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00083470: 2d20 5043 492d 4453 532d 5265 712d 3130 - PCI-DSS-Req-10 │ │ │ -00083480: 2e34 0a20 202d 2065 6e61 626c 655f 7374 .4. - enable_st │ │ │ -00083490: 7261 7465 6779 0a20 202d 2068 6967 685f rategy. - high_ │ │ │ -000834a0: 7365 7665 7269 7479 0a20 202d 206c 6f77 severity. - low │ │ │ -000834b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -000834c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -000834d0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -000834e0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -000834f0: 6e74 705f 696e 7374 616c 6c65 640a 0a2d ntp_installed..- │ │ │ -00083500: 206e 616d 653a 2045 6e73 7572 6520 6e74 name: Ensure nt │ │ │ -00083510: 7020 6973 2069 6e73 7461 6c6c 6564 0a20 p is installed. │ │ │ -00083520: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00083530: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -00083540: 6d65 3a20 6e74 700a 2020 2020 7374 6174 me: ntp. stat │ │ │ -00083550: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ -00083560: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00083570: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00083580: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00083590: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -000835a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -000835b0: 5043 492d 4453 532d 5265 712d 3130 2e34 PCI-DSS-Req-10.4 │ │ │ -000835c0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ -000835d0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ -000835e0: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ -000835f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00083600: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00083610: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00083620: 640a 2020 2d20 7061 636b 6167 655f 6e74 d. - package_nt │ │ │ -00083630: 705f 696e 7374 616c 6c65 640a 3c2f 636f p_installed.
< │ │ │ +00082f40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00082f50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00082f60: 7365 2220 6964 3d22 6964 3133 3622 3e3c se" id="id136">< │ │ │ +00082f70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00082f80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00082f90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00082fa0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00082fb0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00082fc0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00082fd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00083010: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00083020: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00083040: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00083050: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00083070: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00083080: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00083090: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000830a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000830b0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000830c0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +000830d0: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ +000830e0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000830f0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +00083100: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +00083110: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00083120: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00083130: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00083140: 0a20 202d 2070 6163 6b61 6765 5f6e 7470  .  - package_ntp
│ │ │ +00083150: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +00083160: 6d65 3a20 456e 7375 7265 206e 7470 2069  me: Ensure ntp i
│ │ │ +00083170: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +00083180: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00083190: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +000831a0: 206e 7470 0a20 2020 2073 7461 7465 3a20   ntp.    state: 
│ │ │ +000831b0: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +000831c0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +000831d0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000831e0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000831f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00083200: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +00083210: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ +00083220: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00083230: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +00083240: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +00083250: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00083260: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00083270: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00083280: 202d 2070 6163 6b61 6765 5f6e 7470 5f69   - package_ntp_i
│ │ │ +00083290: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000832a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00083350: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00083360: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00083370: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00083380: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00083390: 7365 2220 6964 3d22 6964 3133 3722 3e3c se" id="id137">< │ │ │ +000833a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000833b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000833c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000833d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000833e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000833f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00083400: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00083440: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00083450: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00083470: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00083480: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +000834a0: 6e73 7461 6c6c 5f6e 7470 0a0a 636c 6173  nstall_ntp..clas
│ │ │ +000834b0: 7320 696e 7374 616c 6c5f 6e74 7020 7b0a  s install_ntp {.
│ │ │ +000834c0: 2020 7061 636b 6167 6520 7b20 276e 7470    package { 'ntp
│ │ │ +000834d0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000834e0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000834f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +000835b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000835c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000835d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +00083620: 0a6e 616d 6520 3d20 226e 7470 220a 7665  .name = "ntp".ve
│ │ │ +00083630: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00083650: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00083660: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00083670: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00083680: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00083690: 6431 3339 2220 7461 6269 6e64 6578 3d22 d139" tabindex=" │ │ │ 000836a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -33912,159 +33912,159 @@ │ │ │ 00084770: 7461 7267 6574 3d22 2369 6431 3431 2220 target="#id141" │ │ │ 00084780: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 00084790: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 000847a0: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 000847b0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 000847c0: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 000847d0: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -000847e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000847f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00084800: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -00084850: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -00084860: 626c 6564 203d 205b 226e 7470 225d 0a3c  bled = ["ntp"].<
│ │ │ -00084870: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00084920: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00084930: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -000849d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000849e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00084a30: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00084a70: 6c75 6465 2065 6e61 626c 655f 6e74 700a  lude enable_ntp.
│ │ │ -00084a80: 0a63 6c61 7373 2065 6e61 626c 655f 6e74  .class enable_nt
│ │ │ -00084a90: 7020 7b0a 2020 7365 7276 6963 6520 7b27  p {.  service {'
│ │ │ -00084aa0: 6e74 7027 3a0a 2020 2020 656e 6162 6c65  ntp':.    enable
│ │ │ -00084ab0: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -00084ac0: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -00084ad0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -00084ae0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00084b90: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00084ba0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -000849c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000849f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00084a00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00084a40: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00084a50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00084c40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00084ce0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00084cf0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00084d00: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00084d10: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00084d20: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00084d30: 5354 2d38 3030 2d35 332d 4155 2d38 2831  ST-800-53-AU-8(1
│ │ │ -00084d40: 2928 6129 0a20 202d 204e 4953 542d 3830  )(a).  - NIST-80
│ │ │ -00084d50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00084d60: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00084d70: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -00084d80: 3130 2e36 0a20 202d 2050 4349 2d44 5353  10.6.  - PCI-DSS
│ │ │ -00084d90: 7634 2d31 302e 362e 310a 2020 2d20 656e  v4-10.6.1.  - en
│ │ │ -00084da0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00084db0: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -00084dc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00084dd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00084de0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00084df0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00084e00: 6572 7669 6365 5f6e 7470 5f65 6e61 626c  ervice_ntp_enabl
│ │ │ -00084e10: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -00084e20: 6c65 2074 6865 204e 5450 2044 6165 6d6f  le the NTP Daemo
│ │ │ -00084e30: 6e20 2d20 456e 6162 6c65 2073 6572 7669  n - Enable servi
│ │ │ -00084e40: 6365 206e 7470 0a20 2062 6c6f 636b 3a0a  ce ntp.  block:.
│ │ │ -00084e50: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00084e60: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00084e70: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00084e80: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00084e90: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00084ea0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00084eb0: 6e61 6d65 3a20 456e 6162 6c65 2074 6865  name: Enable the
│ │ │ -00084ec0: 204e 5450 2044 6165 6d6f 6e20 2d20 456e   NTP Daemon - En
│ │ │ -00084ed0: 6162 6c65 2053 6572 7669 6365 206e 7470  able Service ntp
│ │ │ -00084ee0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00084ef0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00084f00: 2020 2020 6e61 6d65 3a20 6e74 700a 2020      name: ntp.  
│ │ │ -00084f10: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -00084f20: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00084f30: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -00084f40: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -00084f50: 6865 6e3a 0a20 2020 202d 2027 226e 7470  hen:.    - '"ntp
│ │ │ -00084f60: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00084f70: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00084f80: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00084f90: 302d 3533 2d41 552d 3828 3129 2861 290a  0-53-AU-8(1)(a).
│ │ │ -00084fa0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00084fb0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -00084fc0: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ -00084fd0: 2050 4349 2d44 5353 7634 2d31 302e 360a   PCI-DSSv4-10.6.
│ │ │ -00084fe0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00084ff0: 2e36 2e31 0a20 202d 2065 6e61 626c 655f  .6.1.  - enable_
│ │ │ -00085000: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -00085010: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -00085020: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00085030: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00085040: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00085050: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00085060: 655f 6e74 705f 656e 6162 6c65 640a 2020  e_ntp_enabled.  
│ │ │ -00085070: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00085080: 655f 626c 6f63 6b0a 2020 7768 656e 3a0a  e_block.  when:.
│ │ │ -00085090: 2020 2d20 2722 6c69 6e75 782d 6261 7365    - '"linux-base
│ │ │ -000850a0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000850b0: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ -000850c0: 2027 226e 7470 2220 696e 2061 6e73 6962   '"ntp" in ansib
│ │ │ -000850d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000850e0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +000847e0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +000847f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00084870: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000848b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ -00084c30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00084c60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00084c70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00084cb0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00084cc0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ +00084880: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000848a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000848d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000848f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00084920: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00084930: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00084940: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00084950: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00084960: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00084970: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00084980: 2d41 552d 3828 3129 2861 290a 2020 2d20  -AU-8(1)(a).  - 
│ │ │ +00084990: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +000849a0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +000849b0: 5265 712d 3130 2e34 0a20 202d 2050 4349  Req-10.4.  - PCI
│ │ │ +000849c0: 2d44 5353 7634 2d31 302e 360a 2020 2d20  -DSSv4-10.6.  - 
│ │ │ +000849d0: 5043 492d 4453 5376 342d 3130 2e36 2e31  PCI-DSSv4-10.6.1
│ │ │ +000849e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000849f0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +00084a00: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +00084a10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00084a20: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00084a30: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00084a40: 640a 2020 2d20 7365 7276 6963 655f 6e74  d.  - service_nt
│ │ │ +00084a50: 705f 656e 6162 6c65 640a 0a2d 206e 616d  p_enabled..- nam
│ │ │ +00084a60: 653a 2045 6e61 626c 6520 7468 6520 4e54  e: Enable the NT
│ │ │ +00084a70: 5020 4461 656d 6f6e 202d 2045 6e61 626c  P Daemon - Enabl
│ │ │ +00084a80: 6520 7365 7276 6963 6520 6e74 700a 2020  e service ntp.  
│ │ │ +00084a90: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00084aa0: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +00084ab0: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +00084ac0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00084ad0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00084ae0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00084af0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +00084b00: 626c 6520 7468 6520 4e54 5020 4461 656d  ble the NTP Daem
│ │ │ +00084b10: 6f6e 202d 2045 6e61 626c 6520 5365 7276  on - Enable Serv
│ │ │ +00084b20: 6963 6520 6e74 700a 2020 2020 616e 7369  ice ntp.    ansi
│ │ │ +00084b30: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00084b40: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00084b50: 206e 7470 0a20 2020 2020 2065 6e61 626c   ntp.      enabl
│ │ │ +00084b60: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00084b70: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00084b80: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +00084b90: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +00084ba0: 2d20 2722 6e74 7022 2069 6e20 616e 7369  - '"ntp" in ansi
│ │ │ +00084bb0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00084bc0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00084bd0: 4e49 5354 2d38 3030 2d35 332d 4155 2d38  NIST-800-53-AU-8
│ │ │ +00084be0: 2831 2928 6129 0a20 202d 204e 4953 542d  (1)(a).  - NIST-
│ │ │ +00084bf0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00084c00: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +00084c10: 302e 340a 2020 2d20 5043 492d 4453 5376  0.4.  - PCI-DSSv
│ │ │ +00084c20: 342d 3130 2e36 0a20 202d 2050 4349 2d44  4-10.6.  - PCI-D
│ │ │ +00084c30: 5353 7634 2d31 302e 362e 310a 2020 2d20  SSv4-10.6.1.  - 
│ │ │ +00084c40: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00084c50: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00084c60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00084c70: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00084c80: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00084c90: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00084ca0: 2073 6572 7669 6365 5f6e 7470 5f65 6e61   service_ntp_ena
│ │ │ +00084cb0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00084cc0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00084cd0: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ +00084ce0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00084cf0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00084d00: 6573 270a 2020 2d20 2722 6e74 7022 2069  es'.  - '"ntp" i
│ │ │ +00084d10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00084d20: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +00084de0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00084df0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00084e00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00084e30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00084ea0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00084ec0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00084ef0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00084f10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00084e80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00084e90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00084ed0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00084ee0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00084f30: 656e 6162 6c65 5f6e 7470 0a0a 636c 6173 enable_ntp..clas │ │ │ +00084f40: 7320 656e 6162 6c65 5f6e 7470 207b 0a20 s enable_ntp {. │ │ │ +00084f50: 2073 6572 7669 6365 207b 276e 7470 273a service {'ntp': │ │ │ +00084f60: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ +00084f70: 3b20 7472 7565 2c0a 2020 2020 656e 7375 ; true,. ensu │ │ │ +00084f80: 7265 203d 2667 743b 2027 7275 6e6e 696e re => 'runnin │ │ │ +00084f90: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 g',. }.}.
Remedi │ │ │ +00085050: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00085060: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00085070: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000850b0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +000850c0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +000850d0: 0a65 6e61 626c 6564 203d 205b 226e 7470  .enabled = ["ntp
│ │ │ +000850e0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 000850f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remed │ │ │ -00093940: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00093950: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00093960: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -000939b0: 6573 5d5d 0a6e 616d 6520 3d20 2261 7564  es]].name = "aud
│ │ │ -000939c0: 6974 6422 0a76 6572 7369 6f6e 203d 2022  itd".version = "
│ │ │ -000939d0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000939e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -00093a90: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00093aa0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00093b20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00093b40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00093b90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -00093be0: 5f61 7564 6974 640a 0a63 6c61 7373 2069  _auditd..class i
│ │ │ -00093bf0: 6e73 7461 6c6c 5f61 7564 6974 6420 7b0a  nstall_auditd {.
│ │ │ -00093c00: 2020 7061 636b 6167 6520 7b20 2761 7564    package { 'aud
│ │ │ -00093c10: 6974 6427 3a0a 2020 2020 656e 7375 7265  itd':.    ensure
│ │ │ -00093c20: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -00093c30: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00093cf0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00093d00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ -00093b50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00093b60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00093ba0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00093bb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00093db0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00093dd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00093e00: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00093d90: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00093da0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00093dc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00093de0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00093df0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00093e40: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00093e50: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00093e60: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00093e70: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00093e80: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00093e90: 302d 3533 2d41 432d 3728 6129 0a20 202d 0-53-AC-7(a). - │ │ │ -00093ea0: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -00093eb0: 3132 2832 290a 2020 2d20 4e49 5354 2d38 12(2). - NIST-8 │ │ │ -00093ec0: 3030 2d35 332d 4155 2d31 340a 2020 2d20 00-53-AU-14. - │ │ │ -00093ed0: 4e49 5354 2d38 3030 2d35 332d 4155 2d32 NIST-800-53-AU-2 │ │ │ -00093ee0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00093ef0: 2d35 332d 4155 2d37 2831 290a 2020 2d20 -53-AU-7(1). - │ │ │ -00093f00: 4e49 5354 2d38 3030 2d35 332d 4155 2d37 NIST-800-53-AU-7 │ │ │ -00093f10: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ -00093f20: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00093f30: 5043 492d 4453 532d 5265 712d 3130 2e31 PCI-DSS-Req-10.1 │ │ │ -00093f40: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ -00093f50: 302e 320a 2020 2d20 5043 492d 4453 5376 0.2. - PCI-DSSv │ │ │ -00093f60: 342d 3130 2e32 2e31 0a20 202d 2065 6e61 4-10.2.1. - ena │ │ │ -00093f70: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00093f80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00093f90: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00093fa0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00093fb0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00093fc0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00093fd0: 7061 636b 6167 655f 6175 6469 745f 696e package_audit_in │ │ │ -00093fe0: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ -00093ff0: 2045 6e73 7572 6520 6175 6469 7464 2069 Ensure auditd i │ │ │ -00094000: 7320 696e 7374 616c 6c65 640a 2020 616e s installed. an │ │ │ -00094010: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -00094020: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -00094030: 2061 7564 6974 640a 2020 2020 7374 6174 auditd. stat │ │ │ -00094040: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ -00094050: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00094060: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00094070: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00094080: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00094090: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ -000940a0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ -000940b0: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ -000940c0: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ -000940d0: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ -000940e0: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -000940f0: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ -00094100: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ -00094110: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ -00094120: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -00094130: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ -00094140: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ -00094150: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -00094160: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ -00094170: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00094180: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00094190: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -000941a0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -000941b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -000941c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -000941d0: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ -000941e0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Comp │ │ │ +000939e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000939f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00093a10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00093a30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00093a40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00093a80: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00093a90: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00093aa0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00093ab0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00093ac0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00093ad0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00093ae0: 3030 2d35 332d 4143 2d37 2861 290a 2020 00-53-AC-7(a). │ │ │ +00093af0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155 - NIST-800-53-AU │ │ │ +00093b00: 2d31 3228 3229 0a20 202d 204e 4953 542d -12(2). - NIST- │ │ │ +00093b10: 3830 302d 3533 2d41 552d 3134 0a20 202d 800-53-AU-14. - │ │ │ +00093b20: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ +00093b30: 3228 6129 0a20 202d 204e 4953 542d 3830 2(a). - NIST-80 │ │ │ +00093b40: 302d 3533 2d41 552d 3728 3129 0a20 202d 0-53-AU-7(1). - │ │ │ +00093b50: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ +00093b60: 3728 3229 0a20 202d 204e 4953 542d 3830 7(2). - NIST-80 │ │ │ +00093b70: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00093b80: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ +00093b90: 310a 2020 2d20 5043 492d 4453 5376 342d 1. - PCI-DSSv4- │ │ │ +00093ba0: 3130 2e32 0a20 202d 2050 4349 2d44 5353 10.2. - PCI-DSS │ │ │ +00093bb0: 7634 2d31 302e 322e 310a 2020 2d20 656e v4-10.2.1. - en │ │ │ +00093bc0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00093bd0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00093be0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00093bf0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00093c00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00093c10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00093c20: 2070 6163 6b61 6765 5f61 7564 6974 5f69 package_audit_i │ │ │ +00093c30: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65 nstalled..- name │ │ │ +00093c40: 3a20 456e 7375 7265 2061 7564 6974 6420 : Ensure auditd │ │ │ +00093c50: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ +00093c60: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +00093c70: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +00093c80: 3a20 6175 6469 7464 0a20 2020 2073 7461 : auditd. sta │ │ │ +00093c90: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ +00093ca0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +00093cb0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +00093cc0: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ +00093cd0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00093ce0: 302d 3533 2d41 432d 3728 6129 0a20 202d 0-53-AC-7(a). - │ │ │ +00093cf0: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ +00093d00: 3132 2832 290a 2020 2d20 4e49 5354 2d38 12(2). - NIST-8 │ │ │ +00093d10: 3030 2d35 332d 4155 2d31 340a 2020 2d20 00-53-AU-14. - │ │ │ +00093d20: 4e49 5354 2d38 3030 2d35 332d 4155 2d32 NIST-800-53-AU-2 │ │ │ +00093d30: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +00093d40: 2d35 332d 4155 2d37 2831 290a 2020 2d20 -53-AU-7(1). - │ │ │ +00093d50: 4e49 5354 2d38 3030 2d35 332d 4155 2d37 NIST-800-53-AU-7 │ │ │ +00093d60: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ +00093d70: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +00093d80: 5043 492d 4453 532d 5265 712d 3130 2e31 PCI-DSS-Req-10.1 │ │ │ +00093d90: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ +00093da0: 302e 320a 2020 2d20 5043 492d 4453 5376 0.2. - PCI-DSSv │ │ │ +00093db0: 342d 3130 2e32 2e31 0a20 202d 2065 6e61 4-10.2.1. - ena │ │ │ +00093dc0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00093dd0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +00093de0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00093df0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +00093e00: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +00093e10: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00093e20: 7061 636b 6167 655f 6175 6469 745f 696e package_audit_in │ │ │ +00093e30: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +00093e40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00093ef0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00093f00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00093f80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00093f90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00093fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00093fe0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00093ff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00094010: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00094030: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00094040: 7374 616c 6c5f 6175 6469 7464 0a0a 636c  stall_auditd..cl
│ │ │ +00094050: 6173 7320 696e 7374 616c 6c5f 6175 6469  ass install_audi
│ │ │ +00094060: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ +00094070: 2027 6175 6469 7464 273a 0a20 2020 2065   'auditd':.    e
│ │ │ +00094080: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +00094090: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +000940a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00094150: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00094160: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00094170: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00094180: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000941b0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000941c0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000941d0: 2261 7564 6974 6422 0a76 6572 7369 6f6e  "auditd".version
│ │ │ +000941e0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Re │ │ │ -00095e80: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00095e90: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00095ea0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00095eb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00095ec0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00095ed0: 7365 2220 6964 3d22 6964 3136 3622 3e3c se" id="id166">< │ │ │ -00095ee0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00095ef0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00095f00: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -00095f10: 2261 7564 6974 6422 5d0a 3c2f 636f 6465 "auditd"].
Remedi │ │ │ -00095fd0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00095fe0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00095ff0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00096020: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00096090: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000960b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000960e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00096100: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00096070: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00096080: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000960c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000960d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00096120: 656e 6162 6c65 5f61 7564 6974 640a 0a63 enable_auditd..c │ │ │ -00096130: 6c61 7373 2065 6e61 626c 655f 6175 6469 lass enable_audi │ │ │ -00096140: 7464 207b 0a20 2073 6572 7669 6365 207b td {. service { │ │ │ -00096150: 2761 7564 6974 6427 3a0a 2020 2020 656e 'auditd':. en │ │ │ -00096160: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ -00096170: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00096180: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ -00096190: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ -000961a0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00096250: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00096260: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000962e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00096300: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00096350: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00096380: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -000963a0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000963b0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -000963c0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -000963d0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -000963e0: 2d20 434a 4953 2d35 2e34 2e31 2e31 0a20  - CJIS-5.4.1.1. 
│ │ │ -000963f0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -00096400: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ -00096410: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ -00096420: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00096430: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ -00096440: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ -00096450: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -00096460: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ -00096470: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ -00096480: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00096490: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ -000964a0: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ -000964b0: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ -000964c0: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ -000964d0: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ -000964e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000964f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00096500: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ -00096510: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -00096520: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00096530: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00096540: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -00096550: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00096560: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00096570: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00096580: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00096590: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000965a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -000965b0: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ -000965c0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -000965d0: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ -000965e0: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -000965f0: 7669 6365 2061 7564 6974 640a 2020 626c  vice auditd.  bl
│ │ │ -00096600: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00096610: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -00096620: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -00096630: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00096640: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00096650: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00096660: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -00096670: 6520 6175 6469 7464 2053 6572 7669 6365  e auditd Service
│ │ │ -00096680: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00096690: 6520 6175 6469 7464 0a20 2020 2061 6e73  e auditd.    ans
│ │ │ -000966a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000966b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000966c0: 3a20 6175 6469 7464 0a20 2020 2020 2065  : auditd.      e
│ │ │ -000966d0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -000966e0: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -000966f0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00096700: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00096710: 2020 2020 2d20 2722 6175 6469 7464 2220      - '"auditd" 
│ │ │ -00096720: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00096730: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00096740: 733a 0a20 202d 2043 4a49 532d 352e 342e  s:.  - CJIS-5.4.
│ │ │ -00096750: 312e 310a 2020 2d20 4e49 5354 2d38 3030  1.1.  - NIST-800
│ │ │ -00096760: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e  -171-3.3.1.  - N
│ │ │ -00096770: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -00096780: 320a 2020 2d20 4e49 5354 2d38 3030 2d31  2.  - NIST-800-1
│ │ │ -00096790: 3731 2d33 2e33 2e36 0a20 202d 204e 4953  71-3.3.6.  - NIS
│ │ │ -000967a0: 542d 3830 302d 3533 2d41 432d 3228 6729  T-800-53-AC-2(g)
│ │ │ -000967b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000967c0: 2d41 432d 3628 3929 0a20 202d 204e 4953  -AC-6(9).  - NIS
│ │ │ -000967d0: 542d 3830 302d 3533 2d41 552d 3130 0a20  T-800-53-AU-10. 
│ │ │ -000967e0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000967f0: 552d 3132 2863 290a 2020 2d20 4e49 5354  U-12(c).  - NIST
│ │ │ -00096800: 2d38 3030 2d35 332d 4155 2d31 3428 3129  -800-53-AU-14(1)
│ │ │ -00096810: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00096820: 2d41 552d 3228 6429 0a20 202d 204e 4953  -AU-2(d).  - NIS
│ │ │ -00096830: 542d 3830 302d 3533 2d41 552d 330a 2020  T-800-53-AU-3.  
│ │ │ -00096840: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00096850: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00096860: 3030 2d35 332d 5349 2d34 2832 3329 0a20  00-53-SI-4(23). 
│ │ │ -00096870: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -00096880: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ -00096890: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ -000968a0: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ -000968b0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000968c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000968d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000968e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000968f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00096900: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00096910: 202d 2073 6572 7669 6365 5f61 7564 6974   - service_audit
│ │ │ -00096920: 645f 656e 6162 6c65 640a 2020 2d20 7370  d_enabled.  - sp
│ │ │ -00096930: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -00096940: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20  ock.  when:.  - 
│ │ │ -00096950: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00096960: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00096970: 6163 6b61 6765 7327 0a20 202d 2027 2261  ackages'.  - '"a
│ │ │ -00096980: 7564 6974 6422 2069 6e20 616e 7369 626c  uditd" in ansibl
│ │ │ -00096990: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -000969a0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00095e80: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +00095e90: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:< │ │ │ -000962f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00096310: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00096360: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00096370: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00095f30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00095f40: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00095f90: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00095fd0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00095fe0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00095ff0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00096000: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00096010: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ +00096020: 532d 352e 342e 312e 310a 2020 2d20 4e49  S-5.4.1.1.  - NI
│ │ │ +00096030: 5354 2d38 3030 2d31 3731 2d33 2e33 2e31  ST-800-171-3.3.1
│ │ │ +00096040: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00096050: 312d 332e 332e 320a 2020 2d20 4e49 5354  1-3.3.2.  - NIST
│ │ │ +00096060: 2d38 3030 2d31 3731 2d33 2e33 2e36 0a20  -800-171-3.3.6. 
│ │ │ +00096070: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00096080: 432d 3228 6729 0a20 202d 204e 4953 542d  C-2(g).  - NIST-
│ │ │ +00096090: 3830 302d 3533 2d41 432d 3628 3929 0a20  800-53-AC-6(9). 
│ │ │ +000960a0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +000960b0: 552d 3130 0a20 202d 204e 4953 542d 3830  U-10.  - NIST-80
│ │ │ +000960c0: 302d 3533 2d41 552d 3132 2863 290a 2020  0-53-AU-12(c).  
│ │ │ +000960d0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +000960e0: 2d31 3428 3129 0a20 202d 204e 4953 542d  -14(1).  - NIST-
│ │ │ +000960f0: 3830 302d 3533 2d41 552d 3228 6429 0a20  800-53-AU-2(d). 
│ │ │ +00096100: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00096110: 552d 330a 2020 2d20 4e49 5354 2d38 3030  U-3.  - NIST-800
│ │ │ +00096120: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00096130: 4e49 5354 2d38 3030 2d35 332d 5349 2d34  NIST-800-53-SI-4
│ │ │ +00096140: 2832 3329 0a20 202d 2050 4349 2d44 5353  (23).  - PCI-DSS
│ │ │ +00096150: 2d52 6571 2d31 302e 310a 2020 2d20 5043  -Req-10.1.  - PC
│ │ │ +00096160: 492d 4453 5376 342d 3130 2e32 0a20 202d  I-DSSv4-10.2.  -
│ │ │ +00096170: 2050 4349 2d44 5353 7634 2d31 302e 322e   PCI-DSSv4-10.2.
│ │ │ +00096180: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +00096190: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000961a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000961b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000961c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000961d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000961e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000961f0: 5f61 7564 6974 645f 656e 6162 6c65 640a  _auditd_enabled.
│ │ │ +00096200: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +00096210: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ +00096220: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00096230: 6175 6469 7464 0a20 2062 6c6f 636b 3a0a  auditd.  block:.
│ │ │ +00096240: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +00096250: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00096260: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +00096270: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +00096280: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +00096290: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +000962a0: 6e61 6d65 3a20 456e 6162 6c65 2061 7564  name: Enable aud
│ │ │ +000962b0: 6974 6420 5365 7276 6963 6520 2d20 456e  itd Service - En
│ │ │ +000962c0: 6162 6c65 2053 6572 7669 6365 2061 7564  able Service aud
│ │ │ +000962d0: 6974 640a 2020 2020 616e 7369 626c 652e  itd.    ansible.
│ │ │ +000962e0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +000962f0: 0a20 2020 2020 206e 616d 653a 2061 7564  .      name: aud
│ │ │ +00096300: 6974 640a 2020 2020 2020 656e 6162 6c65  itd.      enable
│ │ │ +00096310: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +00096320: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +00096330: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +00096340: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +00096350: 2027 2261 7564 6974 6422 2069 6e20 616e   '"auditd" in an
│ │ │ +00096360: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00096370: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00096380: 2d20 434a 4953 2d35 2e34 2e31 2e31 0a20  - CJIS-5.4.1.1. 
│ │ │ +00096390: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +000963a0: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ +000963b0: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ +000963c0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +000963d0: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ +000963e0: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ +000963f0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +00096400: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ +00096410: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ +00096420: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +00096430: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ +00096440: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ +00096450: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ +00096460: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ +00096470: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ +00096480: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00096490: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000964a0: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ +000964b0: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +000964c0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +000964d0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +000964e0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +000964f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00096500: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00096510: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00096520: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00096530: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00096540: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00096550: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ +00096560: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00096570: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00096580: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ +00096590: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +000965a0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000965b0: 6573 270a 2020 2d20 2722 6175 6469 7464  es'.  - '"auditd
│ │ │ +000965c0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +000965d0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +000965f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00096690: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000966a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000966b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +00095f20: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00095f50: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00095f60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00095fa0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00095fb0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +00096730: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00096760: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00096780: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00096790: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000967b0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000967d0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000967e0: 6465 2065 6e61 626c 655f 6175 6469 7464  de enable_auditd
│ │ │ +000967f0: 0a0a 636c 6173 7320 656e 6162 6c65 5f61  ..class enable_a
│ │ │ +00096800: 7564 6974 6420 7b0a 2020 7365 7276 6963  uditd {.  servic
│ │ │ +00096810: 6520 7b27 6175 6469 7464 273a 0a20 2020  e {'auditd':.   
│ │ │ +00096820: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +00096830: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +00096840: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +00096850: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00096910: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00096920: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00096930: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +00096980: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +00096990: 626c 6564 203d 205b 2261 7564 6974 6422  bled = ["auditd"
│ │ │ +000969a0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 000969b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2024,14 +2007,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "syslog-ng" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2061,31 +2061,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2122,14 +2105,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2162,31 +2162,14 @@ │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, │ │ │ │ SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2209,14 +2192,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -2249,31 +2249,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2310,14 +2293,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4612,31 +4612,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4663,14 +4646,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4709,27 +4709,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4742,14 +4729,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4783,27 +4783,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4812,14 +4799,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -4854,27 +4854,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4883,14 +4870,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -4942,27 +4942,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -4975,14 +4962,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -5034,27 +5034,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5066,14 +5053,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -5167,31 +5167,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5216,14 +5199,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ntp" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -5257,31 +5257,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5326,14 +5309,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ntp"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6253,31 +6253,14 @@ │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6318,14 +6301,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -6397,31 +6397,14 @@ │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6488,14 +6471,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-cis_level1_server.html │ │ │ @@ -15069,134 +15069,134 @@ │ │ │ 0003adc0: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 0003add0: 3135 2220 7461 6269 6e64 6578 3d22 3022 15" tabindex="0" │ │ │ 0003ade0: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 0003adf0: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 0003ae00: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 0003ae10: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 0003ae20: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -0003ae30: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0003ae40: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0003ae50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -0003ae90: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -0003aea0: 5d5d 0a6e 616d 6520 3d20 2261 6964 6522  ]].name = "aide"
│ │ │ -0003aeb0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0003aec0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -0003af70: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0003af80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003af90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0003b010: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0003b040: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0003b060: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0003b070: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0003b090: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0003b0b0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0003b0c0: 6465 2069 6e73 7461 6c6c 5f61 6964 650a  de install_aide.
│ │ │ -0003b0d0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ -0003b0e0: 6964 6520 7b0a 2020 7061 636b 6167 6520  ide {.  package 
│ │ │ -0003b0f0: 7b20 2761 6964 6527 3a0a 2020 2020 656e  { 'aide':.    en
│ │ │ -0003b100: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -0003b110: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ -0003b1d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0003b1e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003b1f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0003b270: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0003b2a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0003b2c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0003b2d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0003b2f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0003b310: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0003b320: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0003b330: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0003b340: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0003b350: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0003b360: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ -0003b370: 352e 3130 2e31 2e33 0a20 202d 204e 4953  5.10.1.3.  - NIS
│ │ │ -0003b380: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0003b390: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -0003b3a0: 2d31 312e 350a 2020 2d20 5043 492d 4453  -11.5.  - PCI-DS
│ │ │ -0003b3b0: 5376 342d 3131 2e35 2e32 0a20 202d 2065  Sv4-11.5.2.  - e
│ │ │ -0003b3c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0003b3d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0003b3e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0003b3f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0003b400: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0003b410: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0003b420: 2d20 7061 636b 6167 655f 6169 6465 5f69  - package_aide_i
│ │ │ -0003b430: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -0003b440: 3a20 456e 7375 7265 2061 6964 6520 6973  : Ensure aide is
│ │ │ -0003b450: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -0003b460: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0003b470: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -0003b480: 6169 6465 0a20 2020 2073 7461 7465 3a20  aide.    state: 
│ │ │ -0003b490: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -0003b4a0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0003b4b0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0003b4c0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0003b4d0: 0a20 202d 2043 4a49 532d 352e 3130 2e31  .  - CJIS-5.10.1
│ │ │ -0003b4e0: 2e33 0a20 202d 204e 4953 542d 3830 302d  .3.  - NIST-800-
│ │ │ -0003b4f0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0003b500: 4349 2d44 5353 2d52 6571 2d31 312e 350a  CI-DSS-Req-11.5.
│ │ │ -0003b510: 2020 2d20 5043 492d 4453 5376 342d 3131    - PCI-DSSv4-11
│ │ │ -0003b520: 2e35 2e32 0a20 202d 2065 6e61 626c 655f  .5.2.  - enable_
│ │ │ -0003b530: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0003b540: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0003b550: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0003b560: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0003b570: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0003b580: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0003b590: 6167 655f 6169 6465 5f69 6e73 7461 6c6c  age_aide_install
│ │ │ -0003b5a0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0003ae30: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +0003ae40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0003ae80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0003aef0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0003af10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0003af40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0003af60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0003aed0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0003aee0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0003af20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0003af30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +0003af80: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0003af90: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0003afa0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0003afb0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0003afc0: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31 gs:. - CJIS-5.1 │ │ │ +0003afd0: 302e 312e 330a 2020 2d20 4e49 5354 2d38 0.1.3. - NIST-8 │ │ │ +0003afe0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0003aff0: 2d20 5043 492d 4453 532d 5265 712d 3131 - PCI-DSS-Req-11 │ │ │ +0003b000: 2e35 0a20 202d 2050 4349 2d44 5353 7634 .5. - PCI-DSSv4 │ │ │ +0003b010: 2d31 312e 352e 320a 2020 2d20 656e 6162 -11.5.2. - enab │ │ │ +0003b020: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0003b030: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0003b040: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0003b050: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +0003b060: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0003b070: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +0003b080: 6163 6b61 6765 5f61 6964 655f 696e 7374 ackage_aide_inst │ │ │ +0003b090: 616c 6c65 640a 0a2d 206e 616d 653a 2045 alled..- name: E │ │ │ +0003b0a0: 6e73 7572 6520 6169 6465 2069 7320 696e nsure aide is in │ │ │ +0003b0b0: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ +0003b0c0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +0003b0d0: 653a 0a20 2020 206e 616d 653a 2061 6964 e:. name: aid │ │ │ +0003b0e0: 650a 2020 2020 7374 6174 653a 2070 7265 e. state: pre │ │ │ +0003b0f0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c sent. when: '"l │ │ │ +0003b100: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ +0003b110: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +0003b120: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ +0003b130: 2d20 434a 4953 2d35 2e31 302e 312e 330a - CJIS-5.10.1.3. │ │ │ +0003b140: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0003b150: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ +0003b160: 4453 532d 5265 712d 3131 2e35 0a20 202d DSS-Req-11.5. - │ │ │ +0003b170: 2050 4349 2d44 5353 7634 2d31 312e 352e PCI-DSSv4-11.5. │ │ │ +0003b180: 320a 2020 2d20 656e 6162 6c65 5f73 7472 2. - enable_str │ │ │ +0003b190: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +0003b1a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0003b1b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0003b1c0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +0003b1d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +0003b1e0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +0003b1f0: 5f61 6964 655f 696e 7374 616c 6c65 640a _aide_installed. │ │ │ +0003b200: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 R │ │ │ +0003b2b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0003b2c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +0003b370: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0003b3c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0003b350: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0003b380: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0003b3a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0003b3b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0003b3d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0003b3e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0003b400: 7564 6520 696e 7374 616c 6c5f 6169 6465  ude install_aide
│ │ │ +0003b410: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +0003b420: 6169 6465 207b 0a20 2070 6163 6b61 6765  aide {.  package
│ │ │ +0003b430: 207b 2027 6169 6465 273a 0a20 2020 2065   { 'aide':.    e
│ │ │ +0003b440: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0003b450: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0003b460: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0003b510: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0003b520: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0003b530: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0003b540: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003b550: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003b560: 7365 2220 6964 3d22 6964 3137 223e 3c70 se" id="id17">

.[[pack │ │ │ +0003b580: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +0003b590: 6964 6522 0a76 6572 7369 6f6e 203d 2022 ide".version = " │ │ │ +0003b5a0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ 0003b5b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22

Remediation OS │ │ │ -00050e00: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00050e10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00050e20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ -00050e60: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -00050e70: 3d20 2273 7564 6f22 0a76 6572 7369 6f6e  = "sudo".version
│ │ │ -00050e80: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediatio │ │ │ -00050f40: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00050f50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -00050fe0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00051000: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00051020: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00051050: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00051060: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00051070: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -00051090: 6c6c 5f73 7564 6f0a 0a63 6c61 7373 2069  ll_sudo..class i
│ │ │ -000510a0: 6e73 7461 6c6c 5f73 7564 6f20 7b0a 2020  nstall_sudo {.  
│ │ │ -000510b0: 7061 636b 6167 6520 7b20 2773 7564 6f27  package { 'sudo'
│ │ │ -000510c0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000510d0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000510e0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -000511a0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000511b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -00051240: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00051260: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00051280: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000512b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000512c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000512d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -000512f0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00051300: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00051310: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00051320: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00051330: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00051340: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00051350: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -00051360: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -00051370: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00051380: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00051390: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000513a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000513b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000513c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000513d0: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ -000513e0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -000513f0: 6d65 3a20 456e 7375 7265 2073 7564 6f20  me: Ensure sudo 
│ │ │ -00051400: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -00051410: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00051420: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00051430: 3a20 7375 646f 0a20 2020 2073 7461 7465  : sudo.    state
│ │ │ -00051440: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -00051450: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00051460: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00051470: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00051480: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00051490: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -000514a0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -000514b0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -000514c0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000514d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000514e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000514f0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00051500: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00051510: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00051520: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00051530: 7375 646f 5f69 6e73 7461 6c6c 6564 0a3c  sudo_installed.<
│ │ │ +00050df0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +00050e00: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00050e10: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity: │ │ │ +00050ee0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00050ef0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00050f40: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00050f50: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00050f60: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00050f70: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00050f80: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00050f90: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00050fa0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ +00050fb0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00050fc0: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ +00050fd0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00050fe0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00050ff0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00051000: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00051010: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00051020: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00051030: 2070 6163 6b61 6765 5f73 7564 6f5f 696e   package_sudo_in
│ │ │ +00051040: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00051050: 2045 6e73 7572 6520 7375 646f 2069 7320   Ensure sudo is 
│ │ │ +00051060: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +00051070: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00051080: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ +00051090: 7564 6f0a 2020 2020 7374 6174 653a 2070  udo.    state: p
│ │ │ +000510a0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000510b0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000510c0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000510d0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +000510e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000510f0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00051100: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00051110: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +00051120: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00051130: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00051140: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00051150: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00051160: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00051170: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00051180: 0a20 202d 2070 6163 6b61 6765 5f73 7564  .  - package_sud
│ │ │ +00051190: 6f5f 696e 7374 616c 6c65 640a 3c2f 636f  o_installed.
< │ │ │ +000511b0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000511c0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000511d0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000511e0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000511f0: 6434 3522 2074 6162 696e 6465 783d 2230 d45" tabindex="0 │ │ │ +00051200: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00051210: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00051220: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00051230: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00051240: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00051250: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00051260: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000512a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +00050ec0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00050ed0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00050f10: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00050f20: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00051310: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00051330: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00051360: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00051380: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000512f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00051300: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00051340: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00051350: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000513a0: 696e 7374 616c 6c5f 7375 646f 0a0a 636c install_sudo..cl │ │ │ +000513b0: 6173 7320 696e 7374 616c 6c5f 7375 646f ass install_sudo │ │ │ +000513c0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +000513d0: 7375 646f 273a 0a20 2020 2065 6e73 7572 sudo':. ensur │ │ │ +000513e0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000513f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remedi │ │ │ +000514b0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000514c0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000514d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +00051510: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +00051520: 5d5d 0a6e 616d 6520 3d20 2273 7564 6f22  ]].name = "sudo"
│ │ │ +00051530: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00051540: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediati │ │ │ -00099e40: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00099e50: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00099e60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00099eb0: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -00099ec0: 6d6f 6475 6c65 7322 0a76 6572 7369 6f6e  modules".version
│ │ │ -00099ed0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00099f90: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00099fa0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0009a020: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0009a030: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0009a050: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0009a060: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0009a080: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0009a0a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0009a0d0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -0009a0e0: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -0009a0f0: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -0009a100: 6c6c 5f6c 6962 7061 6d2d 6d6f 6475 6c65  ll_libpam-module
│ │ │ -0009a110: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -0009a120: 276c 6962 7061 6d2d 6d6f 6475 6c65 7327  'libpam-modules'
│ │ │ -0009a130: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0009a140: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -0009a150: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0009a210: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0009a220: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0009a2a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0009a2b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0009a2d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0009a2e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0009a300: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0009a320: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0009a350: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0009a360: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0009a370: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0009a380: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0009a390: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0009a3a0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0009a3b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0009a3c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0009a3d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0009a3e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0009a3f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0009a400: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0009a410: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ -0009a420: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0009a430: 6e73 7572 6520 6c69 6270 616d 2d6d 6f64  nsure libpam-mod
│ │ │ -0009a440: 756c 6573 2069 7320 696e 7374 616c 6c65  ules is installe
│ │ │ -0009a450: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -0009a460: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0009a470: 206e 616d 653a 206c 6962 7061 6d2d 6d6f   name: libpam-mo
│ │ │ -0009a480: 6475 6c65 730a 2020 2020 7374 6174 653a  dules.    state:
│ │ │ -0009a490: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -0009a4a0: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -0009a4b0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0009a4c0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0009a4d0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -0009a4e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0009a4f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0009a500: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0009a510: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0009a520: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0009a530: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0009a540: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573  kage_pam_modules
│ │ │ -0009a550: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +00099ed0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00099ee0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00099ef0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00099f30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00099f40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00099f60: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00099f80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00099f90: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00099fa0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00099fb0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00099fc0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00099fd0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +00099fe0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00099ff0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0009a000: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0009a010: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0009a020: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0009a030: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0009a040: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ +0009a050: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +0009a060: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ +0009a070: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ +0009a080: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +0009a090: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0009a0a0: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ +0009a0b0: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ +0009a0c0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +0009a0d0: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +0009a0e0: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +0009a0f0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +0009a100: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +0009a110: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0009a120: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0009a130: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0009a140: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0009a150: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0009a160: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0009a170: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +0009a180: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +0009a1a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0009a1b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0009a1c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0009a1d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0009a1e0: 6431 3537 2220 7461 6269 6e64 6578 3d22 d157" tabindex=" │ │ │ +0009a1f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0009a200: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0009a210: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0009a220: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0009a230: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0009a240: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0009a250: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0009a2e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0009a2f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0009a310: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0009a330: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0009a340: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0009a380: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0009a390: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ +0009a3a0: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ +0009a3b0: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ +0009a3c0: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ +0009a3d0: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ +0009a3e0: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ +0009a3f0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +0009a400: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +0009a4c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0009a4d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0009a4e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +0009a530: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +0009a540: 7061 6d2d 6d6f 6475 6c65 7322 0a76 6572  pam-modules".ver
│ │ │ +0009a550: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediatio │ │ │ -0009b280: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0009b290: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0009b2a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -0009b2f0: 6e61 6d65 203d 2022 6c69 6270 616d 2d70  name = "libpam-p
│ │ │ -0009b300: 7771 7561 6c69 7479 220a 7665 7273 696f  wquality".versio
│ │ │ -0009b310: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -0009b320: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0009b3d0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0009b3e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0009b460: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0009b470: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0009b480: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0009b4c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0009b4d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0009b4f0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0009b510: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -0009b520: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -0009b530: 7561 6c69 7479 0a0a 636c 6173 7320 696e  uality..class in
│ │ │ -0009b540: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -0009b550: 7561 6c69 7479 207b 0a20 2070 6163 6b61  uality {.  packa
│ │ │ -0009b560: 6765 207b 2027 6c69 6270 616d 2d70 7771  ge { 'libpam-pwq
│ │ │ -0009b570: 7561 6c69 7479 273a 0a20 2020 2065 6e73  uality':.    ens
│ │ │ -0009b580: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -0009b590: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -0009b5b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0009b650: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0009b660: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0009b670: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0009b710: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0009b760: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0009b6f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0009b720: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0009b740: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0009b750: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0009b770: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0009b780: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0009b7a0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0009b7b0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0009b7c0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0009b7d0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0009b7e0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -0009b7f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0009b800: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0009b810: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0009b820: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0009b830: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0009b840: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0009b850: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -0009b860: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -0009b870: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -0009b880: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -0009b890: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0009b8a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0009b8b0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0009b8c0: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -0009b8d0: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -0009b8e0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -0009b8f0: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -0009b900: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0009b910: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0009b920: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -0009b930: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0009b940: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0009b950: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0009b960: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0009b970: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0009b980: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0009b990: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ -0009b9a0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +0009b310: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0009b320: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0009b340: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0009b350: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0009b370: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0009b390: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0009b3c0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0009b3d0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0009b3e0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0009b3f0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0009b400: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0009b410: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0009b420: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0009b430: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0009b440: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0009b450: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0009b460: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0009b470: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0009b480: 7061 6d5f 7077 7175 616c 6974 795f 696e  pam_pwquality_in
│ │ │ +0009b490: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +0009b4a0: 2045 6e73 7572 6520 6c69 6270 616d 2d70   Ensure libpam-p
│ │ │ +0009b4b0: 7771 7561 6c69 7479 2069 7320 696e 7374  wquality is inst
│ │ │ +0009b4c0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +0009b4d0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0009b4e0: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ +0009b4f0: 6d2d 7077 7175 616c 6974 790a 2020 2020  m-pwquality.    
│ │ │ +0009b500: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +0009b510: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ +0009b520: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ +0009b530: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0009b540: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0009b550: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0009b560: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0009b570: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0009b580: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0009b590: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0009b5a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0009b5b0: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +0009b5c0: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +0009b5d0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0009b5e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0009b690: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0009b6a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0009b720: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0009b740: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0009b790: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0009b7e0: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +0009b7f0: 790a 0a63 6c61 7373 2069 6e73 7461 6c6c  y..class install
│ │ │ +0009b800: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +0009b810: 7920 7b0a 2020 7061 636b 6167 6520 7b20  y {.  package { 
│ │ │ +0009b820: 276c 6962 7061 6d2d 7077 7175 616c 6974  'libpam-pwqualit
│ │ │ +0009b830: 7927 3a0a 2020 2020 656e 7375 7265 203d  y':.    ensure =
│ │ │ +0009b840: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +0009b850: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0009b860: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0009b910: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +0009b920: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +0009b930: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[[packages]
│ │ │ +0009b980: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ +0009b990: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ +0009b9a0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -0009c500: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0009c510: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0009c520: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -0009c570: 6167 6573 5d5d 0a6e 616d 6520 3d20 226c ages]].name = "l │ │ │ -0009c580: 6962 7061 6d2d 7275 6e74 696d 6522 0a76 ibpam-runtime".v │ │ │ -0009c590: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ -0009c5b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0009c650: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0009c660: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0009c670: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +0009b750: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0009b760: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0009b7a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0009b7b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -0009c6f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0009c720: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0009c740: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0009c750: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0009c770: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0009c790: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0009c7a0: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ -0009c7b0: 6d2d 7275 6e74 696d 650a 0a63 6c61 7373  m-runtime..class
│ │ │ -0009c7c0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ -0009c7d0: 7275 6e74 696d 6520 7b0a 2020 7061 636b  runtime {.  pack
│ │ │ -0009c7e0: 6167 6520 7b20 276c 6962 7061 6d2d 7275  age { 'libpam-ru
│ │ │ -0009c7f0: 6e74 696d 6527 3a0a 2020 2020 656e 7375  ntime':.    ensu
│ │ │ -0009c800: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -0009c810: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -0009c830: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0009c840: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0009c850: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0009c860: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0009c870: 6431 3638 2220 7461 6269 6e64 6578 3d22 d168" tabindex=" │ │ │ -0009c880: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0009c890: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0009c8a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0009c8b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0009c8c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0009c8d0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0009c8e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0009c8f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0009c970: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0009c9a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0009c9c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0009c9d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0009c9f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0009ca10: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0009ca20: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ -0009ca30: 2d72 756e 7469 6d65 2069 7320 696e 7374  -runtime is inst
│ │ │ -0009ca40: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -0009ca50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0009ca60: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ -0009ca70: 6d2d 7275 6e74 696d 650a 2020 2020 7374  m-runtime.    st
│ │ │ -0009ca80: 6174 653a 2070 7265 7365 6e74 0a20 2074  ate: present.  t
│ │ │ -0009ca90: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -0009caa0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0009cab0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0009cac0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0009cad0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0009cae0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0009caf0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0009cb00: 6167 655f 7061 6d5f 7275 6e74 696d 655f  age_pam_runtime_
│ │ │ -0009cb10: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
│ │ │ +0009c520: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0009c5c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0009c610: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0009c5a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0009c5d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0009c5f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0009c600: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0009c620: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0009c630: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0009c650: 6d65 3a20 456e 7375 7265 206c 6962 7061  me: Ensure libpa
│ │ │ +0009c660: 6d2d 7275 6e74 696d 6520 6973 2069 6e73  m-runtime is ins
│ │ │ +0009c670: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +0009c680: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0009c690: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270  :.    name: libp
│ │ │ +0009c6a0: 616d 2d72 756e 7469 6d65 0a20 2020 2073  am-runtime.    s
│ │ │ +0009c6b0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +0009c6c0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +0009c6d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0009c6e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0009c6f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0009c700: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0009c710: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0009c720: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0009c730: 6b61 6765 5f70 616d 5f72 756e 7469 6d65  kage_pam_runtime
│ │ │ +0009c740: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +0009c800: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0009c810: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0009c8c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0009c8e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0009c910: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0009c8a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0009c8b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0009c8d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0009c8f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0009c900: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0009c950: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +0009c960: 7275 6e74 696d 650a 0a63 6c61 7373 2069 runtime..class i │ │ │ +0009c970: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7275 nstall_libpam-ru │ │ │ +0009c980: 6e74 696d 6520 7b0a 2020 7061 636b 6167 ntime {. packag │ │ │ +0009c990: 6520 7b20 276c 6962 7061 6d2d 7275 6e74 e { 'libpam-runt │ │ │ +0009c9a0: 696d 6527 3a0a 2020 2020 656e 7375 7265 ime':. ensure │ │ │ +0009c9b0: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +0009c9c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ +0009ca80: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0009ca90: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0009caa0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0009cae0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0009caf0: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ +0009cb00: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ +0009cb10: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
R │ │ │ -000d2b50: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000d2b60: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000d2b70: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000d2b80: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000d2bb0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -000d2bc0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000d2bd0: 2261 7070 6172 6d6f 722d 7574 696c 7322  "apparmor-utils"
│ │ │ -000d2be0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -000d2bf0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000d2ca0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -000d2cb0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -000d2d50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000d2d60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000d2db0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -000d2df0: 6c75 6465 2069 6e73 7461 6c6c 5f61 7070  lude install_app
│ │ │ -000d2e00: 6172 6d6f 722d 7574 696c 730a 0a63 6c61  armor-utils..cla
│ │ │ -000d2e10: 7373 2069 6e73 7461 6c6c 5f61 7070 6172  ss install_appar
│ │ │ -000d2e20: 6d6f 722d 7574 696c 7320 7b0a 2020 7061  mor-utils {.  pa
│ │ │ -000d2e30: 636b 6167 6520 7b20 2761 7070 6172 6d6f  ckage { 'apparmo
│ │ │ -000d2e40: 722d 7574 696c 7327 3a0a 2020 2020 656e  r-utils':.    en
│ │ │ -000d2e50: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000d2e60: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000d2f20: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000d2f30: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
C │ │ │ -000d2d40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000d2d70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000d2d80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000d2dc0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000d2dd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -000d2fd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000d2fe0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000d3030: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000d3070: 616d 653a 2045 6e73 7572 6520 6170 7061  ame: Ensure appa
│ │ │ -000d3080: 726d 6f72 2d75 7469 6c73 2069 7320 696e  rmor-utils is in
│ │ │ -000d3090: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -000d30a0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000d30b0: 653a 0a20 2020 206e 616d 653a 2061 7070  e:.    name: app
│ │ │ -000d30c0: 6172 6d6f 722d 7574 696c 730a 2020 2020  armor-utils.    
│ │ │ -000d30d0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -000d30e0: 2077 6865 6e3a 2061 6e73 6962 6c65 5f76   when: ansible_v
│ │ │ -000d30f0: 6972 7475 616c 697a 6174 696f 6e5f 7479  irtualization_ty
│ │ │ -000d3100: 7065 206e 6f74 2069 6e20 5b22 646f 636b  pe not in ["dock
│ │ │ -000d3110: 6572 222c 2022 6c78 6322 2c20 226f 7065  er", "lxc", "ope
│ │ │ -000d3120: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20  nvz", "podman", 
│ │ │ -000d3130: 2263 6f6e 7461 696e 6572 225d 0a20 2074  "container"].  t
│ │ │ -000d3140: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -000d3150: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000d3160: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000d3170: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000d3180: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000d3190: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000d31a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000d31b0: 6167 655f 6170 7061 726d 6f72 2d75 7469  age_apparmor-uti
│ │ │ -000d31c0: 6c73 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ls_installed.
C │ │ │ -000d2fc0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000d2ff0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000d3000: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000d3040: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000d3050: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000d2c00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000d2ca0: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ +000d2cb0: 6172 6d6f 722d 7574 696c 7320 6973 2069  armor-utils is i
│ │ │ +000d2cc0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +000d2cd0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +000d2ce0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6170  ge:.    name: ap
│ │ │ +000d2cf0: 7061 726d 6f72 2d75 7469 6c73 0a20 2020  parmor-utils.   
│ │ │ +000d2d00: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +000d2d10: 2020 7768 656e 3a20 616e 7369 626c 655f    when: ansible_
│ │ │ +000d2d20: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74  virtualization_t
│ │ │ +000d2d30: 7970 6520 6e6f 7420 696e 205b 2264 6f63  ype not in ["doc
│ │ │ +000d2d40: 6b65 7222 2c20 226c 7863 222c 2022 6f70  ker", "lxc", "op
│ │ │ +000d2d50: 656e 767a 222c 2022 706f 646d 616e 222c  envz", "podman",
│ │ │ +000d2d60: 2022 636f 6e74 6169 6e65 7222 5d0a 2020   "container"].  
│ │ │ +000d2d70: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +000d2d80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000d2d90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000d2da0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000d2db0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000d2dc0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000d2dd0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000d2de0: 6b61 6765 5f61 7070 6172 6d6f 722d 7574  kage_apparmor-ut
│ │ │ +000d2df0: 696c 735f 696e 7374 616c 6c65 640a 3c2f  ils_installed.
Re │ │ │ +000d2eb0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000d2ec0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000d2ed0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +000d2bf0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000d2c20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000d2c30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000d2c70: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000d2c80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +000d2f70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000d2fc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000d2f50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000d2f80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000d2fa0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000d2fb0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000d2fd0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000d2fe0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000d3000: 7564 6520 696e 7374 616c 6c5f 6170 7061  ude install_appa
│ │ │ +000d3010: 726d 6f72 2d75 7469 6c73 0a0a 636c 6173  rmor-utils..clas
│ │ │ +000d3020: 7320 696e 7374 616c 6c5f 6170 7061 726d  s install_apparm
│ │ │ +000d3030: 6f72 2d75 7469 6c73 207b 0a20 2070 6163  or-utils {.  pac
│ │ │ +000d3040: 6b61 6765 207b 2027 6170 7061 726d 6f72  kage { 'apparmor
│ │ │ +000d3050: 2d75 7469 6c73 273a 0a20 2020 2065 6e73  -utils':.    ens
│ │ │ +000d3060: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +000d3070: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +000d3090: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000d3130: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000d3140: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000d3150: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +000d31a0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +000d31b0: 7070 6172 6d6f 722d 7574 696c 7322 0a76 pparmor-utils".v │ │ │ +000d31c0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ 000d31e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 │ │ │ -000d3e40: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000d3e50: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000d3e60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000d3eb0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000d3ec0: 2022 6170 7061 726d 6f72 220a 7665 7273   "apparmor".vers
│ │ │ -000d3ed0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000d3f90: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000d3fa0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000d3fb0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000d3fe0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000d4050: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000d4070: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000d40a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000d40c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000d4030: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000d4040: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000d4080: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000d4090: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000d40e0: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ -000d40f0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ -000d4100: 6170 7061 726d 6f72 207b 0a20 2070 6163 apparmor {. pac │ │ │ -000d4110: 6b61 6765 207b 2027 6170 7061 726d 6f72 kage { 'apparmor │ │ │ -000d4120: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -000d4130: 6774 3b20 2769 6e73 7461 6c6c 6564 272c gt; 'installed', │ │ │ -000d4140: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediati │ │ │ -000d4200: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -000d4210: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000d4290: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000d42a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000d42b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000d42f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000d4300: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000d4320: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000d4340: 3c63 6f64 653e 2d20 6e61 6d65 3a20 456e  - name: En
│ │ │ -000d4350: 7375 7265 2061 7070 6172 6d6f 7220 6973  sure apparmor is
│ │ │ -000d4360: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -000d4370: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -000d4380: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -000d4390: 6170 7061 726d 6f72 0a20 2020 2073 7461  apparmor.    sta
│ │ │ -000d43a0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -000d43b0: 656e 3a20 616e 7369 626c 655f 7669 7274  en: ansible_virt
│ │ │ -000d43c0: 7561 6c69 7a61 7469 6f6e 5f74 7970 6520  ualization_type 
│ │ │ -000d43d0: 6e6f 7420 696e 205b 2264 6f63 6b65 7222  not in ["docker"
│ │ │ -000d43e0: 2c20 226c 7863 222c 2022 6f70 656e 767a  , "lxc", "openvz
│ │ │ -000d43f0: 222c 2022 706f 646d 616e 222c 2022 636f  ", "podman", "co
│ │ │ -000d4400: 6e74 6169 6e65 7222 5d0a 2020 7461 6773  ntainer"].  tags
│ │ │ -000d4410: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -000d4420: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000d4430: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000d4440: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000d4450: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000d4460: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000d4470: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000d4480: 5f61 7070 6172 6d6f 725f 696e 7374 616c  _apparmor_instal
│ │ │ -000d4490: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

< │ │ │ +000d3f30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000d3f40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000d3f90: 206e 616d 653a 2045 6e73 7572 6520 6170   name: Ensure ap
│ │ │ +000d3fa0: 7061 726d 6f72 2069 7320 696e 7374 616c  parmor is instal
│ │ │ +000d3fb0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +000d3fc0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +000d3fd0: 2020 206e 616d 653a 2061 7070 6172 6d6f     name: apparmo
│ │ │ +000d3fe0: 720a 2020 2020 7374 6174 653a 2070 7265  r.    state: pre
│ │ │ +000d3ff0: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ +000d4000: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ +000d4010: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ +000d4020: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ +000d4030: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ +000d4040: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ +000d4050: 225d 0a20 2074 6167 733a 0a20 202d 2065  "].  tags:.  - e
│ │ │ +000d4060: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000d4070: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000d4080: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000d4090: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000d40a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000d40b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000d40c0: 2d20 7061 636b 6167 655f 6170 7061 726d  - package_apparm
│ │ │ +000d40d0: 6f72 5f69 6e73 7461 6c6c 6564 0a3c 2f63  or_installed.
│ │ │ +000d40f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000d4190: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000d41a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000d41b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +000d3f10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000d3f20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000d3f60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000d3f70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +000d4230: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000d4260: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000d4280: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000d4290: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000d42b0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000d42d0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000d42e0: 6465 2069 6e73 7461 6c6c 5f61 7070 6172  de install_appar
│ │ │ +000d42f0: 6d6f 720a 0a63 6c61 7373 2069 6e73 7461  mor..class insta
│ │ │ +000d4300: 6c6c 5f61 7070 6172 6d6f 7220 7b0a 2020  ll_apparmor {.  
│ │ │ +000d4310: 7061 636b 6167 6520 7b20 2761 7070 6172  package { 'appar
│ │ │ +000d4320: 6d6f 7227 3a0a 2020 2020 656e 7375 7265  mor':.    ensure
│ │ │ +000d4330: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +000d4340: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +000d4400: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000d4410: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000d4420: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000d4460: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000d4470: 735d 5d0a 6e61 6d65 203d 2022 6170 7061  s]].name = "appa
│ │ │ +000d4480: 726d 6f72 220a 7665 7273 696f 6e20 3d20  rmor".version = 
│ │ │ +000d4490: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Reme │ │ │ -000de6c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -000de6d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -000de6e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -000de730: 6765 735d 5d0a 6e61 6d65 203d 2022 7379 ges]].name = "sy │ │ │ -000de740: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265 stemd-journal-re │ │ │ -000de750: 6d6f 7465 220a 7665 7273 696f 6e20 3d20 mote".version = │ │ │ -000de760: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation │ │ │ -000de820: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000de830: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000de8b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000de8d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000de920: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000de950: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000de970: 6c5f 7379 7374 656d 642d 6a6f 7572 6e61  l_systemd-journa
│ │ │ -000de980: 6c2d 7265 6d6f 7465 0a0a 636c 6173 7320  l-remote..class 
│ │ │ -000de990: 696e 7374 616c 6c5f 7379 7374 656d 642d  install_systemd-
│ │ │ -000de9a0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 207b  journal-remote {
│ │ │ -000de9b0: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ -000de9c0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ -000de9d0: 6d6f 7465 273a 0a20 2020 2065 6e73 7572  mote':.    ensur
│ │ │ -000de9e0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -000de9f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000deab0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000deac0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:< │ │ │ -000de8c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000de8e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000de930: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000de940: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Comp │ │ │ -000deb50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000deb60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000deb80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000deba0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000debb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000debf0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000dec00: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000dec10: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -000dec20: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -000dec30: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -000dec40: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -000dec50: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -000dec60: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -000dec70: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -000dec80: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -000dec90: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -000deca0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -000decb0: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75 kage_systemd-jou │ │ │ -000decc0: 726e 616c 2d72 656d 6f74 655f 696e 7374 rnal-remote_inst │ │ │ -000decd0: 616c 6c65 640a 0a2d 206e 616d 653a 2045 alled..- name: E │ │ │ -000dece0: 6e73 7572 6520 7379 7374 656d 642d 6a6f nsure systemd-jo │ │ │ -000decf0: 7572 6e61 6c2d 7265 6d6f 7465 2069 7320 urnal-remote is │ │ │ -000ded00: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ -000ded10: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ -000ded20: 6167 653a 0a20 2020 206e 616d 653a 2073 age:. name: s │ │ │ -000ded30: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72 ystemd-journal-r │ │ │ -000ded40: 656d 6f74 650a 2020 2020 7374 6174 653a emote. state: │ │ │ -000ded50: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ -000ded60: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -000ded70: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -000ded80: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ -000ded90: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472 :. - enable_str │ │ │ -000deda0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -000dedb0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -000dedc0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -000dedd0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -000dede0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -000dedf0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -000dee00: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c _systemd-journal │ │ │ -000dee10: 2d72 656d 6f74 655f 696e 7374 616c 6c65 -remote_installe │ │ │ -000dee20: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +000de6c0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +000de6d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000de6e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +000de760: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000de790: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000de7b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000de7c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000de7e0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000de800: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000de810: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +000de820: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +000de830: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +000de840: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +000de850: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000de860: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000de870: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000de880: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000de890: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000de8a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000de8b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000de8c0: 636b 6167 655f 7379 7374 656d 642d 6a6f  ckage_systemd-jo
│ │ │ +000de8d0: 7572 6e61 6c2d 7265 6d6f 7465 5f69 6e73  urnal-remote_ins
│ │ │ +000de8e0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000de8f0: 456e 7375 7265 2073 7973 7465 6d64 2d6a  Ensure systemd-j
│ │ │ +000de900: 6f75 726e 616c 2d72 656d 6f74 6520 6973  ournal-remote is
│ │ │ +000de910: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000de920: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000de930: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +000de940: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000de950: 7265 6d6f 7465 0a20 2020 2073 7461 7465  remote.    state
│ │ │ +000de960: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000de970: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +000de980: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000de990: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +000de9a0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +000de9b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000de9c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000de9d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000de9e0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000de9f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000dea00: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000dea10: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000dea20: 6c2d 7265 6d6f 7465 5f69 6e73 7461 6c6c  l-remote_install
│ │ │ +000dea30: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000dea40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000deaf0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000deb00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000deb80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000deba0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000debf0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000dec40: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000dec50: 2d72 656d 6f74 650a 0a63 6c61 7373 2069  -remote..class i
│ │ │ +000dec60: 6e73 7461 6c6c 5f73 7973 7465 6d64 2d6a  nstall_systemd-j
│ │ │ +000dec70: 6f75 726e 616c 2d72 656d 6f74 6520 7b0a  ournal-remote {.
│ │ │ +000dec80: 2020 7061 636b 6167 6520 7b20 2773 7973    package { 'sys
│ │ │ +000dec90: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000deca0: 6f74 6527 3a0a 2020 2020 656e 7375 7265  ote':.    ensure
│ │ │ +000decb0: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +000decc0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +000ded80: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000ded90: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000deda0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000dede0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000dedf0: 735d 5d0a 6e61 6d65 203d 2022 7379 7374  s]].name = "syst
│ │ │ +000dee00: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ +000dee10: 7465 220a 7665 7273 696f 6e20 3d20 222a  te".version = "*
│ │ │ +000dee20: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000dee30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -000dff50: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000dff60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000dffb0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -000dffc0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -000dffd0: 6564 203d 205b 2273 7973 7465 6d64 2d6a  ed = ["systemd-j
│ │ │ -000dffe0: 6f75 726e 616c 2d75 706c 6f61 6422 5d0a  ournal-upload"].
│ │ │ -000dfff0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000e00a0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000e00b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disr │ │ │ +000debb0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000debc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000dec00: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000dec10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -000e0150: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000e01f0: 636c 7564 6520 656e 6162 6c65 5f73 7973  clude enable_sys
│ │ │ -000e0200: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ -000e0210: 6f61 640a 0a63 6c61 7373 2065 6e61 626c  oad..class enabl
│ │ │ -000e0220: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ -000e0230: 6c2d 7570 6c6f 6164 207b 0a20 2073 6572  l-upload {.  ser
│ │ │ -000e0240: 7669 6365 207b 2773 7973 7465 6d64 2d6a  vice {'systemd-j
│ │ │ -000e0250: 6f75 726e 616c 2d75 706c 6f61 6427 3a0a  ournal-upload':.
│ │ │ -000e0260: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -000e0270: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ -000e0280: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ -000e0290: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -000e02a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -000e0350: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000e0360: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000e0370: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000e03a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -000e0140: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000e0170: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000e0180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000e01c0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000e01d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -000e0410: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000e0430: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000e0460: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000e0480: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000e03f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000e0400: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000e0440: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000e0450: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -000e04a0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -000e04b0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -000e04c0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -000e04d0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -000e04e0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -000e04f0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -000e0500: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -000e0510: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -000e0520: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -000e0530: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -000e0540: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -000e0550: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e ce_systemd-journ │ │ │ -000e0560: 616c 2d75 706c 6f61 645f 656e 6162 6c65 al-upload_enable │ │ │ -000e0570: 640a 0a2d 206e 616d 653a 2045 6e61 626c d..- name: Enabl │ │ │ -000e0580: 6520 7379 7374 656d 642d 6a6f 7572 6e61 e systemd-journa │ │ │ -000e0590: 6c2d 7570 6c6f 6164 2053 6572 7669 6365 l-upload Service │ │ │ -000e05a0: 202d 2045 6e61 626c 6520 7365 7276 6963 - Enable servic │ │ │ -000e05b0: 6520 7379 7374 656d 642d 6a6f 7572 6e61 e systemd-journa │ │ │ -000e05c0: 6c2d 7570 6c6f 6164 0a20 2062 6c6f 636b l-upload. block │ │ │ -000e05d0: 3a0a 0a20 202d 206e 616d 653a 2047 6174 :.. - name: Gat │ │ │ -000e05e0: 6865 7220 7468 6520 7061 636b 6167 6520 her the package │ │ │ -000e05f0: 6661 6374 730a 2020 2020 616e 7369 626c facts. ansibl │ │ │ -000e0600: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -000e0610: 655f 6661 6374 733a 0a20 2020 2020 206d e_facts:. m │ │ │ -000e0620: 616e 6167 6572 3a20 6175 746f 0a0a 2020 anager: auto.. │ │ │ -000e0630: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073 - name: Enable s │ │ │ -000e0640: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75 ystemd-journal-u │ │ │ -000e0650: 706c 6f61 6420 5365 7276 6963 6520 2d20 pload Service - │ │ │ -000e0660: 456e 6162 6c65 2053 6572 7669 6365 2073 Enable Service s │ │ │ -000e0670: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75 ystemd-journal-u │ │ │ -000e0680: 706c 6f61 640a 2020 2020 616e 7369 626c pload. ansibl │ │ │ -000e0690: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ -000e06a0: 643a 0a20 2020 2020 206e 616d 653a 2073 d:. name: s │ │ │ -000e06b0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75 ystemd-journal-u │ │ │ -000e06c0: 706c 6f61 640a 2020 2020 2020 656e 6162 pload. enab │ │ │ -000e06d0: 6c65 643a 2074 7275 650a 2020 2020 2020 led: true. │ │ │ -000e06e0: 7374 6174 653a 2073 7461 7274 6564 0a20 state: started. │ │ │ -000e06f0: 2020 2020 206d 6173 6b65 643a 2066 616c masked: fal │ │ │ -000e0700: 7365 0a20 2020 2077 6865 6e3a 0a20 2020 se. when:. │ │ │ -000e0710: 202d 2027 2273 7973 7465 6d64 2d6a 6f75 - '"systemd-jou │ │ │ -000e0720: 726e 616c 2d72 656d 6f74 6522 2069 6e20 rnal-remote" in │ │ │ -000e0730: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -000e0740: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -000e0750: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ -000e0760: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -000e0770: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -000e0780: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -000e0790: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -000e07a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -000e07b0: 6564 0a20 202d 2073 6572 7669 6365 5f73 ed. - service_s │ │ │ -000e07c0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75 ystemd-journal-u │ │ │ -000e07d0: 706c 6f61 645f 656e 6162 6c65 640a 2020 pload_enabled. │ │ │ -000e07e0: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -000e07f0: 655f 626c 6f63 6b0a 2020 7768 656e 3a0a e_block. when:. │ │ │ -000e0800: 2020 2d20 2722 6c69 6e75 782d 6261 7365 - '"linux-base │ │ │ -000e0810: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -000e0820: 7473 2e70 6163 6b61 6765 7327 0a20 202d ts.packages'. - │ │ │ -000e0830: 2028 2061 6e73 6962 6c65 5f76 6972 7475 ( ansible_virtu │ │ │ -000e0840: 616c 697a 6174 696f 6e5f 7479 7065 206e alization_type n │ │ │ -000e0850: 6f74 2069 6e20 5b22 646f 636b 6572 222c ot in ["docker", │ │ │ -000e0860: 2022 6c78 6322 2c20 226f 7065 6e76 7a22 "lxc", "openvz" │ │ │ -000e0870: 2c20 2270 6f64 6d61 6e22 2c20 2263 6f6e , "podman", "con │ │ │ -000e0880: 7461 696e 6572 225d 0a20 2020 2061 6e64 tainer"]. and │ │ │ -000e0890: 2022 7379 7374 656d 642d 6a6f 7572 6e61 "systemd-journa │ │ │ -000e08a0: 6c2d 7265 6d6f 7465 2220 696e 2061 6e73 l-remote" in ans │ │ │ -000e08b0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -000e08c0: 6765 7320 290a 3c2f 636f 6465 3e3c 2f70 ges ).


Complexity: │ │ │ +000dfff0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000e0010: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000e0030: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000e0060: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000e0070: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000e0080: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +000e00a0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000e00b0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000e00c0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +000e00d0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +000e00e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000e00f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000e0100: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000e0110: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000e0120: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000e0130: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000e0140: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +000e0150: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000e0160: 6c6f 6164 5f65 6e61 626c 6564 0a0a 2d20  load_enabled..- 
│ │ │ +000e0170: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ +000e0180: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000e0190: 6f61 6420 5365 7276 6963 6520 2d20 456e  oad Service - En
│ │ │ +000e01a0: 6162 6c65 2073 6572 7669 6365 2073 7973  able service sys
│ │ │ +000e01b0: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000e01c0: 6f61 640a 2020 626c 6f63 6b3a 0a0a 2020  oad.  block:..  
│ │ │ +000e01d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000e01e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000e01f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +000e0200: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ +000e0210: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ +000e0220: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ +000e0230: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ +000e0240: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000e0250: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +000e0260: 6520 5365 7276 6963 6520 7379 7374 656d  e Service system
│ │ │ +000e0270: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000e0280: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +000e0290: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +000e02a0: 2020 2020 6e61 6d65 3a20 7379 7374 656d      name: system
│ │ │ +000e02b0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000e02c0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +000e02d0: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +000e02e0: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +000e02f0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +000e0300: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +000e0310: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000e0320: 7265 6d6f 7465 2220 696e 2061 6e73 6962  remote" in ansib
│ │ │ +000e0330: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000e0340: 7327 0a20 2074 6167 733a 0a20 202d 2065  s'.  tags:.  - e
│ │ │ +000e0350: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000e0360: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000e0370: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000e0380: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000e0390: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000e03a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000e03b0: 2d20 7365 7276 6963 655f 7379 7374 656d  - service_system
│ │ │ +000e03c0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000e03d0: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ +000e03e0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +000e03f0: 636b 0a20 2077 6865 6e3a 0a20 202d 2027  ck.  when:.  - '
│ │ │ +000e0400: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000e0410: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000e0420: 636b 6167 6573 270a 2020 2d20 2820 616e  ckages'.  - ( an
│ │ │ +000e0430: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ +000e0440: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ +000e0450: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ +000e0460: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ +000e0470: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ +000e0480: 7222 5d0a 2020 2020 616e 6420 2273 7973  r"].    and "sys
│ │ │ +000e0490: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000e04a0: 6f74 6522 2069 6e20 616e 7369 626c 655f  ote" in ansible_
│ │ │ +000e04b0: 6661 6374 732e 7061 636b 6167 6573 2029  facts.packages )
│ │ │ +000e04c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +000e0580: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000e0590: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +000e0660: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000e0670: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000e06c0: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ +000e06d0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000e06e0: 6c6f 6164 0a0a 636c 6173 7320 656e 6162  load..class enab
│ │ │ +000e06f0: 6c65 5f73 7973 7465 6d64 2d6a 6f75 726e  le_systemd-journ
│ │ │ +000e0700: 616c 2d75 706c 6f61 6420 7b0a 2020 7365  al-upload {.  se
│ │ │ +000e0710: 7276 6963 6520 7b27 7379 7374 656d 642d  rvice {'systemd-
│ │ │ +000e0720: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 273a  journal-upload':
│ │ │ +000e0730: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +000e0740: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ +000e0750: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ +000e0760: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ +000e0820: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000e0830: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000e0840: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000e0880: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +000e0890: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +000e08a0: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ +000e08b0: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000e08c0: 6f61 6422 5d0a 3c2f 636f 6465 3e3c 2f70  oad"].

Remediation │ │ │ -000e17b0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000e17c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000e1810: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -000e1820: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -000e1830: 6564 203d 205b 2273 7973 7465 6d64 2d6a  ed = ["systemd-j
│ │ │ -000e1840: 6f75 726e 616c 6422 5d0a 3c2f 636f 6465  ournald"].
Remedi │ │ │ -000e1900: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000e1910: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000e1920: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000e1950: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +000e0640: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000e0650: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000e0690: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000e06a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000e19c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000e19e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000e1a10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000e1a30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000e19a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000e19b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000e19f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000e1a00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000e1a50: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a enable_systemd-j │ │ │ -000e1a60: 6f75 726e 616c 640a 0a63 6c61 7373 2065 ournald..class e │ │ │ -000e1a70: 6e61 626c 655f 7379 7374 656d 642d 6a6f nable_systemd-jo │ │ │ -000e1a80: 7572 6e61 6c64 207b 0a20 2073 6572 7669 urnald {. servi │ │ │ -000e1a90: 6365 207b 2773 7973 7465 6d64 2d6a 6f75 ce {'systemd-jou │ │ │ -000e1aa0: 726e 616c 6427 3a0a 2020 2020 656e 6162 rnald':. enab │ │ │ -000e1ab0: 6c65 203d 2667 743b 2074 7275 652c 0a20 le => true,. │ │ │ -000e1ac0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -000e1ad0: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d 'running',. }.} │ │ │ -000e1ae0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Ans │ │ │ -000e1ba0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000e1bb0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000e1c80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e1c90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e1ce0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000e1cf0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000e1d00: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000e1d10: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000e1d20: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000e1d30: 4e49 5354 2d38 3030 2d35 332d 5343 2d32  NIST-800-53-SC-2
│ │ │ -000e1d40: 340a 2020 2d20 656e 6162 6c65 5f73 7472  4.  - enable_str
│ │ │ -000e1d50: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000e1d60: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000e1d70: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000e1d80: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000e1d90: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000e1da0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -000e1db0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ -000e1dc0: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ -000e1dd0: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ -000e1de0: 642d 6a6f 7572 6e61 6c64 2053 6572 7669  d-journald Servi
│ │ │ -000e1df0: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ -000e1e00: 6963 6520 7379 7374 656d 642d 6a6f 7572  ice systemd-jour
│ │ │ -000e1e10: 6e61 6c64 0a20 2062 6c6f 636b 3a0a 0a20  nald.  block:.. 
│ │ │ -000e1e20: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -000e1e30: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -000e1e40: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -000e1e50: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -000e1e60: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -000e1e70: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -000e1e80: 6d65 3a20 456e 6162 6c65 2073 7973 7465  me: Enable syste
│ │ │ -000e1e90: 6d64 2d6a 6f75 726e 616c 6420 5365 7276  md-journald Serv
│ │ │ -000e1ea0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -000e1eb0: 7669 6365 2073 7973 7465 6d64 2d6a 6f75  vice systemd-jou
│ │ │ -000e1ec0: 726e 616c 640a 2020 2020 616e 7369 626c  rnald.    ansibl
│ │ │ -000e1ed0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -000e1ee0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -000e1ef0: 7973 7465 6d64 2d6a 6f75 726e 616c 640a  ystemd-journald.
│ │ │ -000e1f00: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ -000e1f10: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ -000e1f20: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ -000e1f30: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ -000e1f40: 2077 6865 6e3a 0a20 2020 202d 2027 2273   when:.    - '"s
│ │ │ -000e1f50: 7973 7465 6d64 2220 696e 2061 6e73 6962  ystemd" in ansib
│ │ │ -000e1f60: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000e1f70: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -000e1f80: 4953 542d 3830 302d 3533 2d53 432d 3234  IST-800-53-SC-24
│ │ │ -000e1f90: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000e1fa0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000e1fb0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000e1fc0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000e1fd0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000e1fe0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000e1ff0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -000e2000: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -000e2010: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -000e2020: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -000e2030: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -000e2040: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -000e2050: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000e2060: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

low< │ │ │ +000e1890: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000e18e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -000e1c60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e1c70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e1cb0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e1cc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +000e1850: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000e1870: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000e18c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000e18d0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +000e1900: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000e1910: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000e1920: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +000e1930: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +000e1940: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +000e1950: 432d 3234 0a20 202d 2065 6e61 626c 655f  C-24.  - enable_
│ │ │ +000e1960: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +000e1970: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +000e1980: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +000e1990: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +000e19a0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +000e19b0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +000e19c0: 6963 655f 7379 7374 656d 642d 6a6f 7572  ice_systemd-jour
│ │ │ +000e19d0: 6e61 6c64 5f65 6e61 626c 6564 0a0a 2d20  nald_enabled..- 
│ │ │ +000e19e0: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ +000e19f0: 7465 6d64 2d6a 6f75 726e 616c 6420 5365  temd-journald Se
│ │ │ +000e1a00: 7276 6963 6520 2d20 456e 6162 6c65 2073  rvice - Enable s
│ │ │ +000e1a10: 6572 7669 6365 2073 7973 7465 6d64 2d6a  ervice systemd-j
│ │ │ +000e1a20: 6f75 726e 616c 640a 2020 626c 6f63 6b3a  ournald.  block:
│ │ │ +000e1a30: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +000e1a40: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000e1a50: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +000e1a60: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000e1a70: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +000e1a80: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +000e1a90: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ +000e1aa0: 7374 656d 642d 6a6f 7572 6e61 6c64 2053  stemd-journald S
│ │ │ +000e1ab0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +000e1ac0: 5365 7276 6963 6520 7379 7374 656d 642d  Service systemd-
│ │ │ +000e1ad0: 6a6f 7572 6e61 6c64 0a20 2020 2061 6e73  journald.    ans
│ │ │ +000e1ae0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +000e1af0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +000e1b00: 3a20 7379 7374 656d 642d 6a6f 7572 6e61  : systemd-journa
│ │ │ +000e1b10: 6c64 0a20 2020 2020 2065 6e61 626c 6564  ld.      enabled
│ │ │ +000e1b20: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ +000e1b30: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ +000e1b40: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ +000e1b50: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ +000e1b60: 2722 7379 7374 656d 6422 2069 6e20 616e  '"systemd" in an
│ │ │ +000e1b70: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000e1b80: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000e1b90: 2d20 4e49 5354 2d38 3030 2d35 332d 5343  - NIST-800-53-SC
│ │ │ +000e1ba0: 2d32 340a 2020 2d20 656e 6162 6c65 5f73  -24.  - enable_s
│ │ │ +000e1bb0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000e1bc0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000e1bd0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000e1be0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000e1bf0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000e1c00: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +000e1c10: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ +000e1c20: 616c 645f 656e 6162 6c65 640a 2020 2d20  ald_enabled.  - 
│ │ │ +000e1c30: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +000e1c40: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +000e1c50: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +000e1c60: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +000e1c70: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +000e1d30: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000e1d40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000e1dc0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000e1dd0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000e1df0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000e1e00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000e1e20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000e1e40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000e1e70: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +000e1e80: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ +000e1e90: 6e61 6c64 0a0a 636c 6173 7320 656e 6162  nald..class enab
│ │ │ +000e1ea0: 6c65 5f73 7973 7465 6d64 2d6a 6f75 726e  le_systemd-journ
│ │ │ +000e1eb0: 616c 6420 7b0a 2020 7365 7276 6963 6520  ald {.  service 
│ │ │ +000e1ec0: 7b27 7379 7374 656d 642d 6a6f 7572 6e61  {'systemd-journa
│ │ │ +000e1ed0: 6c64 273a 0a20 2020 2065 6e61 626c 6520  ld':.    enable 
│ │ │ +000e1ee0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000e1ef0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000e1f00: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000e1fc0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000e1fd0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000e1fe0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000e1ff0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e2000: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e2010: 7365 2220 6964 3d22 6964 3239 3022 3e3c se" id="id290">< │ │ │ +000e2020: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000e2030: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000e2040: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000e2050: 2273 7973 7465 6d64 2d6a 6f75 726e 616c "systemd-journal │ │ │ +000e2060: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265 d"].
Remediation │ │ │ -000efbe0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000efbf0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -000efc50: 616d 6520 3d20 2272 7379 736c 6f67 220a  ame = "rsyslog".
│ │ │ -000efc60: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -000efd20: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -000efd30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000efd40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000efde0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000efe30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000efdc0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000efdf0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000efe10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000efe20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000efe40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000efe50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000efe70: 7564 6520 696e 7374 616c 6c5f 7273 7973  ude install_rsys
│ │ │ -000efe80: 6c6f 670a 0a63 6c61 7373 2069 6e73 7461  log..class insta
│ │ │ -000efe90: 6c6c 5f72 7379 736c 6f67 207b 0a20 2070  ll_rsyslog {.  p
│ │ │ -000efea0: 6163 6b61 6765 207b 2027 7273 7973 6c6f  ackage { 'rsyslo
│ │ │ -000efeb0: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ -000efec0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -000efed0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000efee0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000eff90: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000effa0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000effb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000effc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000effd0: 7365 2220 6964 3d22 6964 3331 3622 3e3c se" id="id316">< │ │ │ -000effe0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000efff0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000f0000: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000f0010: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000f0020: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000f0030: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000f0040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000f0080: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000f0090: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000f00b0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000f00c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -000f00e0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000f00f0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -000f0100: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000f0110: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000f0120: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000f0130: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -000f0140: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000f0150: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000f0160: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000f0170: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000f0180: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000f0190: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000f01a0: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -000f01b0: 675f 696e 7374 616c 6c65 640a 0a2d 206e  g_installed..- n
│ │ │ -000f01c0: 616d 653a 2045 6e73 7572 6520 7273 7973  ame: Ensure rsys
│ │ │ -000f01d0: 6c6f 6720 6973 2069 6e73 7461 6c6c 6564  log is installed
│ │ │ -000f01e0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -000f01f0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -000f0200: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ -000f0210: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -000f0220: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -000f0230: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -000f0240: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -000f0250: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -000f0260: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000f0270: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -000f0280: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000f0290: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000f02a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000f02b0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000f02c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000f02d0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000f02e0: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ -000f02f0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000efbe0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +000efbf0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +000efc80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000efca0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000efcb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000efcc0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000efcd0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000efcf0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000efd30: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000efd40: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000efd50: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000efd60: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000efd70: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000efd80: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +000efd90: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000efda0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000efdb0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000efdc0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000efdd0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000efde0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000efdf0: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +000efe00: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +000efe10: 3a20 456e 7375 7265 2072 7379 736c 6f67  : Ensure rsyslog
│ │ │ +000efe20: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000efe30: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000efe40: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000efe50: 653a 2072 7379 736c 6f67 0a20 2020 2073  e: rsyslog.    s
│ │ │ +000efe60: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000efe70: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000efe80: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000efe90: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000efea0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +000efeb0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +000efec0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000efed0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000efee0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000efef0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000eff00: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000eff10: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000eff20: 640a 2020 2d20 7061 636b 6167 655f 7273  d.  - package_rs
│ │ │ +000eff30: 7973 6c6f 675f 696e 7374 616c 6c65 640a  yslog_installed.
│ │ │ +000eff40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000efff0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000f0000: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000f00a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000f0140: 636c 7564 6520 696e 7374 616c 6c5f 7273  clude install_rs
│ │ │ +000f0150: 7973 6c6f 670a 0a63 6c61 7373 2069 6e73  yslog..class ins
│ │ │ +000f0160: 7461 6c6c 5f72 7379 736c 6f67 207b 0a20  tall_rsyslog {. 
│ │ │ +000f0170: 2070 6163 6b61 6765 207b 2027 7273 7973   package { 'rsys
│ │ │ +000f0180: 6c6f 6727 3a0a 2020 2020 656e 7375 7265  log':.    ensure
│ │ │ +000f0190: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +000f01a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +000f0260: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000f0270: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000f0280: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000f02c0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000f02d0: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ +000f02e0: 6c6f 6722 0a76 6572 7369 6f6e 203d 2022  log".version = "
│ │ │ +000f02f0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 000f0300: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -000f1570: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000f1580: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
│ │ │ +000f0090: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000f00c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000f00d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000f0110: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000f0120: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -000f17a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000f17b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000f1800: 696e 636c 7564 6520 656e 6162 6c65 5f72  include enable_r
│ │ │ -000f1810: 7379 736c 6f67 0a0a 636c 6173 7320 656e  syslog..class en
│ │ │ -000f1820: 6162 6c65 5f72 7379 736c 6f67 207b 0a20  able_rsyslog {. 
│ │ │ -000f1830: 2073 6572 7669 6365 207b 2772 7379 736c   service {'rsysl
│ │ │ -000f1840: 6f67 273a 0a20 2020 2065 6e61 626c 6520  og':.    enable 
│ │ │ -000f1850: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -000f1860: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -000f1870: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -000f1930: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000f1940: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disru │ │ │ -000f1780: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000f1790: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000f17d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000f17e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -000f19e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f19f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000f1a40: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000f1a80: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000f1a90: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000f1aa0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000f1ab0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000f1ac0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000f1ad0: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -000f1ae0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000f1af0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -000f1b00: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000f1b10: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000f1b20: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000f1b30: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000f1b40: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000f1b50: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000f1b60: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ -000f1b70: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -000f1b80: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ -000f1b90: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -000f1ba0: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ -000f1bb0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -000f1bc0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000f1bd0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000f1be0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000f1bf0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ -000f1c00: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ -000f1c10: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ -000f1c20: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ -000f1c30: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000f1c40: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ -000f1c50: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -000f1c60: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -000f1c70: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ -000f1c80: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -000f1c90: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -000f1ca0: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -000f1cb0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -000f1cc0: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -000f1cd0: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ -000f1ce0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000f1cf0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -000f1d00: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -000f1d10: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -000f1d20: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -000f1d30: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000f1d40: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000f1d50: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000f1d60: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000f1d70: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000f1d80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000f1d90: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ -000f1da0: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ -000f1db0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -000f1dc0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -000f1dd0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -000f1de0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000f1df0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


< │ │ │ +000f1640: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f1650: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -000f19d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000f1a00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000f1a10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000f1a50: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000f1a60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +000f1610: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000f1630: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000f1660: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000f1680: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000f16c0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000f16d0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000f16e0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000f16f0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000f1700: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000f1710: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +000f1720: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +000f1730: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000f1740: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000f1750: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000f1760: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000f1770: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000f1780: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000f1790: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +000f17a0: 7379 736c 6f67 5f65 6e61 626c 6564 0a0a  syslog_enabled..
│ │ │ +000f17b0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ +000f17c0: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ +000f17d0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +000f17e0: 7273 7973 6c6f 670a 2020 626c 6f63 6b3a  rsyslog.  block:
│ │ │ +000f17f0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +000f1800: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000f1810: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +000f1820: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000f1830: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +000f1840: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +000f1850: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ +000f1860: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ +000f1870: 456e 6162 6c65 2053 6572 7669 6365 2072  Enable Service r
│ │ │ +000f1880: 7379 736c 6f67 0a20 2020 2061 6e73 6962  syslog.    ansib
│ │ │ +000f1890: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +000f18a0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +000f18b0: 7273 7973 6c6f 670a 2020 2020 2020 656e  rsyslog.      en
│ │ │ +000f18c0: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +000f18d0: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +000f18e0: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +000f18f0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +000f1900: 2020 202d 2027 2272 7379 736c 6f67 2220     - '"rsyslog" 
│ │ │ +000f1910: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000f1920: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +000f1930: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000f1940: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ +000f1950: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +000f1960: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +000f1970: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000f1980: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000f1990: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000f19a0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000f19b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000f19c0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +000f19d0: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ +000f19e0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +000f19f0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +000f1a00: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +000f1a10: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +000f1a20: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +000f1a40: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000f1ae0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000f1af0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000f1b00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +000f1b80: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000f1bb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000f1bd0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000f1be0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000f1c00: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000f1c20: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000f1c30: 6465 2065 6e61 626c 655f 7273 7973 6c6f  de enable_rsyslo
│ │ │ +000f1c40: 670a 0a63 6c61 7373 2065 6e61 626c 655f  g..class enable_
│ │ │ +000f1c50: 7273 7973 6c6f 6720 7b0a 2020 7365 7276  rsyslog {.  serv
│ │ │ +000f1c60: 6963 6520 7b27 7273 7973 6c6f 6727 3a0a  ice {'rsyslog':.
│ │ │ +000f1c70: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +000f1c80: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ +000f1c90: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ +000f1ca0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +000f1cb0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000f1d60: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +000f1d70: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000f1d80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +000f1dc0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +000f1dd0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +000f1de0: 656e 6162 6c65 6420 3d20 5b22 7273 7973  enabled = ["rsys
│ │ │ +000f1df0: 6c6f 6722 5d0a 3c2f 636f 6465 3e3c 2f70  log"].

R │ │ │ -000fba80: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000fba90: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000fbaa0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000fbab0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000fbae0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -000fbaf0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000fbb00: 2269 7074 6162 6c65 732d 7065 7273 6973  "iptables-persis
│ │ │ -000fbb10: 7465 6e74 220a 7665 7273 696f 6e20 3d20  tent".version = 
│ │ │ -000fbb20: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000fbbe0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000fbbf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000fbc70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000fbc90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000fbce0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000fbd10: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000fbd30: 6c5f 6970 7461 626c 6573 2d70 6572 7369  l_iptables-persi
│ │ │ -000fbd40: 7374 656e 740a 0a63 6c61 7373 2069 6e73  stent..class ins
│ │ │ -000fbd50: 7461 6c6c 5f69 7074 6162 6c65 732d 7065  tall_iptables-pe
│ │ │ -000fbd60: 7273 6973 7465 6e74 207b 0a20 2070 6163  rsistent {.  pac
│ │ │ -000fbd70: 6b61 6765 207b 2027 6970 7461 626c 6573  kage { 'iptables
│ │ │ -000fbd80: 2d70 6572 7369 7374 656e 7427 3a0a 2020  -persistent':.  
│ │ │ -000fbd90: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000fbda0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -000fbdb0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000fbdc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000fbe70: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000fbe80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ -000fbc80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000fbca0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000fbcf0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000fbd00: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -000fbf00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000fbf20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000fbf70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -000fbfc0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -000fbfd0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -000fbfe0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -000fbff0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -000fc000: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000fc010: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000fc020: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000fc030: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000fc040: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000fc050: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000fc060: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ -000fc070: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ -000fc080: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -000fc090: 653a 2045 6e73 7572 6520 6970 7461 626c  e: Ensure iptabl
│ │ │ -000fc0a0: 6573 2d70 6572 7369 7374 656e 7420 6973  es-persistent is
│ │ │ -000fc0b0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -000fc0c0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -000fc0d0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -000fc0e0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -000fc0f0: 656e 740a 2020 2020 7374 6174 653a 2070  ent.    state: p
│ │ │ -000fc100: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -000fc110: 2269 7074 6162 6c65 7322 2069 6e20 616e  "iptables" in an
│ │ │ -000fc120: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000fc130: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000fc140: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000fc150: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000fc160: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -000fc170: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -000fc180: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -000fc190: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -000fc1a0: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ -000fc1b0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -000fc1c0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
low
Disr │ │ │ -000fbf30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000fbf40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000fbf80: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000fbf90: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +000fbb30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000fbbd0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000fbbe0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +000fbbf0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +000fbc00: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000fbc10: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ +000fbc20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000fbc30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000fbc40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000fbc50: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000fbc60: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000fbc70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000fbc80: 2070 6163 6b61 6765 5f69 7074 6162 6c65   package_iptable
│ │ │ +000fbc90: 732d 7065 7273 6973 7465 6e74 5f69 6e73  s-persistent_ins
│ │ │ +000fbca0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000fbcb0: 456e 7375 7265 2069 7074 6162 6c65 732d  Ensure iptables-
│ │ │ +000fbcc0: 7065 7273 6973 7465 6e74 2069 7320 696e  persistent is in
│ │ │ +000fbcd0: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +000fbce0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +000fbcf0: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ +000fbd00: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000fbd10: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +000fbd20: 656e 740a 2020 7768 656e 3a20 2722 6970  ent.  when: '"ip
│ │ │ +000fbd30: 7461 626c 6573 2220 696e 2061 6e73 6962  tables" in ansib
│ │ │ +000fbd40: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000fbd50: 7327 0a20 2074 6167 733a 0a20 202d 2065  s'.  tags:.  - e
│ │ │ +000fbd60: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000fbd70: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000fbd80: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000fbd90: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000fbda0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000fbdb0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000fbdc0: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ +000fbdd0: 6573 2d70 6572 7369 7374 656e 745f 696e  es-persistent_in
│ │ │ +000fbde0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000fbdf0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +000fbea0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +000fbeb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +000fbf30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +000fbfc0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000fbb20: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000fbb50: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000fbb60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000fbba0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000fbbb0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +000fbf40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000fbf50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +000fbf90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000fbfa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +000fbfe0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000fbff0: 7374 616c 6c5f 6970 7461 626c 6573 2d70  stall_iptables-p
│ │ │ +000fc000: 6572 7369 7374 656e 740a 0a63 6c61 7373  ersistent..class
│ │ │ +000fc010: 2069 6e73 7461 6c6c 5f69 7074 6162 6c65   install_iptable
│ │ │ +000fc020: 732d 7065 7273 6973 7465 6e74 207b 0a20  s-persistent {. 
│ │ │ +000fc030: 2070 6163 6b61 6765 207b 2027 6970 7461   package { 'ipta
│ │ │ +000fc040: 626c 6573 2d70 6572 7369 7374 656e 7427  bles-persistent'
│ │ │ +000fc050: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +000fc060: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +000fc070: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +000fc130: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +000fc140: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +000fc150: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +000fc1a0: 6e61 6d65 203d 2022 6970 7461 626c 6573  name = "iptables
│ │ │ +000fc1b0: 2d70 6572 7369 7374 656e 7422 0a76 6572  -persistent".ver
│ │ │ +000fc1c0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediati │ │ │ -000fcef0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000fcf00: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000fcf10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000fcf60: 0a6e 616d 6520 3d20 2269 7074 6162 6c65  .name = "iptable
│ │ │ -000fcf70: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │ -000fcf80: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000fd040: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000fd050: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000fd120: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000fd130: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000fd180: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f69  nclude install_i
│ │ │ -000fd190: 7074 6162 6c65 730a 0a63 6c61 7373 2069  ptables..class i
│ │ │ -000fd1a0: 6e73 7461 6c6c 5f69 7074 6162 6c65 7320  nstall_iptables 
│ │ │ -000fd1b0: 7b0a 2020 7061 636b 6167 6520 7b20 2769  {.  package { 'i
│ │ │ -000fd1c0: 7074 6162 6c65 7327 3a0a 2020 2020 656e  ptables':.    en
│ │ │ -000fd1d0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000fd1e0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000fd2a0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000fd2b0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:low
Disrup │ │ │ -000fd100: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000fd110: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000fd150: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000fd160: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000fd350: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000fd360: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000fd3b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000fd3f0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000fd400: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000fd410: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000fd420: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000fd430: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000fd440: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000fd450: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -000fd460: 2d31 2e34 2e31 0a20 202d 2065 6e61 626c  -1.4.1.  - enabl
│ │ │ -000fd470: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000fd480: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000fd490: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000fd4a0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000fd4b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000fd4c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000fd4d0: 636b 6167 655f 6970 7461 626c 6573 5f69  ckage_iptables_i
│ │ │ -000fd4e0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -000fd4f0: 3a20 456e 7375 7265 2069 7074 6162 6c65  : Ensure iptable
│ │ │ -000fd500: 7320 6973 2069 6e73 7461 6c6c 6564 0a20  s is installed. 
│ │ │ -000fd510: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000fd520: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -000fd530: 6d65 3a20 6970 7461 626c 6573 0a20 2020  me: iptables.   
│ │ │ -000fd540: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -000fd550: 2020 7768 656e 3a20 2820 226c 696e 7578    when: ( "linux
│ │ │ -000fd560: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -000fd570: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -000fd580: 2029 0a20 2074 6167 733a 0a20 202d 204e   ).  tags:.  - N
│ │ │ -000fd590: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -000fd5a0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -000fd5b0: 6571 2d31 2e34 2e31 0a20 202d 2065 6e61  eq-1.4.1.  - ena
│ │ │ -000fd5c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000fd5d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000fd5e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000fd5f0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000fd600: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000fd610: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000fd620: 7061 636b 6167 655f 6970 7461 626c 6573  package_iptables
│ │ │ -000fd630: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000fcf80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +000fd010: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ -000fd340: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000fd370: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000fd380: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000fd3c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000fd3d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +000fcf90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000fcfa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +000fcfe0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000fcff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +000fd030: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000fd040: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000fd050: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000fd060: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000fd070: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000fd080: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000fd090: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +000fd0a0: 492d 4453 532d 5265 712d 312e 342e 310a  I-DSS-Req-1.4.1.
│ │ │ +000fd0b0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000fd0c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000fd0d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000fd0e0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000fd0f0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000fd100: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000fd110: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ +000fd120: 7074 6162 6c65 735f 696e 7374 616c 6c65  ptables_installe
│ │ │ +000fd130: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +000fd140: 6520 6970 7461 626c 6573 2069 7320 696e  e iptables is in
│ │ │ +000fd150: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +000fd160: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +000fd170: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ +000fd180: 6162 6c65 730a 2020 2020 7374 6174 653a  ables.    state:
│ │ │ +000fd190: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +000fd1a0: 2028 2022 6c69 6e75 782d 6261 7365 2220   ( "linux-base" 
│ │ │ +000fd1b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000fd1c0: 2e70 6163 6b61 6765 7320 290a 2020 7461  .packages ).  ta
│ │ │ +000fd1d0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +000fd1e0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000fd1f0: 5043 492d 4453 532d 5265 712d 312e 342e  PCI-DSS-Req-1.4.
│ │ │ +000fd200: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +000fd210: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000fd220: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000fd230: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000fd240: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000fd250: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000fd260: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000fd270: 5f69 7074 6162 6c65 735f 696e 7374 616c  _iptables_instal
│ │ │ +000fd280: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +000fd340: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000fd350: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +000fd3d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000fd3f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000fd440: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000fd470: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +000fd490: 6c5f 6970 7461 626c 6573 0a0a 636c 6173  l_iptables..clas
│ │ │ +000fd4a0: 7320 696e 7374 616c 6c5f 6970 7461 626c  s install_iptabl
│ │ │ +000fd4b0: 6573 207b 0a20 2070 6163 6b61 6765 207b  es {.  package {
│ │ │ +000fd4c0: 2027 6970 7461 626c 6573 273a 0a20 2020   'iptables':.   
│ │ │ +000fd4d0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +000fd4e0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +000fd4f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +000fd5b0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000fd5c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +000fd610: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +000fd620: 3d20 2269 7074 6162 6c65 7322 0a76 6572  = "iptables".ver
│ │ │ +000fd630: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Rem │ │ │ -000fe250: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000fe260: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000fe270: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +000fd3e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000fd400: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000fd450: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000fd460: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -000fe2f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000fe320: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000fe340: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000fe350: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000fe370: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -000fe380: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -000fe3a0: 6c75 6465 2072 656d 6f76 655f 6970 7461  lude remove_ipta
│ │ │ -000fe3b0: 626c 6573 2d70 6572 7369 7374 656e 740a  bles-persistent.
│ │ │ -000fe3c0: 0a63 6c61 7373 2072 656d 6f76 655f 6970  .class remove_ip
│ │ │ -000fe3d0: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ -000fe3e0: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -000fe3f0: 2769 7074 6162 6c65 732d 7065 7273 6973  'iptables-persis
│ │ │ -000fe400: 7465 6e74 273a 0a20 2020 2065 6e73 7572  tent':.    ensur
│ │ │ -000fe410: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -000fe420: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000fe430: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000fe4e0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000fe4f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000fe500: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000fe510: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000fe520: 7365 2220 6964 3d22 6964 3334 3722 3e3c se" id="id347">< │ │ │ -000fe530: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000fe540: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000fe550: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000fe560: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000fe570: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000fe580: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000fe590: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000fe5d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000fe5e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000fe600: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -000fe610: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -000fe630: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -000fe640: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -000fe650: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -000fe660: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -000fe670: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -000fe680: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -000fe690: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -000fe6a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -000fe6b0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -000fe6c0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -000fe6d0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -000fe6e0: 6167 655f 6970 7461 626c 6573 2d70 6572 age_iptables-per │ │ │ -000fe6f0: 7369 7374 656e 745f 7265 6d6f 7665 640a sistent_removed. │ │ │ -000fe700: 0a2d 206e 616d 653a 2027 5265 6d6f 7665 .- name: 'Remove │ │ │ -000fe710: 2069 7074 6162 6c65 732d 7065 7273 6973 iptables-persis │ │ │ -000fe720: 7465 6e74 2050 6163 6b61 6765 3a20 456e tent Package: En │ │ │ -000fe730: 7375 7265 2069 7074 6162 6c65 732d 7065 sure iptables-pe │ │ │ -000fe740: 7273 6973 7465 6e74 2069 7320 7265 6d6f rsistent is remo │ │ │ -000fe750: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -000fe760: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -000fe770: 2020 2020 6e61 6d65 3a20 6970 7461 626c name: iptabl │ │ │ -000fe780: 6573 2d70 6572 7369 7374 656e 740a 2020 es-persistent. │ │ │ -000fe790: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -000fe7a0: 2020 7768 656e 3a20 2722 7566 7722 2069 when: '"ufw" i │ │ │ -000fe7b0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -000fe7c0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ -000fe7d0: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -000fe7e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -000fe7f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -000fe800: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -000fe810: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -000fe820: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -000fe830: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -000fe840: 655f 6970 7461 626c 6573 2d70 6572 7369 e_iptables-persi │ │ │ -000fe850: 7374 656e 745f 7265 6d6f 7665 640a 3c2f stent_removed. │ │ │ +000fe270: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +000fe310: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000fe360: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +000fe3a0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000fe3b0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000fe3c0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000fe3d0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000fe3e0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +000fe3f0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000fe400: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000fe410: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000fe420: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000fe430: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000fe440: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000fe450: 2070 6163 6b61 6765 5f69 7074 6162 6c65   package_iptable
│ │ │ +000fe460: 732d 7065 7273 6973 7465 6e74 5f72 656d  s-persistent_rem
│ │ │ +000fe470: 6f76 6564 0a0a 2d20 6e61 6d65 3a20 2752  oved..- name: 'R
│ │ │ +000fe480: 656d 6f76 6520 6970 7461 626c 6573 2d70  emove iptables-p
│ │ │ +000fe490: 6572 7369 7374 656e 7420 5061 636b 6167  ersistent Packag
│ │ │ +000fe4a0: 653a 2045 6e73 7572 6520 6970 7461 626c  e: Ensure iptabl
│ │ │ +000fe4b0: 6573 2d70 6572 7369 7374 656e 7420 6973  es-persistent is
│ │ │ +000fe4c0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +000fe4d0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000fe4e0: 6167 653a 0a20 2020 206e 616d 653a 2069  age:.    name: i
│ │ │ +000fe4f0: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +000fe500: 6e74 0a20 2020 2073 7461 7465 3a20 6162  nt.    state: ab
│ │ │ +000fe510: 7365 6e74 0a20 2077 6865 6e3a 2027 2275  sent.  when: '"u
│ │ │ +000fe520: 6677 2220 696e 2061 6e73 6962 6c65 5f66  fw" in ansible_f
│ │ │ +000fe530: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000fe540: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +000fe550: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000fe560: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000fe570: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000fe580: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000fe590: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000fe5a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000fe5b0: 6163 6b61 6765 5f69 7074 6162 6c65 732d  ackage_iptables-
│ │ │ +000fe5c0: 7065 7273 6973 7465 6e74 5f72 656d 6f76  persistent_remov
│ │ │ +000fe5d0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000fe5e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +000fe690: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000fe6a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ +000fe2f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000fe320: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000fe340: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000fe350: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000fe370: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +000fe380: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +000fe720: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000fe740: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000fe790: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +000fe7c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +000fe7e0: 655f 6970 7461 626c 6573 2d70 6572 7369  e_iptables-persi
│ │ │ +000fe7f0: 7374 656e 740a 0a63 6c61 7373 2072 656d  stent..class rem
│ │ │ +000fe800: 6f76 655f 6970 7461 626c 6573 2d70 6572  ove_iptables-per
│ │ │ +000fe810: 7369 7374 656e 7420 7b0a 2020 7061 636b  sistent {.  pack
│ │ │ +000fe820: 6167 6520 7b20 2769 7074 6162 6c65 732d  age { 'iptables-
│ │ │ +000fe830: 7065 7273 6973 7465 6e74 273a 0a20 2020  persistent':.   
│ │ │ +000fe840: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +000fe850: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Reme │ │ │ -0014a080: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0014a090: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0014a0a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -0014a0f0: 6765 735d 5d0a 6e61 6d65 203d 2022 6e66 ges]].name = "nf │ │ │ -0014a100: 7461 626c 6573 220a 7665 7273 696f 6e20 tables".version │ │ │ -0014a110: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediatio │ │ │ -0014a1d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0014a1e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0014a2a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0014a2b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +000fe750: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000fe760: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000fe7a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +000fe7b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity │ │ │ -0014a270: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0014a290: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0014a2c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0014a2e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -0014a320: 616c 6c5f 6e66 7461 626c 6573 0a0a 636c  all_nftables..cl
│ │ │ -0014a330: 6173 7320 696e 7374 616c 6c5f 6e66 7461  ass install_nfta
│ │ │ -0014a340: 626c 6573 207b 0a20 2070 6163 6b61 6765  bles {.  package
│ │ │ -0014a350: 207b 2027 6e66 7461 626c 6573 273a 0a20   { 'nftables':. 
│ │ │ -0014a360: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0014a370: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -0014a380: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0014a390: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -0014a440: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0014a450: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0014a4d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0014a4f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0014a540: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0014a570: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0014a590: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0014a5a0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0014a5b0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0014a5c0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0014a5d0: 2d20 5043 492d 4453 5376 342d 312e 320a  - PCI-DSSv4-1.2.
│ │ │ -0014a5e0: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ -0014a5f0: 322e 310a 2020 2d20 656e 6162 6c65 5f73  2.1.  - enable_s
│ │ │ -0014a600: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0014a610: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0014a620: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0014a630: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0014a640: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0014a650: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0014a660: 6765 5f6e 6674 6162 6c65 735f 696e 7374  ge_nftables_inst
│ │ │ -0014a670: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0014a680: 6e73 7572 6520 6e66 7461 626c 6573 2069  nsure nftables i
│ │ │ -0014a690: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -0014a6a0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0014a6b0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0014a6c0: 206e 6674 6162 6c65 730a 2020 2020 7374   nftables.    st
│ │ │ -0014a6d0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -0014a6e0: 6865 6e3a 2028 2022 6c69 6e75 782d 6261  hen: ( "linux-ba
│ │ │ -0014a6f0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0014a700: 6163 7473 2e70 6163 6b61 6765 7320 290a  acts.packages ).
│ │ │ -0014a710: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -0014a720: 4453 5376 342d 312e 320a 2020 2d20 5043  DSSv4-1.2.  - PC
│ │ │ -0014a730: 492d 4453 5376 342d 312e 322e 310a 2020  I-DSSv4-1.2.1.  
│ │ │ -0014a740: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0014a750: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0014a760: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0014a770: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0014a780: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0014a790: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0014a7a0: 0a20 202d 2070 6163 6b61 6765 5f6e 6674  .  - package_nft
│ │ │ -0014a7b0: 6162 6c65 735f 696e 7374 616c 6c65 640a  ables_installed.
│ │ │ +0014a080: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0014a090: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0014a0a0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:< │ │ │ -0014a4e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0014a500: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0014a550: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0014a560: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ +0014a120: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0014a150: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0014a170: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0014a180: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0014a1a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0014a1c0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0014a1d0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0014a1e0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0014a1f0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0014a200: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0014a210: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +0014a220: 5353 7634 2d31 2e32 0a20 202d 2050 4349  SSv4-1.2.  - PCI
│ │ │ +0014a230: 2d44 5353 7634 2d31 2e32 2e31 0a20 202d  -DSSv4-1.2.1.  -
│ │ │ +0014a240: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0014a250: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0014a260: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0014a270: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0014a280: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0014a290: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0014a2a0: 2020 2d20 7061 636b 6167 655f 6e66 7461    - package_nfta
│ │ │ +0014a2b0: 626c 6573 5f69 6e73 7461 6c6c 6564 0a0a  bles_installed..
│ │ │ +0014a2c0: 2d20 6e61 6d65 3a20 456e 7375 7265 206e  - name: Ensure n
│ │ │ +0014a2d0: 6674 6162 6c65 7320 6973 2069 6e73 7461  ftables is insta
│ │ │ +0014a2e0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +0014a2f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0014a300: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ +0014a310: 6573 0a20 2020 2073 7461 7465 3a20 7072  es.    state: pr
│ │ │ +0014a320: 6573 656e 740a 2020 7768 656e 3a20 2820  esent.  when: ( 
│ │ │ +0014a330: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0014a340: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0014a350: 636b 6167 6573 2029 0a20 2074 6167 733a  ckages ).  tags:
│ │ │ +0014a360: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0014a370: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0014a380: 2d31 2e32 2e31 0a20 202d 2065 6e61 626c  -1.2.1.  - enabl
│ │ │ +0014a390: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0014a3a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0014a3b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0014a3c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0014a3d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0014a3e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0014a3f0: 636b 6167 655f 6e66 7461 626c 6573 5f69  ckage_nftables_i
│ │ │ +0014a400: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +0014a410: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0014a4c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0014a4d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0014a4e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0014a4f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0014a500: 7365 2220 6964 3d22 6964 3432 3022 3e3c se" id="id420">< │ │ │ +0014a510: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0014a520: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0014a530: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0014a540: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0014a550: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0014a560: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0014a570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0014a5b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0014a5c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0014a5e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0014a5f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +0014a610: 6e73 7461 6c6c 5f6e 6674 6162 6c65 730a  nstall_nftables.
│ │ │ +0014a620: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6e  .class install_n
│ │ │ +0014a630: 6674 6162 6c65 7320 7b0a 2020 7061 636b  ftables {.  pack
│ │ │ +0014a640: 6167 6520 7b20 276e 6674 6162 6c65 7327  age { 'nftables'
│ │ │ +0014a650: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0014a660: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +0014a670: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +0014a730: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0014a740: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0014a750: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +0014a7a0: 6e61 6d65 203d 2022 6e66 7461 626c 6573  name = "nftables
│ │ │ +0014a7b0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  0014a7c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation O │ │ │ -0014b450: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0014b460: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0014b470: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -0014b4b0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -0014b4c0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -0014b4d0: 6420 3d20 5b22 6e66 7461 626c 6573 225d  d = ["nftables"]
│ │ │ -0014b4e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0014b5a0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0014b5b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0014b680: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0014b690: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0014b6e0: 6e63 6c75 6465 2065 6e61 626c 655f 6e66  nclude enable_nf
│ │ │ -0014b6f0: 7461 626c 6573 0a0a 636c 6173 7320 656e  tables..class en
│ │ │ -0014b700: 6162 6c65 5f6e 6674 6162 6c65 7320 7b0a  able_nftables {.
│ │ │ -0014b710: 2020 7365 7276 6963 6520 7b27 6e66 7461    service {'nfta
│ │ │ -0014b720: 626c 6573 273a 0a20 2020 2065 6e61 626c  bles':.    enabl
│ │ │ -0014b730: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -0014b740: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0014b750: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -0014b760: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0014b810: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0014b820: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0014b830: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -0014b660: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0014b670: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0014b6b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0014b6c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0014b900: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0014b910: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0014b960: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0014b970: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0014b980: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0014b990: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0014b9a0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -0014b9b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0014b9c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0014b9d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0014b9e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0014b9f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0014ba00: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0014ba10: 2d20 7365 7276 6963 655f 6e66 7461 626c  - service_nftabl
│ │ │ -0014ba20: 6573 5f65 6e61 626c 6564 0a0a 2d20 6e61  es_enabled..- na
│ │ │ -0014ba30: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ -0014ba40: 6c65 7320 5365 7276 6963 6520 6973 2045  les Service is E
│ │ │ -0014ba50: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ -0014ba60: 7365 7276 6963 6520 6e66 7461 626c 6573  service nftables
│ │ │ -0014ba70: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0014ba80: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0014ba90: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0014baa0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0014bab0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ -0014bac0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ -0014bad0: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ -0014bae0: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ -0014baf0: 5365 7276 6963 6520 6973 2045 6e61 626c  Service is Enabl
│ │ │ -0014bb00: 6564 202d 2045 6e61 626c 6520 5365 7276  ed - Enable Serv
│ │ │ -0014bb10: 6963 6520 6e66 7461 626c 6573 0a20 2020  ice nftables.   
│ │ │ -0014bb20: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0014bb30: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -0014bb40: 6e61 6d65 3a20 6e66 7461 626c 6573 0a20  name: nftables. 
│ │ │ -0014bb50: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -0014bb60: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -0014bb70: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -0014bb80: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -0014bb90: 7768 656e 3a0a 2020 2020 2d20 2722 6e66  when:.    - '"nf
│ │ │ -0014bba0: 7461 626c 6573 2220 696e 2061 6e73 6962  tables" in ansib
│ │ │ -0014bbb0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0014bbc0: 7327 0a20 2074 6167 733a 0a20 202d 2065  s'.  tags:.  - e
│ │ │ -0014bbd0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0014bbe0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0014bbf0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0014bc00: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0014bc10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0014bc20: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0014bc30: 2d20 7365 7276 6963 655f 6e66 7461 626c  - service_nftabl
│ │ │ -0014bc40: 6573 5f65 6e61 626c 6564 0a20 202d 2073  es_enabled.  - s
│ │ │ -0014bc50: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -0014bc60: 6c6f 636b 0a20 2077 6865 6e3a 2028 2022  lock.  when: ( "
│ │ │ -0014bc70: 6e66 7461 626c 6573 2220 696e 2061 6e73  nftables" in ans
│ │ │ -0014bc80: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0014bc90: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ -0014bca0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0014bcb0: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ -0014bcc0: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072     ).Remediation A
│ │ │ +0014b450: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0014b460: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity:low
Disrup │ │ │ -0014b8e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0014b8f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0014b930: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0014b940: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0014b4e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0014b500: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0014b550: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0014b580: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0014b5a0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0014b5b0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0014b5c0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0014b5d0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0014b5e0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0014b5f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0014b600: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0014b610: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0014b620: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0014b630: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0014b640: 0a20 202d 2073 6572 7669 6365 5f6e 6674  .  - service_nft
│ │ │ +0014b650: 6162 6c65 735f 656e 6162 6c65 640a 0a2d  ables_enabled..-
│ │ │ +0014b660: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ +0014b670: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ +0014b680: 7320 456e 6162 6c65 6420 2d20 456e 6162  s Enabled - Enab
│ │ │ +0014b690: 6c65 2073 6572 7669 6365 206e 6674 6162  le service nftab
│ │ │ +0014b6a0: 6c65 730a 2020 626c 6f63 6b3a 0a0a 2020  les.  block:..  
│ │ │ +0014b6b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0014b6c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0014b6d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0014b6e0: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ +0014b6f0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ +0014b700: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ +0014b710: 653a 2056 6572 6966 7920 6e66 7461 626c  e: Verify nftabl
│ │ │ +0014b720: 6573 2053 6572 7669 6365 2069 7320 456e  es Service is En
│ │ │ +0014b730: 6162 6c65 6420 2d20 456e 6162 6c65 2053  abled - Enable S
│ │ │ +0014b740: 6572 7669 6365 206e 6674 6162 6c65 730a  ervice nftables.
│ │ │ +0014b750: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0014b760: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0014b770: 2020 206e 616d 653a 206e 6674 6162 6c65     name: nftable
│ │ │ +0014b780: 730a 2020 2020 2020 656e 6162 6c65 643a  s.      enabled:
│ │ │ +0014b790: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +0014b7a0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +0014b7b0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +0014b7c0: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +0014b7d0: 226e 6674 6162 6c65 7322 2069 6e20 616e  "nftables" in an
│ │ │ +0014b7e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0014b7f0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0014b800: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0014b810: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0014b820: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0014b830: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0014b840: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0014b850: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0014b860: 0a20 202d 2073 6572 7669 6365 5f6e 6674  .  - service_nft
│ │ │ +0014b870: 6162 6c65 735f 656e 6162 6c65 640a 2020  ables_enabled.  
│ │ │ +0014b880: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +0014b890: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +0014b8a0: 2820 226e 6674 6162 6c65 7322 2069 6e20  ( "nftables" in 
│ │ │ +0014b8b0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0014b8c0: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ +0014b8d0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0014b8e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0014b8f0: 730a 2020 2020 290a 3c2f 636f 6465 3e3c  s.    ).<
│ │ │ +0014b900: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0014b9b0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +0014b9c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +0014ba40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0014bad0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:< │ │ │ +0014b4f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0014b510: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0014b560: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0014b570: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexi │ │ │ +0014ba50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0014ba60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0014baa0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0014bab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +0014baf0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +0014bb00: 6162 6c65 5f6e 6674 6162 6c65 730a 0a63  able_nftables..c
│ │ │ +0014bb10: 6c61 7373 2065 6e61 626c 655f 6e66 7461  lass enable_nfta
│ │ │ +0014bb20: 626c 6573 207b 0a20 2073 6572 7669 6365  bles {.  service
│ │ │ +0014bb30: 207b 276e 6674 6162 6c65 7327 3a0a 2020   {'nftables':.  
│ │ │ +0014bb40: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +0014bb50: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +0014bb60: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +0014bb70: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +0014bc30: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0014bc40: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0014bc50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +0014bca0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +0014bcb0: 6162 6c65 6420 3d20 5b22 6e66 7461 626c  abled = ["nftabl
│ │ │ +0014bcc0: 6573 225d 0a3c 2f63 6f64 653e 3c2f 7072  es"].
Re │ │ │ -0014cac0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0014cad0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0014cae0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0014caf0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0014cb00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0014cb10: 7365 2220 6964 3d22 6964 3432 3922 3e3c se" id="id429">< │ │ │ -0014cb20: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0014cb30: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0014cb40: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0014cb50: 6e66 7461 626c 6573 225d 0a3c 2f63 6f64 nftables"].
Remed │ │ │ -0014cc10: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0014cc20: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0014ccd0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0014ccf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0014cd20: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0014ccb0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0014ccc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0014cce0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0014cd00: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0014cd10: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0014cd60: 2064 6973 6162 6c65 5f6e 6674 6162 6c65 disable_nftable │ │ │ -0014cd70: 730a 0a63 6c61 7373 2064 6973 6162 6c65 s..class disable │ │ │ -0014cd80: 5f6e 6674 6162 6c65 7320 7b0a 2020 7365 _nftables {. se │ │ │ -0014cd90: 7276 6963 6520 7b27 6e66 7461 626c 6573 rvice {'nftables │ │ │ -0014cda0: 273a 0a20 2020 2065 6e61 626c 6520 3d26 ':. enable =& │ │ │ -0014cdb0: 6774 3b20 6661 6c73 652c 0a20 2020 2065 gt; false,. e │ │ │ -0014cdc0: 6e73 7572 6520 3d26 6774 3b20 2773 746f nsure => 'sto │ │ │ -0014cdd0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63 pped',. }.}.

│ │ │ -0014cdf0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0014ce90: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0014cea0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0014ceb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0014cf50: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0014cfa0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0014cfe0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0014cff0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0014d000: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0014d010: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0014d020: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0014d030: 2d44 5353 7634 2d31 2e32 0a20 202d 2050  -DSSv4-1.2.  - P
│ │ │ -0014d040: 4349 2d44 5353 7634 2d31 2e32 2e31 0a20  CI-DSSv4-1.2.1. 
│ │ │ -0014d050: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0014d060: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0014d070: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0014d080: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0014d090: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0014d0a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0014d0b0: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ -0014d0c0: 6674 6162 6c65 735f 6469 7361 626c 6564  ftables_disabled
│ │ │ -0014d0d0: 0a0a 2d20 6e61 6d65 3a20 5665 7269 6679  ..- name: Verify
│ │ │ -0014d0e0: 206e 6674 6162 6c65 7320 5365 7276 6963   nftables Servic
│ │ │ -0014d0f0: 6520 6973 2044 6973 6162 6c65 6420 2d20  e is Disabled - 
│ │ │ -0014d100: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -0014d110: 6e66 7461 626c 6573 0a20 2062 6c6f 636b  nftables.  block
│ │ │ -0014d120: 3a0a 0a20 202d 206e 616d 653a 2056 6572  :..  - name: Ver
│ │ │ -0014d130: 6966 7920 6e66 7461 626c 6573 2053 6572  ify nftables Ser
│ │ │ -0014d140: 7669 6365 2069 7320 4469 7361 626c 6564  vice is Disabled
│ │ │ -0014d150: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -0014d160: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -0014d170: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ -0014d180: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -0014d190: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0014d1a0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0014d1b0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0014d1c0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -0014d1d0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0014d1e0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -0014d1f0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0014d200: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0014d210: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -0014d220: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -0014d230: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -0014d240: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -0014d250: 2d20 6e61 6d65 3a20 5665 7269 6679 206e  - name: Verify n
│ │ │ -0014d260: 6674 6162 6c65 7320 5365 7276 6963 6520  ftables Service 
│ │ │ -0014d270: 6973 2044 6973 6162 6c65 6420 2d20 456e  is Disabled - En
│ │ │ -0014d280: 7375 7265 206e 6674 6162 6c65 732e 7365  sure nftables.se
│ │ │ -0014d290: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0014d2a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0014d2b0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0014d2c0: 2020 206e 616d 653a 206e 6674 6162 6c65     name: nftable
│ │ │ -0014d2d0: 732e 7365 7276 6963 650a 2020 2020 2020  s.service.      
│ │ │ -0014d2e0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0014d2f0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0014d300: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -0014d310: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0014d320: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0014d330: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0014d340: 7365 6172 6368 2822 6e66 7461 626c 6573  search("nftables
│ │ │ -0014d350: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -0014d360: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -0014d370: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -0014d380: 7420 4578 6973 7473 202d 206e 6674 6162  t Exists - nftab
│ │ │ -0014d390: 6c65 732e 736f 636b 6574 0a20 2020 2061  les.socket.    a
│ │ │ -0014d3a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0014d3b0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0014d3c0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0014d3d0: 696c 6573 206e 6674 6162 6c65 732e 736f  iles nftables.so
│ │ │ -0014d3e0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -0014d3f0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -0014d400: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0014d410: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0014d420: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0014d430: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0014d440: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0014d450: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0014d460: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0014d470: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ -0014d480: 6c65 7320 5365 7276 6963 6520 6973 2044  les Service is D
│ │ │ -0014d490: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ -0014d4a0: 6520 536f 636b 6574 206e 6674 6162 6c65  e Socket nftable
│ │ │ -0014d4b0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -0014d4c0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0014d4d0: 2020 2020 206e 616d 653a 206e 6674 6162       name: nftab
│ │ │ -0014d4e0: 6c65 732e 736f 636b 6574 0a20 2020 2020  les.socket.     
│ │ │ -0014d4f0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0014d500: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0014d510: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -0014d520: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0014d530: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0014d540: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0014d550: 7320 6973 2073 6561 7263 6828 226e 6674  s is search("nft
│ │ │ -0014d560: 6162 6c65 732e 736f 636b 6574 222c 206d  ables.socket", m
│ │ │ -0014d570: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -0014d580: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -0014d590: 5353 7634 2d31 2e32 0a20 202d 2050 4349  SSv4-1.2.  - PCI
│ │ │ -0014d5a0: 2d44 5353 7634 2d31 2e32 2e31 0a20 202d  -DSSv4-1.2.1.  -
│ │ │ -0014d5b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0014d5c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0014d5d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0014d5e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0014d5f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0014d600: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0014d610: 0a20 202d 2073 6572 7669 6365 5f6e 6674  .  - service_nft
│ │ │ -0014d620: 6162 6c65 735f 6469 7361 626c 6564 0a20  ables_disabled. 
│ │ │ -0014d630: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0014d640: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0014d650: 2028 2022 6669 7265 7761 6c6c 6422 2069   ( "firewalld" i
│ │ │ -0014d660: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0014d670: 7061 636b 6167 6573 2061 6e64 2022 6e66  packages and "nf
│ │ │ -0014d680: 7461 626c 6573 2220 696e 2061 6e73 6962  tables" in ansib
│ │ │ -0014d690: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0014d6a0: 730a 2020 2020 616e 6420 226c 696e 7578  s.    and "linux
│ │ │ -0014d6b0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0014d6c0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0014d6d0: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +0014cac0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +0014cad0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Co │ │ │ -0014cf30: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0014cf60: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0014cf80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0014cf90: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0014cfb0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0014cfc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0014cb70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0014cb80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0014cbd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0014cc10: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0014cc20: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0014cc30: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0014cc40: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0014cc50: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ +0014cc60: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ +0014cc70: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ +0014cc80: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0014cc90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0014cca0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0014ccb0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0014ccc0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0014ccd0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0014cce0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0014ccf0: 6e66 7461 626c 6573 5f64 6973 6162 6c65  nftables_disable
│ │ │ +0014cd00: 640a 0a2d 206e 616d 653a 2056 6572 6966  d..- name: Verif
│ │ │ +0014cd10: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ +0014cd20: 6365 2069 7320 4469 7361 626c 6564 202d  ce is Disabled -
│ │ │ +0014cd30: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0014cd40: 206e 6674 6162 6c65 730a 2020 626c 6f63   nftables.  bloc
│ │ │ +0014cd50: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 5665  k:..  - name: Ve
│ │ │ +0014cd60: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +0014cd70: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ +0014cd80: 6420 2d20 436f 6c6c 6563 7420 7379 7374  d - Collect syst
│ │ │ +0014cd90: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +0014cda0: 7365 6e74 2069 6e0a 2020 2020 2020 7468  sent in.      th
│ │ │ +0014cdb0: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +0014cdc0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +0014cdd0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +0014cde0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +0014cdf0: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +0014ce00: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +0014ce10: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +0014ce20: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +0014ce30: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +0014ce40: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +0014ce50: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0014ce60: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0014ce70: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0014ce80: 202d 206e 616d 653a 2056 6572 6966 7920   - name: Verify 
│ │ │ +0014ce90: 6e66 7461 626c 6573 2053 6572 7669 6365  nftables Service
│ │ │ +0014cea0: 2069 7320 4469 7361 626c 6564 202d 2045   is Disabled - E
│ │ │ +0014ceb0: 6e73 7572 6520 6e66 7461 626c 6573 2e73  nsure nftables.s
│ │ │ +0014cec0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +0014ced0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0014cee0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +0014cef0: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ +0014cf00: 6573 2e73 6572 7669 6365 0a20 2020 2020  es.service.     
│ │ │ +0014cf10: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0014cf20: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0014cf30: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +0014cf40: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0014cf50: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0014cf60: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0014cf70: 2073 6561 7263 6828 226e 6674 6162 6c65   search("nftable
│ │ │ +0014cf80: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ +0014cf90: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +0014cfa0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +0014cfb0: 6574 2045 7869 7374 7320 2d20 6e66 7461  et Exists - nfta
│ │ │ +0014cfc0: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ +0014cfd0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0014cfe0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0014cff0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0014d000: 6669 6c65 7320 6e66 7461 626c 6573 2e73  files nftables.s
│ │ │ +0014d010: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0014d020: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0014d030: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0014d040: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0014d050: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0014d060: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0014d070: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0014d080: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0014d090: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0014d0a0: 616d 653a 2056 6572 6966 7920 6e66 7461  ame: Verify nfta
│ │ │ +0014d0b0: 626c 6573 2053 6572 7669 6365 2069 7320  bles Service is 
│ │ │ +0014d0c0: 4469 7361 626c 6564 202d 2044 6973 6162  Disabled - Disab
│ │ │ +0014d0d0: 6c65 2053 6f63 6b65 7420 6e66 7461 626c  le Socket nftabl
│ │ │ +0014d0e0: 6573 0a20 2020 2061 6e73 6962 6c65 2e62  es.    ansible.b
│ │ │ +0014d0f0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0014d100: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ +0014d110: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ +0014d120: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0014d130: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0014d140: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +0014d150: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0014d160: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0014d170: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0014d180: 6573 2069 7320 7365 6172 6368 2822 6e66  es is search("nf
│ │ │ +0014d190: 7461 626c 6573 2e73 6f63 6b65 7422 2c20  tables.socket", 
│ │ │ +0014d1a0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0014d1b0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +0014d1c0: 4453 5376 342d 312e 320a 2020 2d20 5043  DSSv4-1.2.  - PC
│ │ │ +0014d1d0: 492d 4453 5376 342d 312e 322e 310a 2020  I-DSSv4-1.2.1.  
│ │ │ +0014d1e0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0014d1f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0014d200: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0014d210: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0014d220: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0014d230: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0014d240: 640a 2020 2d20 7365 7276 6963 655f 6e66  d.  - service_nf
│ │ │ +0014d250: 7461 626c 6573 5f64 6973 6162 6c65 640a  tables_disabled.
│ │ │ +0014d260: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0014d270: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0014d280: 3a20 2820 2266 6972 6577 616c 6c64 2220  : ( "firewalld" 
│ │ │ +0014d290: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0014d2a0: 2e70 6163 6b61 6765 7320 616e 6420 226e  .packages and "n
│ │ │ +0014d2b0: 6674 6162 6c65 7322 2069 6e20 616e 7369  ftables" in ansi
│ │ │ +0014d2c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0014d2d0: 6573 0a20 2020 2061 6e64 2022 6c69 6e75  es.    and "linu
│ │ │ +0014d2e0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0014d2f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0014d300: 7320 290a 3c2f 636f 6465 3e3c 2f70 7265  s ).
Remediation │ │ │ +0014d3c0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0014d3d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ +0014cb60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0014cb90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0014cba0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0014cbe0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0014cbf0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +0014d450: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0014d470: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0014d4c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0014d4f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0014d510: 655f 6e66 7461 626c 6573 0a0a 636c 6173  e_nftables..clas
│ │ │ +0014d520: 7320 6469 7361 626c 655f 6e66 7461 626c  s disable_nftabl
│ │ │ +0014d530: 6573 207b 0a20 2073 6572 7669 6365 207b  es {.  service {
│ │ │ +0014d540: 276e 6674 6162 6c65 7327 3a0a 2020 2020  'nftables':.    
│ │ │ +0014d550: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +0014d560: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +0014d570: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +0014d580: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +0014d640: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0014d650: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0014d660: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +0014d6b0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +0014d6c0: 6b65 6420 3d20 5b22 6e66 7461 626c 6573  ked = ["nftables
│ │ │ +0014d6d0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 0014d6e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediat │ │ │ -00155e50: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00155e60: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00155e70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00155ec0: 5d0a 6e61 6d65 203d 2022 7566 7722 0a76  ].name = "ufw".v
│ │ │ -00155ed0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00155ef0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00155f90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00155fa0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00155fb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +0014d460: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0014d480: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0014d4d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0014d4e0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -00156030: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00156060: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00156080: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00156090: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001560b0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -001560d0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -001560e0: 6465 2069 6e73 7461 6c6c 5f75 6677 0a0a  de install_ufw..
│ │ │ -001560f0: 636c 6173 7320 696e 7374 616c 6c5f 7566  class install_uf
│ │ │ -00156100: 7720 7b0a 2020 7061 636b 6167 6520 7b20  w {.  package { 
│ │ │ -00156110: 2775 6677 273a 0a20 2020 2065 6e73 7572  'ufw':.    ensur
│ │ │ -00156120: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00156130: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -001561f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00156200: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00156290: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001562a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001562c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001562e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001562f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00156330: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00156340: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00156350: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00156360: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00156370: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00156380: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -00156390: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -001563a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -001563b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -001563c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -001563d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -001563e0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -001563f0: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c kage_ufw_install │ │ │ -00156400: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ -00156410: 7265 2075 6677 2069 7320 696e 7374 616c re ufw is instal │ │ │ -00156420: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -00156430: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00156440: 2020 206e 616d 653a 2075 6677 0a20 2020 name: ufw. │ │ │ -00156450: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -00156460: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00156470: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00156480: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00156490: 0a20 2074 6167 733a 0a20 202d 2065 6e61 . tags:. - ena │ │ │ -001564a0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -001564b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -001564c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -001564d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -001564e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -001564f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00156500: 7061 636b 6167 655f 7566 775f 696e 7374 package_ufw_inst │ │ │ -00156510: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +00155e70: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00155e80: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00155e90: 7365 2220 6964 3d22 6964 3434 3522 3e3c se" id="id445">< │ │ │ +00155ea0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00155eb0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00155ec0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00155ed0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00155ee0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00155ef0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00155f00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00155f40: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00155f50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00155f70: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00155f80: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00155fa0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00155fb0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00155fc0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00155fd0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00155fe0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +00155ff0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00156000: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00156010: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00156020: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00156030: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00156040: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00156050: 655f 7566 775f 696e 7374 616c 6c65 640a  e_ufw_installed.
│ │ │ +00156060: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00156070: 7566 7720 6973 2069 6e73 7461 6c6c 6564  ufw is installed
│ │ │ +00156080: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00156090: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +001560a0: 6e61 6d65 3a20 7566 770a 2020 2020 7374  name: ufw.    st
│ │ │ +001560b0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +001560c0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +001560d0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +001560e0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +001560f0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +00156100: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00156110: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00156120: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00156130: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00156140: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00156150: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00156160: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c  kage_ufw_install
│ │ │ +00156170: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00156180: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00156230: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00156240: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +001562c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +001562e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00156330: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00156380: 5f75 6677 0a0a 636c 6173 7320 696e 7374  _ufw..class inst
│ │ │ +00156390: 616c 6c5f 7566 7720 7b0a 2020 7061 636b  all_ufw {.  pack
│ │ │ +001563a0: 6167 6520 7b20 2775 6677 273a 0a20 2020  age { 'ufw':.   
│ │ │ +001563b0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +001563c0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +001563d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00156490: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +001564a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +001564f0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +00156500: 3d20 2275 6677 220a 7665 7273 696f 6e20  = "ufw".version 
│ │ │ +00156510: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Reme │ │ │ -00157020: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00157030: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +001562f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00156300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00156340: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00156350: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -001570c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001570d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001570f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00157110: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00157120: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00157160: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00157170: 7564 6520 7265 6d6f 7665 5f75 6677 0a0a  ude remove_ufw..
│ │ │ -00157180: 636c 6173 7320 7265 6d6f 7665 5f75 6677  class remove_ufw
│ │ │ -00157190: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -001571a0: 7566 7727 3a0a 2020 2020 656e 7375 7265  ufw':.    ensure
│ │ │ -001571b0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -001571c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00157280: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00157290: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00157310: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00157320: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00157330: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00157370: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00157380: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001573a0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -001573b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -001573d0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -001573e0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -001573f0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00157400: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00157410: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00157420: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00157430: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00157440: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00157450: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00157460: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00157470: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00157480: 6765 5f75 6677 5f72 656d 6f76 6564 0a0a  ge_ufw_removed..
│ │ │ -00157490: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -001574a0: 7566 7720 5061 636b 6167 653a 2045 6e73  ufw Package: Ens
│ │ │ -001574b0: 7572 6520 7566 7720 6973 2072 656d 6f76  ure ufw is remov
│ │ │ -001574c0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -001574d0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -001574e0: 2020 206e 616d 653a 2075 6677 0a20 2020     name: ufw.   
│ │ │ -001574f0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00157500: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00157510: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00157520: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00157530: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00157540: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00157550: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00157560: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00157570: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00157580: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00157590: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001575a0: 7061 636b 6167 655f 7566 775f 7265 6d6f  package_ufw_remo
│ │ │ -001575b0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
< │ │ │ +00157040: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +001570c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001570f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00157110: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00157120: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00157140: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00157150: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00157170: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00157180: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00157190: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +001571a0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +001571b0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +001571c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001571d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001571e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001571f0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00157200: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00157210: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00157220: 7061 636b 6167 655f 7566 775f 7265 6d6f  package_ufw_remo
│ │ │ +00157230: 7665 640a 0a2d 206e 616d 653a 2027 5265  ved..- name: 'Re
│ │ │ +00157240: 6d6f 7665 2075 6677 2050 6163 6b61 6765  move ufw Package
│ │ │ +00157250: 3a20 456e 7375 7265 2075 6677 2069 7320  : Ensure ufw is 
│ │ │ +00157260: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00157270: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00157280: 6765 3a0a 2020 2020 6e61 6d65 3a20 7566  ge:.    name: uf
│ │ │ +00157290: 770a 2020 2020 7374 6174 653a 2061 6273  w.    state: abs
│ │ │ +001572a0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +001572b0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +001572c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +001572d0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +001572e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +001572f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00157300: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00157310: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00157320: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00157330: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00157340: 0a20 202d 2070 6163 6b61 6765 5f75 6677  .  - package_ufw
│ │ │ +00157350: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00157360: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00157410: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00157420: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00157430: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00157440: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00157450: 7365 2220 6964 3d22 6964 3435 3122 3e3c se" id="id451">< │ │ │ +00157460: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00157470: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00157480: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00157490: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001574a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001574b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001574c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00157500: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00157510: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00157530: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00157540: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00157560: 2072 656d 6f76 655f 7566 770a 0a63 6c61 remove_ufw..cla │ │ │ +00157570: 7373 2072 656d 6f76 655f 7566 7720 7b0a ss remove_ufw {. │ │ │ +00157580: 2020 7061 636b 6167 6520 7b20 2775 6677 package { 'ufw │ │ │ +00157590: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +001575a0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +001575b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
R │ │ │ -001584b0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -001584c0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -001584d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001584e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00158510: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00158520: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00158530: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -00158540: 5b22 7566 7722 5d0a 3c2f 636f 6465 3e3c  ["ufw"].<
│ │ │ -00158550: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00158600: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00158610: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00158690: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001586a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001586b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001586f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00158700: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00158720: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00158740: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -00158750: 6162 6c65 5f75 6677 0a0a 636c 6173 7320  able_ufw..class 
│ │ │ -00158760: 656e 6162 6c65 5f75 6677 207b 0a20 2073  enable_ufw {.  s
│ │ │ -00158770: 6572 7669 6365 207b 2775 6677 273a 0a20  ervice {'ufw':. 
│ │ │ -00158780: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00158790: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -001587a0: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -001587b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -001587c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00158870: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00158880: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00158890: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001588a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001588b0: 7365 2220 6964 3d22 6964 3435 3622 3e3c se" id="id456">< │ │ │ -001588c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001588d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001588e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001588f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00158900: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00158910: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00158920: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00158960: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00158970: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00158990: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -001589a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -001589c0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -001589d0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -001589e0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -001589f0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00158a00: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -00158a10: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00158a20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00158a30: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00158a40: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00158a50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00158a60: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00158a70: 655f 7566 775f 656e 6162 6c65 640a 0a2d  e_ufw_enabled..-
│ │ │ -00158a80: 206e 616d 653a 2056 6572 6966 7920 7566   name: Verify uf
│ │ │ -00158a90: 7720 456e 6162 6c65 6420 2d20 456e 6162  w Enabled - Enab
│ │ │ -00158aa0: 6c65 2073 6572 7669 6365 2075 6677 0a20  le service ufw. 
│ │ │ -00158ab0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -00158ac0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00158ad0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -00158ae0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00158af0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00158b00: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -00158b10: 746f 0a0a 2020 2d20 6e61 6d65 3a20 5665  to..  - name: Ve
│ │ │ -00158b20: 7269 6679 2075 6677 2045 6e61 626c 6564  rify ufw Enabled
│ │ │ -00158b30: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00158b40: 6520 7566 770a 2020 2020 616e 7369 626c  e ufw.    ansibl
│ │ │ -00158b50: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00158b60: 643a 0a20 2020 2020 206e 616d 653a 2075  d:.      name: u
│ │ │ -00158b70: 6677 0a20 2020 2020 2065 6e61 626c 6564  fw.      enabled
│ │ │ -00158b80: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -00158b90: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -00158ba0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -00158bb0: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -00158bc0: 2722 7566 7722 2069 6e20 616e 7369 626c  '"ufw" in ansibl
│ │ │ -00158bd0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00158be0: 270a 2020 7461 6773 3a0a 2020 2d20 656e  '.  tags:.  - en
│ │ │ -00158bf0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00158c00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00158c10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00158c20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00158c30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00158c40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00158c50: 2073 6572 7669 6365 5f75 6677 5f65 6e61   service_ufw_ena
│ │ │ -00158c60: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00158c70: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00158c80: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -00158c90: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00158ca0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00158cb0: 6573 270a 2020 2d20 2820 2275 6677 2220  es'.  - ( "ufw" 
│ │ │ -00158cc0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00158cd0: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ -00158ce0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00158cf0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00158d00: 6167 6573 2029 0a3c 2f63 6f64 653e 3c2f  ages ).
│ │ │ +00158560: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00158600: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00158610: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00158620: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00158630: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00158640: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ +00158650: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00158660: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00158670: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00158680: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00158690: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001586a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001586b0: 2073 6572 7669 6365 5f75 6677 5f65 6e61   service_ufw_ena
│ │ │ +001586c0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 5665  bled..- name: Ve
│ │ │ +001586d0: 7269 6679 2075 6677 2045 6e61 626c 6564  rify ufw Enabled
│ │ │ +001586e0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ +001586f0: 6520 7566 770a 2020 626c 6f63 6b3a 0a0a  e ufw.  block:..
│ │ │ +00158700: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +00158710: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00158720: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +00158730: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +00158740: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +00158750: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +00158760: 616d 653a 2056 6572 6966 7920 7566 7720  ame: Verify ufw 
│ │ │ +00158770: 456e 6162 6c65 6420 2d20 456e 6162 6c65  Enabled - Enable
│ │ │ +00158780: 2053 6572 7669 6365 2075 6677 0a20 2020   Service ufw.   
│ │ │ +00158790: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001587a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +001587b0: 6e61 6d65 3a20 7566 770a 2020 2020 2020  name: ufw.      
│ │ │ +001587c0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +001587d0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +001587e0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +001587f0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +00158800: 0a20 2020 202d 2027 2275 6677 2220 696e  .    - '"ufw" in
│ │ │ +00158810: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00158820: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00158830: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00158840: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00158850: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00158860: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00158870: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00158880: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00158890: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +001588a0: 7566 775f 656e 6162 6c65 640a 2020 2d20  ufw_enabled.  - 
│ │ │ +001588b0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +001588c0: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ +001588d0: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ +001588e0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +001588f0: 2e70 6163 6b61 6765 7327 0a20 202d 2028  .packages'.  - (
│ │ │ +00158900: 2022 7566 7722 2069 6e20 616e 7369 626c   "ufw" in ansibl
│ │ │ +00158910: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00158920: 2061 6e64 2022 6c69 6e75 782d 6261 7365   and "linux-base
│ │ │ +00158930: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00158940: 7473 2e70 6163 6b61 6765 7320 290a 3c2f  ts.packages ).
Re │ │ │ +00158a00: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00158a10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00158a20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +00158550: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00158580: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00158590: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001585d0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +001585e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00158ac0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00158b10: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00158aa0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00158ad0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00158af0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00158b00: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00158b20: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00158b30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00158b50: 7564 6520 656e 6162 6c65 5f75 6677 0a0a  ude enable_ufw..
│ │ │ +00158b60: 636c 6173 7320 656e 6162 6c65 5f75 6677  class enable_ufw
│ │ │ +00158b70: 207b 0a20 2073 6572 7669 6365 207b 2775   {.  service {'u
│ │ │ +00158b80: 6677 273a 0a20 2020 2065 6e61 626c 6520  fw':.    enable 
│ │ │ +00158b90: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +00158ba0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +00158bb0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +00158c70: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00158c80: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00158c90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00158ca0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00158cb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00158cc0: 7365 2220 6964 3d22 6964 3435 3622 3e3c se" id="id456">< │ │ │ +00158cd0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00158ce0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00158cf0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +00158d00: 2275 6677 225d 0a3c 2f63 6f64 653e 3c2f "ufw"].
Remed │ │ │ -0015d370: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0015d380: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0015d390: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -0015d3e0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -0015d3f0: 5d0a 6d61 736b 6564 203d 205b 2262 6c75  ].masked = ["blu
│ │ │ -0015d400: 6574 6f6f 7468 225d 0a3c 2f63 6f64 653e  etooth"].
│ │ │ -0015d410: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0015d4c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0015d4d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0015d4e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0015d4f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0015d500: 7365 2220 6964 3d22 6964 3436 3522 3e3c se" id="id465">< │ │ │ -0015d510: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0015d520: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0015d530: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0015d540: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0015d550: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0015d560: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0015d570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0015d5b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0015d5c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0015d5e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0015d5f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0015d610: 6973 6162 6c65 5f62 6c75 6574 6f6f 7468  isable_bluetooth
│ │ │ -0015d620: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -0015d630: 626c 7565 746f 6f74 6820 7b0a 2020 7365  bluetooth {.  se
│ │ │ -0015d640: 7276 6963 6520 7b27 626c 7565 746f 6f74  rvice {'bluetoot
│ │ │ -0015d650: 6827 3a0a 2020 2020 656e 6162 6c65 203d  h':.    enable =
│ │ │ -0015d660: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -0015d670: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -0015d680: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -0015d740: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0015d750: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0015d7f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0015d800: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0015d850: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0015d890: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0015d8a0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0015d8b0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0015d8c0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0015d8d0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0015d8e0: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ -0015d8f0: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -0015d900: 332d 4143 2d31 3828 3329 0a20 202d 204e  3-AC-18(3).  - N
│ │ │ -0015d910: 4953 542d 3830 302d 3533 2d41 432d 3138  IST-800-53-AC-18
│ │ │ -0015d920: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0015d930: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0015d940: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0015d950: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0015d960: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0015d970: 4e49 5354 2d38 3030 2d35 332d 4d50 2d37  NIST-800-53-MP-7
│ │ │ -0015d980: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0015d990: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0015d9a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0015d9b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0015d9c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0015d9d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0015d9e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0015d9f0: 5f62 6c75 6574 6f6f 7468 5f64 6973 6162  _bluetooth_disab
│ │ │ -0015da00: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -0015da10: 6162 6c65 2042 6c75 6574 6f6f 7468 2053  able Bluetooth S
│ │ │ -0015da20: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0015da30: 2073 6572 7669 6365 2062 6c75 6574 6f6f   service bluetoo
│ │ │ -0015da40: 7468 0a20 2062 6c6f 636b 3a0a 0a20 202d  th.  block:..  -
│ │ │ -0015da50: 206e 616d 653a 2044 6973 6162 6c65 2042   name: Disable B
│ │ │ -0015da60: 6c75 6574 6f6f 7468 2053 6572 7669 6365  luetooth Service
│ │ │ -0015da70: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -0015da80: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -0015da90: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -0015daa0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -0015dab0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0015dac0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0015dad0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -0015dae0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -0015daf0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -0015db00: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0015db10: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0015db20: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0015db30: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0015db40: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0015db50: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0015db60: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0015db70: 3a20 4469 7361 626c 6520 426c 7565 746f  : Disable Blueto
│ │ │ -0015db80: 6f74 6820 5365 7276 6963 6520 2d20 456e  oth Service - En
│ │ │ -0015db90: 7375 7265 2062 6c75 6574 6f6f 7468 2e73  sure bluetooth.s
│ │ │ -0015dba0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -0015dbb0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0015dbc0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0015dbd0: 2020 2020 6e61 6d65 3a20 626c 7565 746f      name: blueto
│ │ │ -0015dbe0: 6f74 682e 7365 7276 6963 650a 2020 2020  oth.service.    
│ │ │ -0015dbf0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0015dc00: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0015dc10: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0015dc20: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0015dc30: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0015dc40: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0015dc50: 7320 7365 6172 6368 2822 626c 7565 746f  s search("blueto
│ │ │ -0015dc60: 6f74 682e 7365 7276 6963 6522 2c20 6d75  oth.service", mu
│ │ │ -0015dc70: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -0015dc80: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -0015dc90: 636b 6574 2045 7869 7374 7320 2d20 626c  cket Exists - bl
│ │ │ -0015dca0: 7565 746f 6f74 682e 736f 636b 6574 0a20  uetooth.socket. 
│ │ │ -0015dcb0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0015dcc0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0015dcd0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0015dce0: 6974 2d66 696c 6573 2062 6c75 6574 6f6f  it-files bluetoo
│ │ │ -0015dcf0: 7468 2e73 6f63 6b65 740a 2020 2020 7265  th.socket.    re
│ │ │ -0015dd00: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -0015dd10: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -0015dd20: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0015dd30: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0015dd40: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0015dd50: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0015dd60: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0015dd70: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0015dd80: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0015dd90: 2042 6c75 6574 6f6f 7468 2053 6572 7669   Bluetooth Servi
│ │ │ -0015dda0: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -0015ddb0: 6b65 7420 626c 7565 746f 6f74 680a 2020  ket bluetooth.  
│ │ │ -0015ddc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0015ddd0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0015dde0: 206e 616d 653a 2062 6c75 6574 6f6f 7468   name: bluetooth
│ │ │ -0015ddf0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -0015de00: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0015de10: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0015de20: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -0015de30: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0015de40: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0015de50: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0015de60: 7320 7365 6172 6368 2822 626c 7565 746f  s search("blueto
│ │ │ -0015de70: 6f74 682e 736f 636b 6574 222c 206d 756c  oth.socket", mul
│ │ │ -0015de80: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -0015de90: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0015dea0: 302d 3137 312d 332e 312e 3136 0a20 202d  0-171-3.1.16.  -
│ │ │ -0015deb0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -0015dec0: 3138 2833 290a 2020 2d20 4e49 5354 2d38  18(3).  - NIST-8
│ │ │ -0015ded0: 3030 2d35 332d 4143 2d31 3828 6129 0a20  00-53-AC-18(a). 
│ │ │ -0015dee0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0015def0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0015df00: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0015df10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0015df20: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ -0015df30: 3830 302d 3533 2d4d 502d 370a 2020 2d20  800-53-MP-7.  - 
│ │ │ -0015df40: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0015df50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0015df60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0015df70: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0015df80: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0015df90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0015dfa0: 2020 2d20 7365 7276 6963 655f 626c 7565    - service_blue
│ │ │ -0015dfb0: 746f 6f74 685f 6469 7361 626c 6564 0a20  tooth_disabled. 
│ │ │ -0015dfc0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0015dfd0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0015dfe0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0015dff0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0015e000: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
C │ │ │ -0015d7e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0015d810: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0015d820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0015d860: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0015d870: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +0015d410: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0015d420: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0015d440: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0015d460: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0015d470: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0015d4b0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0015d4c0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0015d4d0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0015d4e0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0015d4f0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0015d500: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0015d510: 3830 302d 3137 312d 332e 312e 3136 0a20  800-171-3.1.16. 
│ │ │ +0015d520: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +0015d530: 432d 3138 2833 290a 2020 2d20 4e49 5354  C-18(3).  - NIST
│ │ │ +0015d540: 2d38 3030 2d35 332d 4143 2d31 3828 6129  -800-53-AC-18(a)
│ │ │ +0015d550: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0015d560: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0015d570: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0015d580: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0015d590: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ +0015d5a0: 542d 3830 302d 3533 2d4d 502d 370a 2020  T-800-53-MP-7.  
│ │ │ +0015d5b0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0015d5c0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0015d5d0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0015d5e0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0015d5f0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0015d600: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0015d610: 640a 2020 2d20 7365 7276 6963 655f 626c  d.  - service_bl
│ │ │ +0015d620: 7565 746f 6f74 685f 6469 7361 626c 6564  uetooth_disabled
│ │ │ +0015d630: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +0015d640: 6520 426c 7565 746f 6f74 6820 5365 7276  e Bluetooth Serv
│ │ │ +0015d650: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ +0015d660: 7276 6963 6520 626c 7565 746f 6f74 680a  rvice bluetooth.
│ │ │ +0015d670: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0015d680: 6d65 3a20 4469 7361 626c 6520 426c 7565  me: Disable Blue
│ │ │ +0015d690: 746f 6f74 6820 5365 7276 6963 6520 2d20  tooth Service - 
│ │ │ +0015d6a0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +0015d6b0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +0015d6c0: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +0015d6d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0015d6e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0015d6f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0015d700: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +0015d710: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +0015d720: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +0015d730: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0015d740: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0015d750: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +0015d760: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +0015d770: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0015d780: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0015d790: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0015d7a0: 6973 6162 6c65 2042 6c75 6574 6f6f 7468  isable Bluetooth
│ │ │ +0015d7b0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +0015d7c0: 6520 626c 7565 746f 6f74 682e 7365 7276  e bluetooth.serv
│ │ │ +0015d7d0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +0015d7e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0015d7f0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0015d800: 206e 616d 653a 2062 6c75 6574 6f6f 7468   name: bluetooth
│ │ │ +0015d810: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +0015d820: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0015d830: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0015d840: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +0015d850: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +0015d860: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +0015d870: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0015d880: 6561 7263 6828 2262 6c75 6574 6f6f 7468  earch("bluetooth
│ │ │ +0015d890: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +0015d8a0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +0015d8b0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +0015d8c0: 7420 4578 6973 7473 202d 2062 6c75 6574  t Exists - bluet
│ │ │ +0015d8d0: 6f6f 7468 2e73 6f63 6b65 740a 2020 2020  ooth.socket.    
│ │ │ +0015d8e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0015d8f0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0015d900: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0015d910: 6669 6c65 7320 626c 7565 746f 6f74 682e  files bluetooth.
│ │ │ +0015d920: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +0015d930: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +0015d940: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0015d950: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0015d960: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0015d970: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0015d980: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +0015d990: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +0015d9a0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +0015d9b0: 6e61 6d65 3a20 4469 7361 626c 6520 426c  name: Disable Bl
│ │ │ +0015d9c0: 7565 746f 6f74 6820 5365 7276 6963 6520  uetooth Service 
│ │ │ +0015d9d0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +0015d9e0: 2062 6c75 6574 6f6f 7468 0a20 2020 2061   bluetooth.    a
│ │ │ +0015d9f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0015da00: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0015da10: 6d65 3a20 626c 7565 746f 6f74 682e 736f  me: bluetooth.so
│ │ │ +0015da20: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +0015da30: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0015da40: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0015da50: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0015da60: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +0015da70: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +0015da80: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0015da90: 6561 7263 6828 2262 6c75 6574 6f6f 7468  earch("bluetooth
│ │ │ +0015daa0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +0015dab0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +0015dac0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +0015dad0: 3731 2d33 2e31 2e31 360a 2020 2d20 4e49  71-3.1.16.  - NI
│ │ │ +0015dae0: 5354 2d38 3030 2d35 332d 4143 2d31 3828  ST-800-53-AC-18(
│ │ │ +0015daf0: 3329 0a20 202d 204e 4953 542d 3830 302d  3).  - NIST-800-
│ │ │ +0015db00: 3533 2d41 432d 3138 2861 290a 2020 2d20  53-AC-18(a).  - 
│ │ │ +0015db10: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0015db20: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0015db30: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +0015db40: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0015db50: 2862 290a 2020 2d20 4e49 5354 2d38 3030  (b).  - NIST-800
│ │ │ +0015db60: 2d35 332d 4d50 2d37 0a20 202d 2064 6973  -53-MP-7.  - dis
│ │ │ +0015db70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0015db80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0015db90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0015dba0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0015dbb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0015dbc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0015dbd0: 2073 6572 7669 6365 5f62 6c75 6574 6f6f   service_bluetoo
│ │ │ +0015dbe0: 7468 5f64 6973 6162 6c65 640a 2020 2d20  th_disabled.  - 
│ │ │ +0015dbf0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +0015dc00: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +0015dc10: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0015dc20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0015dc30: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +0015dcf0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0015dd00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0015dd80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0015dd90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0015ddb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0015ddc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0015dde0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0015de00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0015de30: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +0015de40: 6162 6c65 5f62 6c75 6574 6f6f 7468 0a0a  able_bluetooth..
│ │ │ +0015de50: 636c 6173 7320 6469 7361 626c 655f 626c  class disable_bl
│ │ │ +0015de60: 7565 746f 6f74 6820 7b0a 2020 7365 7276  uetooth {.  serv
│ │ │ +0015de70: 6963 6520 7b27 626c 7565 746f 6f74 6827  ice {'bluetooth'
│ │ │ +0015de80: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0015de90: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +0015dea0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +0015deb0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +0015ded0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0015dee0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0015def0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0015df00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0015df10: 6434 3636 2220 7461 6269 6e64 6578 3d22 d466" tabindex=" │ │ │ +0015df20: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0015df30: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0015df40: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0015df50: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0015df60: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0015df70: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0015df80: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0015df90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0015dfe0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0015dff0: 735d 0a6d 6173 6b65 6420 3d20 5b22 626c s].masked = ["bl │ │ │ +0015e000: 7565 746f 6f74 6822 5d0a 3c2f 636f 6465 uetooth"].
Remediatio │ │ │ -001c6fd0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -001c6fe0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -001c7070: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -001c7090: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -001c70a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001c70b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -001c70c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -001c70e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001c7110: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -001c7120: 6d6f 7665 5f61 7574 6f66 730a 0a63 6c61  move_autofs..cla
│ │ │ -001c7130: 7373 2072 656d 6f76 655f 6175 746f 6673  ss remove_autofs
│ │ │ -001c7140: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -001c7150: 6175 746f 6673 273a 0a20 2020 2065 6e73  autofs':.    ens
│ │ │ -001c7160: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -001c7170: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -001c7230: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -001c7240: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -001c72f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001c7310: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001c7340: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001c72d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001c72e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001c7300: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001c7320: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001c7330: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001c7370: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001c7380: 3a20 2752 656d 6f76 6520 6175 746f 6673 : 'Remove autofs │ │ │ -001c7390: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -001c73a0: 2061 7574 6f66 7320 6973 2072 656d 6f76 autofs is remov │ │ │ -001c73b0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -001c73c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -001c73d0: 2020 206e 616d 653a 2061 7574 6f66 730a name: autofs. │ │ │ -001c73e0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -001c73f0: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ -001c7400: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -001c7410: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -001c7420: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -001c7430: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ -001c7440: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -001c7450: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -001c7460: 6163 6b61 6765 5f61 7574 6f66 735f 7265 ackage_autofs_re │ │ │ -001c7470: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.


< │ │ │ +001c7060: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001c7070: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001c7090: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001c70a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001c70c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +001c70e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +001c7110: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2752  - name: 'R
│ │ │ +001c7120: 656d 6f76 6520 6175 746f 6673 2050 6163  emove autofs Pac
│ │ │ +001c7130: 6b61 6765 3a20 456e 7375 7265 2061 7574  kage: Ensure aut
│ │ │ +001c7140: 6f66 7320 6973 2072 656d 6f76 6564 270a  ofs is removed'.
│ │ │ +001c7150: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +001c7160: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +001c7170: 616d 653a 2061 7574 6f66 730a 2020 2020  ame: autofs.    
│ │ │ +001c7180: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +001c7190: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +001c71a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001c71b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001c71c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001c71d0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +001c71e0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +001c71f0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +001c7200: 6765 5f61 7574 6f66 735f 7265 6d6f 7665  ge_autofs_remove
│ │ │ +001c7210: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +001c7220: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001c72d0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001c72e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001c73b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001c73c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +001c7420: 5f61 7574 6f66 730a 0a63 6c61 7373 2072  _autofs..class r
│ │ │ +001c7430: 656d 6f76 655f 6175 746f 6673 207b 0a20  emove_autofs {. 
│ │ │ +001c7440: 2070 6163 6b61 6765 207b 2027 6175 746f   package { 'auto
│ │ │ +001c7450: 6673 273a 0a20 2020 2065 6e73 7572 6520  fs':.    ensure 
│ │ │ +001c7460: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +001c7470: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Re │ │ │ -001c8ca0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -001c8cb0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -001c8cc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001c8cd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001c8ce0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001c8cf0: 7365 2220 6964 3d22 6964 3731 3422 3e3c se" id="id714">< │ │ │ -001c8d00: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -001c8d10: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -001c8d20: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -001c8d30: 6175 746f 6673 225d 0a3c 2f63 6f64 653e autofs"]. │ │ │ -001c8d40: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -001c8df0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -001c8e00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001c8e10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001c8e20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001c8e30: 7365 2220 6964 3d22 6964 3731 3522 3e3c se" id="id715">< │ │ │ -001c8e40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001c8e50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001c8e60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001c8e70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001c8e80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ -001c8f10: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -001c8f20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +001c7390: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001c73a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001c73e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001c73f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -001c8e90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001c8ea0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -001c8ee0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001c8ef0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -001c8f40: 6973 6162 6c65 5f61 7574 6f66 730a 0a63  isable_autofs..c
│ │ │ -001c8f50: 6c61 7373 2064 6973 6162 6c65 5f61 7574  lass disable_aut
│ │ │ -001c8f60: 6f66 7320 7b0a 2020 7365 7276 6963 6520  ofs {.  service 
│ │ │ -001c8f70: 7b27 6175 746f 6673 273a 0a20 2020 2065  {'autofs':.    e
│ │ │ -001c8f80: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -001c8f90: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -001c8fa0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -001c8fb0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -001c9070: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -001c9080: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -001c9110: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -001c9130: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -001c9140: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001c9150: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -001c9160: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -001c9180: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001c91b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -001c91c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -001c91d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -001c91e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -001c91f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -001c9200: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -001c9210: 312d 332e 342e 360a 2020 2d20 4e49 5354  1-3.4.6.  - NIST
│ │ │ -001c9220: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -001c9230: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001c9240: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -001c9250: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -001c9260: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001c9270: 4d50 2d37 0a20 202d 2064 6973 6162 6c65  MP-7.  - disable
│ │ │ -001c9280: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -001c9290: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001c92a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001c92b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -001c92c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -001c92d0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -001c92e0: 7669 6365 5f61 7574 6f66 735f 6469 7361  vice_autofs_disa
│ │ │ -001c92f0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -001c9300: 7361 626c 6520 7468 6520 4175 746f 6d6f  sable the Automo
│ │ │ -001c9310: 756e 7465 7220 2d20 4469 7361 626c 6520  unter - Disable 
│ │ │ -001c9320: 7365 7276 6963 6520 6175 746f 6673 0a20  service autofs. 
│ │ │ -001c9330: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -001c9340: 653a 2044 6973 6162 6c65 2074 6865 2041  e: Disable the A
│ │ │ -001c9350: 7574 6f6d 6f75 6e74 6572 202d 2043 6f6c  utomounter - Col
│ │ │ -001c9360: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -001c9370: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -001c9380: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -001c9390: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001c93a0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -001c93b0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -001c93c0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -001c93d0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -001c93e0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -001c93f0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -001c9400: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -001c9410: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -001c9420: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -001c9430: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -001c9440: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -001c9450: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -001c9460: 626c 6520 7468 6520 4175 746f 6d6f 756e  ble the Automoun
│ │ │ -001c9470: 7465 7220 2d20 456e 7375 7265 2061 7574  ter - Ensure aut
│ │ │ -001c9480: 6f66 732e 7365 7276 6963 6520 6973 204d  ofs.service is M
│ │ │ -001c9490: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -001c94a0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -001c94b0: 643a 0a20 2020 2020 206e 616d 653a 2061  d:.      name: a
│ │ │ -001c94c0: 7574 6f66 732e 7365 7276 6963 650a 2020  utofs.service.  
│ │ │ -001c94d0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -001c94e0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -001c94f0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -001c9500: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -001c9510: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -001c9520: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -001c9530: 2069 7320 7365 6172 6368 2822 6175 746f   is search("auto
│ │ │ -001c9540: 6673 2e73 6572 7669 6365 222c 206d 756c  fs.service", mul
│ │ │ -001c9550: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -001c9560: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -001c9570: 6b65 7420 4578 6973 7473 202d 2061 7574  ket Exists - aut
│ │ │ -001c9580: 6f66 732e 736f 636b 6574 0a20 2020 2061  ofs.socket.    a
│ │ │ -001c9590: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -001c95a0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -001c95b0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -001c95c0: 696c 6573 2061 7574 6f66 732e 736f 636b  iles autofs.sock
│ │ │ -001c95d0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -001c95e0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -001c95f0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -001c9600: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -001c9610: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -001c9620: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -001c9630: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -001c9640: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -001c9650: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -001c9660: 3a20 4469 7361 626c 6520 7468 6520 4175  : Disable the Au
│ │ │ -001c9670: 746f 6d6f 756e 7465 7220 2d20 4469 7361  tomounter - Disa
│ │ │ -001c9680: 626c 6520 536f 636b 6574 2061 7574 6f66  ble Socket autof
│ │ │ -001c9690: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -001c96a0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -001c96b0: 2020 2020 206e 616d 653a 2061 7574 6f66       name: autof
│ │ │ -001c96c0: 732e 736f 636b 6574 0a20 2020 2020 2065  s.socket.      e
│ │ │ -001c96d0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -001c96e0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -001c96f0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -001c9700: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -001c9710: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -001c9720: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -001c9730: 6973 2073 6561 7263 6828 2261 7574 6f66  is search("autof
│ │ │ -001c9740: 732e 736f 636b 6574 222c 206d 756c 7469  s.socket", multi
│ │ │ -001c9750: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -001c9760: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -001c9770: 3137 312d 332e 342e 360a 2020 2d20 4e49  171-3.4.6.  - NI
│ │ │ -001c9780: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -001c9790: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001c97a0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -001c97b0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -001c97c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001c97d0: 332d 4d50 2d37 0a20 202d 2064 6973 6162  3-MP-7.  - disab
│ │ │ -001c97e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -001c97f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -001c9800: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -001c9810: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -001c9820: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -001c9830: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -001c9840: 6572 7669 6365 5f61 7574 6f66 735f 6469  ervice_autofs_di
│ │ │ -001c9850: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -001c9860: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -001c9870: 0a20 2077 6865 6e3a 2028 2022 6175 746f  .  when: ( "auto
│ │ │ -001c9880: 6673 2220 696e 2061 6e73 6962 6c65 5f66  fs" in ansible_f
│ │ │ -001c9890: 6163 7473 2e70 6163 6b61 6765 7320 616e  acts.packages an
│ │ │ -001c98a0: 6420 226c 696e 7578 2d62 6173 6522 2069  d "linux-base" i
│ │ │ -001c98b0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -001c98c0: 7061 636b 6167 6573 0a20 2020 2029 0a3c  packages.    ).<
│ │ │ +001c8ca0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +001c8cb0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +001c8d50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001c8d60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001c8db0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +001c8df0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +001c8e00: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +001c8e10: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +001c8e20: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +001c8e30: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +001c8e40: 5354 2d38 3030 2d31 3731 2d33 2e34 2e36  ST-800-171-3.4.6
│ │ │ +001c8e50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001c8e60: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +001c8e70: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +001c8e80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001c8e90: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ +001c8ea0: 542d 3830 302d 3533 2d4d 502d 370a 2020  T-800-53-MP-7.  
│ │ │ +001c8eb0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +001c8ec0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +001c8ed0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +001c8ee0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +001c8ef0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +001c8f00: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001c8f10: 640a 2020 2d20 7365 7276 6963 655f 6175  d.  - service_au
│ │ │ +001c8f20: 746f 6673 5f64 6973 6162 6c65 640a 0a2d  tofs_disabled..-
│ │ │ +001c8f30: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +001c8f40: 6865 2041 7574 6f6d 6f75 6e74 6572 202d  he Automounter -
│ │ │ +001c8f50: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +001c8f60: 2061 7574 6f66 730a 2020 626c 6f63 6b3a   autofs.  block:
│ │ │ +001c8f70: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +001c8f80: 626c 6520 7468 6520 4175 746f 6d6f 756e  ble the Automoun
│ │ │ +001c8f90: 7465 7220 2d20 436f 6c6c 6563 7420 7379  ter - Collect sy
│ │ │ +001c8fa0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +001c8fb0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +001c8fc0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +001c8fd0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +001c8fe0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +001c8ff0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +001c9000: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +001c9010: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +001c9020: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +001c9030: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +001c9040: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +001c9050: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +001c9060: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +001c9070: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +001c9080: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +001c9090: 616d 653a 2044 6973 6162 6c65 2074 6865  ame: Disable the
│ │ │ +001c90a0: 2041 7574 6f6d 6f75 6e74 6572 202d 2045   Automounter - E
│ │ │ +001c90b0: 6e73 7572 6520 6175 746f 6673 2e73 6572  nsure autofs.ser
│ │ │ +001c90c0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +001c90d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +001c90e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +001c90f0: 2020 6e61 6d65 3a20 6175 746f 6673 2e73    name: autofs.s
│ │ │ +001c9100: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +001c9110: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +001c9120: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +001c9130: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +001c9140: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +001c9150: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +001c9160: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +001c9170: 7263 6828 2261 7574 6f66 732e 7365 7276  rch("autofs.serv
│ │ │ +001c9180: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +001c9190: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +001c91a0: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +001c91b0: 7374 7320 2d20 6175 746f 6673 2e73 6f63  sts - autofs.soc
│ │ │ +001c91c0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +001c91d0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +001c91e0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +001c91f0: 7374 2d75 6e69 742d 6669 6c65 7320 6175  st-unit-files au
│ │ │ +001c9200: 746f 6673 2e73 6f63 6b65 740a 2020 2020  tofs.socket.    
│ │ │ +001c9210: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +001c9220: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +001c9230: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +001c9240: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +001c9250: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +001c9260: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +001c9270: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +001c9280: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +001c9290: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +001c92a0: 6c65 2074 6865 2041 7574 6f6d 6f75 6e74  le the Automount
│ │ │ +001c92b0: 6572 202d 2044 6973 6162 6c65 2053 6f63  er - Disable Soc
│ │ │ +001c92c0: 6b65 7420 6175 746f 6673 0a20 2020 2061  ket autofs.    a
│ │ │ +001c92d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +001c92e0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +001c92f0: 6d65 3a20 6175 746f 6673 2e73 6f63 6b65  me: autofs.socke
│ │ │ +001c9300: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +001c9310: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +001c9320: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +001c9330: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +001c9340: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +001c9350: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +001c9360: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +001c9370: 6368 2822 6175 746f 6673 2e73 6f63 6b65  ch("autofs.socke
│ │ │ +001c9380: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +001c9390: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +001c93a0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ +001c93b0: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ +001c93c0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +001c93d0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001c93e0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001c93f0: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ +001c9400: 4953 542d 3830 302d 3533 2d4d 502d 370a  IST-800-53-MP-7.
│ │ │ +001c9410: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001c9420: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001c9430: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001c9440: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001c9450: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +001c9460: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +001c9470: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +001c9480: 6175 746f 6673 5f64 6973 6162 6c65 640a  autofs_disabled.
│ │ │ +001c9490: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +001c94a0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +001c94b0: 3a20 2820 2261 7574 6f66 7322 2069 6e20  : ( "autofs" in 
│ │ │ +001c94c0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +001c94d0: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ +001c94e0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +001c94f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +001c9500: 730a 2020 2020 290a 3c2f 636f 6465 3e3c  s.    ).<
│ │ │ +001c9510: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +001c95c0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +001c95d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +001c9650: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +001c96e0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ +001c8d40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001c8d70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001c8d80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001c8dc0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001c8dd0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +001c9660: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001c9670: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +001c96b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001c96c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +001c9700: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +001c9710: 7361 626c 655f 6175 746f 6673 0a0a 636c  sable_autofs..cl
│ │ │ +001c9720: 6173 7320 6469 7361 626c 655f 6175 746f  ass disable_auto
│ │ │ +001c9730: 6673 207b 0a20 2073 6572 7669 6365 207b  fs {.  service {
│ │ │ +001c9740: 2761 7574 6f66 7327 3a0a 2020 2020 656e  'autofs':.    en
│ │ │ +001c9750: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +001c9760: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +001c9770: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +001c9780: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +001c9840: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +001c9850: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +001c98a0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +001c98b0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +001c98c0: 6420 3d20 5b22 6175 746f 6673 225d 0a3c  d = ["autofs"].<
│ │ │  001c98d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002178c0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002178d0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00217970: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00217a10: 696e 636c 7564 6520 7265 6d6f 7665 5f61  include remove_a
│ │ │ -00217a20: 7661 6869 0a0a 636c 6173 7320 7265 6d6f  vahi..class remo
│ │ │ -00217a30: 7665 5f61 7661 6869 207b 0a20 2070 6163  ve_avahi {.  pac
│ │ │ -00217a40: 6b61 6765 207b 2027 6176 6168 6927 3a0a  kage { 'avahi':.
│ │ │ -00217a50: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00217a60: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -00217a70: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00217b30: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00217b40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ -00217960: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00217990: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002179a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002179e0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002179f0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -00217c10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00217c20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00217c80: 616c 6c20 6176 6168 6920 5365 7276 6572  all avahi Server
│ │ │ -00217c90: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -00217ca0: 2061 7661 6869 2069 7320 7265 6d6f 7665   avahi is remove
│ │ │ -00217cb0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00217cc0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00217cd0: 2020 6e61 6d65 3a20 6176 6168 690a 2020    name: avahi.  
│ │ │ -00217ce0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00217cf0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00217d00: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00217d10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00217d20: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00217d30: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00217d40: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00217d50: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00217d60: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00217d70: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00217d80: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00217d90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00217da0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00217db0: 6176 6168 695f 7265 6d6f 7665 640a 3c2f  avahi_removed.
low
Disru │ │ │ -00217bf0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00217c00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00217c40: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00217c50: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002179b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002179c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00217a10: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +00217a20: 6c6c 2061 7661 6869 2053 6572 7665 7220  ll avahi Server 
│ │ │ +00217a30: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00217a40: 6176 6168 6920 6973 2072 656d 6f76 6564  avahi is removed
│ │ │ +00217a50: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00217a60: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00217a70: 206e 616d 653a 2061 7661 6869 0a20 2020   name: avahi.   
│ │ │ +00217a80: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00217a90: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00217aa0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00217ab0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00217ac0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00217ad0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00217ae0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00217af0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00217b00: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00217b10: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00217b20: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00217b30: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00217b40: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +00217b50: 7661 6869 5f72 656d 6f76 6564 0a3c 2f63  vahi_removed.
│ │ │ +00217b70: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00217c10: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00217c20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00217c30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +00217990: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002179a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002179e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002179f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +00217cb0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00217ce0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00217d00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00217d10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00217d30: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00217d40: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00217d60: 6c75 6465 2072 656d 6f76 655f 6176 6168  lude remove_avah
│ │ │ +00217d70: 690a 0a63 6c61 7373 2072 656d 6f76 655f  i..class remove_
│ │ │ +00217d80: 6176 6168 6920 7b0a 2020 7061 636b 6167  avahi {.  packag
│ │ │ +00217d90: 6520 7b20 2761 7661 6869 273a 0a20 2020  e { 'avahi':.   
│ │ │ +00217da0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +00217db0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remedi │ │ │ -00219250: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00219260: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00219270: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -002192b0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -002192c0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -002192d0: 0a6d 6173 6b65 6420 3d20 5b22 6176 6168  .masked = ["avah
│ │ │ -002192e0: 692d 6461 656d 6f6e 225d 0a3c 2f63 6f64  i-daemon"].
Remed │ │ │ -002193a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002193b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00219460: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00219480: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002194b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00219440: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00219450: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00219470: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00219490: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002194a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -002194f0: 2064 6973 6162 6c65 5f61 7661 6869 2d64 disable_avahi-d │ │ │ -00219500: 6165 6d6f 6e0a 0a63 6c61 7373 2064 6973 aemon..class dis │ │ │ -00219510: 6162 6c65 5f61 7661 6869 2d64 6165 6d6f able_avahi-daemo │ │ │ -00219520: 6e20 7b0a 2020 7365 7276 6963 6520 7b27 n {. service {' │ │ │ -00219530: 6176 6168 692d 6461 656d 6f6e 273a 0a20 avahi-daemon':. │ │ │ -00219540: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ -00219550: 6661 6c73 652c 0a20 2020 2065 6e73 7572 false,. ensur │ │ │ -00219560: 6520 3d26 6774 3b20 2773 746f 7070 6564 e => 'stopped │ │ │ -00219570: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00219580: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -00219630: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00219640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00219650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00219680: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002196f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00219710: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00219740: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002196d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002196e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00219720: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00219730: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00219780: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00219790: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -002197a0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002197b0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002197c0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002197d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -002197e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -002197f0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -00219800: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -00219810: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -00219820: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00219830: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ -00219840: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00219850: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00219860: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00219870: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00219880: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00219890: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -002198a0: 6365 5f61 7661 6869 2d64 6165 6d6f 6e5f ce_avahi-daemon_ │ │ │ -002198b0: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65 disabled..- name │ │ │ -002198c0: 3a20 4469 7361 626c 6520 4176 6168 6920 : Disable Avahi │ │ │ -002198d0: 5365 7276 6572 2053 6f66 7477 6172 6520 Server Software │ │ │ -002198e0: 2d20 4469 7361 626c 6520 7365 7276 6963 - Disable servic │ │ │ -002198f0: 6520 6176 6168 692d 6461 656d 6f6e 0a20 e avahi-daemon. │ │ │ -00219900: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -00219910: 653a 2044 6973 6162 6c65 2041 7661 6869 e: Disable Avahi │ │ │ -00219920: 2053 6572 7665 7220 536f 6674 7761 7265 Server Software │ │ │ -00219930: 202d 2043 6f6c 6c65 6374 2073 7973 7465 - Collect syste │ │ │ -00219940: 6d64 2053 6572 7669 6365 7320 5072 6573 md Services Pres │ │ │ -00219950: 656e 7420 696e 2074 6865 0a20 2020 2020 ent in the. │ │ │ -00219960: 2053 7973 7465 6d0a 2020 2020 616e 7369 System. ansi │ │ │ -00219970: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -00219980: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -00219990: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -002199a0: 7320 2d2d 7479 7065 2073 6572 7669 6365 s --type service │ │ │ -002199b0: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -002199c0: 6572 7669 6365 5f65 7869 7374 730a 2020 ervice_exists. │ │ │ -002199d0: 2020 6368 616e 6765 645f 7768 656e 3a20 changed_when: │ │ │ -002199e0: 6661 6c73 650a 2020 2020 6661 696c 6564 false. failed │ │ │ -002199f0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65 _when: service_e │ │ │ -00219a00: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ -00219a10: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ -00219a20: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ -00219a30: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -00219a40: 4176 6168 6920 5365 7276 6572 2053 6f66 Avahi Server Sof │ │ │ -00219a50: 7477 6172 6520 2d20 456e 7375 7265 2061 tware - Ensure a │ │ │ -00219a60: 7661 6869 2d64 6165 6d6f 6e2e 7365 7276 vahi-daemon.serv │ │ │ -00219a70: 6963 6520 6973 204d 6173 6b65 640a 2020 ice is Masked. │ │ │ -00219a80: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00219a90: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -00219aa0: 206e 616d 653a 2061 7661 6869 2d64 6165 name: avahi-dae │ │ │ -00219ab0: 6d6f 6e2e 7365 7276 6963 650a 2020 2020 mon.service. │ │ │ -00219ac0: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -00219ad0: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -00219ae0: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -00219af0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -00219b00: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -00219b10: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -00219b20: 7320 7365 6172 6368 2822 6176 6168 692d s search("avahi- │ │ │ -00219b30: 6461 656d 6f6e 2e73 6572 7669 6365 222c daemon.service", │ │ │ -00219b40: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ -00219b50: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ -00219b60: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ -00219b70: 2061 7661 6869 2d64 6165 6d6f 6e2e 736f avahi-daemon.so │ │ │ -00219b80: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ -00219b90: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ -00219ba0: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ -00219bb0: 6973 742d 756e 6974 2d66 696c 6573 2061 ist-unit-files a │ │ │ -00219bc0: 7661 6869 2d64 6165 6d6f 6e2e 736f 636b vahi-daemon.sock │ │ │ -00219bd0: 6574 0a20 2020 2072 6567 6973 7465 723a et. register: │ │ │ -00219be0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -00219bf0: 7374 730a 2020 2020 6368 616e 6765 645f sts. changed_ │ │ │ -00219c00: 7768 656e 3a20 6661 6c73 650a 2020 2020 when: false. │ │ │ -00219c10: 6661 696c 6564 5f77 6865 6e3a 2073 6f63 failed_when: soc │ │ │ -00219c20: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ -00219c30: 7263 206e 6f74 2069 6e20 5b30 2c20 315d rc not in [0, 1] │ │ │ -00219c40: 0a20 2020 2063 6865 636b 5f6d 6f64 653a . check_mode: │ │ │ -00219c50: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65 false.. - name │ │ │ -00219c60: 3a20 4469 7361 626c 6520 4176 6168 6920 : Disable Avahi │ │ │ -00219c70: 5365 7276 6572 2053 6f66 7477 6172 6520 Server Software │ │ │ -00219c80: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ -00219c90: 2061 7661 6869 2d64 6165 6d6f 6e0a 2020 avahi-daemon. │ │ │ -00219ca0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00219cb0: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -00219cc0: 206e 616d 653a 2061 7661 6869 2d64 6165 name: avahi-dae │ │ │ -00219cd0: 6d6f 6e2e 736f 636b 6574 0a20 2020 2020 mon.socket. │ │ │ -00219ce0: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ -00219cf0: 2020 2020 2020 7374 6174 653a 2073 746f state: sto │ │ │ -00219d00: 7070 6564 0a20 2020 2020 206d 6173 6b65 pped. maske │ │ │ -00219d10: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ -00219d20: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -00219d30: 6973 7473 2e73 7464 6f75 745f 6c69 6e65 ists.stdout_line │ │ │ -00219d40: 7320 6973 2073 6561 7263 6828 2261 7661 s is search("ava │ │ │ -00219d50: 6869 2d64 6165 6d6f 6e2e 736f 636b 6574 hi-daemon.socket │ │ │ -00219d60: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -00219d70: 6529 0a20 2074 6167 733a 0a20 202d 204e e). tags:. - N │ │ │ -00219d80: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00219d90: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -00219da0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ -00219db0: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ -00219dc0: 6229 0a20 202d 2050 4349 2d44 5353 7634 b). - PCI-DSSv4 │ │ │ -00219dd0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353 -2.2. - PCI-DSS │ │ │ -00219de0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973 v4-2.2.4. - dis │ │ │ -00219df0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -00219e00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -00219e10: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -00219e20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -00219e30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -00219e40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -00219e50: 2073 6572 7669 6365 5f61 7661 6869 2d64 service_avahi-d │ │ │ -00219e60: 6165 6d6f 6e5f 6469 7361 626c 6564 0a20 aemon_disabled. │ │ │ -00219e70: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -00219e80: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -00219e90: 2028 2022 6176 6168 6922 2069 6e20 616e ( "avahi" in an │ │ │ -00219ea0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -00219eb0: 6167 6573 2061 6e64 2022 6c69 6e75 782d ages and "linux- │ │ │ -00219ec0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00219ed0: 5f66 6163 7473 2e70 6163 6b61 6765 730a _facts.packages. │ │ │ -00219ee0: 2020 2020 290a 3c2f 636f 6465 3e3c 2f70 ).


│ │ │ +00219310: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00219330: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00219360: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002192f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00219300: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00219320: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00219340: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00219350: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00219390: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002193a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002193b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002193c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +002193d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +002193e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002193f0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00219400: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00219410: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +00219420: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +00219430: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +00219440: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +00219450: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +00219460: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00219470: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00219480: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00219490: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +002194a0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +002194b0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +002194c0: 6963 655f 6176 6168 692d 6461 656d 6f6e ice_avahi-daemon │ │ │ +002194d0: 5f64 6973 6162 6c65 640a 0a2d 206e 616d _disabled..- nam │ │ │ +002194e0: 653a 2044 6973 6162 6c65 2041 7661 6869 e: Disable Avahi │ │ │ +002194f0: 2053 6572 7665 7220 536f 6674 7761 7265 Server Software │ │ │ +00219500: 202d 2044 6973 6162 6c65 2073 6572 7669 - Disable servi │ │ │ +00219510: 6365 2061 7661 6869 2d64 6165 6d6f 6e0a ce avahi-daemon. │ │ │ +00219520: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ +00219530: 6d65 3a20 4469 7361 626c 6520 4176 6168 me: Disable Avah │ │ │ +00219540: 6920 5365 7276 6572 2053 6f66 7477 6172 i Server Softwar │ │ │ +00219550: 6520 2d20 436f 6c6c 6563 7420 7379 7374 e - Collect syst │ │ │ +00219560: 656d 6420 5365 7276 6963 6573 2050 7265 emd Services Pre │ │ │ +00219570: 7365 6e74 2069 6e20 7468 650a 2020 2020 sent in the. │ │ │ +00219580: 2020 5379 7374 656d 0a20 2020 2061 6e73 System. ans │ │ │ +00219590: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +002195a0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ +002195b0: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ +002195c0: 6573 202d 2d74 7970 6520 7365 7276 6963 es --type servic │ │ │ +002195d0: 650a 2020 2020 7265 6769 7374 6572 3a20 e. register: │ │ │ +002195e0: 7365 7276 6963 655f 6578 6973 7473 0a20 service_exists. │ │ │ +002195f0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +00219600: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +00219610: 645f 7768 656e 3a20 7365 7276 6963 655f d_when: service_ │ │ │ +00219620: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ +00219630: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ +00219640: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ +00219650: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ +00219660: 2041 7661 6869 2053 6572 7665 7220 536f Avahi Server So │ │ │ +00219670: 6674 7761 7265 202d 2045 6e73 7572 6520 ftware - Ensure │ │ │ +00219680: 6176 6168 692d 6461 656d 6f6e 2e73 6572 avahi-daemon.ser │ │ │ +00219690: 7669 6365 2069 7320 4d61 736b 6564 0a20 vice is Masked. │ │ │ +002196a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +002196b0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +002196c0: 2020 6e61 6d65 3a20 6176 6168 692d 6461 name: avahi-da │ │ │ +002196d0: 656d 6f6e 2e73 6572 7669 6365 0a20 2020 emon.service. │ │ │ +002196e0: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +002196f0: 640a 2020 2020 2020 656e 6162 6c65 643a d. enabled: │ │ │ +00219700: 2066 616c 7365 0a20 2020 2020 206d 6173 false. mas │ │ │ +00219710: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ +00219720: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ +00219730: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ +00219740: 6973 2073 6561 7263 6828 2261 7661 6869 is search("avahi │ │ │ +00219750: 2d64 6165 6d6f 6e2e 7365 7276 6963 6522 -daemon.service" │ │ │ +00219760: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ +00219770: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ +00219780: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ +00219790: 2d20 6176 6168 692d 6461 656d 6f6e 2e73 - avahi-daemon.s │ │ │ +002197a0: 6f63 6b65 740a 2020 2020 616e 7369 626c ocket. ansibl │ │ │ +002197b0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ +002197c0: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ +002197d0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ +002197e0: 6176 6168 692d 6461 656d 6f6e 2e73 6f63 avahi-daemon.soc │ │ │ +002197f0: 6b65 740a 2020 2020 7265 6769 7374 6572 ket. register │ │ │ +00219800: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ +00219810: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ +00219820: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ +00219830: 2066 6169 6c65 645f 7768 656e 3a20 736f failed_when: so │ │ │ +00219840: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ +00219850: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ +00219860: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ +00219870: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ +00219880: 653a 2044 6973 6162 6c65 2041 7661 6869 e: Disable Avahi │ │ │ +00219890: 2053 6572 7665 7220 536f 6674 7761 7265 Server Software │ │ │ +002198a0: 202d 2044 6973 6162 6c65 2053 6f63 6b65 - Disable Socke │ │ │ +002198b0: 7420 6176 6168 692d 6461 656d 6f6e 0a20 t avahi-daemon. │ │ │ +002198c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +002198d0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +002198e0: 2020 6e61 6d65 3a20 6176 6168 692d 6461 name: avahi-da │ │ │ +002198f0: 656d 6f6e 2e73 6f63 6b65 740a 2020 2020 emon.socket. │ │ │ +00219900: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +00219910: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ +00219920: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ +00219930: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ +00219940: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ +00219950: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ +00219960: 6573 2069 7320 7365 6172 6368 2822 6176 es is search("av │ │ │ +00219970: 6168 692d 6461 656d 6f6e 2e73 6f63 6b65 ahi-daemon.socke │ │ │ +00219980: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ +00219990: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ +002199a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +002199b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +002199c0: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +002199d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +002199e0: 2862 290a 2020 2d20 5043 492d 4453 5376 (b). - PCI-DSSv │ │ │ +002199f0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +00219a00: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ +00219a10: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +00219a20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +00219a30: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +00219a40: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +00219a50: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +00219a60: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +00219a70: 2d20 7365 7276 6963 655f 6176 6168 692d - service_avahi- │ │ │ +00219a80: 6461 656d 6f6e 5f64 6973 6162 6c65 640a daemon_disabled. │ │ │ +00219a90: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +00219aa0: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +00219ab0: 3a20 2820 2261 7661 6869 2220 696e 2061 : ( "avahi" in a │ │ │ +00219ac0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +00219ad0: 6b61 6765 7320 616e 6420 226c 696e 7578 kages and "linux │ │ │ +00219ae0: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ +00219af0: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +00219b00: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f . ).
Remediati │ │ │ +00219bc0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00219bd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00219c50: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00219c60: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00219c80: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00219c90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00219cb0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00219cd0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00219d00: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +00219d10: 6162 6c65 5f61 7661 6869 2d64 6165 6d6f  able_avahi-daemo
│ │ │ +00219d20: 6e0a 0a63 6c61 7373 2064 6973 6162 6c65  n..class disable
│ │ │ +00219d30: 5f61 7661 6869 2d64 6165 6d6f 6e20 7b0a  _avahi-daemon {.
│ │ │ +00219d40: 2020 7365 7276 6963 6520 7b27 6176 6168    service {'avah
│ │ │ +00219d50: 692d 6461 656d 6f6e 273a 0a20 2020 2065  i-daemon':.    e
│ │ │ +00219d60: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +00219d70: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +00219d80: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +00219d90: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +00219e50: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00219e60: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +00219ec0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +00219ed0: 6564 203d 205b 2261 7661 6869 2d64 6165  ed = ["avahi-dae
│ │ │ +00219ee0: 6d6f 6e22 5d0a 3c2f 636f 6465 3e3c 2f70  mon"].

│ │ │ -0022a430: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0022a440: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0022a450: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -0022a4a0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -0022a4b0: 2022 6372 6f6e 220a 7665 7273 696f 6e20   "cron".version 
│ │ │ -0022a4c0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -0022a580: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0022a590: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0022a620: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0022a640: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0022a650: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0022a660: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0022a670: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0022a690: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -0022a6d0: 616c 6c5f 6372 6f6e 0a0a 636c 6173 7320  all_cron..class 
│ │ │ -0022a6e0: 696e 7374 616c 6c5f 6372 6f6e 207b 0a20  install_cron {. 
│ │ │ -0022a6f0: 2070 6163 6b61 6765 207b 2027 6372 6f6e   package { 'cron
│ │ │ -0022a700: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0022a710: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -0022a720: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -0022a7e0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0022a7f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0022a870: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0022a880: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0022a890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0022a8d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0022a8e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0022a900: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0022a920: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0022a930: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0022a940: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0022a950: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0022a960: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0022a970: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0022a980: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -0022a990: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -0022a9a0: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -0022a9b0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0022a9c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0022a9d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0022a9e0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0022a9f0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0022aa00: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0022aa10: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ -0022aa20: 726f 6e5f 696e 7374 616c 6c65 640a 0a2d  ron_installed..-
│ │ │ -0022aa30: 206e 616d 653a 2045 6e73 7572 6520 6372   name: Ensure cr
│ │ │ -0022aa40: 6f6e 2069 7320 696e 7374 616c 6c65 640a  on is installed.
│ │ │ -0022aa50: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0022aa60: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0022aa70: 616d 653a 2063 726f 6e0a 2020 2020 7374  ame: cron.    st
│ │ │ -0022aa80: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -0022aa90: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0022aaa0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0022aab0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0022aac0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0022aad0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0022aae0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -0022aaf0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -0022ab00: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ -0022ab10: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0022ab20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0022ab30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0022ab40: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0022ab50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0022ab60: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0022ab70: 6765 5f63 726f 6e5f 696e 7374 616c 6c65  ge_cron_installe
│ │ │ -0022ab80: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0022a430: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +0022a440: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +0022a450: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0022a520: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0022a530: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +0022a580: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0022a590: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0022a5a0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0022a5b0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0022a5c0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0022a5d0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0022a5e0: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +0022a5f0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0022a600: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +0022a610: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0022a620: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0022a630: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0022a640: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0022a650: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0022a660: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0022a670: 7061 636b 6167 655f 6372 6f6e 5f69 6e73  package_cron_ins
│ │ │ +0022a680: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +0022a690: 456e 7375 7265 2063 726f 6e20 6973 2069  Ensure cron is i
│ │ │ +0022a6a0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +0022a6b0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0022a6c0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6372  ge:.    name: cr
│ │ │ +0022a6d0: 6f6e 0a20 2020 2073 7461 7465 3a20 7072  on.    state: pr
│ │ │ +0022a6e0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +0022a6f0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0022a700: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0022a710: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +0022a720: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0022a730: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0022a740: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0022a750: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +0022a760: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0022a770: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0022a780: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0022a790: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0022a7a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0022a7b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0022a7c0: 2020 2d20 7061 636b 6167 655f 6372 6f6e    - package_cron
│ │ │ +0022a7d0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +0022a890: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0022a8a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +0022a500: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0022a510: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0022a550: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0022a560: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0022a950: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0022a970: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0022a9a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0022a930: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0022a940: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0022a960: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0022a980: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0022a990: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0022a9e0: 2069 6e73 7461 6c6c 5f63 726f 6e0a 0a63 install_cron..c │ │ │ +0022a9f0: 6c61 7373 2069 6e73 7461 6c6c 5f63 726f lass install_cro │ │ │ +0022aa00: 6e20 7b0a 2020 7061 636b 6167 6520 7b20 n {. package { │ │ │ +0022aa10: 2763 726f 6e27 3a0a 2020 2020 656e 7375 'cron':. ensu │ │ │ +0022aa20: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ +0022aa30: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ +0022aa50: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0022aa60: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0022aa70: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0022aa80: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0022aa90: 6438 3437 2220 7461 6269 6e64 6578 3d22 d847" tabindex=" │ │ │ +0022aaa0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0022aab0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0022aac0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0022aad0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0022aae0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0022aaf0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0022ab00: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0022ab10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +0022ab60: 6765 735d 5d0a 6e61 6d65 203d 2022 6372 ges]].name = "cr │ │ │ +0022ab70: 6f6e 220a 7665 7273 696f 6e20 3d20 222a on".version = "* │ │ │ +0022ab80: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 0022ab90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -0022bda0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0022bdb0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0022bdc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -0022be10: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0022be20: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ -0022be30: 205b 2263 726f 6e22 5d0a 3c2f 636f 6465   ["cron"].
Remedi │ │ │ -0022bef0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0022bf00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0022bf10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0022bf40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0022bfb0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0022bfd0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0022c000: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0022c020: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0022bf90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0022bfa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0022bfe0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0022bff0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0022c040: 656e 6162 6c65 5f63 726f 6e0a 0a63 6c61 enable_cron..cla │ │ │ -0022c050: 7373 2065 6e61 626c 655f 6372 6f6e 207b ss enable_cron { │ │ │ -0022c060: 0a20 2073 6572 7669 6365 207b 2763 726f . service {'cro │ │ │ -0022c070: 6e27 3a0a 2020 2020 656e 6162 6c65 203d n':. enable = │ │ │ -0022c080: 2667 743b 2074 7275 652c 0a20 2020 2065 > true,. e │ │ │ -0022c090: 6e73 7572 6520 3d26 6774 3b20 2772 756e nsure => 'run │ │ │ -0022c0a0: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63 ning',. }.}.
│ │ │ -0022c0c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0022c160: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0022c170: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0022c180: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0022c220: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0022c270: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0022c200: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0022c230: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0022c250: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0022c260: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0022c280: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0022c290: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0022c2b0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0022c2c0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0022c2d0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0022c2e0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0022c2f0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0022c300: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0022c310: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0022c320: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0022c330: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0022c340: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0022c350: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0022c360: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0022c370: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ -0022c380: 726f 6e5f 656e 6162 6c65 640a 0a2d 206e  ron_enabled..- n
│ │ │ -0022c390: 616d 653a 2045 6e61 626c 6520 6372 6f6e  ame: Enable cron
│ │ │ -0022c3a0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -0022c3b0: 6520 7365 7276 6963 6520 6372 6f6e 0a20  e service cron. 
│ │ │ -0022c3c0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0022c3d0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0022c3e0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -0022c3f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0022c400: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0022c410: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -0022c420: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ -0022c430: 6162 6c65 2063 726f 6e20 5365 7276 6963  able cron Servic
│ │ │ -0022c440: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -0022c450: 6365 2063 726f 6e0a 2020 2020 616e 7369  ce cron.    ansi
│ │ │ -0022c460: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0022c470: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0022c480: 2063 726f 6e0a 2020 2020 2020 656e 6162   cron.      enab
│ │ │ -0022c490: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -0022c4a0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -0022c4b0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -0022c4c0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -0022c4d0: 202d 2027 2263 726f 6e22 2069 6e20 616e   - '"cron" in an
│ │ │ -0022c4e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0022c4f0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -0022c500: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0022c510: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -0022c520: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0022c530: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0022c540: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0022c550: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0022c560: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0022c570: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0022c580: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ -0022c590: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -0022c5a0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -0022c5b0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0022c5c0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0022c5d0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
< │ │ │ +0022be90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0022bea0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +0022bef0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0022bf00: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0022bf10: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0022bf20: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0022bf30: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0022bf40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0022bf50: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +0022bf60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0022bf70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0022bf80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0022bf90: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0022bfa0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0022bfb0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0022bfc0: 655f 6372 6f6e 5f65 6e61 626c 6564 0a0a  e_cron_enabled..
│ │ │ +0022bfd0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2063  - name: Enable c
│ │ │ +0022bfe0: 726f 6e20 5365 7276 6963 6520 2d20 456e  ron Service - En
│ │ │ +0022bff0: 6162 6c65 2073 6572 7669 6365 2063 726f  able service cro
│ │ │ +0022c000: 6e0a 2020 626c 6f63 6b3a 0a0a 2020 2d20  n.  block:..  - 
│ │ │ +0022c010: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0022c020: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0022c030: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0022c040: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ +0022c050: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ +0022c060: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ +0022c070: 2045 6e61 626c 6520 6372 6f6e 2053 6572   Enable cron Ser
│ │ │ +0022c080: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ +0022c090: 7276 6963 6520 6372 6f6e 0a20 2020 2061  rvice cron.    a
│ │ │ +0022c0a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0022c0b0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0022c0c0: 6d65 3a20 6372 6f6e 0a20 2020 2020 2065  me: cron.      e
│ │ │ +0022c0d0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +0022c0e0: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +0022c0f0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +0022c100: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +0022c110: 2020 2020 2d20 2722 6372 6f6e 2220 696e      - '"cron" in
│ │ │ +0022c120: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0022c130: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +0022c140: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0022c150: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +0022c160: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0022c170: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0022c180: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0022c190: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0022c1a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0022c1b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0022c1c0: 7365 7276 6963 655f 6372 6f6e 5f65 6e61  service_cron_ena
│ │ │ +0022c1d0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +0022c1e0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +0022c1f0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0022c200: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0022c210: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0022c220: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0022c2d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0022c2e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +0022be70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0022be80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0022bec0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0022bed0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0022c380: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0022c420: 636c 7564 6520 656e 6162 6c65 5f63 726f  clude enable_cro
│ │ │ +0022c430: 6e0a 0a63 6c61 7373 2065 6e61 626c 655f  n..class enable_
│ │ │ +0022c440: 6372 6f6e 207b 0a20 2073 6572 7669 6365  cron {.  service
│ │ │ +0022c450: 207b 2763 726f 6e27 3a0a 2020 2020 656e   {'cron':.    en
│ │ │ +0022c460: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +0022c470: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0022c480: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +0022c490: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0022c4a0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +0022c550: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0022c560: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0022c570: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0022c5b0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0022c5c0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +0022c5d0: 6420 3d20 5b22 6372 6f6e 225d 0a3c 2f63  d = ["cron"].
│ │ │ 0022c5f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 │ │ │ -00248840: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00248850: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0022c370: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0022c3a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0022c3b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0022c3f0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0022c400: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002488f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00248990: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ -002489a0: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ -002489b0: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ -002489c0: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ -002489d0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002489e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00248aa0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00248ab0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -002488e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00248910: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00248920: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00248960: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00248970: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00248b40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00248b50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00248b70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00248b90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00248ba0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00248be0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00248bf0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -00248c00: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ -00248c10: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ -00248c20: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -00248c30: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00248c40: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ -00248c50: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00248c60: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00248c70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00248c80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00248c90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00248ca0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -00248cb0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00248cc0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00248cd0: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ -00248ce0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00248840: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00248850: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00248860: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00248930: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00248940: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00248990: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +002489a0: 6c6c 2074 6865 206e 6973 2070 6163 6b61  ll the nis packa
│ │ │ +002489b0: 6765 3a20 456e 7375 7265 206e 6973 2069  ge: Ensure nis i
│ │ │ +002489c0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002489d0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002489e0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002489f0: 6e69 730a 2020 2020 7374 6174 653a 2061  nis.    state: a
│ │ │ +00248a00: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00248a10: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00248a20: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00248a30: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00248a40: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +00248a50: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00248a60: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00248a70: 202d 2070 6163 6b61 6765 5f6e 6973 5f72   - package_nis_r
│ │ │ +00248a80: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +00248b40: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00248b50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00248bd0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00248c10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +00248910: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00248920: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00248960: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00248970: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +00248be0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00248c00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00248c30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00248c50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00248c80: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00248c90: 656d 6f76 655f 6e69 730a 0a63 6c61 7373  emove_nis..class
│ │ │ +00248ca0: 2072 656d 6f76 655f 6e69 7320 7b0a 2020   remove_nis {.  
│ │ │ +00248cb0: 7061 636b 6167 6520 7b20 276e 6973 273a  package { 'nis':
│ │ │ +00248cc0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00248cd0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00248ce0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00248cf0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -0024aa70: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0024aa80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0024ab10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0024ab30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0024ab50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0024ab80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024ab90: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0024abc0: 6f76 655f 6468 6370 0a0a 636c 6173 7320  ove_dhcp..class 
│ │ │ -0024abd0: 7265 6d6f 7665 5f64 6863 7020 7b0a 2020  remove_dhcp {.  
│ │ │ -0024abe0: 7061 636b 6167 6520 7b20 2764 6863 7027  package { 'dhcp'
│ │ │ -0024abf0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0024ac00: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0024ac10: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0024ac20: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -0024acd0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0024ace0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0024ad60: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0024ad80: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0024add0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0024ae00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0024ad70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0024ad90: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0024ade0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0024adf0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0024ae20: 7374 616c 6c20 4448 4350 2053 6572 7665  stall DHCP Serve
│ │ │ -0024ae30: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ -0024ae40: 6520 6468 6370 2069 7320 7265 6d6f 7665  e dhcp is remove
│ │ │ -0024ae50: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -0024ae60: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0024ae70: 2020 6e61 6d65 3a20 6468 6370 0a20 2020    name: dhcp.   
│ │ │ -0024ae80: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0024ae90: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0024aea0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0024aeb0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0024aec0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0024aed0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0024aee0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0024aef0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0024af00: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -0024af10: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0024af20: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0024af30: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0024af40: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0024af50: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0024af60: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0024af70: 6b61 6765 5f64 6863 705f 7265 6d6f 7665  kage_dhcp_remove
│ │ │ -0024af80: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0024aa70: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0024aa80: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0024ab10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024ab30: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024ab40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024ab50: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024ab60: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024ab80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024abb0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0024abc0: 696e 7374 616c 6c20 4448 4350 2053 6572  install DHCP Ser
│ │ │ +0024abd0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +0024abe0: 7572 6520 6468 6370 2069 7320 7265 6d6f  ure dhcp is remo
│ │ │ +0024abf0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0024ac00: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0024ac10: 2020 2020 6e61 6d65 3a20 6468 6370 0a20      name: dhcp. 
│ │ │ +0024ac20: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0024ac30: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0024ac40: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0024ac50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0024ac60: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0024ac70: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0024ac80: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0024ac90: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0024aca0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +0024acb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0024acc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0024acd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0024ace0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0024acf0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0024ad00: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0024ad10: 6163 6b61 6765 5f64 6863 705f 7265 6d6f  ackage_dhcp_remo
│ │ │ +0024ad20: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0024ade0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0024adf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0024ae70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0024ae90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0024aee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0024af10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0024ae80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0024aea0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0024aef0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0024af00: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0024af30: 7665 5f64 6863 700a 0a63 6c61 7373 2072  ve_dhcp..class r
│ │ │ +0024af40: 656d 6f76 655f 6468 6370 207b 0a20 2070  emove_dhcp {.  p
│ │ │ +0024af50: 6163 6b61 6765 207b 2027 6468 6370 273a  ackage { 'dhcp':
│ │ │ +0024af60: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0024af70: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0024af80: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0024af90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -0024bde0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0024bdf0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0024be00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024be10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024be20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024be30: 7365 2220 6964 3d22 6964 3931 3722 3e3c se" id="id917">< │ │ │ -0024be40: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0024be50: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0024be60: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0024be70: 6468 6370 6436 225d 0a3c 2f63 6f64 653e dhcpd6"]. │ │ │ -0024be80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -0024bf30: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0024bf40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024bf50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024bf60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024bf70: 7365 2220 6964 3d22 6964 3931 3822 3e3c se" id="id918">< │ │ │ -0024bf80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024bf90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024bfa0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024bfb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024bfc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024bfd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024bfe0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024c020: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024c030: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024c050: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0024c060: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0024c080: 6973 6162 6c65 5f64 6863 7064 360a 0a63  isable_dhcpd6..c
│ │ │ -0024c090: 6c61 7373 2064 6973 6162 6c65 5f64 6863  lass disable_dhc
│ │ │ -0024c0a0: 7064 3620 7b0a 2020 7365 7276 6963 6520  pd6 {.  service 
│ │ │ -0024c0b0: 7b27 6468 6370 6436 273a 0a20 2020 2065  {'dhcpd6':.    e
│ │ │ -0024c0c0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -0024c0d0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -0024c0e0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -0024c0f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0024c1b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0024c1c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0024c250: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0024c270: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0024c280: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0024c290: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0024c2a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0024c2c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0024c2f0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0024c300: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0024c310: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0024c320: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0024c330: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0024c340: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0024c350: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0024c360: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0024c370: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0024c380: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0024c390: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0024c3a0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0024c3b0: 5f64 6863 7064 365f 6469 7361 626c 6564  _dhcpd6_disabled
│ │ │ -0024c3c0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -0024c3d0: 6520 4448 4350 4436 2053 6572 7669 6365  e DHCPD6 Service
│ │ │ -0024c3e0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0024c3f0: 6365 2064 6863 7064 360a 2020 626c 6f63  ce dhcpd6.  bloc
│ │ │ -0024c400: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -0024c410: 7361 626c 6520 4448 4350 4436 2053 6572  sable DHCPD6 Ser
│ │ │ -0024c420: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ -0024c430: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ -0024c440: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ -0024c450: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ -0024c460: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -0024c470: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -0024c480: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -0024c490: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ -0024c4a0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ -0024c4b0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ -0024c4c0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0024c4d0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0024c4e0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -0024c4f0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0024c500: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0024c510: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0024c520: 6e61 6d65 3a20 4469 7361 626c 6520 4448  name: Disable DH
│ │ │ -0024c530: 4350 4436 2053 6572 7669 6365 202d 2045  CPD6 Service - E
│ │ │ -0024c540: 6e73 7572 6520 6468 6370 6436 2e73 6572  nsure dhcpd6.ser
│ │ │ -0024c550: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -0024c560: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0024c570: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0024c580: 2020 6e61 6d65 3a20 6468 6370 6436 2e73    name: dhcpd6.s
│ │ │ -0024c590: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -0024c5a0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0024c5b0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0024c5c0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0024c5d0: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -0024c5e0: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -0024c5f0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0024c600: 7263 6828 2264 6863 7064 362e 7365 7276  rch("dhcpd6.serv
│ │ │ -0024c610: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -0024c620: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -0024c630: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -0024c640: 7374 7320 2d20 6468 6370 6436 2e73 6f63  sts - dhcpd6.soc
│ │ │ -0024c650: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -0024c660: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0024c670: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0024c680: 7374 2d75 6e69 742d 6669 6c65 7320 6468  st-unit-files dh
│ │ │ -0024c690: 6370 6436 2e73 6f63 6b65 740a 2020 2020  cpd6.socket.    
│ │ │ -0024c6a0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -0024c6b0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -0024c6c0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0024c6d0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0024c6e0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0024c6f0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0024c700: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0024c710: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0024c720: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0024c730: 6c65 2044 4843 5044 3620 5365 7276 6963  le DHCPD6 Servic
│ │ │ -0024c740: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ -0024c750: 6574 2064 6863 7064 360a 2020 2020 616e  et dhcpd6.    an
│ │ │ -0024c760: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0024c770: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0024c780: 653a 2064 6863 7064 362e 736f 636b 6574  e: dhcpd6.socket
│ │ │ -0024c790: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0024c7a0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -0024c7b0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -0024c7c0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0024c7d0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -0024c7e0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -0024c7f0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0024c800: 6828 2264 6863 7064 362e 736f 636b 6574  h("dhcpd6.socket
│ │ │ -0024c810: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0024c820: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -0024c830: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0024c840: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0024c850: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0024c860: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0024c870: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0024c880: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0024c890: 202d 2073 6572 7669 6365 5f64 6863 7064   - service_dhcpd
│ │ │ -0024c8a0: 365f 6469 7361 626c 6564 0a20 202d 2073  6_disabled.  - s
│ │ │ -0024c8b0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -0024c8c0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -0024c8d0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -0024c8e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0024c8f0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


< │ │ │ +0024be90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024bea0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0024bef0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0024bf30: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0024bf40: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0024bf50: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0024bf60: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0024bf70: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +0024bf80: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0024bf90: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0024bfa0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0024bfb0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0024bfc0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0024bfd0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0024bfe0: 2d20 7365 7276 6963 655f 6468 6370 6436  - service_dhcpd6
│ │ │ +0024bff0: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +0024c000: 653a 2044 6973 6162 6c65 2044 4843 5044  e: Disable DHCPD
│ │ │ +0024c010: 3620 5365 7276 6963 6520 2d20 4469 7361  6 Service - Disa
│ │ │ +0024c020: 626c 6520 7365 7276 6963 6520 6468 6370  ble service dhcp
│ │ │ +0024c030: 6436 0a20 2062 6c6f 636b 3a0a 0a20 202d  d6.  block:..  -
│ │ │ +0024c040: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +0024c050: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ +0024c060: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +0024c070: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +0024c080: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +0024c090: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0024c0a0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0024c0b0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0024c0c0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +0024c0d0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +0024c0e0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +0024c0f0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0024c100: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0024c110: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +0024c120: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +0024c130: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0024c140: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0024c150: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0024c160: 6973 6162 6c65 2044 4843 5044 3620 5365  isable DHCPD6 Se
│ │ │ +0024c170: 7276 6963 6520 2d20 456e 7375 7265 2064  rvice - Ensure d
│ │ │ +0024c180: 6863 7064 362e 7365 7276 6963 6520 6973  hcpd6.service is
│ │ │ +0024c190: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +0024c1a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0024c1b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0024c1c0: 2064 6863 7064 362e 7365 7276 6963 650a   dhcpd6.service.
│ │ │ +0024c1d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0024c1e0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0024c1f0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0024c200: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0024c210: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0024c220: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0024c230: 6573 2069 7320 7365 6172 6368 2822 6468  es is search("dh
│ │ │ +0024c240: 6370 6436 2e73 6572 7669 6365 222c 206d  cpd6.service", m
│ │ │ +0024c250: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +0024c260: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +0024c270: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ +0024c280: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ +0024c290: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024c2a0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0024c2b0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0024c2c0: 2d66 696c 6573 2064 6863 7064 362e 736f  -files dhcpd6.so
│ │ │ +0024c2d0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +0024c2e0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +0024c2f0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0024c300: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0024c310: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0024c320: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0024c330: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0024c340: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0024c350: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0024c360: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +0024c370: 4436 2053 6572 7669 6365 202d 2044 6973  D6 Service - Dis
│ │ │ +0024c380: 6162 6c65 2053 6f63 6b65 7420 6468 6370  able Socket dhcp
│ │ │ +0024c390: 6436 0a20 2020 2061 6e73 6962 6c65 2e62  d6.    ansible.b
│ │ │ +0024c3a0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0024c3b0: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ +0024c3c0: 6436 2e73 6f63 6b65 740a 2020 2020 2020  d6.socket.      
│ │ │ +0024c3d0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0024c3e0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0024c3f0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +0024c400: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +0024c410: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0024c420: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0024c430: 2069 7320 7365 6172 6368 2822 6468 6370   is search("dhcp
│ │ │ +0024c440: 6436 2e73 6f63 6b65 7422 2c20 6d75 6c74  d6.socket", mult
│ │ │ +0024c450: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +0024c460: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +0024c470: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0024c480: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0024c490: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0024c4a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0024c4b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0024c4c0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0024c4d0: 6963 655f 6468 6370 6436 5f64 6973 6162  ice_dhcpd6_disab
│ │ │ +0024c4e0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0024c4f0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0024c500: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0024c510: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0024c520: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0024c530: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0024c5e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0024c5f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +0024be80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0024beb0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0024bec0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0024bf00: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0024bf10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0024c690: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024c6a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0024c6f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +0024c730: 6c75 6465 2064 6973 6162 6c65 5f64 6863  lude disable_dhc
│ │ │ +0024c740: 7064 360a 0a63 6c61 7373 2064 6973 6162  pd6..class disab
│ │ │ +0024c750: 6c65 5f64 6863 7064 3620 7b0a 2020 7365  le_dhcpd6 {.  se
│ │ │ +0024c760: 7276 6963 6520 7b27 6468 6370 6436 273a  rvice {'dhcpd6':
│ │ │ +0024c770: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +0024c780: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +0024c790: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +0024c7a0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +0024c860: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0024c870: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0024c880: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +0024c8d0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0024c8e0: 5d0a 6d61 736b 6564 203d 205b 2264 6863  ].masked = ["dhc
│ │ │ +0024c8f0: 7064 3622 5d0a 3c2f 636f 6465 3e3c 2f70  pd6"].

Remediat │ │ │ -0024dcf0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0024dd00: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0024dd10: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -0024dd60: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -0024dd70: 6173 6b65 6420 3d20 5b22 6468 6370 6422  asked = ["dhcpd"
│ │ │ -0024dd80: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0024dd90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -0024de40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0024de50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ +0024c680: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0024c6b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0024c6c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0024c700: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0024c710: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -0024df20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0024df30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0024df80: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -0024df90: 6468 6370 640a 0a63 6c61 7373 2064 6973  dhcpd..class dis
│ │ │ -0024dfa0: 6162 6c65 5f64 6863 7064 207b 0a20 2073  able_dhcpd {.  s
│ │ │ -0024dfb0: 6572 7669 6365 207b 2764 6863 7064 273a  ervice {'dhcpd':
│ │ │ -0024dfc0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -0024dfd0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -0024dfe0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -0024dff0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0024e0b0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0024e0c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ -0024df00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0024df10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0024df50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0024df60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -0024e150: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0024e160: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0024e180: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0024e1a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0024e1b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0024e1f0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0024e200: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0024e210: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0024e220: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0024e230: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0024e240: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0024e250: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0024e260: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0024e270: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0024e280: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0024e290: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0024e2a0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0024e2b0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0024e2c0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0024e2d0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0024e2e0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0024e2f0: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ -0024e300: 6863 7064 5f64 6973 6162 6c65 640a 0a2d  hcpd_disabled..-
│ │ │ -0024e310: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -0024e320: 4843 5020 5365 7276 6963 6520 2d20 4469  HCP Service - Di
│ │ │ -0024e330: 7361 626c 6520 7365 7276 6963 6520 6468  sable service dh
│ │ │ -0024e340: 6370 640a 2020 626c 6f63 6b3a 0a0a 2020  cpd.  block:..  
│ │ │ -0024e350: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -0024e360: 4448 4350 2053 6572 7669 6365 202d 2043  DHCP Service - C
│ │ │ -0024e370: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -0024e380: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -0024e390: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ -0024e3a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0024e3b0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0024e3c0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0024e3d0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0024e3e0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0024e3f0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0024e400: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0024e410: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0024e420: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0024e430: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0024e440: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0024e450: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0024e460: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -0024e470: 7361 626c 6520 4448 4350 2053 6572 7669  sable DHCP Servi
│ │ │ -0024e480: 6365 202d 2045 6e73 7572 6520 6468 6370  ce - Ensure dhcp
│ │ │ -0024e490: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -0024e4a0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -0024e4b0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0024e4c0: 0a20 2020 2020 206e 616d 653a 2064 6863  .      name: dhc
│ │ │ -0024e4d0: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ -0024e4e0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0024e4f0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0024e500: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -0024e510: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0024e520: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0024e530: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0024e540: 2073 6561 7263 6828 2264 6863 7064 2e73   search("dhcpd.s
│ │ │ -0024e550: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0024e560: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0024e570: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0024e580: 4578 6973 7473 202d 2064 6863 7064 2e73  Exists - dhcpd.s
│ │ │ -0024e590: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -0024e5a0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -0024e5b0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -0024e5c0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -0024e5d0: 6468 6370 642e 736f 636b 6574 0a20 2020  dhcpd.socket.   
│ │ │ -0024e5e0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0024e5f0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0024e600: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0024e610: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0024e620: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0024e630: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0024e640: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0024e650: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0024e660: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0024e670: 626c 6520 4448 4350 2053 6572 7669 6365  ble DHCP Service
│ │ │ -0024e680: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -0024e690: 7420 6468 6370 640a 2020 2020 616e 7369  t dhcpd.    ansi
│ │ │ -0024e6a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0024e6b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0024e6c0: 2064 6863 7064 2e73 6f63 6b65 740a 2020   dhcpd.socket.  
│ │ │ -0024e6d0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0024e6e0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -0024e6f0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -0024e700: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -0024e710: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0024e720: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0024e730: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0024e740: 6468 6370 642e 736f 636b 6574 222c 206d  dhcpd.socket", m
│ │ │ -0024e750: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -0024e760: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0024e770: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0024e780: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0024e790: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0024e7a0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0024e7b0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0024e7c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0024e7d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0024e7e0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0024e7f0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0024e800: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0024e810: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ -0024e820: 6863 7064 5f64 6973 6162 6c65 640a 2020  hcpd_disabled.  
│ │ │ -0024e830: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -0024e840: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -0024e850: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0024e860: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0024e870: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +0024dcf0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +0024dd00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +0024dd10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0024dd20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0024dd30: 7365 2220 6964 3d22 6964 3932 3222 3e3c se" id="id922">< │ │ │ +0024dd40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0024dd50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0024dd60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0024dd70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0024dd80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0024dd90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0024dda0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0024dde0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0024ddf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0024de10: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0024de20: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0024de40: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0024de50: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0024de60: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0024de70: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0024de80: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +0024de90: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +0024dea0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +0024deb0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +0024dec0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ +0024ded0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +0024dee0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0024def0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0024df00: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +0024df10: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +0024df20: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0024df30: 2020 2d20 7365 7276 6963 655f 6468 6370 - service_dhcp │ │ │ +0024df40: 645f 6469 7361 626c 6564 0a0a 2d20 6e61 d_disabled..- na │ │ │ +0024df50: 6d65 3a20 4469 7361 626c 6520 4448 4350 me: Disable DHCP │ │ │ +0024df60: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ +0024df70: 6c65 2073 6572 7669 6365 2064 6863 7064 le service dhcpd │ │ │ +0024df80: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e . block:.. - n │ │ │ +0024df90: 616d 653a 2044 6973 6162 6c65 2044 4843 ame: Disable DHC │ │ │ +0024dfa0: 5020 5365 7276 6963 6520 2d20 436f 6c6c P Service - Coll │ │ │ +0024dfb0: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ +0024dfc0: 6963 6573 2050 7265 7365 6e74 2069 6e20 ices Present in │ │ │ +0024dfd0: 7468 6520 5379 7374 656d 0a20 2020 2061 the System. a │ │ │ +0024dfe0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ +0024dff0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ +0024e000: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ +0024e010: 696c 6573 202d 2d74 7970 6520 7365 7276 iles --type serv │ │ │ +0024e020: 6963 650a 2020 2020 7265 6769 7374 6572 ice. register │ │ │ +0024e030: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ +0024e040: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ +0024e050: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ +0024e060: 6c65 645f 7768 656e 3a20 7365 7276 6963 led_when: servic │ │ │ +0024e070: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ +0024e080: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ +0024e090: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ +0024e0a0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +0024e0b0: 6c65 2044 4843 5020 5365 7276 6963 6520 le DHCP Service │ │ │ +0024e0c0: 2d20 456e 7375 7265 2064 6863 7064 2e73 - Ensure dhcpd.s │ │ │ +0024e0d0: 6572 7669 6365 2069 7320 4d61 736b 6564 ervice is Masked │ │ │ +0024e0e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +0024e0f0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ +0024e100: 2020 2020 6e61 6d65 3a20 6468 6370 642e name: dhcpd. │ │ │ +0024e110: 7365 7276 6963 650a 2020 2020 2020 7374 service. st │ │ │ +0024e120: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ +0024e130: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +0024e140: 650a 2020 2020 2020 6d61 736b 6564 3a20 e. masked: │ │ │ +0024e150: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ +0024e160: 6572 7669 6365 5f65 7869 7374 732e 7374 ervice_exists.st │ │ │ +0024e170: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +0024e180: 6172 6368 2822 6468 6370 642e 7365 7276 arch("dhcpd.serv │ │ │ +0024e190: 6963 6522 2c20 6d75 6c74 696c 696e 653d ice", multiline= │ │ │ +0024e1a0: 5472 7565 290a 0a20 202d 206e 616d 653a True).. - name: │ │ │ +0024e1b0: 2055 6e69 7420 536f 636b 6574 2045 7869 Unit Socket Exi │ │ │ +0024e1c0: 7374 7320 2d20 6468 6370 642e 736f 636b sts - dhcpd.sock │ │ │ +0024e1d0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ +0024e1e0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +0024e1f0: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +0024e200: 742d 756e 6974 2d66 696c 6573 2064 6863 t-unit-files dhc │ │ │ +0024e210: 7064 2e73 6f63 6b65 740a 2020 2020 7265 pd.socket. re │ │ │ +0024e220: 6769 7374 6572 3a20 736f 636b 6574 5f66 gister: socket_f │ │ │ +0024e230: 696c 655f 6578 6973 7473 0a20 2020 2063 ile_exists. c │ │ │ +0024e240: 6861 6e67 6564 5f77 6865 6e3a 2066 616c hanged_when: fal │ │ │ +0024e250: 7365 0a20 2020 2066 6169 6c65 645f 7768 se. failed_wh │ │ │ +0024e260: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ +0024e270: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ +0024e280: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ +0024e290: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ +0024e2a0: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ +0024e2b0: 2044 4843 5020 5365 7276 6963 6520 2d20 DHCP Service - │ │ │ +0024e2c0: 4469 7361 626c 6520 536f 636b 6574 2064 Disable Socket d │ │ │ +0024e2d0: 6863 7064 0a20 2020 2061 6e73 6962 6c65 hcpd. ansible │ │ │ +0024e2e0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ +0024e2f0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6468 :. name: dh │ │ │ +0024e300: 6370 642e 736f 636b 6574 0a20 2020 2020 cpd.socket. │ │ │ +0024e310: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +0024e320: 2020 2020 2020 7374 6174 653a 2073 746f state: sto │ │ │ +0024e330: 7070 6564 0a20 2020 2020 206d 6173 6b65 pped. maske │ │ │ +0024e340: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ +0024e350: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ +0024e360: 6973 7473 2e73 7464 6f75 745f 6c69 6e65 ists.stdout_line │ │ │ +0024e370: 7320 6973 2073 6561 7263 6828 2264 6863 s is search("dhc │ │ │ +0024e380: 7064 2e73 6f63 6b65 7422 2c20 6d75 6c74 pd.socket", mult │ │ │ +0024e390: 696c 696e 653d 5472 7565 290a 2020 7461 iline=True). ta │ │ │ +0024e3a0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +0024e3b0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +0024e3c0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +0024e3d0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +0024e3e0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ +0024e3f0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +0024e400: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0024e410: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0024e420: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +0024e430: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +0024e440: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0024e450: 2020 2d20 7365 7276 6963 655f 6468 6370 - service_dhcp │ │ │ +0024e460: 645f 6469 7361 626c 6564 0a20 202d 2073 d_disabled. - s │ │ │ +0024e470: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ +0024e480: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c lock. when: '"l │ │ │ +0024e490: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ +0024e4a0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +0024e4b0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70 ages'.

Remediatio │ │ │ +0024e570: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0024e580: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0024e610: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024e630: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024e640: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024e650: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024e660: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024e680: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0024e6c0: 626c 655f 6468 6370 640a 0a63 6c61 7373  ble_dhcpd..class
│ │ │ +0024e6d0: 2064 6973 6162 6c65 5f64 6863 7064 207b   disable_dhcpd {
│ │ │ +0024e6e0: 0a20 2073 6572 7669 6365 207b 2764 6863  .  service {'dhc
│ │ │ +0024e6f0: 7064 273a 0a20 2020 2065 6e61 626c 6520  pd':.    enable 
│ │ │ +0024e700: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +0024e710: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +0024e720: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +0024e730: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0024e7e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0024e7f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0024e800: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0024e810: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0024e840: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0024e850: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0024e860: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0024e870: 2264 6863 7064 225d 0a3c 2f63 6f64 653e  "dhcpd"].
│ │ │  0024e880: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation P │ │ │ -00250410: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00250420: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -002504a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002504c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00250510: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00250540: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00250560: 655f 6269 6e64 0a0a 636c 6173 7320 7265  e_bind..class re
│ │ │ -00250570: 6d6f 7665 5f62 696e 6420 7b0a 2020 7061  move_bind {.  pa
│ │ │ -00250580: 636b 6167 6520 7b20 2762 696e 6427 3a0a  ckage { 'bind':.
│ │ │ -00250590: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002505a0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002505b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00250670: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00250680: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -002504d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002504e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00250520: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00250530: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00250750: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00250760: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -002507c0: 616c 6c20 6269 6e64 2050 6163 6b61 6765  all bind Package
│ │ │ -002507d0: 3a20 456e 7375 7265 2062 696e 6420 6973  : Ensure bind is
│ │ │ -002507e0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -002507f0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00250800: 6167 653a 0a20 2020 206e 616d 653a 2062  age:.    name: b
│ │ │ -00250810: 696e 640a 2020 2020 7374 6174 653a 2061  ind.    state: a
│ │ │ -00250820: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00250830: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00250840: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00250850: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00250860: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00250870: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00250880: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00250890: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002508a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002508b0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -002508c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002508d0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002508e0: 6765 5f62 696e 645f 7265 6d6f 7665 640a  ge_bind_removed.
│ │ │ +00250400: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00250410: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00250420: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -00250730: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00250740: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00250780: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00250790: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002504a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002504c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00250510: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00250540: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002504b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002504d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00250520: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00250530: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +00250560: 7374 616c 6c20 6269 6e64 2050 6163 6b61  stall bind Packa
│ │ │ +00250570: 6765 3a20 456e 7375 7265 2062 696e 6420  ge: Ensure bind 
│ │ │ +00250580: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00250590: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002505a0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002505b0: 2062 696e 640a 2020 2020 7374 6174 653a   bind.    state:
│ │ │ +002505c0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002505d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002505e0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002505f0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00250600: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00250610: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +00250620: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00250630: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00250640: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00250650: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +00250660: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00250670: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00250680: 6b61 6765 5f62 696e 645f 7265 6d6f 7665  kage_bind_remove
│ │ │ +00250690: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002506a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00250750: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00250760: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00250830: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00250840: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002508a0: 5f62 696e 640a 0a63 6c61 7373 2072 656d  _bind..class rem
│ │ │ +002508b0: 6f76 655f 6269 6e64 207b 0a20 2070 6163  ove_bind {.  pac
│ │ │ +002508c0: 6b61 6765 207b 2027 6269 6e64 273a 0a20  kage { 'bind':. 
│ │ │ +002508d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002508e0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002508f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Reme │ │ │ -00251c10: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00251c20: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00251c30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -00251c80: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00251c90: 735d 0a6d 6173 6b65 6420 3d20 5b22 6e61 s].masked = ["na │ │ │ -00251ca0: 6d65 6422 5d0a 3c2f 636f 6465 3e3c 2f70 med"].

Remediatio │ │ │ -00251d60: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00251d70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00251e30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00251e40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +00250810: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00250820: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00250860: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00250870: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00251e00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00251e20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00251e50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00251e70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -00251eb0: 626c 655f 6e61 6d65 640a 0a63 6c61 7373  ble_named..class
│ │ │ -00251ec0: 2064 6973 6162 6c65 5f6e 616d 6564 207b   disable_named {
│ │ │ -00251ed0: 0a20 2073 6572 7669 6365 207b 276e 616d  .  service {'nam
│ │ │ -00251ee0: 6564 273a 0a20 2020 2065 6e61 626c 6520  ed':.    enable 
│ │ │ -00251ef0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -00251f00: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -00251f10: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -00251f20: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00251fd0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00251fe0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00252080: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00252120: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00252130: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00252140: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00252150: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00252160: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00252170: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00252180: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00252190: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -002521a0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002521b0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -002521c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002521d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002521e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002521f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00252200: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00252210: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00252220: 6365 5f6e 616d 6564 5f64 6973 6162 6c65  ce_named_disable
│ │ │ -00252230: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -00252240: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ -00252250: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -00252260: 6365 206e 616d 6564 0a20 2062 6c6f 636b  ce named.  block
│ │ │ -00252270: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -00252280: 6162 6c65 206e 616d 6564 2053 6572 7669  able named Servi
│ │ │ -00252290: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -002522a0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -002522b0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -002522c0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -002522d0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002522e0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002522f0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -00252300: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -00252310: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -00252320: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -00252330: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00252340: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -00252350: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -00252360: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00252370: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00252380: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00252390: 6d65 3a20 4469 7361 626c 6520 6e61 6d65  me: Disable name
│ │ │ -002523a0: 6420 5365 7276 6963 6520 2d20 456e 7375  d Service - Ensu
│ │ │ -002523b0: 7265 206e 616d 6564 2e73 6572 7669 6365  re named.service
│ │ │ -002523c0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -002523d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002523e0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002523f0: 6d65 3a20 6e61 6d65 642e 7365 7276 6963  me: named.servic
│ │ │ -00252400: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00252410: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -00252420: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00252430: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00252440: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -00252450: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00252460: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00252470: 6e61 6d65 642e 7365 7276 6963 6522 2c20  named.service", 
│ │ │ -00252480: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00252490: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002524a0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002524b0: 6e61 6d65 642e 736f 636b 6574 0a20 2020  named.socket.   
│ │ │ -002524c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002524d0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002524e0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002524f0: 2d66 696c 6573 206e 616d 6564 2e73 6f63  -files named.soc
│ │ │ -00252500: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -00252510: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00252520: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00252530: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00252540: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -00252550: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00252560: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00252570: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00252580: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00252590: 653a 2044 6973 6162 6c65 206e 616d 6564  e: Disable named
│ │ │ -002525a0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002525b0: 6c65 2053 6f63 6b65 7420 6e61 6d65 640a  le Socket named.
│ │ │ -002525c0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002525d0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002525e0: 2020 206e 616d 653a 206e 616d 6564 2e73     name: named.s
│ │ │ -002525f0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -00252600: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00252610: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -00252620: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00252630: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -00252640: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00252650: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00252660: 7365 6172 6368 2822 6e61 6d65 642e 736f  search("named.so
│ │ │ -00252670: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -00252680: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -00252690: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002526a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -002526b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -002526c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002526d0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -002526e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002526f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00252700: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00252710: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00252720: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00252730: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00252740: 6572 7669 6365 5f6e 616d 6564 5f64 6973  ervice_named_dis
│ │ │ -00252750: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00252760: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -00252770: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00252780: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00252790: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00251c10: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00251c20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00251c30: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
│ │ │ -00252070: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002520a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002520b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002520f0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00252100: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00251cb0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00251ce0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00251d00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00251d10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00251d30: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00251d40: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00251d60: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00251d70: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00251d80: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00251d90: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00251da0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00251db0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00251dc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00251dd0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00251de0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00251df0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00251e00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00251e10: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00251e20: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00251e30: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00251e40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00251e50: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00251e60: 6e61 6d65 645f 6469 7361 626c 6564 0a0a  named_disabled..
│ │ │ +00251e70: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00251e80: 6e61 6d65 6420 5365 7276 6963 6520 2d20  named Service - 
│ │ │ +00251e90: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +00251ea0: 6e61 6d65 640a 2020 626c 6f63 6b3a 0a0a  named.  block:..
│ │ │ +00251eb0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00251ec0: 6520 6e61 6d65 6420 5365 7276 6963 6520  e named Service 
│ │ │ +00251ed0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +00251ee0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +00251ef0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +00251f00: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00251f10: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +00251f20: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +00251f30: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +00251f40: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +00251f50: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +00251f60: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00251f70: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00251f80: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00251f90: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +00251fa0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00251fb0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00251fc0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00251fd0: 2044 6973 6162 6c65 206e 616d 6564 2053   Disable named S
│ │ │ +00251fe0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00251ff0: 6e61 6d65 642e 7365 7276 6963 6520 6973  named.service is
│ │ │ +00252000: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00252010: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00252020: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00252030: 206e 616d 6564 2e73 6572 7669 6365 0a20   named.service. 
│ │ │ +00252040: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00252050: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +00252060: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +00252070: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00252080: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00252090: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002520a0: 7320 6973 2073 6561 7263 6828 226e 616d  s is search("nam
│ │ │ +002520b0: 6564 2e73 6572 7669 6365 222c 206d 756c  ed.service", mul
│ │ │ +002520c0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +002520d0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +002520e0: 6b65 7420 4578 6973 7473 202d 206e 616d  ket Exists - nam
│ │ │ +002520f0: 6564 2e73 6f63 6b65 740a 2020 2020 616e  ed.socket.    an
│ │ │ +00252100: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00252110: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00252120: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00252130: 6c65 7320 6e61 6d65 642e 736f 636b 6574  les named.socket
│ │ │ +00252140: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00252150: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00252160: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00252170: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00252180: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +00252190: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +002521a0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002521b0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002521c0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002521d0: 4469 7361 626c 6520 6e61 6d65 6420 5365  Disable named Se
│ │ │ +002521e0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +002521f0: 536f 636b 6574 206e 616d 6564 0a20 2020  Socket named.   
│ │ │ +00252200: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00252210: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00252220: 6e61 6d65 3a20 6e61 6d65 642e 736f 636b  name: named.sock
│ │ │ +00252230: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00252240: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00252250: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00252260: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00252270: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00252280: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00252290: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002522a0: 7263 6828 226e 616d 6564 2e73 6f63 6b65  rch("named.socke
│ │ │ +002522b0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +002522c0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +002522d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002522e0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002522f0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00252300: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00252310: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00252320: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00252330: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00252340: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00252350: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00252360: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00252370: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00252380: 6963 655f 6e61 6d65 645f 6469 7361 626c  ice_named_disabl
│ │ │ +00252390: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +002523a0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +002523b0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +002523c0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002523d0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +00252490: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002524a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002524b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00252550: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002525a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00252530: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00252560: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00252580: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00252590: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002525b0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +002525c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +002525e0: 7564 6520 6469 7361 626c 655f 6e61 6d65  ude disable_name
│ │ │ +002525f0: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +00252600: 5f6e 616d 6564 207b 0a20 2073 6572 7669  _named {.  servi
│ │ │ +00252610: 6365 207b 276e 616d 6564 273a 0a20 2020  ce {'named':.   
│ │ │ +00252620: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +00252630: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +00252640: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +00252650: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +00252710: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00252720: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00252730: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +00252780: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +00252790: 736b 6564 203d 205b 226e 616d 6564 225d  sked = ["named"]
│ │ │  002527a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -00253630: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00253640: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002536d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002536f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00253710: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00253740: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00253750: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00253780: 6f76 655f 646e 736d 6173 710a 0a63 6c61  ove_dnsmasq..cla
│ │ │ -00253790: 7373 2072 656d 6f76 655f 646e 736d 6173  ss remove_dnsmas
│ │ │ -002537a0: 7120 7b0a 2020 7061 636b 6167 6520 7b20  q {.  package { 
│ │ │ -002537b0: 2764 6e73 6d61 7371 273a 0a20 2020 2065  'dnsmasq':.    e
│ │ │ -002537c0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002537d0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -002537f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00253800: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00253810: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00253820: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00253830: 6439 3337 2220 7461 6269 6e64 6578 3d22 d937" tabindex=" │ │ │ -00253840: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00253850: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00253860: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00253870: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00253880: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00253890: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002538a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002538b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00253930: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00253960: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00253980: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00253990: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002539b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002539c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002539e0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2064  me: 'Uninstall d
│ │ │ -002539f0: 6e73 6d61 7371 2050 6163 6b61 6765 3a20  nsmasq Package: 
│ │ │ -00253a00: 456e 7375 7265 2064 6e73 6d61 7371 2069  Ensure dnsmasq i
│ │ │ -00253a10: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00253a20: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00253a30: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00253a40: 646e 736d 6173 710a 2020 2020 7374 6174  dnsmasq.    stat
│ │ │ -00253a50: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00253a60: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00253a70: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00253a80: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00253a90: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00253aa0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00253ab0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00253ac0: 6564 0a20 202d 2070 6163 6b61 6765 5f64  ed.  - package_d
│ │ │ -00253ad0: 6e73 6d61 7371 5f72 656d 6f76 6564 0a3c  nsmasq_removed.<
│ │ │ +00253630: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00253640: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +002536d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002536f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00253700: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00253710: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00253720: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00253740: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00253770: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00253780: 696e 7374 616c 6c20 646e 736d 6173 7120  install dnsmasq 
│ │ │ +00253790: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +002537a0: 646e 736d 6173 7120 6973 2072 656d 6f76  dnsmasq is remov
│ │ │ +002537b0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +002537c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002537d0: 2020 206e 616d 653a 2064 6e73 6d61 7371     name: dnsmasq
│ │ │ +002537e0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +002537f0: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +00253800: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00253810: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00253820: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00253830: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +00253840: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00253850: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00253860: 7061 636b 6167 655f 646e 736d 6173 715f  package_dnsmasq_
│ │ │ +00253870: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00253880: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00253930: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00253940: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +002539c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002539d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002539e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00253a20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00253a30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00253a50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00253a60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00253a80: 7265 6d6f 7665 5f64 6e73 6d61 7371 0a0a  remove_dnsmasq..
│ │ │ +00253a90: 636c 6173 7320 7265 6d6f 7665 5f64 6e73  class remove_dns
│ │ │ +00253aa0: 6d61 7371 207b 0a20 2070 6163 6b61 6765  masq {.  package
│ │ │ +00253ab0: 207b 2027 646e 736d 6173 7127 3a0a 2020   { 'dnsmasq':.  
│ │ │ +00253ac0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00253ad0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  00253ae0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation OS │ │ │ -002548f0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00254900: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00254910: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -00254950: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -00254960: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -00254970: 3d20 5b22 646e 736d 6173 7122 5d0a 3c2f  = ["dnsmasq"].
Re │ │ │ -00254a30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00254a40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00254a50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00254af0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00254b40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00254ad0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00254b00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00254b20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00254b30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00254b50: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00254b60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00254b80: 7564 6520 6469 7361 626c 655f 646e 736d  ude disable_dnsm
│ │ │ -00254b90: 6173 710a 0a63 6c61 7373 2064 6973 6162  asq..class disab
│ │ │ -00254ba0: 6c65 5f64 6e73 6d61 7371 207b 0a20 2073  le_dnsmasq {.  s
│ │ │ -00254bb0: 6572 7669 6365 207b 2764 6e73 6d61 7371  ervice {'dnsmasq
│ │ │ -00254bc0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00254bd0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -00254be0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -00254bf0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -00254c10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00254cb0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00254cc0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00254cd0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00254d70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00254dc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00254e00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00254e10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00254e20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00254e30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00254e40: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00254e50: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00254e60: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00254e70: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00254e80: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00254e90: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00254ea0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00254eb0: 2073 6572 7669 6365 5f64 6e73 6d61 7371   service_dnsmasq
│ │ │ -00254ec0: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -00254ed0: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ -00254ee0: 7371 2053 6572 7669 6365 202d 2044 6973  sq Service - Dis
│ │ │ -00254ef0: 6162 6c65 2073 6572 7669 6365 2064 6e73  able service dns
│ │ │ -00254f00: 6d61 7371 0a20 2062 6c6f 636b 3a0a 0a20  masq.  block:.. 
│ │ │ -00254f10: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00254f20: 2064 6e73 6d61 7371 2053 6572 7669 6365   dnsmasq Service
│ │ │ -00254f30: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -00254f40: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -00254f50: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -00254f60: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -00254f70: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -00254f80: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -00254f90: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -00254fa0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -00254fb0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -00254fc0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00254fd0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00254fe0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00254ff0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00255000: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00255010: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00255020: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00255030: 3a20 4469 7361 626c 6520 646e 736d 6173  : Disable dnsmas
│ │ │ -00255040: 7120 5365 7276 6963 6520 2d20 456e 7375  q Service - Ensu
│ │ │ -00255050: 7265 2064 6e73 6d61 7371 2e73 6572 7669  re dnsmasq.servi
│ │ │ -00255060: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -00255070: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00255080: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00255090: 6e61 6d65 3a20 646e 736d 6173 712e 7365  name: dnsmasq.se
│ │ │ -002550a0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -002550b0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -002550c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002550d0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002550e0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -002550f0: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -00255100: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00255110: 6368 2822 646e 736d 6173 712e 7365 7276  ch("dnsmasq.serv
│ │ │ -00255120: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -00255130: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -00255140: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -00255150: 7374 7320 2d20 646e 736d 6173 712e 736f  sts - dnsmasq.so
│ │ │ -00255160: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00255170: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00255180: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00255190: 6973 742d 756e 6974 2d66 696c 6573 2064  ist-unit-files d
│ │ │ -002551a0: 6e73 6d61 7371 2e73 6f63 6b65 740a 2020  nsmasq.socket.  
│ │ │ -002551b0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -002551c0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -002551d0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -002551e0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -002551f0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -00255200: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -00255210: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00255220: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00255230: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00255240: 6162 6c65 2064 6e73 6d61 7371 2053 6572  able dnsmasq Ser
│ │ │ -00255250: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -00255260: 6f63 6b65 7420 646e 736d 6173 710a 2020  ocket dnsmasq.  
│ │ │ -00255270: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00255280: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00255290: 206e 616d 653a 2064 6e73 6d61 7371 2e73   name: dnsmasq.s
│ │ │ -002552a0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002552b0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002552c0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002552d0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002552e0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -002552f0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00255300: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00255310: 7365 6172 6368 2822 646e 736d 6173 712e  search("dnsmasq.
│ │ │ -00255320: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00255330: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00255340: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00255350: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00255360: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00255370: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00255380: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00255390: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002553a0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -002553b0: 5f64 6e73 6d61 7371 5f64 6973 6162 6c65  _dnsmasq_disable
│ │ │ -002553c0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -002553d0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -002553e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -002553f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00255400: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.Remediation An
│ │ │ +002548f0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00254900: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Co │ │ │ -00254d50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00254d80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00254da0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00254db0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00254dd0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00254de0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00254980: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002549a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002549f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00254a20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00254a40: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00254a50: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00254a60: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00254a70: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00254a80: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00254a90: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00254aa0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00254ab0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00254ac0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00254ad0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00254ae0: 640a 2020 2d20 7365 7276 6963 655f 646e  d.  - service_dn
│ │ │ +00254af0: 736d 6173 715f 6469 7361 626c 6564 0a0a  smasq_disabled..
│ │ │ +00254b00: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00254b10: 646e 736d 6173 7120 5365 7276 6963 6520  dnsmasq Service 
│ │ │ +00254b20: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +00254b30: 6520 646e 736d 6173 710a 2020 626c 6f63  e dnsmasq.  bloc
│ │ │ +00254b40: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +00254b50: 7361 626c 6520 646e 736d 6173 7120 5365  sable dnsmasq Se
│ │ │ +00254b60: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ +00254b70: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +00254b80: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +00254b90: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +00254ba0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00254bb0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00254bc0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00254bd0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00254be0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +00254bf0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +00254c00: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00254c10: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00254c20: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00254c30: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00254c40: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00254c50: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00254c60: 206e 616d 653a 2044 6973 6162 6c65 2064   name: Disable d
│ │ │ +00254c70: 6e73 6d61 7371 2053 6572 7669 6365 202d  nsmasq Service -
│ │ │ +00254c80: 2045 6e73 7572 6520 646e 736d 6173 712e   Ensure dnsmasq.
│ │ │ +00254c90: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +00254ca0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00254cb0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00254cc0: 2020 2020 206e 616d 653a 2064 6e73 6d61       name: dnsma
│ │ │ +00254cd0: 7371 2e73 6572 7669 6365 0a20 2020 2020  sq.service.     
│ │ │ +00254ce0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00254cf0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00254d00: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +00254d10: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00254d20: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00254d30: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00254d40: 2073 6561 7263 6828 2264 6e73 6d61 7371   search("dnsmasq
│ │ │ +00254d50: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +00254d60: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +00254d70: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +00254d80: 7420 4578 6973 7473 202d 2064 6e73 6d61  t Exists - dnsma
│ │ │ +00254d90: 7371 2e73 6f63 6b65 740a 2020 2020 616e  sq.socket.    an
│ │ │ +00254da0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00254db0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00254dc0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00254dd0: 6c65 7320 646e 736d 6173 712e 736f 636b  les dnsmasq.sock
│ │ │ +00254de0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +00254df0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00254e00: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00254e10: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00254e20: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +00254e30: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00254e40: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00254e50: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00254e60: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00254e70: 3a20 4469 7361 626c 6520 646e 736d 6173  : Disable dnsmas
│ │ │ +00254e80: 7120 5365 7276 6963 6520 2d20 4469 7361  q Service - Disa
│ │ │ +00254e90: 626c 6520 536f 636b 6574 2064 6e73 6d61  ble Socket dnsma
│ │ │ +00254ea0: 7371 0a20 2020 2061 6e73 6962 6c65 2e62  sq.    ansible.b
│ │ │ +00254eb0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00254ec0: 2020 2020 2020 6e61 6d65 3a20 646e 736d        name: dnsm
│ │ │ +00254ed0: 6173 712e 736f 636b 6574 0a20 2020 2020  asq.socket.     
│ │ │ +00254ee0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00254ef0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00254f00: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +00254f10: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00254f20: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00254f30: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00254f40: 7320 6973 2073 6561 7263 6828 2264 6e73  s is search("dns
│ │ │ +00254f50: 6d61 7371 2e73 6f63 6b65 7422 2c20 6d75  masq.socket", mu
│ │ │ +00254f60: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +00254f70: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +00254f80: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00254f90: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00254fa0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00254fb0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00254fc0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00254fd0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00254fe0: 7276 6963 655f 646e 736d 6173 715f 6469  rvice_dnsmasq_di
│ │ │ +00254ff0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +00255000: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00255010: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00255020: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00255030: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00255040: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00255050: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00255100: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00255110: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +002549b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002549c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00254a00: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00254a10: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +002551e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002551f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00255240: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00255250: 646e 736d 6173 710a 0a63 6c61 7373 2064  dnsmasq..class d
│ │ │ +00255260: 6973 6162 6c65 5f64 6e73 6d61 7371 207b  isable_dnsmasq {
│ │ │ +00255270: 0a20 2073 6572 7669 6365 207b 2764 6e73  .  service {'dns
│ │ │ +00255280: 6d61 7371 273a 0a20 2020 2065 6e61 626c  masq':.    enabl
│ │ │ +00255290: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +002552a0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002552b0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +002552c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00255380: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00255390: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +002553e0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +002553f0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00255400: 205b 2264 6e73 6d61 7371 225d 0a3c 2f63   ["dnsmasq"].
│ │ │ 00255420: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002570b0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002570c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002570d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +002551c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002551d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00255210: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00255220: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -00257150: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00257180: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002571a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002571b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002571d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002571e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00257200: 6c75 6465 2072 656d 6f76 655f 7673 6674  lude remove_vsft
│ │ │ -00257210: 7064 0a0a 636c 6173 7320 7265 6d6f 7665  pd..class remove
│ │ │ -00257220: 5f76 7366 7470 6420 7b0a 2020 7061 636b  _vsftpd {.  pack
│ │ │ -00257230: 6167 6520 7b20 2776 7366 7470 6427 3a0a  age { 'vsftpd':.
│ │ │ -00257240: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00257250: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -00257260: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00257320: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00257330: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00257400: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00257410: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00257470: 616c 6c20 7673 6674 7064 2050 6163 6b61  all vsftpd Packa
│ │ │ -00257480: 6765 3a20 456e 7375 7265 2076 7366 7470  ge: Ensure vsftp
│ │ │ -00257490: 6420 6973 2072 656d 6f76 6564 270a 2020  d is removed'.  
│ │ │ -002574a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002574b0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002574c0: 653a 2076 7366 7470 640a 2020 2020 7374  e: vsftpd.    st
│ │ │ -002574d0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002574e0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -002574f0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00257500: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00257510: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00257520: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00257530: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00257540: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00257550: 2d43 4d2d 372e 3128 6969 290a 2020 2d20  -CM-7.1(ii).  - 
│ │ │ -00257560: 4e49 5354 2d38 3030 2d35 332d 4941 2d35  NIST-800-53-IA-5
│ │ │ -00257570: 2831 2928 6329 0a20 202d 204e 4953 542d  (1)(c).  - NIST-
│ │ │ -00257580: 3830 302d 3533 2d49 412d 3528 3129 2e31  800-53-IA-5(1).1
│ │ │ -00257590: 2876 290a 2020 2d20 6469 7361 626c 655f  (v).  - disable_
│ │ │ -002575a0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -002575b0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -002575c0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002575d0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002575e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002575f0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00257600: 655f 7673 6674 7064 5f72 656d 6f76 6564  e_vsftpd_removed
│ │ │ +002570b0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002570c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002570d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -002573e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002573f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00257430: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00257440: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +00257170: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002571c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00257200: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00257210: 7673 6674 7064 2050 6163 6b61 6765 3a20  vsftpd Package: 
│ │ │ +00257220: 456e 7375 7265 2076 7366 7470 6420 6973  Ensure vsftpd is
│ │ │ +00257230: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00257240: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00257250: 6167 653a 0a20 2020 206e 616d 653a 2076  age:.    name: v
│ │ │ +00257260: 7366 7470 640a 2020 2020 7374 6174 653a  sftpd.    state:
│ │ │ +00257270: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +00257280: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00257290: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002572a0: 2d38 3030 2d35 332d 434d 2d37 0a20 202d  -800-53-CM-7.  -
│ │ │ +002572b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002572c0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002572d0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002572e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002572f0: 372e 3128 6969 290a 2020 2d20 4e49 5354  7.1(ii).  - NIST
│ │ │ +00257300: 2d38 3030 2d35 332d 4941 2d35 2831 2928  -800-53-IA-5(1)(
│ │ │ +00257310: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ +00257320: 3533 2d49 412d 3528 3129 2e31 2876 290a  53-IA-5(1).1(v).
│ │ │ +00257330: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00257340: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +00257350: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +00257360: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00257370: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00257380: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00257390: 640a 2020 2d20 7061 636b 6167 655f 7673  d.  - package_vs
│ │ │ +002573a0: 6674 7064 5f72 656d 6f76 6564 0a3c 2f63  ftpd_removed.
│ │ │ +002573c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00257460: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00257470: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00257480: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +00257150: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00257180: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002571a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002571b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002571d0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002571e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +00257500: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00257530: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00257550: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00257560: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00257580: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00257590: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002575b0: 6c75 6465 2072 656d 6f76 655f 7673 6674  lude remove_vsft
│ │ │ +002575c0: 7064 0a0a 636c 6173 7320 7265 6d6f 7665  pd..class remove
│ │ │ +002575d0: 5f76 7366 7470 6420 7b0a 2020 7061 636b  _vsftpd {.  pack
│ │ │ +002575e0: 6167 6520 7b20 2776 7366 7470 6427 3a0a  age { 'vsftpd':.
│ │ │ +002575f0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00257600: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00257610: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Reme │ │ │ -002589a0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -002589b0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -002589c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -00258a10: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00258a20: 735d 0a6d 6173 6b65 6420 3d20 5b22 7673 s].masked = ["vs │ │ │ -00258a30: 6674 7064 225d 0a3c 2f63 6f64 653e 3c2f ftpd"].
Remediati │ │ │ -00258af0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00258b00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00258b80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00258b90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00258bb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00258bc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00258be0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00258c00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00258c30: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00258c40: 6162 6c65 5f76 7366 7470 640a 0a63 6c61  able_vsftpd..cla
│ │ │ -00258c50: 7373 2064 6973 6162 6c65 5f76 7366 7470  ss disable_vsftp
│ │ │ -00258c60: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -00258c70: 7673 6674 7064 273a 0a20 2020 2065 6e61  vsftpd':.    ena
│ │ │ -00258c80: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -00258c90: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00258ca0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -00258cb0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00258cc0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00258d70: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00258d80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00258e00: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00258e20: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00258e70: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00258ea0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00258e10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00258e30: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00258e80: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00258e90: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00258ec0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00258ed0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00258ee0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00258ef0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00258f00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00258f10: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00258f20: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00258f30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00258f40: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -00258f50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00258f60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00258f70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00258f80: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00258f90: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00258fa0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00258fb0: 6572 7669 6365 5f76 7366 7470 645f 6469  ervice_vsftpd_di
│ │ │ -00258fc0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -00258fd0: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ -00258fe0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -00258ff0: 2073 6572 7669 6365 2076 7366 7470 640a   service vsftpd.
│ │ │ -00259000: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -00259010: 6d65 3a20 4469 7361 626c 6520 7673 6674  me: Disable vsft
│ │ │ -00259020: 7064 2053 6572 7669 6365 202d 2043 6f6c  pd Service - Col
│ │ │ -00259030: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -00259040: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -00259050: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -00259060: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00259070: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00259080: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00259090: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -002590a0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -002590b0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -002590c0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002590d0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002590e0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -002590f0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -00259100: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00259110: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00259120: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00259130: 626c 6520 7673 6674 7064 2053 6572 7669  ble vsftpd Servi
│ │ │ -00259140: 6365 202d 2045 6e73 7572 6520 7673 6674  ce - Ensure vsft
│ │ │ -00259150: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ -00259160: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -00259170: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00259180: 3a0a 2020 2020 2020 6e61 6d65 3a20 7673  :.      name: vs
│ │ │ -00259190: 6674 7064 2e73 6572 7669 6365 0a20 2020  ftpd.service.   
│ │ │ -002591a0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -002591b0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -002591c0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -002591d0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -002591e0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002591f0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -00259200: 6973 2073 6561 7263 6828 2276 7366 7470  is search("vsftp
│ │ │ -00259210: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ -00259220: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -00259230: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -00259240: 6574 2045 7869 7374 7320 2d20 7673 6674  et Exists - vsft
│ │ │ -00259250: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ -00259260: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -00259270: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -00259280: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -00259290: 6c65 7320 7673 6674 7064 2e73 6f63 6b65  les vsftpd.socke
│ │ │ -002592a0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ -002592b0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002592c0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -002592d0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -002592e0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ -002592f0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ -00259300: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00259310: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00259320: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00259330: 2044 6973 6162 6c65 2076 7366 7470 6420   Disable vsftpd 
│ │ │ -00259340: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -00259350: 6520 536f 636b 6574 2076 7366 7470 640a  e Socket vsftpd.
│ │ │ -00259360: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00259370: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00259380: 2020 206e 616d 653a 2076 7366 7470 642e     name: vsftpd.
│ │ │ -00259390: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002593a0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002593b0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002593c0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002593d0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -002593e0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002593f0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00259400: 2073 6561 7263 6828 2276 7366 7470 642e   search("vsftpd.
│ │ │ -00259410: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00259420: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00259430: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00259440: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00259450: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -00259460: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00259470: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -00259480: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00259490: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002594a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002594b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -002594c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -002594d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002594e0: 2073 6572 7669 6365 5f76 7366 7470 645f   service_vsftpd_
│ │ │ -002594f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -00259500: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00259510: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -00259520: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00259530: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00259540: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
< │ │ │ +002589c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00258a40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00258a70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00258a90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00258aa0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00258ac0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00258ad0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00258af0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00258b00: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00258b10: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00258b20: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00258b30: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00258b40: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00258b50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00258b60: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00258b70: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00258b80: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00258b90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00258ba0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00258bb0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00258bc0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00258bd0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00258be0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00258bf0: 7673 6674 7064 5f64 6973 6162 6c65 640a  vsftpd_disabled.
│ │ │ +00258c00: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00258c10: 2076 7366 7470 6420 5365 7276 6963 6520   vsftpd Service 
│ │ │ +00258c20: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +00258c30: 6520 7673 6674 7064 0a20 2062 6c6f 636b  e vsftpd.  block
│ │ │ +00258c40: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00258c50: 6162 6c65 2076 7366 7470 6420 5365 7276  able vsftpd Serv
│ │ │ +00258c60: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +00258c70: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +00258c80: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +00258c90: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +00258ca0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00258cb0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00258cc0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +00258cd0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +00258ce0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +00258cf0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +00258d00: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +00258d10: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +00258d20: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00258d30: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00258d40: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00258d50: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00258d60: 616d 653a 2044 6973 6162 6c65 2076 7366  ame: Disable vsf
│ │ │ +00258d70: 7470 6420 5365 7276 6963 6520 2d20 456e  tpd Service - En
│ │ │ +00258d80: 7375 7265 2076 7366 7470 642e 7365 7276  sure vsftpd.serv
│ │ │ +00258d90: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +00258da0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00258db0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00258dc0: 206e 616d 653a 2076 7366 7470 642e 7365   name: vsftpd.se
│ │ │ +00258dd0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +00258de0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00258df0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00258e00: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00258e10: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +00258e20: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +00258e30: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00258e40: 6368 2822 7673 6674 7064 2e73 6572 7669  ch("vsftpd.servi
│ │ │ +00258e50: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +00258e60: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +00258e70: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +00258e80: 7473 202d 2076 7366 7470 642e 736f 636b  ts - vsftpd.sock
│ │ │ +00258e90: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +00258ea0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +00258eb0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +00258ec0: 742d 756e 6974 2d66 696c 6573 2076 7366  t-unit-files vsf
│ │ │ +00258ed0: 7470 642e 736f 636b 6574 0a20 2020 2072  tpd.socket.    r
│ │ │ +00258ee0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +00258ef0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +00258f00: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00258f10: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00258f20: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00258f30: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00258f40: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00258f50: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00258f60: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00258f70: 6520 7673 6674 7064 2053 6572 7669 6365  e vsftpd Service
│ │ │ +00258f80: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +00258f90: 7420 7673 6674 7064 0a20 2020 2061 6e73  t vsftpd.    ans
│ │ │ +00258fa0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00258fb0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00258fc0: 3a20 7673 6674 7064 2e73 6f63 6b65 740a  : vsftpd.socket.
│ │ │ +00258fd0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00258fe0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +00258ff0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00259000: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00259010: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +00259020: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +00259030: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00259040: 2822 7673 6674 7064 2e73 6f63 6b65 7422  ("vsftpd.socket"
│ │ │ +00259050: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +00259060: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ +00259070: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00259080: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00259090: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +002590a0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002590b0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +002590c0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002590d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002590e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002590f0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00259100: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00259110: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00259120: 655f 7673 6674 7064 5f64 6973 6162 6c65  e_vsftpd_disable
│ │ │ +00259130: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00259140: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00259150: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00259160: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00259170: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00259190: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00259230: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00259240: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00259250: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +002592d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00259300: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00259320: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00259330: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00259350: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00259370: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00259380: 6465 2064 6973 6162 6c65 5f76 7366 7470  de disable_vsftp
│ │ │ +00259390: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +002593a0: 5f76 7366 7470 6420 7b0a 2020 7365 7276  _vsftpd {.  serv
│ │ │ +002593b0: 6963 6520 7b27 7673 6674 7064 273a 0a20  ice {'vsftpd':. 
│ │ │ +002593c0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +002593d0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +002593e0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +002593f0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00259400: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002594b0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +002594c0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +002594d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +00259510: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00259520: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00259530: 6d61 736b 6564 203d 205b 2276 7366 7470  masked = ["vsftp
│ │ │ +00259540: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation Pup │ │ │ -0025a540: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0025a550: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0025a620: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0025a630: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0025a680: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0025a690: 6674 700a 0a63 6c61 7373 2072 656d 6f76  ftp..class remov
│ │ │ -0025a6a0: 655f 6674 7020 7b0a 2020 7061 636b 6167  e_ftp {.  packag
│ │ │ -0025a6b0: 6520 7b20 2766 7470 273a 0a20 2020 2065  e { 'ftp':.    e
│ │ │ -0025a6c0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0025a6d0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0025a6f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0025a700: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0025a710: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0025a720: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0025a730: 6439 3535 2220 7461 6269 6e64 6578 3d22 d955" tabindex=" │ │ │ -0025a740: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0025a750: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0025a760: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0025a770: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0025a780: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0025a790: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0025a7a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0025a7b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -0025a600: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0025a610: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0025a650: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0025a660: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0025a830: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0025a860: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0025a880: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0025a890: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0025a8b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0025a8c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0025a8e0: 6d65 3a20 2752 656d 6f76 6520 6674 7020  me: 'Remove ftp 
│ │ │ -0025a8f0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -0025a900: 6674 7020 6973 2072 656d 6f76 6564 270a  ftp is removed'.
│ │ │ -0025a910: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0025a920: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0025a930: 616d 653a 2066 7470 0a20 2020 2073 7461  ame: ftp.    sta
│ │ │ -0025a940: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0025a950: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ -0025a960: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0025a970: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0025a980: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0025a990: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0025a9a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0025a9b0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0025a9c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0025a9d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0025a9e0: 636b 6167 655f 6674 705f 7265 6d6f 7665  ckage_ftp_remove
│ │ │ -0025a9f0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0025a530: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +0025a540: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0025a550: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity: │ │ │ +0025a620: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0025a630: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +0025a690: 2066 7470 2050 6163 6b61 6765 3a20 456e   ftp Package: En
│ │ │ +0025a6a0: 7375 7265 2066 7470 2069 7320 7265 6d6f  sure ftp is remo
│ │ │ +0025a6b0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0025a6c0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0025a6d0: 2020 2020 6e61 6d65 3a20 6674 700a 2020      name: ftp.  
│ │ │ +0025a6e0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0025a6f0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +0025a700: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +0025a710: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +0025a720: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0025a730: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0025a740: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0025a750: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +0025a760: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0025a770: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0025a780: 202d 2070 6163 6b61 6765 5f66 7470 5f72   - package_ftp_r
│ │ │ +0025a790: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0025a850: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0025a860: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0025a8e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0025a920: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +0025a600: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0025a610: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0025a650: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025a660: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +0025a8f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0025a910: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0025a940: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0025a960: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0025a990: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0025a9a0: 656d 6f76 655f 6674 700a 0a63 6c61 7373  emove_ftp..class
│ │ │ +0025a9b0: 2072 656d 6f76 655f 6674 7020 7b0a 2020   remove_ftp {.  
│ │ │ +0025a9c0: 7061 636b 6167 6520 7b20 2766 7470 273a  package { 'ftp':
│ │ │ +0025a9d0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0025a9e0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0025a9f0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0025aa00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -0025b880: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0025b890: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0025b8a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0025b940: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0025b990: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0025b9d0: 636c 7564 6520 7265 6d6f 7665 5f74 6e66  clude remove_tnf
│ │ │ -0025b9e0: 7470 0a0a 636c 6173 7320 7265 6d6f 7665  tp..class remove
│ │ │ -0025b9f0: 5f74 6e66 7470 207b 0a20 2070 6163 6b61  _tnftp {.  packa
│ │ │ -0025ba00: 6765 207b 2027 746e 6674 7027 3a0a 2020  ge { 'tnftp':.  
│ │ │ -0025ba10: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0025ba20: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0025ba30: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0025bae0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0025baf0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Co │ │ │ -0025b920: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0025b950: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0025b970: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0025b980: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0025b9a0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0025b9b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0025bb90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0025bc30: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ -0025bc40: 6e66 7470 2050 6163 6b61 6765 3a20 456e  nftp Package: En
│ │ │ -0025bc50: 7375 7265 2074 6e66 7470 2069 7320 7265  sure tnftp is re
│ │ │ -0025bc60: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0025bc70: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0025bc80: 3a0a 2020 2020 6e61 6d65 3a20 746e 6674  :.    name: tnft
│ │ │ -0025bc90: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ -0025bca0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0025bcb0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0025bcc0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0025bcd0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0025bce0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -0025bcf0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0025bd00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0025bd10: 2070 6163 6b61 6765 5f74 6e66 7470 5f72   package_tnftp_r
│ │ │ -0025bd20: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
│ │ │ -0025bb80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0025bbb0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0025bbc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0025bc00: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0025bc10: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0025b930: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025b940: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0025b990: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0025b9d0: 6e61 6d65 3a20 2752 656d 6f76 6520 746e  name: 'Remove tn
│ │ │ +0025b9e0: 6674 7020 5061 636b 6167 653a 2045 6e73  ftp Package: Ens
│ │ │ +0025b9f0: 7572 6520 746e 6674 7020 6973 2072 656d  ure tnftp is rem
│ │ │ +0025ba00: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0025ba10: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0025ba20: 0a20 2020 206e 616d 653a 2074 6e66 7470  .    name: tnftp
│ │ │ +0025ba30: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0025ba40: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +0025ba50: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0025ba60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0025ba70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0025ba80: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0025ba90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0025baa0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0025bab0: 7061 636b 6167 655f 746e 6674 705f 7265  package_tnftp_re
│ │ │ +0025bac0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0025bb80: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0025bb90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0025bc50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025bc60: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +0025b920: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0025b950: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0025b960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0025b9a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0025b9b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +0025bc20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0025bc40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0025bc70: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0025bc90: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0025bcc0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0025bcd0: 6d6f 7665 5f74 6e66 7470 0a0a 636c 6173  move_tnftp..clas
│ │ │ +0025bce0: 7320 7265 6d6f 7665 5f74 6e66 7470 207b  s remove_tnftp {
│ │ │ +0025bcf0: 0a20 2070 6163 6b61 6765 207b 2027 746e  .  package { 'tn
│ │ │ +0025bd00: 6674 7027 3a0a 2020 2020 656e 7375 7265  ftp':.    ensure
│ │ │ +0025bd10: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0025bd20: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -0025d910: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0025d920: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0025d9a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0025d9b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0025d9c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0025da00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0025da10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0025da30: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0025da40: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0025da60: 7265 6d6f 7665 5f61 7061 6368 6532 0a0a  remove_apache2..
│ │ │ -0025da70: 636c 6173 7320 7265 6d6f 7665 5f61 7061  class remove_apa
│ │ │ -0025da80: 6368 6532 207b 0a20 2070 6163 6b61 6765  che2 {.  package
│ │ │ -0025da90: 207b 2027 6170 6163 6865 3227 3a0a 2020   { 'apache2':.  
│ │ │ -0025daa0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0025dab0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0025dac0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0025db70: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0025db80: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0025dc20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0025dcc0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -0025dcd0: 6c20 6170 6163 6865 3220 5061 636b 6167  l apache2 Packag
│ │ │ -0025dce0: 653a 2045 6e73 7572 6520 6170 6163 6865  e: Ensure apache
│ │ │ -0025dcf0: 3220 6973 2072 656d 6f76 6564 270a 2020  2 is removed'.  
│ │ │ -0025dd00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0025dd10: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0025dd20: 653a 2061 7061 6368 6532 0a20 2020 2073  e: apache2.    s
│ │ │ -0025dd30: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0025dd40: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0025dd50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0025dd60: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0025dd70: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0025dd80: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0025dd90: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0025dda0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0025ddb0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0025ddc0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0025ddd0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0025dde0: 2070 6163 6b61 6765 5f68 7474 7064 5f72   package_httpd_r
│ │ │ -0025ddf0: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ -0025de00: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +0025d930: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0025d940: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0025d950: 7365 2220 6964 3d22 6964 3936 3222 3e3c se" id="id962">< │ │ │ +0025d960: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0025d970: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0025d980: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0025d990: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0025d9a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0025da30: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0025da40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0025dc10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0025dc40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0025dc50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0025dc90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0025dca0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0025d9b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0025d9c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0025da00: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0025da10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0025da60: 2755 6e69 6e73 7461 6c6c 2061 7061 6368 'Uninstall apach │ │ │ +0025da70: 6532 2050 6163 6b61 6765 3a20 456e 7375 e2 Package: Ensu │ │ │ +0025da80: 7265 2061 7061 6368 6532 2069 7320 7265 re apache2 is re │ │ │ +0025da90: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ +0025daa0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +0025dab0: 3a0a 2020 2020 6e61 6d65 3a20 6170 6163 :. name: apac │ │ │ +0025dac0: 6865 320a 2020 2020 7374 6174 653a 2061 he2. state: a │ │ │ +0025dad0: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ +0025dae0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0025daf0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ +0025db00: 3030 2d35 332d 434d 2d37 2861 290a 2020 00-53-CM-7(a). │ │ │ +0025db10: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0025db20: 2d37 2862 290a 2020 2d20 6469 7361 626c -7(b). - disabl │ │ │ +0025db30: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0025db40: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0025db50: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0025db60: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0025db70: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +0025db80: 655f 6874 7470 645f 7265 6d6f 7665 640a e_httpd_removed. │ │ │ +0025db90: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665 - unknown_seve │ │ │ +0025dba0: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072 rity.
Remediation │ │ │ +0025dc60: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0025dc70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0025dd00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0025dd20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0025dd40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0025dd70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0025dd80: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0025ddb0: 6f76 655f 6170 6163 6865 320a 0a63 6c61  ove_apache2..cla
│ │ │ +0025ddc0: 7373 2072 656d 6f76 655f 6170 6163 6865  ss remove_apache
│ │ │ +0025ddd0: 3220 7b0a 2020 7061 636b 6167 6520 7b20  2 {.  package { 
│ │ │ +0025dde0: 2761 7061 6368 6532 273a 0a20 2020 2065  'apache2':.    e
│ │ │ +0025ddf0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0025de00: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0025de20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0025de30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0025de40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0025de50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0025de60: 6439 3634 2220 7461 6269 6e64 6578 3d22 d964" tabindex=" │ │ │ 0025de70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -155406,201 +155406,201 @@ │ │ │ 0025f0d0: 6172 6765 743d 2223 6964 3936 3622 2074 arget="#id966" t │ │ │ 0025f0e0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0025f0f0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0025f100: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0025f110: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0025f120: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0025f130: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0025f140: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0025f150: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0025f1b0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -0025f1c0: 6564 203d 205b 2261 7061 6368 6532 225d  ed = ["apache2"]
│ │ │ -0025f1d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0025f290: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0025f2a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0025f370: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0025f380: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0025f3d0: 6e63 6c75 6465 2064 6973 6162 6c65 5f61  nclude disable_a
│ │ │ -0025f3e0: 7061 6368 6532 0a0a 636c 6173 7320 6469  pache2..class di
│ │ │ -0025f3f0: 7361 626c 655f 6170 6163 6865 3220 7b0a  sable_apache2 {.
│ │ │ -0025f400: 2020 7365 7276 6963 6520 7b27 6170 6163    service {'apac
│ │ │ -0025f410: 6865 3227 3a0a 2020 2020 656e 6162 6c65  he2':.    enable
│ │ │ -0025f420: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -0025f430: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0025f440: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -0025f450: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0025f500: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0025f510: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0025f520: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -0025f350: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0025f360: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0025f3a0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0025f3b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0025f5f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0025f600: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0025f650: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0025f660: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0025f670: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0025f680: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0025f690: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0025f6a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0025f6b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0025f6c0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0025f6d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0025f6e0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0025f6f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0025f700: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0025f710: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0025f720: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0025f730: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0025f740: 6874 7470 645f 6469 7361 626c 6564 0a20  httpd_disabled. 
│ │ │ -0025f750: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -0025f760: 6974 790a 0a2d 206e 616d 653a 2044 6973  ity..- name: Dis
│ │ │ -0025f770: 6162 6c65 2061 7061 6368 6532 2053 6572  able apache2 Ser
│ │ │ -0025f780: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -0025f790: 6572 7669 6365 2061 7061 6368 6532 0a20  ervice apache2. 
│ │ │ -0025f7a0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0025f7b0: 653a 2044 6973 6162 6c65 2061 7061 6368  e: Disable apach
│ │ │ -0025f7c0: 6532 2053 6572 7669 6365 202d 2043 6f6c  e2 Service - Col
│ │ │ -0025f7d0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -0025f7e0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -0025f7f0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -0025f800: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0025f810: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0025f820: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0025f830: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -0025f840: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -0025f850: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -0025f860: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0025f870: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0025f880: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -0025f890: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -0025f8a0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0025f8b0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0025f8c0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0025f8d0: 626c 6520 6170 6163 6865 3220 5365 7276  ble apache2 Serv
│ │ │ -0025f8e0: 6963 6520 2d20 456e 7375 7265 2061 7061  ice - Ensure apa
│ │ │ -0025f8f0: 6368 6532 2e73 6572 7669 6365 2069 7320  che2.service is 
│ │ │ -0025f900: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -0025f910: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0025f920: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0025f930: 6170 6163 6865 322e 7365 7276 6963 650a  apache2.service.
│ │ │ -0025f940: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0025f950: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -0025f960: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0025f970: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0025f980: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -0025f990: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0025f9a0: 6573 2069 7320 7365 6172 6368 2822 6170  es is search("ap
│ │ │ -0025f9b0: 6163 6865 322e 7365 7276 6963 6522 2c20  ache2.service", 
│ │ │ -0025f9c0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0025f9d0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -0025f9e0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -0025f9f0: 6170 6163 6865 322e 736f 636b 6574 0a20  apache2.socket. 
│ │ │ -0025fa00: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0025fa10: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0025fa20: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0025fa30: 6974 2d66 696c 6573 2061 7061 6368 6532  it-files apache2
│ │ │ -0025fa40: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0025fa50: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0025fa60: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0025fa70: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0025fa80: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0025fa90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0025faa0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0025fab0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0025fac0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0025fad0: 206e 616d 653a 2044 6973 6162 6c65 2061   name: Disable a
│ │ │ -0025fae0: 7061 6368 6532 2053 6572 7669 6365 202d  pache2 Service -
│ │ │ -0025faf0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -0025fb00: 6170 6163 6865 320a 2020 2020 616e 7369  apache2.    ansi
│ │ │ -0025fb10: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0025fb20: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0025fb30: 2061 7061 6368 6532 2e73 6f63 6b65 740a   apache2.socket.
│ │ │ -0025fb40: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0025fb50: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -0025fb60: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0025fb70: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0025fb80: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -0025fb90: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -0025fba0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -0025fbb0: 2822 6170 6163 6865 322e 736f 636b 6574  ("apache2.socket
│ │ │ -0025fbc0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0025fbd0: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ -0025fbe0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0025fbf0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0025fc00: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0025fc10: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0025fc20: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0025fc30: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0025fc40: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0025fc50: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0025fc60: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0025fc70: 6564 0a20 202d 2073 6572 7669 6365 5f68  ed.  - service_h
│ │ │ -0025fc80: 7474 7064 5f64 6973 6162 6c65 640a 2020  ttpd_disabled.  
│ │ │ -0025fc90: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -0025fca0: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e  e_block.  - unkn
│ │ │ -0025fcb0: 6f77 6e5f 7365 7665 7269 7479 0a20 2077  own_severity.  w
│ │ │ -0025fcc0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0025fcd0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0025fce0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
< │ │ │ +0025f210: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025f220: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -0025f5d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0025f5e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0025f620: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0025f630: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +0025f1e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0025f200: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0025f230: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0025f250: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0025f280: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0025f290: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0025f2a0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0025f2b0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0025f2c0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0025f2d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0025f2e0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0025f2f0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0025f300: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0025f310: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0025f320: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0025f330: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0025f340: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0025f350: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0025f360: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0025f370: 7669 6365 5f68 7474 7064 5f64 6973 6162  vice_httpd_disab
│ │ │ +0025f380: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ +0025f390: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ +0025f3a0: 3a20 4469 7361 626c 6520 6170 6163 6865  : Disable apache
│ │ │ +0025f3b0: 3220 5365 7276 6963 6520 2d20 4469 7361  2 Service - Disa
│ │ │ +0025f3c0: 626c 6520 7365 7276 6963 6520 6170 6163  ble service apac
│ │ │ +0025f3d0: 6865 320a 2020 626c 6f63 6b3a 0a0a 2020  he2.  block:..  
│ │ │ +0025f3e0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0025f3f0: 6170 6163 6865 3220 5365 7276 6963 6520  apache2 Service 
│ │ │ +0025f400: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0025f410: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0025f420: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +0025f430: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0025f440: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0025f450: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0025f460: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +0025f470: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +0025f480: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +0025f490: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0025f4a0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0025f4b0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0025f4c0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +0025f4d0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0025f4e0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0025f4f0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0025f500: 2044 6973 6162 6c65 2061 7061 6368 6532   Disable apache2
│ │ │ +0025f510: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +0025f520: 6520 6170 6163 6865 322e 7365 7276 6963  e apache2.servic
│ │ │ +0025f530: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +0025f540: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0025f550: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0025f560: 616d 653a 2061 7061 6368 6532 2e73 6572  ame: apache2.ser
│ │ │ +0025f570: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +0025f580: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0025f590: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0025f5a0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0025f5b0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +0025f5c0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +0025f5d0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +0025f5e0: 6828 2261 7061 6368 6532 2e73 6572 7669  h("apache2.servi
│ │ │ +0025f5f0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +0025f600: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +0025f610: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +0025f620: 7473 202d 2061 7061 6368 6532 2e73 6f63  ts - apache2.soc
│ │ │ +0025f630: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +0025f640: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0025f650: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0025f660: 7374 2d75 6e69 742d 6669 6c65 7320 6170  st-unit-files ap
│ │ │ +0025f670: 6163 6865 322e 736f 636b 6574 0a20 2020  ache2.socket.   
│ │ │ +0025f680: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +0025f690: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +0025f6a0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0025f6b0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0025f6c0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +0025f6d0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +0025f6e0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0025f6f0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0025f700: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0025f710: 626c 6520 6170 6163 6865 3220 5365 7276  ble apache2 Serv
│ │ │ +0025f720: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +0025f730: 636b 6574 2061 7061 6368 6532 0a20 2020  cket apache2.   
│ │ │ +0025f740: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0025f750: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0025f760: 6e61 6d65 3a20 6170 6163 6865 322e 736f  name: apache2.so
│ │ │ +0025f770: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +0025f780: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0025f790: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0025f7a0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0025f7b0: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +0025f7c0: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +0025f7d0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0025f7e0: 6561 7263 6828 2261 7061 6368 6532 2e73  earch("apache2.s
│ │ │ +0025f7f0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +0025f800: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +0025f810: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0025f820: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0025f830: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +0025f840: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0025f850: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +0025f860: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0025f870: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0025f880: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0025f890: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +0025f8a0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0025f8b0: 6963 655f 6874 7470 645f 6469 7361 626c  ice_httpd_disabl
│ │ │ +0025f8c0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0025f8d0: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ +0025f8e0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +0025f8f0: 790a 2020 7768 656e 3a20 2722 6c69 6e75  y.  when: '"linu
│ │ │ +0025f900: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0025f910: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0025f920: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +0025f930: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0025f9e0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0025f9f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0025fa70: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0025fa90: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0025fae0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +0025fb30: 5f61 7061 6368 6532 0a0a 636c 6173 7320  _apache2..class 
│ │ │ +0025fb40: 6469 7361 626c 655f 6170 6163 6865 3220  disable_apache2 
│ │ │ +0025fb50: 7b0a 2020 7365 7276 6963 6520 7b27 6170  {.  service {'ap
│ │ │ +0025fb60: 6163 6865 3227 3a0a 2020 2020 656e 6162  ache2':.    enab
│ │ │ +0025fb70: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +0025fb80: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0025fb90: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +0025fba0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0025fbb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +0025fc60: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0025fc70: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0025fc80: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +0025fcc0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +0025fcd0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +0025fce0: 3d20 5b22 6170 6163 6865 3222 5d0a 3c2f  = ["apache2"].
Remediatio │ │ │ -00261380: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00261390: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00261450: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00261460: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +0025faa0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0025fab0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0025faf0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0025fb00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00261420: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00261440: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00261470: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00261490: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002614c0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002614d0: 6d6f 7665 5f6e 6769 6e78 0a0a 636c 6173  move_nginx..clas
│ │ │ -002614e0: 7320 7265 6d6f 7665 5f6e 6769 6e78 207b  s remove_nginx {
│ │ │ -002614f0: 0a20 2070 6163 6b61 6765 207b 2027 6e67  .  package { 'ng
│ │ │ -00261500: 696e 7827 3a0a 2020 2020 656e 7375 7265  inx':.    ensure
│ │ │ -00261510: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00261520: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -002615e0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002615f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00261670: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00261680: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00261690: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002616d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002616e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00261700: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00261710: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -00261730: 556e 696e 7374 616c 6c20 6e67 696e 7820  Uninstall nginx 
│ │ │ -00261740: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00261750: 6e67 696e 7820 6973 2072 656d 6f76 6564  nginx is removed
│ │ │ -00261760: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00261770: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00261780: 206e 616d 653a 206e 6769 6e78 0a20 2020   name: nginx.   
│ │ │ -00261790: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -002617a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002617b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002617c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002617d0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002617e0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002617f0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00261800: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00261810: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00261820: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -00261830: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00261840: 202d 2070 6163 6b61 6765 5f6e 6769 6e78   - package_nginx
│ │ │ -00261850: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ -00261860: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
< │ │ │ +00261410: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00261420: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00261440: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00261450: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00261470: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00261490: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002614c0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +002614d0: 6e69 6e73 7461 6c6c 206e 6769 6e78 2050  ninstall nginx P
│ │ │ +002614e0: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ +002614f0: 6769 6e78 2069 7320 7265 6d6f 7665 6427  ginx is removed'
│ │ │ +00261500: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00261510: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00261520: 6e61 6d65 3a20 6e67 696e 780a 2020 2020  name: nginx.    
│ │ │ +00261530: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00261540: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00261550: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00261560: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00261570: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00261580: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00261590: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002615a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002615b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002615c0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +002615d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002615e0: 2d20 7061 636b 6167 655f 6e67 696e 785f  - package_nginx_
│ │ │ +002615f0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +00261600: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +00261620: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +002616c0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002616d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002616e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00261760: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00261790: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002617b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002617c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002617e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002617f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00261810: 6c75 6465 2072 656d 6f76 655f 6e67 696e  lude remove_ngin
│ │ │ +00261820: 780a 0a63 6c61 7373 2072 656d 6f76 655f  x..class remove_
│ │ │ +00261830: 6e67 696e 7820 7b0a 2020 7061 636b 6167  nginx {.  packag
│ │ │ +00261840: 6520 7b20 276e 6769 6e78 273a 0a20 2020  e { 'nginx':.   
│ │ │ +00261850: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +00261860: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation │ │ │ -00262620: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00262630: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -00262680: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00262690: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -002626a0: 6420 3d20 5b22 6e67 696e 7822 5d0a 3c2f  d = ["nginx"].
Re │ │ │ -00262760: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00262770: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00262780: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00262820: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00262870: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00262800: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00262830: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00262850: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00262860: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00262880: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00262890: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -002628b0: 7564 6520 6469 7361 626c 655f 6e67 696e  ude disable_ngin
│ │ │ -002628c0: 780a 0a63 6c61 7373 2064 6973 6162 6c65  x..class disable
│ │ │ -002628d0: 5f6e 6769 6e78 207b 0a20 2073 6572 7669  _nginx {.  servi
│ │ │ -002628e0: 6365 207b 276e 6769 6e78 273a 0a20 2020  ce {'nginx':.   
│ │ │ -002628f0: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ -00262900: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ -00262910: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ -00262920: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -002629e0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002629f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00262a70: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00262a80: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00262a90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00262ad0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00262ae0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00262b00: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00262b10: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00262b30: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00262b40: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00262b50: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00262b60: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00262b70: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00262b80: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00262b90: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00262ba0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00262bb0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00262bc0: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ -00262bd0: 6769 6e78 5f64 6973 6162 6c65 640a 2020  ginx_disabled.  
│ │ │ -00262be0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -00262bf0: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ -00262c00: 626c 6520 6e67 696e 7820 5365 7276 6963  ble nginx Servic
│ │ │ -00262c10: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -00262c20: 6963 6520 6e67 696e 780a 2020 626c 6f63  ice nginx.  bloc
│ │ │ -00262c30: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -00262c40: 7361 626c 6520 6e67 696e 7820 5365 7276  sable nginx Serv
│ │ │ -00262c50: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -00262c60: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00262c70: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -00262c80: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -00262c90: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00262ca0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00262cb0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00262cc0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00262cd0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -00262ce0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -00262cf0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00262d00: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00262d10: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00262d20: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00262d30: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00262d40: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00262d50: 616d 653a 2044 6973 6162 6c65 206e 6769  ame: Disable ngi
│ │ │ -00262d60: 6e78 2053 6572 7669 6365 202d 2045 6e73  nx Service - Ens
│ │ │ -00262d70: 7572 6520 6e67 696e 782e 7365 7276 6963  ure nginx.servic
│ │ │ -00262d80: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -00262d90: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00262da0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00262db0: 616d 653a 206e 6769 6e78 2e73 6572 7669  ame: nginx.servi
│ │ │ -00262dc0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00262dd0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00262de0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00262df0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00262e00: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00262e10: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00262e20: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00262e30: 226e 6769 6e78 2e73 6572 7669 6365 222c  "nginx.service",
│ │ │ -00262e40: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00262e50: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -00262e60: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -00262e70: 206e 6769 6e78 2e73 6f63 6b65 740a 2020   nginx.socket.  
│ │ │ -00262e80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00262e90: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00262ea0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00262eb0: 742d 6669 6c65 7320 6e67 696e 782e 736f  t-files nginx.so
│ │ │ -00262ec0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00262ed0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00262ee0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00262ef0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00262f00: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00262f10: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00262f20: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00262f30: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00262f40: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00262f50: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ -00262f60: 7820 5365 7276 6963 6520 2d20 4469 7361  x Service - Disa
│ │ │ -00262f70: 626c 6520 536f 636b 6574 206e 6769 6e78  ble Socket nginx
│ │ │ -00262f80: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00262f90: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00262fa0: 2020 2020 6e61 6d65 3a20 6e67 696e 782e      name: nginx.
│ │ │ -00262fb0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -00262fc0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00262fd0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00262fe0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00262ff0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00263000: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00263010: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00263020: 2073 6561 7263 6828 226e 6769 6e78 2e73   search("nginx.s
│ │ │ -00263030: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00263040: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00263050: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00263060: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00263070: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00263080: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00263090: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002630a0: 2020 2d20 7365 7276 6963 655f 6e67 696e    - service_ngin
│ │ │ -002630b0: 785f 6469 7361 626c 6564 0a20 202d 2073  x_disabled.  - s
│ │ │ -002630c0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -002630d0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ -002630e0: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ -002630f0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00263100: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00263110: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Complexity: │ │ │ +002626c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002626e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00262700: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00262730: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00262740: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00262770: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00262780: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00262790: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +002627a0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +002627b0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002627c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002627d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002627e0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +002627f0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00262800: 2020 2d20 7365 7276 6963 655f 6e67 696e    - service_ngin
│ │ │ +00262810: 785f 6469 7361 626c 6564 0a20 202d 2075  x_disabled.  - u
│ │ │ +00262820: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00262830: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00262840: 206e 6769 6e78 2053 6572 7669 6365 202d   nginx Service -
│ │ │ +00262850: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +00262860: 206e 6769 6e78 0a20 2062 6c6f 636b 3a0a   nginx.  block:.
│ │ │ +00262870: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00262880: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ +00262890: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +002628a0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +002628b0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +002628c0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +002628d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +002628e0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +002628f0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00262900: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00262910: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00262920: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00262930: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00262940: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00262950: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00262960: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00262970: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00262980: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00262990: 3a20 4469 7361 626c 6520 6e67 696e 7820  : Disable nginx 
│ │ │ +002629a0: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ +002629b0: 206e 6769 6e78 2e73 6572 7669 6365 2069   nginx.service i
│ │ │ +002629c0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +002629d0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002629e0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002629f0: 3a20 6e67 696e 782e 7365 7276 6963 650a  : nginx.service.
│ │ │ +00262a00: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00262a10: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +00262a20: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00262a30: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00262a40: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00262a50: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00262a60: 6573 2069 7320 7365 6172 6368 2822 6e67  es is search("ng
│ │ │ +00262a70: 696e 782e 7365 7276 6963 6522 2c20 6d75  inx.service", mu
│ │ │ +00262a80: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +00262a90: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +00262aa0: 636b 6574 2045 7869 7374 7320 2d20 6e67  cket Exists - ng
│ │ │ +00262ab0: 696e 782e 736f 636b 6574 0a20 2020 2061  inx.socket.    a
│ │ │ +00262ac0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00262ad0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00262ae0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00262af0: 696c 6573 206e 6769 6e78 2e73 6f63 6b65  iles nginx.socke
│ │ │ +00262b00: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00262b10: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00262b20: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00262b30: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00262b40: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00262b50: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00262b60: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00262b70: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00262b80: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00262b90: 2044 6973 6162 6c65 206e 6769 6e78 2053   Disable nginx S
│ │ │ +00262ba0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +00262bb0: 2053 6f63 6b65 7420 6e67 696e 780a 2020   Socket nginx.  
│ │ │ +00262bc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00262bd0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00262be0: 206e 616d 653a 206e 6769 6e78 2e73 6f63   name: nginx.soc
│ │ │ +00262bf0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +00262c00: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +00262c10: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00262c20: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +00262c30: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +00262c40: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +00262c50: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +00262c60: 6172 6368 2822 6e67 696e 782e 736f 636b  arch("nginx.sock
│ │ │ +00262c70: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +00262c80: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +00262c90: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00262ca0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00262cb0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00262cc0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00262cd0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00262ce0: 2073 6572 7669 6365 5f6e 6769 6e78 5f64   service_nginx_d
│ │ │ +00262cf0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +00262d00: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +00262d10: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ +00262d20: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ +00262d30: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00262d40: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00262d50: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00262d60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00262e10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00262e20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00262ea0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00262eb0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00262ec0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00262f00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00262f10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00262f30: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00262f50: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +00262f60: 7361 626c 655f 6e67 696e 780a 0a63 6c61  sable_nginx..cla
│ │ │ +00262f70: 7373 2064 6973 6162 6c65 5f6e 6769 6e78  ss disable_nginx
│ │ │ +00262f80: 207b 0a20 2073 6572 7669 6365 207b 276e   {.  service {'n
│ │ │ +00262f90: 6769 6e78 273a 0a20 2020 2065 6e61 626c  ginx':.    enabl
│ │ │ +00262fa0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +00262fb0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00262fc0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +00262fd0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00263090: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002630a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +002630f0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00263100: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00263110: 205b 226e 6769 6e78 225d 0a3c 2f63 6f64   ["nginx"].
Rem │ │ │ -00264670: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00264680: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00264690: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00264710: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00264740: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00264760: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00264770: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00264790: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002647a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -002647c0: 6c75 6465 2072 656d 6f76 655f 646f 7665  lude remove_dove
│ │ │ -002647d0: 636f 740a 0a63 6c61 7373 2072 656d 6f76  cot..class remov
│ │ │ -002647e0: 655f 646f 7665 636f 7420 7b0a 2020 7061  e_dovecot {.  pa
│ │ │ -002647f0: 636b 6167 6520 7b20 2764 6f76 6563 6f74  ckage { 'dovecot
│ │ │ -00264800: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00264810: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00264820: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002648e0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002648f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00264980: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002649a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002649c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002649f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00264a00: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00264a30: 6e73 7461 6c6c 2064 6f76 6563 6f74 2050  nstall dovecot P
│ │ │ -00264a40: 6163 6b61 6765 3a20 456e 7375 7265 2064  ackage: Ensure d
│ │ │ -00264a50: 6f76 6563 6f74 2069 7320 7265 6d6f 7665  ovecot is remove
│ │ │ -00264a60: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00264a70: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00264a80: 2020 6e61 6d65 3a20 646f 7665 636f 740a    name: dovecot.
│ │ │ -00264a90: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00264aa0: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ -00264ab0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00264ac0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00264ad0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00264ae0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -00264af0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00264b00: 636b 6167 655f 646f 7665 636f 745f 7265  ckage_dovecot_re
│ │ │ -00264b10: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ -00264b20: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.
│ │ │ +00264690: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00264730: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00264780: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002647c0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +002647d0: 646f 7665 636f 7420 5061 636b 6167 653a  dovecot Package:
│ │ │ +002647e0: 2045 6e73 7572 6520 646f 7665 636f 7420   Ensure dovecot 
│ │ │ +002647f0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00264800: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00264810: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00264820: 2064 6f76 6563 6f74 0a20 2020 2073 7461   dovecot.    sta
│ │ │ +00264830: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00264840: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00264850: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00264860: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00264870: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00264880: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00264890: 6564 0a20 202d 2070 6163 6b61 6765 5f64  ed.  - package_d
│ │ │ +002648a0: 6f76 6563 6f74 5f72 656d 6f76 6564 0a20  ovecot_removed. 
│ │ │ +002648b0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +002648c0: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation │ │ │ +00264980: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00264990: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +00264710: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00264740: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00264760: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00264770: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00264790: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002647a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00264a10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00264a30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00264a80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00264ab0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00264a20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00264a40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00264a90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00264aa0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00264ad0: 7665 5f64 6f76 6563 6f74 0a0a 636c 6173  ve_dovecot..clas
│ │ │ +00264ae0: 7320 7265 6d6f 7665 5f64 6f76 6563 6f74  s remove_dovecot
│ │ │ +00264af0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00264b00: 646f 7665 636f 7427 3a0a 2020 2020 656e  dovecot':.    en
│ │ │ +00264b10: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00264b20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation OSB │ │ │ -00265900: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00265910: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -00265960: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00265970: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -00265980: 205b 2264 6f76 6563 6f74 225d 0a3c 2f63   ["dovecot"].
│ │ │ -002659a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00265a40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00265a50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00265a60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00265ae0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00265b10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00265b30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00265b40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00265b60: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00265b80: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00265b90: 6465 2064 6973 6162 6c65 5f64 6f76 6563  de disable_dovec
│ │ │ -00265ba0: 6f74 0a0a 636c 6173 7320 6469 7361 626c  ot..class disabl
│ │ │ -00265bb0: 655f 646f 7665 636f 7420 7b0a 2020 7365  e_dovecot {.  se
│ │ │ -00265bc0: 7276 6963 6520 7b27 646f 7665 636f 7427  rvice {'dovecot'
│ │ │ -00265bd0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00265be0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -00265bf0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -00265c00: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -00265c20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00265c30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00265c40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00265c50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00265c60: 6439 3836 2220 7461 6269 6e64 6578 3d22 d986" tabindex=" │ │ │ -00265c70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00265c80: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00265c90: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00265ca0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00265cb0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00265cc0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00265cd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00265ce0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00265d60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00265d90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00265db0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00265dc0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00265de0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00265df0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00265e10: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00265e20: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00265e30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00265e40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00265e50: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00265e60: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00265e70: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00265e80: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00265e90: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00265ea0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00265eb0: 6963 655f 646f 7665 636f 745f 6469 7361  ice_dovecot_disa
│ │ │ -00265ec0: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ -00265ed0: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ -00265ee0: 653a 2044 6973 6162 6c65 2044 6f76 6563  e: Disable Dovec
│ │ │ -00265ef0: 6f74 2053 6572 7669 6365 202d 2044 6973  ot Service - Dis
│ │ │ -00265f00: 6162 6c65 2073 6572 7669 6365 2064 6f76  able service dov
│ │ │ -00265f10: 6563 6f74 0a20 2062 6c6f 636b 3a0a 0a20  ecot.  block:.. 
│ │ │ -00265f20: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00265f30: 2044 6f76 6563 6f74 2053 6572 7669 6365   Dovecot Service
│ │ │ -00265f40: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -00265f50: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -00265f60: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -00265f70: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -00265f80: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -00265f90: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -00265fa0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -00265fb0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -00265fc0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -00265fd0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00265fe0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00265ff0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00266000: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00266010: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00266020: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00266030: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00266040: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ -00266050: 7420 5365 7276 6963 6520 2d20 456e 7375  t Service - Ensu
│ │ │ -00266060: 7265 2064 6f76 6563 6f74 2e73 6572 7669  re dovecot.servi
│ │ │ -00266070: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -00266080: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00266090: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002660a0: 6e61 6d65 3a20 646f 7665 636f 742e 7365  name: dovecot.se
│ │ │ -002660b0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -002660c0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -002660d0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002660e0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002660f0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -00266100: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -00266110: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00266120: 6368 2822 646f 7665 636f 742e 7365 7276  ch("dovecot.serv
│ │ │ -00266130: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -00266140: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -00266150: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -00266160: 7374 7320 2d20 646f 7665 636f 742e 736f  sts - dovecot.so
│ │ │ -00266170: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00266180: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00266190: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002661a0: 6973 742d 756e 6974 2d66 696c 6573 2064  ist-unit-files d
│ │ │ -002661b0: 6f76 6563 6f74 2e73 6f63 6b65 740a 2020  ovecot.socket.  
│ │ │ -002661c0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -002661d0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -002661e0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -002661f0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00266200: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -00266210: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -00266220: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00266230: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00266240: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00266250: 6162 6c65 2044 6f76 6563 6f74 2053 6572  able Dovecot Ser
│ │ │ -00266260: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -00266270: 6f63 6b65 7420 646f 7665 636f 740a 2020  ocket dovecot.  
│ │ │ -00266280: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00266290: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002662a0: 206e 616d 653a 2064 6f76 6563 6f74 2e73   name: dovecot.s
│ │ │ -002662b0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002662c0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002662d0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002662e0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002662f0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -00266300: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00266310: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00266320: 7365 6172 6368 2822 646f 7665 636f 742e  search("dovecot.
│ │ │ -00266330: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00266340: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00266350: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00266360: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00266370: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00266380: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00266390: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002663a0: 0a20 202d 2073 6572 7669 6365 5f64 6f76  .  - service_dov
│ │ │ -002663b0: 6563 6f74 5f64 6973 6162 6c65 640a 2020  ecot_disabled.  
│ │ │ -002663c0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -002663d0: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e  e_block.  - unkn
│ │ │ -002663e0: 6f77 6e5f 7365 7665 7269 7479 0a20 2077  own_severity.  w
│ │ │ -002663f0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00266400: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00266410: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation Ans
│ │ │ +00265900: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00265910: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +002659e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002659f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +00265a50: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00265a60: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00265a70: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00265a80: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00265a90: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00265aa0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00265ab0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00265ac0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00265ad0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00265ae0: 2073 6572 7669 6365 5f64 6f76 6563 6f74   service_dovecot
│ │ │ +00265af0: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +00265b00: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +00265b10: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00265b20: 446f 7665 636f 7420 5365 7276 6963 6520  Dovecot Service 
│ │ │ +00265b30: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +00265b40: 6520 646f 7665 636f 740a 2020 626c 6f63  e dovecot.  bloc
│ │ │ +00265b50: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +00265b60: 7361 626c 6520 446f 7665 636f 7420 5365  sable Dovecot Se
│ │ │ +00265b70: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ +00265b80: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +00265b90: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +00265ba0: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +00265bb0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00265bc0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00265bd0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00265be0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00265bf0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +00265c00: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +00265c10: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00265c20: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00265c30: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00265c40: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00265c50: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00265c60: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00265c70: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +00265c80: 6f76 6563 6f74 2053 6572 7669 6365 202d  ovecot Service -
│ │ │ +00265c90: 2045 6e73 7572 6520 646f 7665 636f 742e   Ensure dovecot.
│ │ │ +00265ca0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +00265cb0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00265cc0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00265cd0: 2020 2020 206e 616d 653a 2064 6f76 6563       name: dovec
│ │ │ +00265ce0: 6f74 2e73 6572 7669 6365 0a20 2020 2020  ot.service.     
│ │ │ +00265cf0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00265d00: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00265d10: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +00265d20: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00265d30: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00265d40: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00265d50: 2073 6561 7263 6828 2264 6f76 6563 6f74   search("dovecot
│ │ │ +00265d60: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +00265d70: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +00265d80: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +00265d90: 7420 4578 6973 7473 202d 2064 6f76 6563  t Exists - dovec
│ │ │ +00265da0: 6f74 2e73 6f63 6b65 740a 2020 2020 616e  ot.socket.    an
│ │ │ +00265db0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00265dc0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00265dd0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00265de0: 6c65 7320 646f 7665 636f 742e 736f 636b  les dovecot.sock
│ │ │ +00265df0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +00265e00: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00265e10: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00265e20: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00265e30: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +00265e40: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00265e50: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00265e60: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00265e70: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00265e80: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ +00265e90: 7420 5365 7276 6963 6520 2d20 4469 7361  t Service - Disa
│ │ │ +00265ea0: 626c 6520 536f 636b 6574 2064 6f76 6563  ble Socket dovec
│ │ │ +00265eb0: 6f74 0a20 2020 2061 6e73 6962 6c65 2e62  ot.    ansible.b
│ │ │ +00265ec0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00265ed0: 2020 2020 2020 6e61 6d65 3a20 646f 7665        name: dove
│ │ │ +00265ee0: 636f 742e 736f 636b 6574 0a20 2020 2020  cot.socket.     
│ │ │ +00265ef0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00265f00: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00265f10: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +00265f20: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00265f30: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00265f40: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00265f50: 7320 6973 2073 6561 7263 6828 2264 6f76  s is search("dov
│ │ │ +00265f60: 6563 6f74 2e73 6f63 6b65 7422 2c20 6d75  ecot.socket", mu
│ │ │ +00265f70: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +00265f80: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +00265f90: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00265fa0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00265fb0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00265fc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00265fd0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00265fe0: 655f 646f 7665 636f 745f 6469 7361 626c  e_dovecot_disabl
│ │ │ +00265ff0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +00266000: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ +00266010: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +00266020: 790a 2020 7768 656e 3a20 2722 6c69 6e75  y.  when: '"linu
│ │ │ +00266030: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00266040: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00266050: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00266060: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +00266110: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00266120: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ +002659c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002659d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00265a10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00265a20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002661a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002661c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00266210: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +00266260: 5f64 6f76 6563 6f74 0a0a 636c 6173 7320  _dovecot..class 
│ │ │ +00266270: 6469 7361 626c 655f 646f 7665 636f 7420  disable_dovecot 
│ │ │ +00266280: 7b0a 2020 7365 7276 6963 6520 7b27 646f  {.  service {'do
│ │ │ +00266290: 7665 636f 7427 3a0a 2020 2020 656e 6162  vecot':.    enab
│ │ │ +002662a0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002662b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002662c0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002662d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002662e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00266390: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +002663a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002663b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +002663f0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00266400: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +00266410: 3d20 5b22 646f 7665 636f 7422 5d0a 3c2f  = ["dovecot"].
│ │ │ -00267d60: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00267d70: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disr │ │ │ +002661d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002661e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00266220: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00266230: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00267e10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00267eb0: 696e 636c 7564 6520 7265 6d6f 7665 5f6f  include remove_o
│ │ │ -00267ec0: 7065 6e6c 6461 702d 636c 6965 6e74 730a  penldap-clients.
│ │ │ -00267ed0: 0a63 6c61 7373 2072 656d 6f76 655f 6f70  .class remove_op
│ │ │ -00267ee0: 656e 6c64 6170 2d63 6c69 656e 7473 207b  enldap-clients {
│ │ │ -00267ef0: 0a20 2070 6163 6b61 6765 207b 2027 6f70  .  package { 'op
│ │ │ -00267f00: 656e 6c64 6170 2d63 6c69 656e 7473 273a  enldap-clients':
│ │ │ -00267f10: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00267f20: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00267f30: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00267f40: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00267ff0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00268000: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -00267e00: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00267e30: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00267e40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00267e80: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00267e90: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00268080: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002680a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002680f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00268120: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Ensur
│ │ │ -00268140: 6520 4c44 4150 2063 6c69 656e 7420 6973  e LDAP client is
│ │ │ -00268150: 206e 6f74 2069 6e73 7461 6c6c 6564 3a20   not installed: 
│ │ │ -00268160: 456e 7375 7265 206f 7065 6e6c 6461 702d  Ensure openldap-
│ │ │ -00268170: 636c 6965 6e74 7320 6973 2072 656d 6f76  clients is remov
│ │ │ -00268180: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00268190: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002681a0: 2020 206e 616d 653a 206f 7065 6e6c 6461     name: openlda
│ │ │ -002681b0: 702d 636c 6965 6e74 730a 2020 2020 7374  p-clients.    st
│ │ │ -002681c0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002681d0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002681e0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002681f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00268200: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00268210: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -00268220: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00268230: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00268240: 5f6f 7065 6e6c 6461 702d 636c 6965 6e74  _openldap-client
│ │ │ -00268250: 735f 7265 6d6f 7665 640a 3c2f 636f 6465  s_removed.
low
Disr │ │ │ -002680b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002680c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00268100: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00268110: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00267e50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00267e60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00267eb0: 2d20 6e61 6d65 3a20 2745 6e73 7572 6520  - name: 'Ensure 
│ │ │ +00267ec0: 4c44 4150 2063 6c69 656e 7420 6973 206e  LDAP client is n
│ │ │ +00267ed0: 6f74 2069 6e73 7461 6c6c 6564 3a20 456e  ot installed: En
│ │ │ +00267ee0: 7375 7265 206f 7065 6e6c 6461 702d 636c  sure openldap-cl
│ │ │ +00267ef0: 6965 6e74 7320 6973 2072 656d 6f76 6564  ients is removed
│ │ │ +00267f00: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00267f10: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00267f20: 206e 616d 653a 206f 7065 6e6c 6461 702d   name: openldap-
│ │ │ +00267f30: 636c 6965 6e74 730a 2020 2020 7374 6174  clients.    stat
│ │ │ +00267f40: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00267f50: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00267f60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00267f70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00267f80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00267f90: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +00267fa0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00267fb0: 6564 0a20 202d 2070 6163 6b61 6765 5f6f  ed.  - package_o
│ │ │ +00267fc0: 7065 6e6c 6461 702d 636c 6965 6e74 735f  penldap-clients_
│ │ │ +00267fd0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00267fe0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00268090: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +002680a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00268120: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002681b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002681c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +00267e30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00267e40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00267e80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00267e90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +00268130: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00268140: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00268180: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00268190: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +002681e0: 7265 6d6f 7665 5f6f 7065 6e6c 6461 702d  remove_openldap-
│ │ │ +002681f0: 636c 6965 6e74 730a 0a63 6c61 7373 2072  clients..class r
│ │ │ +00268200: 656d 6f76 655f 6f70 656e 6c64 6170 2d63  emove_openldap-c
│ │ │ +00268210: 6c69 656e 7473 207b 0a20 2070 6163 6b61  lients {.  packa
│ │ │ +00268220: 6765 207b 2027 6f70 656e 6c64 6170 2d63  ge { 'openldap-c
│ │ │ +00268230: 6c69 656e 7473 273a 0a20 2020 2065 6e73  lients':.    ens
│ │ │ +00268240: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00268250: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Reme │ │ │ -00269a30: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00269a40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00269ad0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00269ae0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00269b00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00269b20: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00269b30: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00269b70: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00269b80: 7564 6520 7265 6d6f 7665 5f6f 7065 6e6c  ude remove_openl
│ │ │ -00269b90: 6461 702d 7365 7276 6572 730a 0a63 6c61  dap-servers..cla
│ │ │ -00269ba0: 7373 2072 656d 6f76 655f 6f70 656e 6c64  ss remove_openld
│ │ │ -00269bb0: 6170 2d73 6572 7665 7273 207b 0a20 2070  ap-servers {.  p
│ │ │ -00269bc0: 6163 6b61 6765 207b 2027 6f70 656e 6c64  ackage { 'openld
│ │ │ -00269bd0: 6170 2d73 6572 7665 7273 273a 0a20 2020  ap-servers':.   
│ │ │ -00269be0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00269bf0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -00269cb0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00269cc0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00269d60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00269d70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00269dc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00269e00: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00269e10: 2073 6c61 7064 2050 6163 6b61 6765 3a20   slapd Package: 
│ │ │ -00269e20: 456e 7375 7265 206f 7065 6e6c 6461 702d  Ensure openldap-
│ │ │ -00269e30: 7365 7276 6572 7320 6973 2072 656d 6f76  servers is remov
│ │ │ -00269e40: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00269e50: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00269e60: 2020 206e 616d 653a 206f 7065 6e6c 6461     name: openlda
│ │ │ -00269e70: 702d 7365 7276 6572 730a 2020 2020 7374  p-servers.    st
│ │ │ -00269e80: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00269e90: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00269ea0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00269eb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00269ec0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00269ed0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00269ee0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00269ef0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00269f00: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00269f10: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00269f20: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00269f30: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00269f40: 2070 6163 6b61 6765 5f6f 7065 6e6c 6461   package_openlda
│ │ │ -00269f50: 702d 7365 7276 6572 735f 7265 6d6f 7665  p-servers_remove
│ │ │ -00269f60: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00269a30: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +00269a40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00269a50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -00269d50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00269d80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00269d90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00269dd0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00269de0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +00269ad0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00269b00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00269b20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00269b30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00269b50: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00269b60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00269b80: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2073  me: 'Uninstall s
│ │ │ +00269b90: 6c61 7064 2050 6163 6b61 6765 3a20 456e  lapd Package: En
│ │ │ +00269ba0: 7375 7265 206f 7065 6e6c 6461 702d 7365  sure openldap-se
│ │ │ +00269bb0: 7276 6572 7320 6973 2072 656d 6f76 6564  rvers is removed
│ │ │ +00269bc0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00269bd0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00269be0: 206e 616d 653a 206f 7065 6e6c 6461 702d   name: openldap-
│ │ │ +00269bf0: 7365 7276 6572 730a 2020 2020 7374 6174  servers.    stat
│ │ │ +00269c00: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00269c10: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00269c20: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00269c30: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00269c40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00269c50: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +00269c60: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00269c70: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00269c80: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00269c90: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +00269ca0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00269cb0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00269cc0: 6163 6b61 6765 5f6f 7065 6e6c 6461 702d  ackage_openldap-
│ │ │ +00269cd0: 7365 7276 6572 735f 7265 6d6f 7665 640a  servers_removed.
│ │ │ +00269ce0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00269d90: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00269da0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00269e40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00269ee0: 696e 636c 7564 6520 7265 6d6f 7665 5f6f  include remove_o
│ │ │ +00269ef0: 7065 6e6c 6461 702d 7365 7276 6572 730a  penldap-servers.
│ │ │ +00269f00: 0a63 6c61 7373 2072 656d 6f76 655f 6f70  .class remove_op
│ │ │ +00269f10: 656e 6c64 6170 2d73 6572 7665 7273 207b  enldap-servers {
│ │ │ +00269f20: 0a20 2070 6163 6b61 6765 207b 2027 6f70  .  package { 'op
│ │ │ +00269f30: 656e 6c64 6170 2d73 6572 7665 7273 273a  enldap-servers':
│ │ │ +00269f40: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00269f50: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00269f60: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00269f70: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -0026ad70: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0026ad80: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0026ad90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0026ada0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0026add0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0026ade0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0026adf0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0026ae00: 2273 6c61 7064 225d 0a3c 2f63 6f64 653e  "slapd"].
│ │ │ -0026ae10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0026aec0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0026aed0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026aee0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026aef0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026af00: 7365 2220 6964 3d22 6964 3939 3822 3e3c se" id="id998">< │ │ │ -0026af10: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026af20: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026af30: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026af40: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026af50: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ -0026afe0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -0026aff0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +00269e30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00269e60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00269e70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00269eb0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00269ec0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -0026af60: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026af70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0026afb0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026afc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -0026b010: 6973 6162 6c65 5f73 6c61 7064 0a0a 636c  isable_slapd..cl
│ │ │ -0026b020: 6173 7320 6469 7361 626c 655f 736c 6170  ass disable_slap
│ │ │ -0026b030: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -0026b040: 736c 6170 6427 3a0a 2020 2020 656e 6162  slapd':.    enab
│ │ │ -0026b050: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -0026b060: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0026b070: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -0026b080: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0026b090: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0026b140: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0026b150: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0026b1d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0026b1f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0026b240: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0026b270: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0026b290: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0026b2a0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0026b2b0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0026b2c0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0026b2d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0026b2e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0026b2f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0026b300: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0026b310: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0026b320: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0026b330: 640a 2020 2d20 7365 7276 6963 655f 736c  d.  - service_sl
│ │ │ -0026b340: 6170 645f 6469 7361 626c 6564 0a0a 2d20  apd_disabled..- 
│ │ │ -0026b350: 6e61 6d65 3a20 4469 7361 626c 6520 4c44  name: Disable LD
│ │ │ -0026b360: 4150 2053 6572 7665 7220 2873 6c61 7064  AP Server (slapd
│ │ │ -0026b370: 2920 2d20 4469 7361 626c 6520 7365 7276  ) - Disable serv
│ │ │ -0026b380: 6963 6520 736c 6170 640a 2020 626c 6f63  ice slapd.  bloc
│ │ │ -0026b390: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -0026b3a0: 7361 626c 6520 4c44 4150 2053 6572 7665  sable LDAP Serve
│ │ │ -0026b3b0: 7220 2873 6c61 7064 2920 2d20 436f 6c6c  r (slapd) - Coll
│ │ │ -0026b3c0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0026b3d0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -0026b3e0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0026b3f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0026b400: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0026b410: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0026b420: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0026b430: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0026b440: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0026b450: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0026b460: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0026b470: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0026b480: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0026b490: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0026b4a0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0026b4b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0026b4c0: 6c65 204c 4441 5020 5365 7276 6572 2028  le LDAP Server (
│ │ │ -0026b4d0: 736c 6170 6429 202d 2045 6e73 7572 6520  slapd) - Ensure 
│ │ │ -0026b4e0: 736c 6170 642e 7365 7276 6963 6520 6973  slapd.service is
│ │ │ -0026b4f0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -0026b500: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0026b510: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0026b520: 2073 6c61 7064 2e73 6572 7669 6365 0a20   slapd.service. 
│ │ │ -0026b530: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0026b540: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -0026b550: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -0026b560: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0026b570: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0026b580: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0026b590: 7320 6973 2073 6561 7263 6828 2273 6c61  s is search("sla
│ │ │ -0026b5a0: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ -0026b5b0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -0026b5c0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -0026b5d0: 6b65 7420 4578 6973 7473 202d 2073 6c61  ket Exists - sla
│ │ │ -0026b5e0: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ -0026b5f0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0026b600: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0026b610: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0026b620: 6c65 7320 736c 6170 642e 736f 636b 6574  les slapd.socket
│ │ │ -0026b630: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0026b640: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0026b650: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0026b660: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0026b670: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -0026b680: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -0026b690: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0026b6a0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0026b6b0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0026b6c0: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ -0026b6d0: 7665 7220 2873 6c61 7064 2920 2d20 4469  ver (slapd) - Di
│ │ │ -0026b6e0: 7361 626c 6520 536f 636b 6574 2073 6c61  sable Socket sla
│ │ │ -0026b6f0: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ -0026b700: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0026b710: 2020 2020 2020 6e61 6d65 3a20 736c 6170        name: slap
│ │ │ -0026b720: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0026b730: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0026b740: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0026b750: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0026b760: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0026b770: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0026b780: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0026b790: 6973 2073 6561 7263 6828 2273 6c61 7064  is search("slapd
│ │ │ -0026b7a0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0026b7b0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0026b7c0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0026b7d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0026b7e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0026b7f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0026b800: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0026b810: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0026b820: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0026b830: 655f 736c 6170 645f 6469 7361 626c 6564  e_slapd_disabled
│ │ │ -0026b840: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0026b850: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -0026b860: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -0026b870: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0026b880: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
low
Disr │ │ │ -0026b200: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0026b210: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0026b250: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0026b260: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0026ae20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0026aec0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0026aed0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0026aee0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0026aef0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0026af00: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +0026af10: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0026af20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0026af30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0026af40: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0026af50: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0026af60: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0026af70: 202d 2073 6572 7669 6365 5f73 6c61 7064   - service_slapd
│ │ │ +0026af80: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +0026af90: 653a 2044 6973 6162 6c65 204c 4441 5020  e: Disable LDAP 
│ │ │ +0026afa0: 5365 7276 6572 2028 736c 6170 6429 202d  Server (slapd) -
│ │ │ +0026afb0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0026afc0: 2073 6c61 7064 0a20 2062 6c6f 636b 3a0a   slapd.  block:.
│ │ │ +0026afd0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0026afe0: 6c65 204c 4441 5020 5365 7276 6572 2028  le LDAP Server (
│ │ │ +0026aff0: 736c 6170 6429 202d 2043 6f6c 6c65 6374  slapd) - Collect
│ │ │ +0026b000: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +0026b010: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +0026b020: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +0026b030: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +0026b040: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +0026b050: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +0026b060: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +0026b070: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0026b080: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +0026b090: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0026b0a0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0026b0b0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +0026b0c0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0026b0d0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0026b0e0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0026b0f0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0026b100: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ +0026b110: 7064 2920 2d20 456e 7375 7265 2073 6c61  pd) - Ensure sla
│ │ │ +0026b120: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ +0026b130: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0026b140: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0026b150: 3a0a 2020 2020 2020 6e61 6d65 3a20 736c  :.      name: sl
│ │ │ +0026b160: 6170 642e 7365 7276 6963 650a 2020 2020  apd.service.    
│ │ │ +0026b170: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0026b180: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0026b190: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +0026b1a0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0026b1b0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0026b1c0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0026b1d0: 7320 7365 6172 6368 2822 736c 6170 642e  s search("slapd.
│ │ │ +0026b1e0: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +0026b1f0: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +0026b200: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +0026b210: 2045 7869 7374 7320 2d20 736c 6170 642e   Exists - slapd.
│ │ │ +0026b220: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +0026b230: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0026b240: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0026b250: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0026b260: 2073 6c61 7064 2e73 6f63 6b65 740a 2020   slapd.socket.  
│ │ │ +0026b270: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +0026b280: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +0026b290: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +0026b2a0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +0026b2b0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +0026b2c0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +0026b2d0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +0026b2e0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +0026b2f0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +0026b300: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ +0026b310: 2028 736c 6170 6429 202d 2044 6973 6162   (slapd) - Disab
│ │ │ +0026b320: 6c65 2053 6f63 6b65 7420 736c 6170 640a  le Socket slapd.
│ │ │ +0026b330: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0026b340: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0026b350: 2020 206e 616d 653a 2073 6c61 7064 2e73     name: slapd.s
│ │ │ +0026b360: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +0026b370: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0026b380: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0026b390: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0026b3a0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +0026b3b0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0026b3c0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0026b3d0: 7365 6172 6368 2822 736c 6170 642e 736f  search("slapd.so
│ │ │ +0026b3e0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0026b3f0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0026b400: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0026b410: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0026b420: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0026b430: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0026b440: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0026b450: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0026b460: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +0026b470: 6c61 7064 5f64 6973 6162 6c65 640a 2020  lapd_disabled.  
│ │ │ +0026b480: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +0026b490: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +0026b4a0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +0026b4b0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0026b4c0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +0026b4d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0026b580: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0026b590: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0026b5a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0026b5b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0026b5c0: 7365 2220 6964 3d22 6964 3939 3822 3e3c se" id="id998">< │ │ │ +0026b5d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0026b5e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0026b5f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0026b600: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0026b610: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0026b6a0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +0026b6b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +0026ae10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0026ae40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0026ae50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0026ae90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0026aea0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0026b620: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0026b630: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0026b670: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0026b680: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ +0026b6d0: 6973 6162 6c65 5f73 6c61 7064 0a0a 636c  isable_slapd..cl
│ │ │ +0026b6e0: 6173 7320 6469 7361 626c 655f 736c 6170  ass disable_slap
│ │ │ +0026b6f0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ +0026b700: 736c 6170 6427 3a0a 2020 2020 656e 6162  slapd':.    enab
│ │ │ +0026b710: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +0026b720: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0026b730: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +0026b740: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0026b750: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +0026b800: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0026b810: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0026b820: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +0026b860: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +0026b870: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +0026b880: 3d20 5b22 736c 6170 6422 5d0a 3c2f 636f  = ["slapd"].
< │ │ │ 0026b8a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0026b8b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0026b8c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0026b8d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0026b8e0: 6431 3030 3022 2074 6162 696e 6465 783d d1000" tabindex= │ │ │ 0026b8f0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -159642,105 +159642,105 @@ │ │ │ 0026f990: 6172 6765 743d 2223 6964 3130 3034 2220 arget="#id1004" │ │ │ 0026f9a0: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 0026f9b0: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 0026f9c0: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 0026f9d0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 0026f9e0: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 0026f9f0: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -0026fa00: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0026fa10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0026fa90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0026faa0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0026fac0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0026fad0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0026faf0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0026fb10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0026fb40: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0026fb50: 656d 6f76 655f 7270 6362 696e 640a 0a63  emove_rpcbind..c
│ │ │ -0026fb60: 6c61 7373 2072 656d 6f76 655f 7270 6362  lass remove_rpcb
│ │ │ -0026fb70: 696e 6420 7b0a 2020 7061 636b 6167 6520  ind {.  package 
│ │ │ -0026fb80: 7b20 2772 7063 6269 6e64 273a 0a20 2020  { 'rpcbind':.   
│ │ │ -0026fb90: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -0026fba0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -0026fc60: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0026fc70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -0026fd50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0026fd60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0026fdb0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0026fdc0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0026fdd0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0026fde0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0026fdf0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0026fe00: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0026fe10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0026fe20: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0026fe30: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -0026fe40: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0026fe50: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0026fe60: 2070 6163 6b61 6765 5f72 7063 6269 6e64   package_rpcbind
│ │ │ -0026fe70: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ -0026fe80: 3a20 2755 6e69 6e73 7461 6c6c 2072 7063  : 'Uninstall rpc
│ │ │ -0026fe90: 6269 6e64 2050 6163 6b61 6765 3a20 456e  bind Package: En
│ │ │ -0026fea0: 7375 7265 2072 7063 6269 6e64 2069 7320  sure rpcbind is 
│ │ │ -0026feb0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -0026fec0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0026fed0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7270  ge:.    name: rp
│ │ │ -0026fee0: 6362 696e 640a 2020 2020 7374 6174 653a  cbind.    state:
│ │ │ -0026fef0: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -0026ff00: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0026ff10: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0026ff20: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0026ff30: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0026ff40: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0026ff50: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0026ff60: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0026ff70: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0026ff80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0026ff90: 640a 2020 2d20 7061 636b 6167 655f 7270  d.  - package_rp
│ │ │ -0026ffa0: 6362 696e 645f 7265 6d6f 7665 640a 3c2f  cbind_removed.
│ │ │ +0026fa90: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0026fb20: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0026fb30: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -0026fd30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026fd40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026fd80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0026fd90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +0026faa0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0026fab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0026faf0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0026fb00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +0026fb50: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0026fb60: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0026fb70: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0026fb80: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0026fb90: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0026fba0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0026fbb0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0026fbc0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0026fbd0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +0026fbe0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0026fbf0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0026fc00: 7270 6362 696e 645f 7265 6d6f 7665 640a  rpcbind_removed.
│ │ │ +0026fc10: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ +0026fc20: 616c 6c20 7270 6362 696e 6420 5061 636b  all rpcbind Pack
│ │ │ +0026fc30: 6167 653a 2045 6e73 7572 6520 7270 6362  age: Ensure rpcb
│ │ │ +0026fc40: 696e 6420 6973 2072 656d 6f76 6564 270a  ind is removed'.
│ │ │ +0026fc50: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0026fc60: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0026fc70: 616d 653a 2072 7063 6269 6e64 0a20 2020  ame: rpcbind.   
│ │ │ +0026fc80: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0026fc90: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0026fca0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0026fcb0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0026fcc0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0026fcd0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0026fce0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0026fcf0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0026fd00: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0026fd10: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0026fd20: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0026fd30: 6b61 6765 5f72 7063 6269 6e64 5f72 656d  kage_rpcbind_rem
│ │ │ +0026fd40: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +0026fe00: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0026fe10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0026fe90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0026fea0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0026fec0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0026fed0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0026fef0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0026ff10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0026ff40: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0026ff50: 656d 6f76 655f 7270 6362 696e 640a 0a63  emove_rpcbind..c
│ │ │ +0026ff60: 6c61 7373 2072 656d 6f76 655f 7270 6362  lass remove_rpcb
│ │ │ +0026ff70: 696e 6420 7b0a 2020 7061 636b 6167 6520  ind {.  package 
│ │ │ +0026ff80: 7b20 2772 7063 6269 6e64 273a 0a20 2020  { 'rpcbind':.   
│ │ │ +0026ff90: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0026ffa0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation O │ │ │ -002710c0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002710d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002710e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -00271120: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00271130: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00271140: 6420 3d20 5b22 7270 6362 696e 6422 5d0a  d = ["rpcbind"].
│ │ │ -00271150: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -00271210: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00271220: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002712f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00271300: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00271350: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00271360: 7270 6362 696e 640a 0a63 6c61 7373 2064  rpcbind..class d
│ │ │ -00271370: 6973 6162 6c65 5f72 7063 6269 6e64 207b  isable_rpcbind {
│ │ │ -00271380: 0a20 2073 6572 7669 6365 207b 2772 7063  .  service {'rpc
│ │ │ -00271390: 6269 6e64 273a 0a20 2020 2065 6e61 626c  bind':.    enabl
│ │ │ -002713a0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -002713b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -002713c0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -002713d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -00271490: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002714a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -002712d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002712e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00271320: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00271330: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00271520: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00271540: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00271590: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002715c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00271530: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00271550: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002715a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002715b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -002715e0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -002715f0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00271600: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00271610: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00271620: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00271630: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00271640: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -00271650: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00271660: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00271670: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00271680: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -00271690: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002716a0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002716b0: 655f 7270 6362 696e 645f 6469 7361 626c  e_rpcbind_disabl
│ │ │ -002716c0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -002716d0: 626c 6520 7270 6362 696e 6420 5365 7276  ble rpcbind Serv
│ │ │ -002716e0: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -002716f0: 7276 6963 6520 7270 6362 696e 640a 2020  rvice rpcbind.  
│ │ │ -00271700: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -00271710: 3a20 4469 7361 626c 6520 7270 6362 696e  : Disable rpcbin
│ │ │ -00271720: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -00271730: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -00271740: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -00271750: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -00271760: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00271770: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00271780: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00271790: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -002717a0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -002717b0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002717c0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002717d0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -002717e0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -002717f0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00271800: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00271810: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00271820: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00271830: 6c65 2072 7063 6269 6e64 2053 6572 7669  le rpcbind Servi
│ │ │ -00271840: 6365 202d 2045 6e73 7572 6520 7270 6362  ce - Ensure rpcb
│ │ │ -00271850: 696e 642e 7365 7276 6963 6520 6973 204d  ind.service is M
│ │ │ -00271860: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00271870: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00271880: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -00271890: 7063 6269 6e64 2e73 6572 7669 6365 0a20  pcbind.service. 
│ │ │ -002718a0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002718b0: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -002718c0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -002718d0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -002718e0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002718f0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00271900: 7320 6973 2073 6561 7263 6828 2272 7063  s is search("rpc
│ │ │ -00271910: 6269 6e64 2e73 6572 7669 6365 222c 206d  bind.service", m
│ │ │ -00271920: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00271930: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00271940: 6f63 6b65 7420 4578 6973 7473 202d 2072  ocket Exists - r
│ │ │ -00271950: 7063 6269 6e64 2e73 6f63 6b65 740a 2020  pcbind.socket.  
│ │ │ -00271960: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00271970: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00271980: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00271990: 742d 6669 6c65 7320 7270 6362 696e 642e  t-files rpcbind.
│ │ │ -002719a0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -002719b0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -002719c0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002719d0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002719e0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -002719f0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00271a00: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00271a10: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00271a20: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00271a30: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ -00271a40: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ -00271a50: 4469 7361 626c 6520 536f 636b 6574 2072  Disable Socket r
│ │ │ -00271a60: 7063 6269 6e64 0a20 2020 2061 6e73 6962  pcbind.    ansib
│ │ │ -00271a70: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00271a80: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00271a90: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ -00271aa0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00271ab0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -00271ac0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -00271ad0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00271ae0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00271af0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00271b00: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00271b10: 2272 7063 6269 6e64 2e73 6f63 6b65 7422  "rpcbind.socket"
│ │ │ -00271b20: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00271b30: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ -00271b40: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00271b50: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -00271b60: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00271b70: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00271b80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00271b90: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00271ba0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00271bb0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00271bc0: 0a20 202d 2073 6572 7669 6365 5f72 7063  .  - service_rpc
│ │ │ -00271bd0: 6269 6e64 5f64 6973 6162 6c65 640a 2020  bind_disabled.  
│ │ │ -00271be0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00271bf0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00271c00: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00271c10: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00271c20: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +002710b0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +002710c0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002710d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +00271160: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00271180: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002711a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002711d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002711e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00271210: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00271220: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00271230: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00271240: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00271250: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00271260: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00271270: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +00271280: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00271290: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002712a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002712b0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002712c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002712d0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002712e0: 6365 5f72 7063 6269 6e64 5f64 6973 6162  ce_rpcbind_disab
│ │ │ +002712f0: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +00271300: 6162 6c65 2072 7063 6269 6e64 2053 6572  able rpcbind Ser
│ │ │ +00271310: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +00271320: 6572 7669 6365 2072 7063 6269 6e64 0a20  ervice rpcbind. 
│ │ │ +00271330: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00271340: 653a 2044 6973 6162 6c65 2072 7063 6269  e: Disable rpcbi
│ │ │ +00271350: 6e64 2053 6572 7669 6365 202d 2043 6f6c  nd Service - Col
│ │ │ +00271360: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +00271370: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +00271380: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +00271390: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002713a0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002713b0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002713c0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002713d0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002713e0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002713f0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00271400: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00271410: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +00271420: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00271430: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00271440: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00271450: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00271460: 626c 6520 7270 6362 696e 6420 5365 7276  ble rpcbind Serv
│ │ │ +00271470: 6963 6520 2d20 456e 7375 7265 2072 7063  ice - Ensure rpc
│ │ │ +00271480: 6269 6e64 2e73 6572 7669 6365 2069 7320  bind.service is 
│ │ │ +00271490: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +002714a0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +002714b0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +002714c0: 7270 6362 696e 642e 7365 7276 6963 650a  rpcbind.service.
│ │ │ +002714d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002714e0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +002714f0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00271500: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00271510: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00271520: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00271530: 6573 2069 7320 7365 6172 6368 2822 7270  es is search("rp
│ │ │ +00271540: 6362 696e 642e 7365 7276 6963 6522 2c20  cbind.service", 
│ │ │ +00271550: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00271560: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00271570: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00271580: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ +00271590: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002715a0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002715b0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002715c0: 6974 2d66 696c 6573 2072 7063 6269 6e64  it-files rpcbind
│ │ │ +002715d0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +002715e0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +002715f0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00271600: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00271610: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00271620: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00271630: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00271640: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00271650: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00271660: 206e 616d 653a 2044 6973 6162 6c65 2072   name: Disable r
│ │ │ +00271670: 7063 6269 6e64 2053 6572 7669 6365 202d  pcbind Service -
│ │ │ +00271680: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +00271690: 7270 6362 696e 640a 2020 2020 616e 7369  rpcbind.    ansi
│ │ │ +002716a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002716b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002716c0: 2072 7063 6269 6e64 2e73 6f63 6b65 740a   rpcbind.socket.
│ │ │ +002716d0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002716e0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +002716f0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00271700: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00271710: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +00271720: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +00271730: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00271740: 2822 7270 6362 696e 642e 736f 636b 6574  ("rpcbind.socket
│ │ │ +00271750: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00271760: 6529 0a20 2074 6167 733a 0a20 202d 2050  e).  tags:.  - P
│ │ │ +00271770: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00271780: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +00271790: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002717a0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002717b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002717c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002717d0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +002717e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002717f0: 640a 2020 2d20 7365 7276 6963 655f 7270  d.  - service_rp
│ │ │ +00271800: 6362 696e 645f 6469 7361 626c 6564 0a20  cbind_disabled. 
│ │ │ +00271810: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00271820: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00271830: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00271840: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00271850: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00271910: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00271920: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002719b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002719c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002719e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00271a00: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00271a10: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00271a50: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00271a60: 6520 6469 7361 626c 655f 7270 6362 696e e disable_rpcbin │ │ │ +00271a70: 640a 0a63 6c61 7373 2064 6973 6162 6c65 d..class disable │ │ │ +00271a80: 5f72 7063 6269 6e64 207b 0a20 2073 6572 _rpcbind {. ser │ │ │ +00271a90: 7669 6365 207b 2772 7063 6269 6e64 273a vice {'rpcbind': │ │ │ +00271aa0: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ +00271ab0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73 ; false,. ens │ │ │ +00271ac0: 7572 6520 3d26 6774 3b20 2773 746f 7070 ure => 'stopp │ │ │ +00271ad0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Reme │ │ │ +00271b90: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00271ba0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00271bb0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[custo │ │ │ +00271c00: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00271c10: 6573 5d0a 6d61 736b 6564 203d 205b 2272 es].masked = ["r │ │ │ +00271c20: 7063 6269 6e64 225d 0a3c 2f63 6f64 653e pcbind"]. │ │ │ 00271c30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remediatio │ │ │ -00273830: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00273840: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00273850: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ -002738a0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -002738b0: 736b 6564 203d 205b 226e 6673 2d73 6572  sked = ["nfs-ser
│ │ │ -002738c0: 7665 7222 5d0a 3c2f 636f 6465 3e3c 2f70  ver"].

Remediati │ │ │ -00273980: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00273990: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -00273a10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00273a20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00273a30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00273a70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00273a80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00273aa0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00273ac0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00273ad0: 7361 626c 655f 6e66 732d 7365 7276 6572  sable_nfs-server
│ │ │ -00273ae0: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -00273af0: 6e66 732d 7365 7276 6572 207b 0a20 2073  nfs-server {.  s
│ │ │ -00273b00: 6572 7669 6365 207b 276e 6673 2d73 6572  ervice {'nfs-ser
│ │ │ -00273b10: 7665 7227 3a0a 2020 2020 656e 6162 6c65  ver':.    enable
│ │ │ -00273b20: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -00273b30: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00273b40: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -00273b50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00273c10: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00273c20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00273ca0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00273cc0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00273d10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00273d40: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00273d60: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00273d70: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00273d80: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00273d90: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00273da0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00273db0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00273dc0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00273dd0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00273de0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00273df0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00273e00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00273e10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00273e20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00273e30: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00273e40: 655f 6e66 735f 6469 7361 626c 6564 0a20  e_nfs_disabled. 
│ │ │ -00273e50: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -00273e60: 6974 790a 0a2d 206e 616d 653a 2044 6973  ity..- name: Dis
│ │ │ -00273e70: 6162 6c65 204e 6574 776f 726b 2046 696c  able Network Fil
│ │ │ -00273e80: 6520 5379 7374 656d 2028 6e66 7329 202d  e System (nfs) -
│ │ │ -00273e90: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -00273ea0: 206e 6673 2d73 6572 7665 720a 2020 626c   nfs-server.  bl
│ │ │ -00273eb0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00273ec0: 4469 7361 626c 6520 4e65 7477 6f72 6b20  Disable Network 
│ │ │ -00273ed0: 4669 6c65 2053 7973 7465 6d20 286e 6673  File System (nfs
│ │ │ -00273ee0: 2920 2d20 436f 6c6c 6563 7420 7379 7374  ) - Collect syst
│ │ │ -00273ef0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00273f00: 7365 6e74 2069 6e0a 2020 2020 2020 7468  sent in.      th
│ │ │ -00273f10: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -00273f20: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00273f30: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00273f40: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00273f50: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -00273f60: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -00273f70: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -00273f80: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00273f90: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00273fa0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -00273fb0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00273fc0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00273fd0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -00273fe0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00273ff0: 204e 6574 776f 726b 2046 696c 6520 5379   Network File Sy
│ │ │ -00274000: 7374 656d 2028 6e66 7329 202d 2045 6e73  stem (nfs) - Ens
│ │ │ -00274010: 7572 6520 6e66 732d 7365 7276 6572 2e73  ure nfs-server.s
│ │ │ -00274020: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -00274030: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00274040: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00274050: 2020 2020 6e61 6d65 3a20 6e66 732d 7365      name: nfs-se
│ │ │ -00274060: 7276 6572 2e73 6572 7669 6365 0a20 2020  rver.service.   
│ │ │ -00274070: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00274080: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -00274090: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -002740a0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -002740b0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002740c0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002740d0: 6973 2073 6561 7263 6828 226e 6673 2d73  is search("nfs-s
│ │ │ -002740e0: 6572 7665 722e 7365 7276 6963 6522 2c20  erver.service", 
│ │ │ -002740f0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00274100: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -00274110: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -00274120: 6e66 732d 7365 7276 6572 2e73 6f63 6b65  nfs-server.socke
│ │ │ -00274130: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -00274140: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -00274150: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -00274160: 2d75 6e69 742d 6669 6c65 7320 6e66 732d  -unit-files nfs-
│ │ │ -00274170: 7365 7276 6572 2e73 6f63 6b65 740a 2020  server.socket.  
│ │ │ -00274180: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -00274190: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -002741a0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -002741b0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -002741c0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -002741d0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -002741e0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -002741f0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00274200: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00274210: 6162 6c65 204e 6574 776f 726b 2046 696c  able Network Fil
│ │ │ -00274220: 6520 5379 7374 656d 2028 6e66 7329 202d  e System (nfs) -
│ │ │ -00274230: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -00274240: 6e66 732d 7365 7276 6572 0a20 2020 2061  nfs-server.    a
│ │ │ -00274250: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00274260: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00274270: 6d65 3a20 6e66 732d 7365 7276 6572 2e73  me: nfs-server.s
│ │ │ -00274280: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -00274290: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002742a0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002742b0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002742c0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -002742d0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -002742e0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002742f0: 7365 6172 6368 2822 6e66 732d 7365 7276  search("nfs-serv
│ │ │ -00274300: 6572 2e73 6f63 6b65 7422 2c20 6d75 6c74  er.socket", mult
│ │ │ -00274310: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00274320: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00274330: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00274340: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00274350: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00274360: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00274370: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00274380: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00274390: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002743a0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002743b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002743c0: 7365 7276 6963 655f 6e66 735f 6469 7361  service_nfs_disa
│ │ │ -002743d0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -002743e0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -002743f0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -00274400: 6974 790a 2020 7768 656e 3a20 2722 6c69  ity.  when: '"li
│ │ │ -00274410: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00274420: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00274430: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
│ │ │ +002738c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00273950: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00273960: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -00273cd0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00273ce0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00273d20: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00273d30: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +002738d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002738e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00273920: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00273930: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +00273980: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00273990: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +002739a0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +002739b0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002739c0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002739d0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +002739e0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002739f0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00273a00: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00273a10: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00273a20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00273a30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00273a40: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00273a50: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00273a60: 6572 7669 6365 5f6e 6673 5f64 6973 6162  ervice_nfs_disab
│ │ │ +00273a70: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ +00273a80: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ +00273a90: 3a20 4469 7361 626c 6520 4e65 7477 6f72  : Disable Networ
│ │ │ +00273aa0: 6b20 4669 6c65 2053 7973 7465 6d20 286e  k File System (n
│ │ │ +00273ab0: 6673 2920 2d20 4469 7361 626c 6520 7365  fs) - Disable se
│ │ │ +00273ac0: 7276 6963 6520 6e66 732d 7365 7276 6572  rvice nfs-server
│ │ │ +00273ad0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00273ae0: 616d 653a 2044 6973 6162 6c65 204e 6574  ame: Disable Net
│ │ │ +00273af0: 776f 726b 2046 696c 6520 5379 7374 656d  work File System
│ │ │ +00273b00: 2028 6e66 7329 202d 2043 6f6c 6c65 6374   (nfs) - Collect
│ │ │ +00273b10: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00273b20: 7320 5072 6573 656e 7420 696e 0a20 2020  s Present in.   
│ │ │ +00273b30: 2020 2074 6865 2053 7973 7465 6d0a 2020     the System.  
│ │ │ +00273b40: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00273b50: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00273b60: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00273b70: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00273b80: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00273b90: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00273ba0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00273bb0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00273bc0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +00273bd0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +00273be0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00273bf0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00273c00: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00273c10: 7361 626c 6520 4e65 7477 6f72 6b20 4669  sable Network Fi
│ │ │ +00273c20: 6c65 2053 7973 7465 6d20 286e 6673 2920  le System (nfs) 
│ │ │ +00273c30: 2d20 456e 7375 7265 206e 6673 2d73 6572  - Ensure nfs-ser
│ │ │ +00273c40: 7665 722e 7365 7276 6963 6520 6973 204d  ver.service is M
│ │ │ +00273c50: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ +00273c60: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00273c70: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ +00273c80: 6673 2d73 6572 7665 722e 7365 7276 6963  fs-server.servic
│ │ │ +00273c90: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00273ca0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +00273cb0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00273cc0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00273cd0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00273ce0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00273cf0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00273d00: 6e66 732d 7365 7276 6572 2e73 6572 7669  nfs-server.servi
│ │ │ +00273d10: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +00273d20: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +00273d30: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +00273d40: 7473 202d 206e 6673 2d73 6572 7665 722e  ts - nfs-server.
│ │ │ +00273d50: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +00273d60: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00273d70: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00273d80: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00273d90: 206e 6673 2d73 6572 7665 722e 736f 636b   nfs-server.sock
│ │ │ +00273da0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +00273db0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00273dc0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00273dd0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00273de0: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +00273df0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00273e00: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00273e10: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00273e20: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00273e30: 3a20 4469 7361 626c 6520 4e65 7477 6f72  : Disable Networ
│ │ │ +00273e40: 6b20 4669 6c65 2053 7973 7465 6d20 286e  k File System (n
│ │ │ +00273e50: 6673 2920 2d20 4469 7361 626c 6520 536f  fs) - Disable So
│ │ │ +00273e60: 636b 6574 206e 6673 2d73 6572 7665 720a  cket nfs-server.
│ │ │ +00273e70: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00273e80: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00273e90: 2020 206e 616d 653a 206e 6673 2d73 6572     name: nfs-ser
│ │ │ +00273ea0: 7665 722e 736f 636b 6574 0a20 2020 2020  ver.socket.     
│ │ │ +00273eb0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00273ec0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00273ed0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +00273ee0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00273ef0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00273f00: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00273f10: 7320 6973 2073 6561 7263 6828 226e 6673  s is search("nfs
│ │ │ +00273f20: 2d73 6572 7665 722e 736f 636b 6574 222c  -server.socket",
│ │ │ +00273f30: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +00273f40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00273f50: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00273f60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00273f70: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00273f80: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00273f90: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00273fa0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00273fb0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00273fc0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00273fd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00273fe0: 0a20 202d 2073 6572 7669 6365 5f6e 6673  .  - service_nfs
│ │ │ +00273ff0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +00274000: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00274010: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ +00274020: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ +00274030: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00274040: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00274050: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00274110: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00274120: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002741b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002741c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002741e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00274200: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00274210: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00274250: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00274260: 6520 6469 7361 626c 655f 6e66 732d 7365 e disable_nfs-se │ │ │ +00274270: 7276 6572 0a0a 636c 6173 7320 6469 7361 rver..class disa │ │ │ +00274280: 626c 655f 6e66 732d 7365 7276 6572 207b ble_nfs-server { │ │ │ +00274290: 0a20 2073 6572 7669 6365 207b 276e 6673 . service {'nfs │ │ │ +002742a0: 2d73 6572 7665 7227 3a0a 2020 2020 656e -server':. en │ │ │ +002742b0: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ +002742c0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +002742d0: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ +002742e0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ +002743a0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +002743b0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ +00274410: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +00274420: 6b65 6420 3d20 5b22 6e66 732d 7365 7276  ked = ["nfs-serv
│ │ │ +00274430: 6572 225d 0a3c 2f63 6f64 653e 3c2f 7072  er"].
Rem │ │ │ -00275290: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002752a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002752b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00275350: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002753a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002753e0: 636c 7564 6520 7265 6d6f 7665 5f6e 6673  clude remove_nfs
│ │ │ -002753f0: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a0a  -kernel-server..
│ │ │ -00275400: 636c 6173 7320 7265 6d6f 7665 5f6e 6673  class remove_nfs
│ │ │ -00275410: 2d6b 6572 6e65 6c2d 7365 7276 6572 207b  -kernel-server {
│ │ │ -00275420: 0a20 2070 6163 6b61 6765 207b 2027 6e66  .  package { 'nf
│ │ │ -00275430: 732d 6b65 726e 656c 2d73 6572 7665 7227  s-kernel-server'
│ │ │ -00275440: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00275450: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00275460: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00275470: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -00275520: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00275530: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -002755f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00275600: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ -00275330: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00275360: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00275380: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00275390: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002753b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002753c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -002755c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002755e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00275610: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00275630: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00275660: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00275670: 696e 7374 616c 6c20 6e66 732d 6b65 726e  install nfs-kern
│ │ │ -00275680: 656c 2d73 6572 7665 7220 5061 636b 6167  el-server Packag
│ │ │ -00275690: 653a 2045 6e73 7572 6520 6e66 732d 6b65  e: Ensure nfs-ke
│ │ │ -002756a0: 726e 656c 2d73 6572 7665 7220 6973 2072  rnel-server is r
│ │ │ -002756b0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -002756c0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -002756d0: 653a 0a20 2020 206e 616d 653a 206e 6673  e:.    name: nfs
│ │ │ -002756e0: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a20  -kernel-server. 
│ │ │ -002756f0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00275700: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00275710: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00275720: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00275730: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00275740: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -00275750: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00275760: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00275770: 636b 6167 655f 6e66 732d 6b65 726e 656c  ckage_nfs-kernel
│ │ │ -00275780: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +00275290: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002752a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002752b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +00275340: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00275350: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002753a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002753e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002753f0: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276   nfs-kernel-serv
│ │ │ +00275400: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ +00275410: 7265 206e 6673 2d6b 6572 6e65 6c2d 7365  re nfs-kernel-se
│ │ │ +00275420: 7276 6572 2069 7320 7265 6d6f 7665 6427  rver is removed'
│ │ │ +00275430: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00275440: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00275450: 6e61 6d65 3a20 6e66 732d 6b65 726e 656c  name: nfs-kernel
│ │ │ +00275460: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ +00275470: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00275480: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00275490: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002754a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002754b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002754c0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +002754d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002754e0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ +002754f0: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ +00275500: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00275510: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002755c0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002755d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002755e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ +00275330: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00275360: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00275370: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002753b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002753c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00275680: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002756a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002756d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00275660: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00275670: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00275690: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002756b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002756c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00275700: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00275710: 6465 2072 656d 6f76 655f 6e66 732d 6b65 de remove_nfs-ke │ │ │ +00275720: 726e 656c 2d73 6572 7665 720a 0a63 6c61 rnel-server..cla │ │ │ +00275730: 7373 2072 656d 6f76 655f 6e66 732d 6b65 ss remove_nfs-ke │ │ │ +00275740: 726e 656c 2d73 6572 7665 7220 7b0a 2020 rnel-server {. │ │ │ +00275750: 7061 636b 6167 6520 7b20 276e 6673 2d6b package { 'nfs-k │ │ │ +00275760: 6572 6e65 6c2d 7365 7276 6572 273a 0a20 ernel-server':. │ │ │ +00275770: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +00275780: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 00275790: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remed │ │ │ -002779c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002779d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002779e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packa │ │ │ -00277a30: 6765 735d 5d0a 6e61 6d65 203d 2022 6368 ges]].name = "ch │ │ │ -00277a40: 726f 6e79 220a 7665 7273 696f 6e20 3d20 rony".version = │ │ │ -00277a50: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation │ │ │ -00277b10: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00277b20: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00277bb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00277bd0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00277be0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00277bf0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00277c00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00277c20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -00277c60: 616c 6c5f 6368 726f 6e79 0a0a 636c 6173  all_chrony..clas
│ │ │ -00277c70: 7320 696e 7374 616c 6c5f 6368 726f 6e79  s install_chrony
│ │ │ -00277c80: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00277c90: 6368 726f 6e79 273a 0a20 2020 2065 6e73  chrony':.    ens
│ │ │ -00277ca0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -00277cb0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -00277cd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00277d70: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00277d80: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00277e20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00277ec0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00277ed0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00277ee0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00277ef0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00277f00: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ -00277f10: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ -00277f20: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00277f30: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ -00277f40: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ -00277f50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00277f60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00277f70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00277f80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00277f90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00277fa0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00277fb0: 636b 6167 655f 6368 726f 6e79 5f69 6e73  ckage_chrony_ins
│ │ │ -00277fc0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00277fd0: 456e 7375 7265 2063 6872 6f6e 7920 6973  Ensure chrony is
│ │ │ -00277fe0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -00277ff0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00278000: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00278010: 6368 726f 6e79 0a20 2020 2073 7461 7465  chrony.    state
│ │ │ -00278020: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -00278030: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00278040: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00278050: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00278060: 733a 0a20 202d 2050 4349 2d44 5353 2d52  s:.  - PCI-DSS-R
│ │ │ -00278070: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ -00278080: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ -00278090: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ -002780a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -002780b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002780c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002780d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002780e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002780f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00278100: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ -00278110: 6872 6f6e 795f 696e 7374 616c 6c65 640a  hrony_installed.
│ │ │ +002779c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +002779d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
│ │ │ -00277e10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00277e40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00277e50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00277e90: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00277ea0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +00277a60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00277a90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00277ab0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00277ac0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00277ae0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00277b00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00277b10: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00277b20: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00277b30: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00277b40: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00277b50: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +00277b60: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +00277b70: 5043 492d 4453 5376 342d 3130 2e36 0a20  PCI-DSSv4-10.6. 
│ │ │ +00277b80: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00277b90: 362e 310a 2020 2d20 656e 6162 6c65 5f73  6.1.  - enable_s
│ │ │ +00277ba0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00277bb0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00277bc0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00277bd0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00277be0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00277bf0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00277c00: 6765 5f63 6872 6f6e 795f 696e 7374 616c  ge_chrony_instal
│ │ │ +00277c10: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00277c20: 7572 6520 6368 726f 6e79 2069 7320 696e  ure chrony is in
│ │ │ +00277c30: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +00277c40: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00277c50: 653a 0a20 2020 206e 616d 653a 2063 6872  e:.    name: chr
│ │ │ +00277c60: 6f6e 790a 2020 2020 7374 6174 653a 2070  ony.    state: p
│ │ │ +00277c70: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +00277c80: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00277c90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00277ca0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00277cb0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +00277cc0: 3130 2e34 0a20 202d 2050 4349 2d44 5353  10.4.  - PCI-DSS
│ │ │ +00277cd0: 7634 2d31 302e 360a 2020 2d20 5043 492d  v4-10.6.  - PCI-
│ │ │ +00277ce0: 4453 5376 342d 3130 2e36 2e31 0a20 202d  DSSv4-10.6.1.  -
│ │ │ +00277cf0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00277d00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00277d10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00277d20: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00277d30: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00277d40: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00277d50: 2020 2d20 7061 636b 6167 655f 6368 726f    - package_chro
│ │ │ +00277d60: 6e79 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ny_installed.
│ │ │ +00277d80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00277e20: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00277e30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00277e40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +00277ed0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00277ee0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00277f30: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00277f70: 6c75 6465 2069 6e73 7461 6c6c 5f63 6872  lude install_chr
│ │ │ +00277f80: 6f6e 790a 0a63 6c61 7373 2069 6e73 7461  ony..class insta
│ │ │ +00277f90: 6c6c 5f63 6872 6f6e 7920 7b0a 2020 7061  ll_chrony {.  pa
│ │ │ +00277fa0: 636b 6167 6520 7b20 2763 6872 6f6e 7927  ckage { 'chrony'
│ │ │ +00277fb0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00277fc0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +00277fd0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +00278090: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +002780a0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +002780b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]
│ │ │ +00278100: 5d0a 6e61 6d65 203d 2022 6368 726f 6e79  ].name = "chrony
│ │ │ +00278110: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  00278120: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedia │ │ │ -0027a500: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0027a510: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0027a520: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0027a560: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -0027a570: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -0027a580: 0a65 6e61 626c 6564 203d 205b 2263 6872  .enabled = ["chr
│ │ │ -0027a590: 6f6e 7922 5d0a 3c2f 636f 6465 3e3c 2f70  ony"].

Remediati │ │ │ -0027a650: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0027a660: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0027a6e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0027a770: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ +00277ec0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00277ef0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00277f00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00277f40: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00277f50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -0027a6f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027a700: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0027a740: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027a750: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0027a790: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -0027a7a0: 6162 6c65 5f63 6872 6f6e 790a 0a63 6c61  able_chrony..cla
│ │ │ -0027a7b0: 7373 2065 6e61 626c 655f 6368 726f 6e79  ss enable_chrony
│ │ │ -0027a7c0: 207b 0a20 2073 6572 7669 6365 207b 2763   {.  service {'c
│ │ │ -0027a7d0: 6872 6f6e 7927 3a0a 2020 2020 656e 6162  hrony':.    enab
│ │ │ -0027a7e0: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -0027a7f0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0027a800: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -0027a810: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0027a8d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0027a8e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0027a960: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0027a980: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0027a9d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0027aa00: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0027aa20: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0027aa30: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0027aa40: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0027aa50: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0027aa60: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0027aa70: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0027aa80: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0027aa90: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0027aaa0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0027aab0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0027aac0: 0a20 202d 2073 6572 7669 6365 5f63 6872  .  - service_chr
│ │ │ -0027aad0: 6f6e 7964 5f65 6e61 626c 6564 0a0a 2d20  onyd_enabled..- 
│ │ │ -0027aae0: 6e61 6d65 3a20 5468 6520 4368 726f 6e79  name: The Chrony
│ │ │ -0027aaf0: 6420 7365 7276 6963 6520 6973 2065 6e61  d service is ena
│ │ │ -0027ab00: 626c 6564 202d 2045 6e61 626c 6520 7365  bled - Enable se
│ │ │ -0027ab10: 7276 6963 6520 6368 726f 6e79 0a20 2062  rvice chrony.  b
│ │ │ -0027ab20: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -0027ab30: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -0027ab40: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -0027ab50: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0027ab60: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0027ab70: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0027ab80: 0a0a 2020 2d20 6e61 6d65 3a20 5468 6520  ..  - name: The 
│ │ │ -0027ab90: 4368 726f 6e79 6420 7365 7276 6963 6520  Chronyd service 
│ │ │ -0027aba0: 6973 2065 6e61 626c 6564 202d 2045 6e61  is enabled - Ena
│ │ │ -0027abb0: 626c 6520 5365 7276 6963 6520 6368 726f  ble Service chro
│ │ │ -0027abc0: 6e79 0a20 2020 2061 6e73 6962 6c65 2e62  ny.    ansible.b
│ │ │ -0027abd0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0027abe0: 2020 2020 2020 6e61 6d65 3a20 6368 726f        name: chro
│ │ │ -0027abf0: 6e79 0a20 2020 2020 2065 6e61 626c 6564  ny.      enabled
│ │ │ -0027ac00: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -0027ac10: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -0027ac20: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -0027ac30: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -0027ac40: 2722 6368 726f 6e79 2220 696e 2061 6e73  '"chrony" in ans
│ │ │ -0027ac50: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0027ac60: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0027ac70: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0027ac80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0027ac90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0027aca0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0027acb0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0027acc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0027acd0: 2020 2d20 7365 7276 6963 655f 6368 726f    - service_chro
│ │ │ -0027ace0: 6e79 645f 656e 6162 6c65 640a 2020 2d20  nyd_enabled.  - 
│ │ │ -0027acf0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0027ad00: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ -0027ad10: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ -0027ad20: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0027ad30: 2e70 6163 6b61 6765 7327 0a20 202d 2027  .packages'.  - '
│ │ │ -0027ad40: 2263 6872 6f6e 7922 2069 6e20 616e 7369  "chrony" in ansi
│ │ │ -0027ad50: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0027ad60: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

│ │ │ +0027a520: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:< │ │ │ -0027a970: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0027a990: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0027a9e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0027a9f0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +0027a5c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0027a5e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0027a610: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0027a5a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0027a5b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0027a5d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0027a5f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0027a600: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +0027a650: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0027a660: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0027a670: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0027a680: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0027a690: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +0027a6a0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0027a6b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0027a6c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0027a6d0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +0027a6e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0027a6f0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +0027a700: 6963 655f 6368 726f 6e79 645f 656e 6162 ice_chronyd_enab │ │ │ +0027a710: 6c65 640a 0a2d 206e 616d 653a 2054 6865 led..- name: The │ │ │ +0027a720: 2043 6872 6f6e 7964 2073 6572 7669 6365 Chronyd service │ │ │ +0027a730: 2069 7320 656e 6162 6c65 6420 2d20 456e is enabled - En │ │ │ +0027a740: 6162 6c65 2073 6572 7669 6365 2063 6872 able service chr │ │ │ +0027a750: 6f6e 790a 2020 626c 6f63 6b3a 0a0a 2020 ony. block:.. │ │ │ +0027a760: 2d20 6e61 6d65 3a20 4761 7468 6572 2074 - name: Gather t │ │ │ +0027a770: 6865 2070 6163 6b61 6765 2066 6163 7473 he package facts │ │ │ +0027a780: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +0027a790: 6c74 696e 2e70 6163 6b61 6765 5f66 6163 ltin.package_fac │ │ │ +0027a7a0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765 ts:. manage │ │ │ +0027a7b0: 723a 2061 7574 6f0a 0a20 202d 206e 616d r: auto.. - nam │ │ │ +0027a7c0: 653a 2054 6865 2043 6872 6f6e 7964 2073 e: The Chronyd s │ │ │ +0027a7d0: 6572 7669 6365 2069 7320 656e 6162 6c65 ervice is enable │ │ │ +0027a7e0: 6420 2d20 456e 6162 6c65 2053 6572 7669 d - Enable Servi │ │ │ +0027a7f0: 6365 2063 6872 6f6e 790a 2020 2020 616e ce chrony. an │ │ │ +0027a800: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ +0027a810: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ +0027a820: 653a 2063 6872 6f6e 790a 2020 2020 2020 e: chrony. │ │ │ +0027a830: 656e 6162 6c65 643a 2074 7275 650a 2020 enabled: true. │ │ │ +0027a840: 2020 2020 7374 6174 653a 2073 7461 7274 state: start │ │ │ +0027a850: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ +0027a860: 2066 616c 7365 0a20 2020 2077 6865 6e3a false. when: │ │ │ +0027a870: 0a20 2020 202d 2027 2263 6872 6f6e 7922 . - '"chrony" │ │ │ +0027a880: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +0027a890: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +0027a8a0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ +0027a8b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0027a8c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0027a8d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0027a8e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0027a8f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0027a900: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +0027a910: 6365 5f63 6872 6f6e 7964 5f65 6e61 626c ce_chronyd_enabl │ │ │ +0027a920: 6564 0a20 202d 2073 7065 6369 616c 5f73 ed. - special_s │ │ │ +0027a930: 6572 7669 6365 5f62 6c6f 636b 0a20 2077 ervice_block. w │ │ │ +0027a940: 6865 6e3a 0a20 202d 2027 226c 696e 7578 hen:. - '"linux │ │ │ +0027a950: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ +0027a960: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +0027a970: 270a 2020 2d20 2722 6368 726f 6e79 2220 '. - '"chrony" │ │ │ +0027a980: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +0027a990: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.

Reme │ │ │ +0027aa50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0027aa60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +0027aaf0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027ab20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027ab40: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027ab50: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027ab70: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0027ab90: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0027aba0: 6465 2065 6e61 626c 655f 6368 726f 6e79  de enable_chrony
│ │ │ +0027abb0: 0a0a 636c 6173 7320 656e 6162 6c65 5f63  ..class enable_c
│ │ │ +0027abc0: 6872 6f6e 7920 7b0a 2020 7365 7276 6963  hrony {.  servic
│ │ │ +0027abd0: 6520 7b27 6368 726f 6e79 273a 0a20 2020  e {'chrony':.   
│ │ │ +0027abe0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +0027abf0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +0027ac00: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +0027ac10: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +0027acd0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0027ace0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0027acf0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +0027ad40: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +0027ad50: 6e61 626c 6564 203d 205b 2263 6872 6f6e  nabled = ["chron
│ │ │ +0027ad60: 7922 5d0a 3c2f 636f 6465 3e3c 2f70 7265  y"].
Remedi │ │ │ -0027c060: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0027c070: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0027c080: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -0027c0d0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -0027c0e0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ -0027c0f0: 7374 656d 642d 7469 6d65 7379 6e63 6422  stemd-timesyncd"
│ │ │ -0027c100: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0027c110: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ -0027c1c0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0027c1d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0027c250: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0027c270: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0027c2c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0027c2f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -0027c310: 5f73 7973 7465 6d64 2d74 696d 6573 796e  _systemd-timesyn
│ │ │ -0027c320: 6364 0a0a 636c 6173 7320 656e 6162 6c65  cd..class enable
│ │ │ -0027c330: 5f73 7973 7465 6d64 2d74 696d 6573 796e  _systemd-timesyn
│ │ │ -0027c340: 6364 207b 0a20 2073 6572 7669 6365 207b  cd {.  service {
│ │ │ -0027c350: 2773 7973 7465 6d64 2d74 696d 6573 796e  'systemd-timesyn
│ │ │ -0027c360: 6364 273a 0a20 2020 2065 6e61 626c 6520  cd':.    enable 
│ │ │ -0027c370: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -0027c380: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -0027c390: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
R │ │ │ -0027c450: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0027c460: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:< │ │ │ -0027c260: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0027c280: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0027c2d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0027c2e0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -0027c540: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0027c550: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0027c5a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0027c5b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0027c5c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0027c5d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0027c5e0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -0027c5f0: 4953 542d 3830 302d 3533 2d41 552d 3828  IST-800-53-AU-8(
│ │ │ -0027c600: 3129 2861 290a 2020 2d20 4e49 5354 2d38  1)(a).  - NIST-8
│ │ │ -0027c610: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0027c620: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -0027c630: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -0027c640: 2d31 302e 360a 2020 2d20 5043 492d 4453  -10.6.  - PCI-DS
│ │ │ -0027c650: 5376 342d 3130 2e36 2e31 0a20 202d 2065  Sv4-10.6.1.  - e
│ │ │ -0027c660: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0027c670: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0027c680: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0027c690: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0027c6a0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0027c6b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0027c6c0: 7365 7276 6963 655f 7469 6d65 7379 6e63  service_timesync
│ │ │ -0027c6d0: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ -0027c6e0: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ -0027c6f0: 645f 7469 6d65 7379 6e63 6420 5365 7276  d_timesyncd Serv
│ │ │ -0027c700: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -0027c710: 7669 6365 2073 7973 7465 6d64 2d74 696d  vice systemd-tim
│ │ │ -0027c720: 6573 796e 6364 0a20 2062 6c6f 636b 3a0a  esyncd.  block:.
│ │ │ -0027c730: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -0027c740: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0027c750: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -0027c760: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -0027c770: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -0027c780: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -0027c790: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ -0027c7a0: 7465 6d64 5f74 696d 6573 796e 6364 2053  temd_timesyncd S
│ │ │ -0027c7b0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -0027c7c0: 5365 7276 6963 6520 7379 7374 656d 642d  Service systemd-
│ │ │ -0027c7d0: 7469 6d65 7379 6e63 640a 2020 2020 616e  timesyncd.    an
│ │ │ -0027c7e0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0027c7f0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0027c800: 653a 2073 7973 7465 6d64 2d74 696d 6573  e: systemd-times
│ │ │ -0027c810: 796e 6364 0a20 2020 2020 2065 6e61 626c  yncd.      enabl
│ │ │ -0027c820: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -0027c830: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -0027c840: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -0027c850: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -0027c860: 2d20 2722 7379 7374 656d 6422 2069 6e20  - '"systemd" in 
│ │ │ -0027c870: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0027c880: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -0027c890: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0027c8a0: 4155 2d38 2831 2928 6129 0a20 202d 204e  AU-8(1)(a).  - N
│ │ │ -0027c8b0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0027c8c0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -0027c8d0: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ -0027c8e0: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ -0027c8f0: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ -0027c900: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0027c910: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -0027c920: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -0027c930: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0027c940: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0027c950: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0027c960: 0a20 202d 2073 6572 7669 6365 5f74 696d  .  - service_tim
│ │ │ -0027c970: 6573 796e 6364 5f65 6e61 626c 6564 0a20  esyncd_enabled. 
│ │ │ -0027c980: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0027c990: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0027c9a0: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ -0027c9b0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0027c9c0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0027c9d0: 2d20 2820 6e6f 7420 2820 2263 6872 6f6e  - ( not ( "chron
│ │ │ -0027c9e0: 7922 2069 6e20 616e 7369 626c 655f 6661  y" in ansible_fa
│ │ │ -0027c9f0: 6374 732e 7061 636b 6167 6573 2029 2061  cts.packages ) a
│ │ │ -0027ca00: 6e64 206e 6f74 2028 2022 6e74 7022 2069  nd not ( "ntp" i
│ │ │ -0027ca10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0027ca20: 7061 636b 6167 6573 0a20 2020 2029 2029  packages.    ) )
│ │ │ +0027c060: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +0027c070: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
Complexity:low
Disrup │ │ │ -0027c520: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0027c530: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0027c570: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0027c580: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +0027c100: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0027c110: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0027c130: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0027c150: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0027c160: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0027c1a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0027c1b0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0027c1c0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0027c1d0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0027c1e0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0027c1f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0027c200: 3030 2d35 332d 4155 2d38 2831 2928 6129 00-53-AU-8(1)(a) │ │ │ +0027c210: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +0027c220: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ +0027c230: 2d44 5353 2d52 6571 2d31 302e 340a 2020 -DSS-Req-10.4. │ │ │ +0027c240: 2d20 5043 492d 4453 5376 342d 3130 2e36 - PCI-DSSv4-10.6 │ │ │ +0027c250: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ +0027c260: 302e 362e 310a 2020 2d20 656e 6162 6c65 0.6.1. - enable │ │ │ +0027c270: 5f73 7472 6174 6567 790a 2020 2d20 6869 _strategy. - hi │ │ │ +0027c280: 6768 5f73 6576 6572 6974 790a 2020 2d20 gh_severity. - │ │ │ +0027c290: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0027c2a0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0027c2b0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f n. - no_reboot_ │ │ │ +0027c2c0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +0027c2d0: 6365 5f74 696d 6573 796e 6364 5f65 6e61 ce_timesyncd_ena │ │ │ +0027c2e0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e bled..- name: En │ │ │ +0027c2f0: 6162 6c65 2073 7973 7465 6d64 5f74 696d able systemd_tim │ │ │ +0027c300: 6573 796e 6364 2053 6572 7669 6365 202d esyncd Service - │ │ │ +0027c310: 2045 6e61 626c 6520 7365 7276 6963 6520 Enable service │ │ │ +0027c320: 7379 7374 656d 642d 7469 6d65 7379 6e63 systemd-timesync │ │ │ +0027c330: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20 d. block:.. - │ │ │ +0027c340: 6e61 6d65 3a20 4761 7468 6572 2074 6865 name: Gather the │ │ │ +0027c350: 2070 6163 6b61 6765 2066 6163 7473 0a20 package facts. │ │ │ +0027c360: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +0027c370: 696e 2e70 6163 6b61 6765 5f66 6163 7473 in.package_facts │ │ │ +0027c380: 3a0a 2020 2020 2020 6d61 6e61 6765 723a :. manager: │ │ │ +0027c390: 2061 7574 6f0a 0a20 202d 206e 616d 653a auto.. - name: │ │ │ +0027c3a0: 2045 6e61 626c 6520 7379 7374 656d 645f Enable systemd_ │ │ │ +0027c3b0: 7469 6d65 7379 6e63 6420 5365 7276 6963 timesyncd Servic │ │ │ +0027c3c0: 6520 2d20 456e 6162 6c65 2053 6572 7669 e - Enable Servi │ │ │ +0027c3d0: 6365 2073 7973 7465 6d64 2d74 696d 6573 ce systemd-times │ │ │ +0027c3e0: 796e 6364 0a20 2020 2061 6e73 6962 6c65 yncd. ansible │ │ │ +0027c3f0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ +0027c400: 3a0a 2020 2020 2020 6e61 6d65 3a20 7379 :. name: sy │ │ │ +0027c410: 7374 656d 642d 7469 6d65 7379 6e63 640a stemd-timesyncd. │ │ │ +0027c420: 2020 2020 2020 656e 6162 6c65 643a 2074 enabled: t │ │ │ +0027c430: 7275 650a 2020 2020 2020 7374 6174 653a rue. state: │ │ │ +0027c440: 2073 7461 7274 6564 0a20 2020 2020 206d started. m │ │ │ +0027c450: 6173 6b65 643a 2066 616c 7365 0a20 2020 asked: false. │ │ │ +0027c460: 2077 6865 6e3a 0a20 2020 202d 2027 2273 when:. - '"s │ │ │ +0027c470: 7973 7465 6d64 2220 696e 2061 6e73 6962 ystemd" in ansib │ │ │ +0027c480: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +0027c490: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ +0027c4a0: 4953 542d 3830 302d 3533 2d41 552d 3828 IST-800-53-AU-8( │ │ │ +0027c4b0: 3129 2861 290a 2020 2d20 4e49 5354 2d38 1)(a). - NIST-8 │ │ │ +0027c4c0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0027c4d0: 2d20 5043 492d 4453 532d 5265 712d 3130 - PCI-DSS-Req-10 │ │ │ +0027c4e0: 2e34 0a20 202d 2050 4349 2d44 5353 7634 .4. - PCI-DSSv4 │ │ │ +0027c4f0: 2d31 302e 360a 2020 2d20 5043 492d 4453 -10.6. - PCI-DS │ │ │ +0027c500: 5376 342d 3130 2e36 2e31 0a20 202d 2065 Sv4-10.6.1. - e │ │ │ +0027c510: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ +0027c520: 202d 2068 6967 685f 7365 7665 7269 7479 - high_severity │ │ │ +0027c530: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0027c540: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0027c550: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ +0027c560: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +0027c570: 7365 7276 6963 655f 7469 6d65 7379 6e63 service_timesync │ │ │ +0027c580: 645f 656e 6162 6c65 640a 2020 2d20 7370 d_enabled. - sp │ │ │ +0027c590: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ +0027c5a0: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20 ock. when:. - │ │ │ +0027c5b0: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +0027c5c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +0027c5d0: 6163 6b61 6765 7327 0a20 202d 2028 206e ackages'. - ( n │ │ │ +0027c5e0: 6f74 2028 2022 6368 726f 6e79 2220 696e ot ( "chrony" in │ │ │ +0027c5f0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +0027c600: 6163 6b61 6765 7320 2920 616e 6420 6e6f ackages ) and no │ │ │ +0027c610: 7420 2820 226e 7470 2220 696e 2061 6e73 t ( "ntp" in ans │ │ │ +0027c620: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ +0027c630: 6765 730a 2020 2020 2920 290a 3c2f 636f ges. ) ).
< │ │ │ +0027c650: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027c660: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027c670: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027c680: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027c690: 6431 3033 3622 2074 6162 696e 6465 783d d1036" tabindex= │ │ │ +0027c6a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +0027c6b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +0027c6c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +0027c6d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +0027c6e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +0027c6f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027c700: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027c710: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +0027c7b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0027c800: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0027c790: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0027c7c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0027c7e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0027c7f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0027c810: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0027c820: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0027c840: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ +0027c850: 6d64 2d74 696d 6573 796e 6364 0a0a 636c  md-timesyncd..cl
│ │ │ +0027c860: 6173 7320 656e 6162 6c65 5f73 7973 7465  ass enable_syste
│ │ │ +0027c870: 6d64 2d74 696d 6573 796e 6364 207b 0a20  md-timesyncd {. 
│ │ │ +0027c880: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ +0027c890: 6d64 2d74 696d 6573 796e 6364 273a 0a20  md-timesyncd':. 
│ │ │ +0027c8a0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +0027c8b0: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ +0027c8c0: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ +0027c8d0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0027c8e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +0027c990: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0027c9a0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0027c9b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0027c9f0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0027ca00: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0027ca10: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ +0027ca20: 7465 6d64 2d74 696d 6573 796e 6364 225d  temd-timesyncd"]
│ │ │  0027ca30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00287e00: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00287e10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -00287ee0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00287ef0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00287f50: 5f78 696e 6574 640a 0a63 6c61 7373 2072  _xinetd..class r
│ │ │ -00287f60: 656d 6f76 655f 7869 6e65 7464 207b 0a20  emove_xinetd {. 
│ │ │ -00287f70: 2070 6163 6b61 6765 207b 2027 7869 6e65   package { 'xine
│ │ │ -00287f80: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ -00287f90: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00287fa0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -00288060: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00288070: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002880b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002880c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002880d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002880e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002880f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00288180: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00288190: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disru │ │ │ -00287ec0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00287ed0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00287f10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00287f20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -00288100: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00288110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00288150: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00288160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -002881b0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002881c0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002881d0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002881e0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002881f0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00288200: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00288210: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -00288220: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00288230: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -00288240: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -00288250: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -00288260: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -00288270: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00288280: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00288290: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -002882a0: 206c 6f77 5f73 6576 6572 6974 790a 2020 low_severity. │ │ │ -002882b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -002882c0: 6564 0a20 202d 2070 6163 6b61 6765 5f78 ed. - package_x │ │ │ -002882d0: 696e 6574 645f 7265 6d6f 7665 640a 0a2d inetd_removed..- │ │ │ -002882e0: 206e 616d 653a 2027 556e 696e 7374 616c name: 'Uninstal │ │ │ -002882f0: 6c20 7869 6e65 7464 2070 6163 6b61 6765 l xinetd package │ │ │ -00288300: 2069 6620 6e6f 7420 7573 6564 2062 7920 if not used by │ │ │ -00288310: 6e65 7477 6f72 6b20 7365 7276 6963 6573 network services │ │ │ -00288320: 3a20 456e 7375 7265 2078 696e 6574 6420 : Ensure xinetd │ │ │ -00288330: 6973 0a20 2020 2072 656d 6f76 6564 270a is. removed'. │ │ │ -00288340: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00288350: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ -00288360: 616d 653a 2078 696e 6574 640a 2020 2020 ame: xinetd. │ │ │ -00288370: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -00288380: 7768 656e 3a20 2722 6c69 6e75 782d 6261 when: '"linux-ba │ │ │ -00288390: 7365 2220 696e 2061 6e73 6962 6c65 5f66 se" in ansible_f │ │ │ -002883a0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ -002883b0: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ -002883c0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002883d0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -002883e0: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ -002883f0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ -00288400: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00288410: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -00288420: 2e32 2e34 0a20 202d 2064 6973 6162 6c65 .2.4. - disable │ │ │ -00288430: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00288440: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00288450: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00288460: 2020 2d20 6c6f 775f 7365 7665 7269 7479 - low_severity │ │ │ -00288470: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00288480: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00288490: 655f 7869 6e65 7464 5f72 656d 6f76 6564 e_xinetd_removed │ │ │ +00287df0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00287e00: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00287e10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00287e90: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00287eb0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00287f00: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00287f30: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00287f50: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00287f60: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00287f70: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00287f80: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00287f90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00287fa0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00287fb0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00287fc0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00287fd0: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ +00287fe0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00287ff0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ +00288000: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00288010: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00288020: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00288030: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00288040: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00288050: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00288060: 2070 6163 6b61 6765 5f78 696e 6574 645f   package_xinetd_
│ │ │ +00288070: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +00288080: 2027 556e 696e 7374 616c 6c20 7869 6e65   'Uninstall xine
│ │ │ +00288090: 7464 2070 6163 6b61 6765 2069 6620 6e6f  td package if no
│ │ │ +002880a0: 7420 7573 6564 2062 7920 6e65 7477 6f72  t used by networ
│ │ │ +002880b0: 6b20 7365 7276 6963 6573 3a20 456e 7375  k services: Ensu
│ │ │ +002880c0: 7265 2078 696e 6574 6420 6973 0a20 2020  re xinetd is.   
│ │ │ +002880d0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002880e0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002880f0: 6167 653a 0a20 2020 206e 616d 653a 2078  age:.    name: x
│ │ │ +00288100: 696e 6574 640a 2020 2020 7374 6174 653a  inetd.    state:
│ │ │ +00288110: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ +00288120: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00288130: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00288140: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00288150: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00288160: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00288170: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00288180: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00288190: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ +002881a0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +002881b0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +002881c0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002881d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002881e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002881f0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00288200: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00288210: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00288220: 2020 2d20 7061 636b 6167 655f 7869 6e65    - package_xine
│ │ │ +00288230: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
Reme │ │ │ +002882f0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00288300: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +00287ec0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00287ed0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00287f10: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00287f20: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +00288390: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002883c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002883e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002883f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00288410: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00288420: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00288440: 6c75 6465 2072 656d 6f76 655f 7869 6e65  lude remove_xine
│ │ │ +00288450: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ +00288460: 5f78 696e 6574 6420 7b0a 2020 7061 636b  _xinetd {.  pack
│ │ │ +00288470: 6167 6520 7b20 2778 696e 6574 6427 3a0a  age { 'xinetd':.
│ │ │ +00288480: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00288490: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002884a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -00289be0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00289bf0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00289c00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -00289c50: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00289c60: 5d0a 6d61 736b 6564 203d 205b 2278 696e  ].masked = ["xin
│ │ │ -00289c70: 6574 6422 5d0a 3c2f 636f 6465 3e3c 2f70  etd"].

Remediati │ │ │ -00289d30: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00289d40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -00289dc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00289dd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00289de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00289e20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00289e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00289e50: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00289e70: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00289e80: 7361 626c 655f 7869 6e65 7464 0a0a 636c  sable_xinetd..cl
│ │ │ -00289e90: 6173 7320 6469 7361 626c 655f 7869 6e65  ass disable_xine
│ │ │ -00289ea0: 7464 207b 0a20 2073 6572 7669 6365 207b  td {.  service {
│ │ │ -00289eb0: 2778 696e 6574 6427 3a0a 2020 2020 656e  'xinetd':.    en
│ │ │ -00289ec0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -00289ed0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00289ee0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -00289ef0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00289fb0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00289fc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0028a040: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0028a050: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0028a070: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0028a080: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0028a0a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0028a0c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0028a0f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0028a100: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0028a110: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0028a120: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0028a130: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0028a140: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -0028a150: 3731 2d33 2e34 2e37 0a20 202d 204e 4953  71-3.4.7.  - NIS
│ │ │ -0028a160: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0028a170: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0028a180: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -0028a190: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -0028a1a0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0028a1b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0028a1c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0028a1d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0028a1e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0028a1f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0028a200: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0028a210: 5f78 696e 6574 645f 6469 7361 626c 6564  _xinetd_disabled
│ │ │ -0028a220: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -0028a230: 6520 7869 6e65 7464 2053 6572 7669 6365  e xinetd Service
│ │ │ -0028a240: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0028a250: 6365 2078 696e 6574 640a 2020 626c 6f63  ce xinetd.  bloc
│ │ │ -0028a260: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -0028a270: 7361 626c 6520 7869 6e65 7464 2053 6572  sable xinetd Ser
│ │ │ -0028a280: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ -0028a290: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ -0028a2a0: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ -0028a2b0: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ -0028a2c0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -0028a2d0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -0028a2e0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -0028a2f0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ -0028a300: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ -0028a310: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ -0028a320: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0028a330: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0028a340: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -0028a350: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0028a360: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0028a370: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0028a380: 6e61 6d65 3a20 4469 7361 626c 6520 7869  name: Disable xi
│ │ │ -0028a390: 6e65 7464 2053 6572 7669 6365 202d 2045  netd Service - E
│ │ │ -0028a3a0: 6e73 7572 6520 7869 6e65 7464 2e73 6572  nsure xinetd.ser
│ │ │ -0028a3b0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -0028a3c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0028a3d0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0028a3e0: 2020 6e61 6d65 3a20 7869 6e65 7464 2e73    name: xinetd.s
│ │ │ -0028a3f0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -0028a400: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0028a410: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0028a420: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0028a430: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -0028a440: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -0028a450: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0028a460: 7263 6828 2278 696e 6574 642e 7365 7276  rch("xinetd.serv
│ │ │ -0028a470: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -0028a480: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -0028a490: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -0028a4a0: 7374 7320 2d20 7869 6e65 7464 2e73 6f63  sts - xinetd.soc
│ │ │ -0028a4b0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -0028a4c0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0028a4d0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0028a4e0: 7374 2d75 6e69 742d 6669 6c65 7320 7869  st-unit-files xi
│ │ │ -0028a4f0: 6e65 7464 2e73 6f63 6b65 740a 2020 2020  netd.socket.    
│ │ │ -0028a500: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -0028a510: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -0028a520: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0028a530: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0028a540: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0028a550: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0028a560: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0028a570: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0028a580: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0028a590: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ -0028a5a0: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ -0028a5b0: 6574 2078 696e 6574 640a 2020 2020 616e  et xinetd.    an
│ │ │ -0028a5c0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0028a5d0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0028a5e0: 653a 2078 696e 6574 642e 736f 636b 6574  e: xinetd.socket
│ │ │ -0028a5f0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0028a600: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -0028a610: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -0028a620: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0028a630: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -0028a640: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -0028a650: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0028a660: 6828 2278 696e 6574 642e 736f 636b 6574  h("xinetd.socket
│ │ │ -0028a670: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0028a680: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ -0028a690: 4953 542d 3830 302d 3137 312d 332e 342e  IST-800-171-3.4.
│ │ │ -0028a6a0: 370a 2020 2d20 4e49 5354 2d38 3030 2d35  7.  - NIST-800-5
│ │ │ -0028a6b0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0028a6c0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0028a6d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0028a6e0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0028a6f0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0028a700: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0028a710: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0028a720: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0028a730: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0028a740: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0028a750: 2d20 7365 7276 6963 655f 7869 6e65 7464  - service_xinetd
│ │ │ -0028a760: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -0028a770: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0028a780: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -0028a790: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0028a7a0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0028a7b0: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Comp │ │ │ +00289c80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00289c90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00289cb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00289cd0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00289ce0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00289d20: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00289d30: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00289d40: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00289d50: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00289d60: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00289d70: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00289d80: 3830 302d 3137 312d 332e 342e 370a 2020  800-171-3.4.7.  
│ │ │ +00289d90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00289da0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00289db0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00289dc0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00289dd0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00289de0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00289df0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00289e00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00289e10: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00289e20: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00289e30: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00289e40: 7276 6963 655f 7869 6e65 7464 5f64 6973  rvice_xinetd_dis
│ │ │ +00289e50: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +00289e60: 6973 6162 6c65 2078 696e 6574 6420 5365  isable xinetd Se
│ │ │ +00289e70: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00289e80: 7365 7276 6963 6520 7869 6e65 7464 0a20  service xinetd. 
│ │ │ +00289e90: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00289ea0: 653a 2044 6973 6162 6c65 2078 696e 6574  e: Disable xinet
│ │ │ +00289eb0: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ +00289ec0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +00289ed0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +00289ee0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +00289ef0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00289f00: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00289f10: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00289f20: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +00289f30: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +00289f40: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00289f50: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +00289f60: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +00289f70: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +00289f80: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +00289f90: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +00289fa0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +00289fb0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00289fc0: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ +00289fd0: 6520 2d20 456e 7375 7265 2078 696e 6574  e - Ensure xinet
│ │ │ +00289fe0: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ +00289ff0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +0028a000: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0028a010: 0a20 2020 2020 206e 616d 653a 2078 696e  .      name: xin
│ │ │ +0028a020: 6574 642e 7365 7276 6963 650a 2020 2020  etd.service.    
│ │ │ +0028a030: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0028a040: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0028a050: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +0028a060: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0028a070: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0028a080: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0028a090: 7320 7365 6172 6368 2822 7869 6e65 7464  s search("xinetd
│ │ │ +0028a0a0: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +0028a0b0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +0028a0c0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +0028a0d0: 7420 4578 6973 7473 202d 2078 696e 6574  t Exists - xinet
│ │ │ +0028a0e0: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ +0028a0f0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +0028a100: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +0028a110: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +0028a120: 6573 2078 696e 6574 642e 736f 636b 6574  es xinetd.socket
│ │ │ +0028a130: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0028a140: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0028a150: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0028a160: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0028a170: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +0028a180: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +0028a190: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0028a1a0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0028a1b0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0028a1c0: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ +0028a1d0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0028a1e0: 2053 6f63 6b65 7420 7869 6e65 7464 0a20   Socket xinetd. 
│ │ │ +0028a1f0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0028a200: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0028a210: 2020 6e61 6d65 3a20 7869 6e65 7464 2e73    name: xinetd.s
│ │ │ +0028a220: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +0028a230: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0028a240: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0028a250: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0028a260: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +0028a270: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0028a280: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0028a290: 7365 6172 6368 2822 7869 6e65 7464 2e73  search("xinetd.s
│ │ │ +0028a2a0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +0028a2b0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +0028a2c0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +0028a2d0: 2d33 2e34 2e37 0a20 202d 204e 4953 542d  -3.4.7.  - NIST-
│ │ │ +0028a2e0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0028a2f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0028a300: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0028a310: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0028a320: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0028a330: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0028a340: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0028a350: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0028a360: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0028a370: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0028a380: 6564 0a20 202d 2073 6572 7669 6365 5f78  ed.  - service_x
│ │ │ +0028a390: 696e 6574 645f 6469 7361 626c 6564 0a20  inetd_disabled. 
│ │ │ +0028a3a0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +0028a3b0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +0028a3c0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0028a3d0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0028a3e0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +0028a4a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0028a4b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +0028a540: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0028a550: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0028a570: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0028a590: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0028a5a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0028a5e0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0028a5f0: 6520 6469 7361 626c 655f 7869 6e65 7464 e disable_xinetd │ │ │ +0028a600: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +0028a610: 7869 6e65 7464 207b 0a20 2073 6572 7669 xinetd {. servi │ │ │ +0028a620: 6365 207b 2778 696e 6574 6427 3a0a 2020 ce {'xinetd':. │ │ │ +0028a630: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +0028a640: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +0028a650: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +0028a660: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +0028a670: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ +0028a720: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0028a730: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0028a740: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0028a780: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0028a790: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0028a7a0: 0a6d 6173 6b65 6420 3d20 5b22 7869 6e65  .masked = ["xine
│ │ │ +0028a7b0: 7464 225d 0a3c 2f63 6f64 653e 3c2f 7072  td"].
Remediation │ │ │ -0028c3c0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0028c3d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0028c460: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0028c480: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0028c4a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0028c4d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0028c4e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0028c510: 6f76 655f 7970 7365 7276 0a0a 636c 6173  ove_ypserv..clas
│ │ │ -0028c520: 7320 7265 6d6f 7665 5f79 7073 6572 7620  s remove_ypserv 
│ │ │ -0028c530: 7b0a 2020 7061 636b 6167 6520 7b20 2779  {.  package { 'y
│ │ │ -0028c540: 7073 6572 7627 3a0a 2020 2020 656e 7375  pserv':.    ensu
│ │ │ -0028c550: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0028c560: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0028c570: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0028c620: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0028c630: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -0028c6c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0028c6d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0028c6f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0028c710: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0028c720: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0028c760: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0028c770: 653a 2027 556e 696e 7374 616c 6c20 7970  e: 'Uninstall yp
│ │ │ -0028c780: 7365 7276 2050 6163 6b61 6765 3a20 456e  serv Package: En
│ │ │ -0028c790: 7375 7265 2079 7073 6572 7620 6973 2072  sure ypserv is r
│ │ │ -0028c7a0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0028c7b0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0028c7c0: 653a 0a20 2020 206e 616d 653a 2079 7073  e:.    name: yps
│ │ │ -0028c7d0: 6572 760a 2020 2020 7374 6174 653a 2061  erv.    state: a
│ │ │ -0028c7e0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -0028c7f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0028c800: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0028c810: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0028c820: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0028c830: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ -0028c840: 3030 2d35 332d 4941 2d35 2831 2928 6329  00-53-IA-5(1)(c)
│ │ │ -0028c850: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -0028c860: 2d32 2e32 2e32 0a20 202d 2050 4349 2d44  -2.2.2.  - PCI-D
│ │ │ -0028c870: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0028c880: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -0028c890: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0028c8a0: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ -0028c8b0: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ -0028c8c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0028c8d0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -0028c8e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0028c8f0: 202d 2070 6163 6b61 6765 5f79 7073 6572   - package_ypser
│ │ │ -0028c900: 765f 7265 6d6f 7665 640a 3c2f 636f 6465  v_removed.
Complexity │ │ │ +0028c460: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0028c480: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0028c490: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028c4a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0028c4b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0028c4d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0028c500: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0028c510: 696e 7374 616c 6c20 7970 7365 7276 2050  install ypserv P
│ │ │ +0028c520: 6163 6b61 6765 3a20 456e 7375 7265 2079  ackage: Ensure y
│ │ │ +0028c530: 7073 6572 7620 6973 2072 656d 6f76 6564  pserv is removed
│ │ │ +0028c540: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0028c550: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0028c560: 206e 616d 653a 2079 7073 6572 760a 2020   name: ypserv.  
│ │ │ +0028c570: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0028c580: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0028c590: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0028c5a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0028c5b0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0028c5c0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0028c5d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0028c5e0: 4941 2d35 2831 2928 6329 0a20 202d 2050  IA-5(1)(c).  - P
│ │ │ +0028c5f0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e32  CI-DSS-Req-2.2.2
│ │ │ +0028c600: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0028c610: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0028c620: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +0028c630: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0028c640: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +0028c650: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0028c660: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0028c670: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0028c680: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0028c690: 6b61 6765 5f79 7073 6572 765f 7265 6d6f  kage_ypserv_remo
│ │ │ +0028c6a0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0028c760: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0028c770: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +0028c800: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0028c820: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0028c830: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028c840: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0028c850: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0028c870: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0028c8a0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0028c8b0: 6d6f 7665 5f79 7073 6572 760a 0a63 6c61  move_ypserv..cla
│ │ │ +0028c8c0: 7373 2072 656d 6f76 655f 7970 7365 7276  ss remove_ypserv
│ │ │ +0028c8d0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0028c8e0: 7970 7365 7276 273a 0a20 2020 2065 6e73  ypserv':.    ens
│ │ │ +0028c8f0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0028c900: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
│ │ │ -0028d760: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0028d770: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0028d780: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ -0028d7d0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -0028d7e0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -0028d7f0: 205b 2279 7073 6572 7622 5d0a 3c2f 636f   ["ypserv"].
< │ │ │ -0028d810: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0028d820: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0028d830: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0028d840: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0028d850: 6431 3036 3922 2074 6162 696e 6465 783d d1069" tabindex= │ │ │ -0028d860: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0028d870: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0028d880: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0028d890: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0028d8a0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0028d8b0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0028d8c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0028d8d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0028d970: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0028d9c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0028d950: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0028d980: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0028d9a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0028d9b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0028d9d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0028d9e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0028da00: 7564 6520 6469 7361 626c 655f 7970 7365  ude disable_ypse
│ │ │ -0028da10: 7276 0a0a 636c 6173 7320 6469 7361 626c  rv..class disabl
│ │ │ -0028da20: 655f 7970 7365 7276 207b 0a20 2073 6572  e_ypserv {.  ser
│ │ │ -0028da30: 7669 6365 207b 2779 7073 6572 7627 3a0a  vice {'ypserv':.
│ │ │ -0028da40: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -0028da50: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -0028da60: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -0028da70: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -0028db30: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0028db40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -0028dbd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0028dc00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0028dc20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0028dc30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0028dc50: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0028dc60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0028dc80: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0028dc90: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0028dca0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0028dcb0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0028dcc0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -0028dcd0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0028dce0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0028dcf0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0028dd00: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0028dd10: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0028dd20: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0028dd30: 7365 7276 6963 655f 7970 7365 7276 5f64  service_ypserv_d
│ │ │ -0028dd40: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -0028dd50: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ -0028dd60: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0028dd70: 6520 7365 7276 6963 6520 7970 7365 7276  e service ypserv
│ │ │ -0028dd80: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0028dd90: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ -0028dda0: 6572 7620 5365 7276 6963 6520 2d20 436f  erv Service - Co
│ │ │ -0028ddb0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -0028ddc0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -0028ddd0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -0028dde0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0028ddf0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0028de00: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0028de10: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -0028de20: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -0028de30: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -0028de40: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -0028de50: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -0028de60: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -0028de70: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -0028de80: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -0028de90: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -0028dea0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -0028deb0: 6162 6c65 2079 7073 6572 7620 5365 7276  able ypserv Serv
│ │ │ -0028dec0: 6963 6520 2d20 456e 7375 7265 2079 7073  ice - Ensure yps
│ │ │ -0028ded0: 6572 762e 7365 7276 6963 6520 6973 204d  erv.service is M
│ │ │ -0028dee0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0028def0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0028df00: 643a 0a20 2020 2020 206e 616d 653a 2079  d:.      name: y
│ │ │ -0028df10: 7073 6572 762e 7365 7276 6963 650a 2020  pserv.service.  
│ │ │ -0028df20: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0028df30: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -0028df40: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -0028df50: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -0028df60: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -0028df70: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -0028df80: 2069 7320 7365 6172 6368 2822 7970 7365   is search("ypse
│ │ │ -0028df90: 7276 2e73 6572 7669 6365 222c 206d 756c  rv.service", mul
│ │ │ -0028dfa0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -0028dfb0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -0028dfc0: 6b65 7420 4578 6973 7473 202d 2079 7073  ket Exists - yps
│ │ │ -0028dfd0: 6572 762e 736f 636b 6574 0a20 2020 2061  erv.socket.    a
│ │ │ -0028dfe0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0028dff0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0028e000: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0028e010: 696c 6573 2079 7073 6572 762e 736f 636b  iles ypserv.sock
│ │ │ -0028e020: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -0028e030: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0028e040: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0028e050: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0028e060: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -0028e070: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0028e080: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0028e090: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0028e0a0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0028e0b0: 3a20 4469 7361 626c 6520 7970 7365 7276  : Disable ypserv
│ │ │ -0028e0c0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -0028e0d0: 6c65 2053 6f63 6b65 7420 7970 7365 7276  le Socket ypserv
│ │ │ -0028e0e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0028e0f0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0028e100: 2020 2020 6e61 6d65 3a20 7970 7365 7276      name: ypserv
│ │ │ -0028e110: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -0028e120: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0028e130: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0028e140: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -0028e150: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0028e160: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0028e170: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0028e180: 7320 7365 6172 6368 2822 7970 7365 7276  s search("ypserv
│ │ │ -0028e190: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0028e1a0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0028e1b0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0028e1c0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0028e1d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0028e1e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0028e1f0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0028e200: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0028e210: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0028e220: 655f 7970 7365 7276 5f64 6973 6162 6c65  e_ypserv_disable
│ │ │ -0028e230: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -0028e240: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -0028e250: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0028e260: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0028e270: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
Complexity: │ │ │ +0028d850: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0028d860: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0028d8c0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0028d8d0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0028d8e0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0028d8f0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0028d900: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0028d910: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0028d920: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0028d930: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0028d940: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0028d950: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0028d960: 0a20 202d 2073 6572 7669 6365 5f79 7073  .  - service_yps
│ │ │ +0028d970: 6572 765f 6469 7361 626c 6564 0a0a 2d20  erv_disabled..- 
│ │ │ +0028d980: 6e61 6d65 3a20 4469 7361 626c 6520 7970  name: Disable yp
│ │ │ +0028d990: 7365 7276 2053 6572 7669 6365 202d 2044  serv Service - D
│ │ │ +0028d9a0: 6973 6162 6c65 2073 6572 7669 6365 2079  isable service y
│ │ │ +0028d9b0: 7073 6572 760a 2020 626c 6f63 6b3a 0a0a  pserv.  block:..
│ │ │ +0028d9c0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0028d9d0: 6520 7970 7365 7276 2053 6572 7669 6365  e ypserv Service
│ │ │ +0028d9e0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +0028d9f0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +0028da00: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +0028da10: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +0028da20: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0028da30: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0028da40: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +0028da50: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +0028da60: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +0028da70: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0028da80: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0028da90: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0028daa0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0028dab0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0028dac0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0028dad0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0028dae0: 3a20 4469 7361 626c 6520 7970 7365 7276  : Disable ypserv
│ │ │ +0028daf0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +0028db00: 6520 7970 7365 7276 2e73 6572 7669 6365  e ypserv.service
│ │ │ +0028db10: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +0028db20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0028db30: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0028db40: 6d65 3a20 7970 7365 7276 2e73 6572 7669  me: ypserv.servi
│ │ │ +0028db50: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +0028db60: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +0028db70: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0028db80: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0028db90: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +0028dba0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0028dbb0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0028dbc0: 2279 7073 6572 762e 7365 7276 6963 6522  "ypserv.service"
│ │ │ +0028dbd0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +0028dbe0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +0028dbf0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +0028dc00: 2d20 7970 7365 7276 2e73 6f63 6b65 740a  - ypserv.socket.
│ │ │ +0028dc10: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0028dc20: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0028dc30: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0028dc40: 6e69 742d 6669 6c65 7320 7970 7365 7276  nit-files ypserv
│ │ │ +0028dc50: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0028dc60: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0028dc70: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0028dc80: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0028dc90: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0028dca0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0028dcb0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0028dcc0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0028dcd0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0028dce0: 206e 616d 653a 2044 6973 6162 6c65 2079   name: Disable y
│ │ │ +0028dcf0: 7073 6572 7620 5365 7276 6963 6520 2d20  pserv Service - 
│ │ │ +0028dd00: 4469 7361 626c 6520 536f 636b 6574 2079  Disable Socket y
│ │ │ +0028dd10: 7073 6572 760a 2020 2020 616e 7369 626c  pserv.    ansibl
│ │ │ +0028dd20: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0028dd30: 643a 0a20 2020 2020 206e 616d 653a 2079  d:.      name: y
│ │ │ +0028dd40: 7073 6572 762e 736f 636b 6574 0a20 2020  pserv.socket.   
│ │ │ +0028dd50: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0028dd60: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0028dd70: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +0028dd80: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +0028dd90: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0028dda0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0028ddb0: 6e65 7320 6973 2073 6561 7263 6828 2279  nes is search("y
│ │ │ +0028ddc0: 7073 6572 762e 736f 636b 6574 222c 206d  pserv.socket", m
│ │ │ +0028ddd0: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +0028dde0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +0028ddf0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0028de00: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0028de10: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0028de20: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0028de30: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0028de40: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0028de50: 6572 7669 6365 5f79 7073 6572 765f 6469  ervice_ypserv_di
│ │ │ +0028de60: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +0028de70: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +0028de80: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +0028de90: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0028dea0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0028deb0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +0028dec0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +0028df70: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0028df80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ +0028d830: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0028d840: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0028d880: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0028d890: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0028e000: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0028e020: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0028e070: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0028e0a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0028e0c0: 655f 7970 7365 7276 0a0a 636c 6173 7320  e_ypserv..class 
│ │ │ +0028e0d0: 6469 7361 626c 655f 7970 7365 7276 207b  disable_ypserv {
│ │ │ +0028e0e0: 0a20 2073 6572 7669 6365 207b 2779 7073  .  service {'yps
│ │ │ +0028e0f0: 6572 7627 3a0a 2020 2020 656e 6162 6c65  erv':.    enable
│ │ │ +0028e100: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +0028e110: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0028e120: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +0028e130: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +0028e1f0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0028e200: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +0028e250: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +0028e260: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +0028e270: 3d20 5b22 7970 7365 7276 225d 0a3c 2f63  = ["ypserv"].
│ │ │ 0028e290: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0028f800: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0028f810: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0028f820: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +0028e010: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0028e030: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0028e080: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0028e090: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -0028f8c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0028f910: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0028f950: 636c 7564 6520 7265 6d6f 7665 5f72 7368  clude remove_rsh
│ │ │ -0028f960: 0a0a 636c 6173 7320 7265 6d6f 7665 5f72  ..class remove_r
│ │ │ -0028f970: 7368 207b 0a20 2070 6163 6b61 6765 207b  sh {.  package {
│ │ │ -0028f980: 2027 7273 6827 3a0a 2020 2020 656e 7375   'rsh':.    ensu
│ │ │ -0028f990: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0028f9a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0028f9b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0028fa60: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0028fa70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Co │ │ │ -0028f8a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0028f8d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0028f8f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0028f900: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0028f920: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0028f930: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -0028fb00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0028fb10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0028fb30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0028fb50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0028fb60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0028fba0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0028fbb0: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ -0028fbc0: 6820 5061 636b 6167 653a 2045 6e73 7572  h Package: Ensur
│ │ │ -0028fbd0: 6520 7273 6820 6973 2072 656d 6f76 6564  e rsh is removed
│ │ │ -0028fbe0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0028fbf0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0028fc00: 206e 616d 653a 2072 7368 0a20 2020 2073   name: rsh.    s
│ │ │ -0028fc10: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0028fc20: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0028fc30: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -0028fc40: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0028fc50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0028fc60: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0028fc70: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0028fc80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0028fc90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0028fca0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0028fcb0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -0028fcc0: 7368 5f72 656d 6f76 6564 0a20 202d 2075  sh_removed.  - u
│ │ │ -0028fcd0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +0028f800: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +0028f810: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +0028f820: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +0028f8b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028f8c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0028f910: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0028f950: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0028f960: 2072 7368 2050 6163 6b61 6765 3a20 456e   rsh Package: En
│ │ │ +0028f970: 7375 7265 2072 7368 2069 7320 7265 6d6f  sure rsh is remo
│ │ │ +0028f980: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0028f990: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0028f9a0: 2020 2020 6e61 6d65 3a20 7273 680a 2020      name: rsh.  
│ │ │ +0028f9b0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0028f9c0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0028f9d0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +0028f9e0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0028f9f0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +0028fa00: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +0028fa10: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0028fa20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0028fa30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0028fa40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0028fa50: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0028fa60: 655f 7273 685f 7265 6d6f 7665 640a 2020  e_rsh_removed.  
│ │ │ +0028fa70: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0028fa80: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +0028fa90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +0028fb40: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0028fb50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ +0028fc20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +0028f8a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0028f8d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0028f8e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0028f920: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0028f930: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0028fbe0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0028fc00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0028fc50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0028fc60: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0028fc90: 6f76 655f 7273 680a 0a63 6c61 7373 2072  ove_rsh..class r
│ │ │ +0028fca0: 656d 6f76 655f 7273 6820 7b0a 2020 7061  emove_rsh {.  pa
│ │ │ +0028fcb0: 636b 6167 6520 7b20 2772 7368 273a 0a20  ckage { 'rsh':. 
│ │ │ +0028fcc0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0028fcd0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  0028fce0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation P │ │ │ -002920b0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -002920c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -00292140: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00292160: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002921b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002921e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00292150: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00292170: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002921c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002921d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -00292200: 7665 5f74 616c 6b0a 0a63 6c61 7373 2072  ve_talk..class r
│ │ │ -00292210: 656d 6f76 655f 7461 6c6b 207b 0a20 2070  emove_talk {.  p
│ │ │ -00292220: 6163 6b61 6765 207b 2027 7461 6c6b 273a  ackage { 'talk':
│ │ │ -00292230: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00292240: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00292250: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00292260: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -00292310: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00292320: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002923b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002923d0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002923f0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00292420: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00292430: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00292460: 6e73 7461 6c6c 2074 616c 6b20 5061 636b  nstall talk Pack
│ │ │ -00292470: 6167 653a 2045 6e73 7572 6520 7461 6c6b  age: Ensure talk
│ │ │ -00292480: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00292490: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -002924a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -002924b0: 3a20 7461 6c6b 0a20 2020 2073 7461 7465  : talk.    state
│ │ │ -002924c0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -002924d0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002924e0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002924f0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -00292500: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00292510: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00292520: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00292530: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00292540: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00292550: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00292560: 6163 6b61 6765 5f74 616c 6b5f 7265 6d6f  ackage_talk_remo
│ │ │ -00292570: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation A │ │ │ +002920b0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +002920c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +00292150: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00292170: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00292190: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002921c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002921d0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +00292200: 6e73 7461 6c6c 2074 616c 6b20 5061 636b  nstall talk Pack
│ │ │ +00292210: 6167 653a 2045 6e73 7572 6520 7461 6c6b  age: Ensure talk
│ │ │ +00292220: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00292230: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00292240: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00292250: 3a20 7461 6c6b 0a20 2020 2073 7461 7465  : talk.    state
│ │ │ +00292260: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00292270: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00292280: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00292290: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +002922a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002922b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002922c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002922d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002922e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002922f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00292300: 6163 6b61 6765 5f74 616c 6b5f 7265 6d6f  ackage_talk_remo
│ │ │ +00292310: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +002923d0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002923e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +00292470: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00292490: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002924a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002924b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002924c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002924e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00292510: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00292520: 6d6f 7665 5f74 616c 6b0a 0a63 6c61 7373  move_talk..class
│ │ │ +00292530: 2072 656d 6f76 655f 7461 6c6b 207b 0a20   remove_talk {. 
│ │ │ +00292540: 2070 6163 6b61 6765 207b 2027 7461 6c6b   package { 'talk
│ │ │ +00292550: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00292560: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00292570: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation Pup │ │ │ -002937c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002937d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002938a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002938b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00293910: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -00293920: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ -00293930: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00293940: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00293950: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00293960: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00293970: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00293980: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00293a40: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00293a50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00293ad0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00293b10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -00293880: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00293890: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002938d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002938e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -00293ae0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00293b00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00293b30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00293b50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00293b80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2752  - name: 'R
│ │ │ -00293b90: 656d 6f76 6520 7465 6c6e 6574 2043 6c69  emove telnet Cli
│ │ │ -00293ba0: 656e 7473 3a20 456e 7375 7265 2069 6e65  ents: Ensure ine
│ │ │ -00293bb0: 7475 7469 6c73 2d74 656c 6e65 7420 6973  tutils-telnet is
│ │ │ -00293bc0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00293bd0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00293be0: 6167 653a 0a20 2020 206e 616d 653a 2069  age:.    name: i
│ │ │ -00293bf0: 6e65 7475 7469 6c73 2d74 656c 6e65 740a  netutils-telnet.
│ │ │ -00293c00: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00293c10: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ -00293c20: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00293c30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00293c40: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00293c50: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -00293c60: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00293c70: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00293c80: 6163 6b61 6765 5f69 6e65 7475 7469 6c73  ackage_inetutils
│ │ │ -00293c90: 2d74 656c 6e65 745f 7265 6d6f 7665 640a  -telnet_removed.
│ │ │ +002937b0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +002937c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002937d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +00293850: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00293870: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002938c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002938f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ +00293910: 6520 7465 6c6e 6574 2043 6c69 656e 7473  e telnet Clients
│ │ │ +00293920: 3a20 456e 7375 7265 2069 6e65 7475 7469  : Ensure inetuti
│ │ │ +00293930: 6c73 2d74 656c 6e65 7420 6973 2072 656d  ls-telnet is rem
│ │ │ +00293940: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00293950: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00293960: 0a20 2020 206e 616d 653a 2069 6e65 7475  .    name: inetu
│ │ │ +00293970: 7469 6c73 2d74 656c 6e65 740a 2020 2020  tils-telnet.    
│ │ │ +00293980: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00293990: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +002939a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002939b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002939c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002939d0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002939e0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002939f0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00293a00: 6765 5f69 6e65 7475 7469 6c73 2d74 656c  ge_inetutils-tel
│ │ │ +00293a10: 6e65 745f 7265 6d6f 7665 640a 3c2f 636f  net_removed.
< │ │ │ +00293a30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00293a40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00293a50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00293a60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00293a70: 6431 3038 3322 2074 6162 696e 6465 783d d1083" tabindex= │ │ │ +00293a80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00293a90: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00293aa0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00293ab0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00293ac0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00293ad0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00293ae0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00293af0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +00293880: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00293890: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002938d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002938e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ +00293b90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00293be0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00293c20: 636c 7564 6520 7265 6d6f 7665 5f69 6e65  clude remove_ine
│ │ │ +00293c30: 7475 7469 6c73 2d74 656c 6e65 740a 0a63  tutils-telnet..c
│ │ │ +00293c40: 6c61 7373 2072 656d 6f76 655f 696e 6574  lass remove_inet
│ │ │ +00293c50: 7574 696c 732d 7465 6c6e 6574 207b 0a20  utils-telnet {. 
│ │ │ +00293c60: 2070 6163 6b61 6765 207b 2027 696e 6574   package { 'inet
│ │ │ +00293c70: 7574 696c 732d 7465 6c6e 6574 273a 0a20  utils-telnet':. 
│ │ │ +00293c80: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00293c90: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00293ca0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediatio │ │ │ -00294e80: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00294e90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00294f10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00294f50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ +00293b70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00293ba0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00293bc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00293bd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00293bf0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00293c00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -00294f20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00294f40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00294f70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00294f90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00294fc0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00294fd0: 656d 6f76 655f 7465 6c6e 6574 0a0a 636c  emove_telnet..cl
│ │ │ -00294fe0: 6173 7320 7265 6d6f 7665 5f74 656c 6e65  ass remove_telne
│ │ │ -00294ff0: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -00295000: 2774 656c 6e65 7427 3a0a 2020 2020 656e  'telnet':.    en
│ │ │ -00295010: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00295020: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002950e0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002950f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00295100: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002951a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002951f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00295230: 616d 653a 2027 5265 6d6f 7665 2074 656c  ame: 'Remove tel
│ │ │ -00295240: 6e65 7420 436c 6965 6e74 733a 2045 6e73  net Clients: Ens
│ │ │ -00295250: 7572 6520 7465 6c6e 6574 2069 7320 7265  ure telnet is re
│ │ │ -00295260: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00295270: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00295280: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ -00295290: 6574 0a20 2020 2073 7461 7465 3a20 6162  et.    state: ab
│ │ │ -002952a0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -002952b0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -002952c0: 312e 3133 0a20 202d 2050 4349 2d44 5353  1.13.  - PCI-DSS
│ │ │ -002952d0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -002952e0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ -002952f0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00295300: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00295310: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00295320: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -00295330: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00295340: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00295350: 7061 636b 6167 655f 7465 6c6e 6574 5f72  package_telnet_r
│ │ │ -00295360: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
│ │ │ +00294f10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00294fa0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00294fb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -00295180: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002951b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002951d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002951e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00295200: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00295210: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +00294f20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00294f30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00294f70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00294f80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ +00294fd0: 5265 6d6f 7665 2074 656c 6e65 7420 436c  Remove telnet Cl
│ │ │ +00294fe0: 6965 6e74 733a 2045 6e73 7572 6520 7465  ients: Ensure te
│ │ │ +00294ff0: 6c6e 6574 2069 7320 7265 6d6f 7665 6427  lnet is removed'
│ │ │ +00295000: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00295010: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00295020: 6e61 6d65 3a20 7465 6c6e 6574 0a20 2020  name: telnet.   
│ │ │ +00295030: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00295040: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00295050: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +00295060: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00295070: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00295080: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +00295090: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002950a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002950b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002950c0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +002950d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002950e0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +002950f0: 655f 7465 6c6e 6574 5f72 656d 6f76 6564  e_telnet_removed
│ │ │ +00295100: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002951c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002951d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00295250: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00295270: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002952c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002952f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00295310: 655f 7465 6c6e 6574 0a0a 636c 6173 7320  e_telnet..class 
│ │ │ +00295320: 7265 6d6f 7665 5f74 656c 6e65 7420 7b0a  remove_telnet {.
│ │ │ +00295330: 2020 7061 636b 6167 6520 7b20 2774 656c    package { 'tel
│ │ │ +00295340: 6e65 7427 3a0a 2020 2020 656e 7375 7265  net':.    ensure
│ │ │ +00295350: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00295360: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
│ │ │ -00296e90: 5265 6d65 6469 6174 696f 6e20 5075 7070  Remediation Pupp
│ │ │ -00296ea0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f  et snippet ...
low
Disr │ │ │ +00295280: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00295290: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002952d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002952e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00296f80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00296f90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00296fe0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00296ff0: 7466 7470 642d 6870 610a 0a63 6c61 7373  tftpd-hpa..class
│ │ │ -00297000: 2072 656d 6f76 655f 7466 7470 642d 6870   remove_tftpd-hp
│ │ │ -00297010: 6120 7b0a 2020 7061 636b 6167 6520 7b20  a {.  package { 
│ │ │ -00297020: 2774 6674 7064 2d68 7061 273a 0a20 2020  'tftpd-hpa':.   
│ │ │ -00297030: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00297040: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -00297100: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00297110: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:low
Disrup │ │ │ -00296f60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00296f70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00296fb0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00296fc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002971f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00297200: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00297250: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00297260: 6c6c 2074 6674 7064 2d68 7061 2050 6163  ll tftpd-hpa Pac
│ │ │ -00297270: 6b61 6765 3a20 456e 7375 7265 2074 6674  kage: Ensure tft
│ │ │ -00297280: 7064 2d68 7061 2069 7320 7265 6d6f 7665  pd-hpa is remove
│ │ │ -00297290: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -002972a0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -002972b0: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ -002972c0: 610a 2020 2020 7374 6174 653a 2061 6273  a.    state: abs
│ │ │ -002972d0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002972e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002972f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00297300: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00297310: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00297320: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -00297330: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00297340: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00297350: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00297360: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -00297370: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00297380: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00297390: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002973a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002973b0: 7061 636b 6167 655f 7466 7470 2d73 6572  package_tftp-ser
│ │ │ -002973c0: 7665 725f 7265 6d6f 7665 640a 3c2f 636f  ver_removed.
Complexity:low
Disrup │ │ │ -002971d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002971e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00297220: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00297230: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00296f80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00296f90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00296ff0: 616c 6c20 7466 7470 642d 6870 6120 5061  all tftpd-hpa Pa
│ │ │ +00297000: 636b 6167 653a 2045 6e73 7572 6520 7466  ckage: Ensure tf
│ │ │ +00297010: 7470 642d 6870 6120 6973 2072 656d 6f76  tpd-hpa is remov
│ │ │ +00297020: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00297030: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00297040: 2020 206e 616d 653a 2074 6674 7064 2d68     name: tftpd-h
│ │ │ +00297050: 7061 0a20 2020 2073 7461 7465 3a20 6162  pa.    state: ab
│ │ │ +00297060: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +00297070: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00297080: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00297090: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +002970a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002970b0: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ +002970c0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +002970d0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +002970e0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002970f0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00297100: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00297110: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00297120: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00297130: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00297140: 2070 6163 6b61 6765 5f74 6674 702d 7365   package_tftp-se
│ │ │ +00297150: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +00297170: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00297210: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00297220: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00297230: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +00296f60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00296f70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00296fb0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00296fc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002972c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002972d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00297320: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00297360: 6e63 6c75 6465 2072 656d 6f76 655f 7466  nclude remove_tf
│ │ │ +00297370: 7470 642d 6870 610a 0a63 6c61 7373 2072  tpd-hpa..class r
│ │ │ +00297380: 656d 6f76 655f 7466 7470 642d 6870 6120  emove_tftpd-hpa 
│ │ │ +00297390: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ +002973a0: 6674 7064 2d68 7061 273a 0a20 2020 2065  ftpd-hpa':.    e
│ │ │ +002973b0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +002973c0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 002973e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002973f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00297400: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00297410: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00297420: 6431 3039 3222 2074 6162 696e 6465 783d d1092" tabindex= │ │ │ 00297430: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -170108,203 +170108,203 @@ │ │ │ 002987b0: 6765 743d 2223 6964 3130 3934 2220 7461 get="#id1094" ta │ │ │ 002987c0: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 002987d0: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 002987e0: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 002987f0: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 00298800: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 00298810: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -00298820: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00298830: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -00298890: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002988a0: 6564 203d 205b 2274 6674 7064 2d68 7061  ed = ["tftpd-hpa
│ │ │ -002988b0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -002988c0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00298970: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00298980: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -00298a50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00298aa0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ +002972b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002972e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002972f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00297330: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00297340: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -00298a10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00298a30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00298a80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00298a90: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -00298ac0: 6c65 5f74 6674 7064 2d68 7061 0a0a 636c  le_tftpd-hpa..cl
│ │ │ -00298ad0: 6173 7320 6469 7361 626c 655f 7466 7470  ass disable_tftp
│ │ │ -00298ae0: 642d 6870 6120 7b0a 2020 7365 7276 6963  d-hpa {.  servic
│ │ │ -00298af0: 6520 7b27 7466 7470 642d 6870 6127 3a0a  e {'tftpd-hpa':.
│ │ │ -00298b00: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -00298b10: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -00298b20: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -00298b30: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -00298bf0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00298c00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -00298c90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00298cc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00298ce0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00298cf0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00298d10: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00298d20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00298d40: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00298d50: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00298d60: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00298d70: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00298d80: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00298d90: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00298da0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00298db0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00298dc0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00298dd0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00298de0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -00298df0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -00298e00: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00298e10: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00298e20: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00298e30: 640a 2020 2d20 7365 7276 6963 655f 7466  d.  - service_tf
│ │ │ -00298e40: 7470 5f64 6973 6162 6c65 640a 0a2d 206e  tp_disabled..- n
│ │ │ -00298e50: 616d 653a 2044 6973 6162 6c65 2074 6674  ame: Disable tft
│ │ │ -00298e60: 7064 2d68 7061 2053 6572 7669 6365 202d  pd-hpa Service -
│ │ │ -00298e70: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -00298e80: 2074 6674 7064 2d68 7061 0a20 2062 6c6f   tftpd-hpa.  blo
│ │ │ -00298e90: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -00298ea0: 6973 6162 6c65 2074 6674 7064 2d68 7061  isable tftpd-hpa
│ │ │ -00298eb0: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ -00298ec0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -00298ed0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -00298ee0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -00298ef0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -00298f00: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -00298f10: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -00298f20: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -00298f30: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -00298f40: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -00298f50: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00298f60: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00298f70: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -00298f80: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -00298f90: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -00298fa0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -00298fb0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00298fc0: 6520 7466 7470 642d 6870 6120 5365 7276  e tftpd-hpa Serv
│ │ │ -00298fd0: 6963 6520 2d20 456e 7375 7265 2074 6674  ice - Ensure tft
│ │ │ -00298fe0: 7064 2d68 7061 2e73 6572 7669 6365 2069  pd-hpa.service i
│ │ │ -00298ff0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -00299000: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00299010: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00299020: 3a20 7466 7470 642d 6870 612e 7365 7276  : tftpd-hpa.serv
│ │ │ -00299030: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -00299040: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -00299050: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00299060: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -00299070: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -00299080: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -00299090: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002990a0: 2822 7466 7470 642d 6870 612e 7365 7276  ("tftpd-hpa.serv
│ │ │ -002990b0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -002990c0: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -002990d0: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -002990e0: 7374 7320 2d20 7466 7470 642d 6870 612e  sts - tftpd-hpa.
│ │ │ -002990f0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -00299100: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00299110: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00299120: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00299130: 2074 6674 7064 2d68 7061 2e73 6f63 6b65   tftpd-hpa.socke
│ │ │ -00299140: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ -00299150: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00299160: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00299170: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00299180: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ -00299190: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ -002991a0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002991b0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002991c0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002991d0: 2044 6973 6162 6c65 2074 6674 7064 2d68   Disable tftpd-h
│ │ │ -002991e0: 7061 2053 6572 7669 6365 202d 2044 6973  pa Service - Dis
│ │ │ -002991f0: 6162 6c65 2053 6f63 6b65 7420 7466 7470  able Socket tftp
│ │ │ -00299200: 642d 6870 610a 2020 2020 616e 7369 626c  d-hpa.    ansibl
│ │ │ -00299210: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00299220: 643a 0a20 2020 2020 206e 616d 653a 2074  d:.      name: t
│ │ │ -00299230: 6674 7064 2d68 7061 2e73 6f63 6b65 740a  ftpd-hpa.socket.
│ │ │ -00299240: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00299250: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -00299260: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00299270: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00299280: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -00299290: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -002992a0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002992b0: 2822 7466 7470 642d 6870 612e 736f 636b  ("tftpd-hpa.sock
│ │ │ -002992c0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -002992d0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -002992e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002992f0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00299300: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -00299310: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00299320: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -00299330: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -00299340: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -00299350: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00299360: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00299370: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00299380: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00299390: 6365 5f74 6674 705f 6469 7361 626c 6564  ce_tftp_disabled
│ │ │ -002993a0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -002993b0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -002993c0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002993d0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002993e0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Complexity │ │ │ +002988c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002988e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002988f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00298900: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00298910: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00298930: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00298960: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00298970: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00298980: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00298990: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002989a0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002989b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002989c0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002989d0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002989e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002989f0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00298a00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00298a10: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +00298a20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00298a30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00298a40: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00298a50: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00298a60: 6572 7669 6365 5f74 6674 705f 6469 7361  ervice_tftp_disa
│ │ │ +00298a70: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ +00298a80: 7361 626c 6520 7466 7470 642d 6870 6120  sable tftpd-hpa 
│ │ │ +00298a90: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00298aa0: 6520 7365 7276 6963 6520 7466 7470 642d  e service tftpd-
│ │ │ +00298ab0: 6870 610a 2020 626c 6f63 6b3a 0a0a 2020  hpa.  block:..  
│ │ │ +00298ac0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00298ad0: 7466 7470 642d 6870 6120 5365 7276 6963  tftpd-hpa Servic
│ │ │ +00298ae0: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +00298af0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +00298b00: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +00298b10: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +00298b20: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +00298b30: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +00298b40: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +00298b50: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +00298b60: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +00298b70: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00298b80: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00298b90: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00298ba0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00298bb0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00298bc0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00298bd0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00298be0: 653a 2044 6973 6162 6c65 2074 6674 7064  e: Disable tftpd
│ │ │ +00298bf0: 2d68 7061 2053 6572 7669 6365 202d 2045  -hpa Service - E
│ │ │ +00298c00: 6e73 7572 6520 7466 7470 642d 6870 612e  nsure tftpd-hpa.
│ │ │ +00298c10: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +00298c20: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00298c30: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00298c40: 2020 2020 206e 616d 653a 2074 6674 7064       name: tftpd
│ │ │ +00298c50: 2d68 7061 2e73 6572 7669 6365 0a20 2020  -hpa.service.   
│ │ │ +00298c60: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00298c70: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +00298c80: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +00298c90: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +00298ca0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00298cb0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +00298cc0: 6973 2073 6561 7263 6828 2274 6674 7064  is search("tftpd
│ │ │ +00298cd0: 2d68 7061 2e73 6572 7669 6365 222c 206d  -hpa.service", m
│ │ │ +00298ce0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +00298cf0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +00298d00: 6f63 6b65 7420 4578 6973 7473 202d 2074  ocket Exists - t
│ │ │ +00298d10: 6674 7064 2d68 7061 2e73 6f63 6b65 740a  ftpd-hpa.socket.
│ │ │ +00298d20: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00298d30: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00298d40: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00298d50: 6e69 742d 6669 6c65 7320 7466 7470 642d  nit-files tftpd-
│ │ │ +00298d60: 6870 612e 736f 636b 6574 0a20 2020 2072  hpa.socket.    r
│ │ │ +00298d70: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +00298d80: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +00298d90: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00298da0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00298db0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00298dc0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00298dd0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00298de0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00298df0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00298e00: 6520 7466 7470 642d 6870 6120 5365 7276  e tftpd-hpa Serv
│ │ │ +00298e10: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +00298e20: 636b 6574 2074 6674 7064 2d68 7061 0a20  cket tftpd-hpa. 
│ │ │ +00298e30: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00298e40: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00298e50: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ +00298e60: 612e 736f 636b 6574 0a20 2020 2020 2065  a.socket.      e
│ │ │ +00298e70: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +00298e80: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00298e90: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +00298ea0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00298eb0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00298ec0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +00298ed0: 6973 2073 6561 7263 6828 2274 6674 7064  is search("tftpd
│ │ │ +00298ee0: 2d68 7061 2e73 6f63 6b65 7422 2c20 6d75  -hpa.socket", mu
│ │ │ +00298ef0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +00298f00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00298f10: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00298f20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00298f30: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00298f40: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00298f50: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00298f60: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +00298f70: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +00298f80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00298f90: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00298fa0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00298fb0: 2020 2d20 7365 7276 6963 655f 7466 7470    - service_tftp
│ │ │ +00298fc0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +00298fd0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00298fe0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +00298ff0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00299000: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00299010: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediatio │ │ │ +002990d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002990e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00299160: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00299170: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00299190: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002991a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002991c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002991e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00299210: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +00299220: 6162 6c65 5f74 6674 7064 2d68 7061 0a0a  able_tftpd-hpa..
│ │ │ +00299230: 636c 6173 7320 6469 7361 626c 655f 7466  class disable_tf
│ │ │ +00299240: 7470 642d 6870 6120 7b0a 2020 7365 7276  tpd-hpa {.  serv
│ │ │ +00299250: 6963 6520 7b27 7466 7470 642d 6870 6127  ice {'tftpd-hpa'
│ │ │ +00299260: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +00299270: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +00299280: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +00299290: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002992b0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002992c0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002992d0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002992e0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002992f0: 6431 3039 3622 2074 6162 696e 6465 783d d1096" tabindex= │ │ │ +00299300: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00299310: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00299320: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00299330: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00299340: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00299350: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00299360: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00299370: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002993b0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +002993c0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +002993d0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +002993e0: 7466 7470 642d 6870 6122 5d0a 3c2f 636f tftpd-hpa"].
< │ │ │ 00299400: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00299410: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00299420: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00299430: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00299440: 6431 3039 3722 2074 6162 696e 6465 783d d1097" tabindex= │ │ │ 00299450: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -170522,89 +170522,89 @@ │ │ │ 0029a190: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 0029a1a0: 6964 3130 3939 2220 7461 6269 6e64 6578 id1099" tabindex │ │ │ 0029a1b0: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 0029a1c0: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 0029a1d0: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 0029a1e0: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 0029a1f0: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -0029a200: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0029a210: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0029a220: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0029a2b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029a2c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0029a310: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0029a350: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ -0029a360: 796e 630a 0a63 6c61 7373 2072 656d 6f76  ync..class remov
│ │ │ -0029a370: 655f 7273 796e 6320 7b0a 2020 7061 636b  e_rsync {.  pack
│ │ │ -0029a380: 6167 6520 7b20 2772 7379 6e63 273a 0a20  age { 'rsync':. 
│ │ │ -0029a390: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0029a3a0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0029a3b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -0029a470: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0029a480: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -0029a2a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0029a2d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0029a2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0029a320: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0029a330: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0029a500: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0029a520: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0029a570: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0029a5a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0029a5c0: 7461 6c6c 2072 7379 6e63 2050 6163 6b61  tall rsync Packa
│ │ │ -0029a5d0: 6765 3a20 456e 7375 7265 2072 7379 6e63  ge: Ensure rsync
│ │ │ -0029a5e0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0029a5f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0029a600: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0029a610: 3a20 7273 796e 630a 2020 2020 7374 6174  : rsync.    stat
│ │ │ -0029a620: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0029a630: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0029a640: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0029a650: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0029a660: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0029a670: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0029a680: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0029a690: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0029a6a0: 655f 7273 796e 635f 7265 6d6f 7665 640a  e_rsync_removed.
│ │ │ +0029a200: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0029a210: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -0029a530: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0029a540: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0029a580: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0029a590: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0029a2b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0029a350: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0029a360: 6c20 7273 796e 6320 5061 636b 6167 653a  l rsync Package:
│ │ │ +0029a370: 2045 6e73 7572 6520 7273 796e 6320 6973   Ensure rsync is
│ │ │ +0029a380: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0029a390: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0029a3a0: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +0029a3b0: 7379 6e63 0a20 2020 2073 7461 7465 3a20  sync.    state: 
│ │ │ +0029a3c0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0029a3d0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0029a3e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0029a3f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0029a400: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0029a410: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0029a420: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0029a430: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ +0029a440: 7379 6e63 5f72 656d 6f76 6564 0a3c 2f63  sync_removed.
│ │ │ +0029a460: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0029a500: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0029a510: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0029a520: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +0029a2a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0029a2d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0029a2e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0029a320: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0029a330: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0029a5b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0029a5c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0029a610: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0029a650: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +0029a660: 796e 630a 0a63 6c61 7373 2072 656d 6f76  ync..class remov
│ │ │ +0029a670: 655f 7273 796e 6320 7b0a 2020 7061 636b  e_rsync {.  pack
│ │ │ +0029a680: 6167 6520 7b20 2772 7379 6e63 273a 0a20  age { 'rsync':. 
│ │ │ +0029a690: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0029a6a0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  0029a6b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0029b4e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0029b4f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0029b500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0029b510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0029b550: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0029b560: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0029b570: 5b22 7273 796e 6364 225d 0a3c 2f63 6f64  ["rsyncd"].
Reme │ │ │ -0029b630: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0029b640: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +0029a5a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0029a5d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0029a5e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0029a620: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0029a630: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -0029b6d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0029b700: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0029b720: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0029b730: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0029b750: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0029b770: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0029b780: 6465 2064 6973 6162 6c65 5f72 7379 6e63  de disable_rsync
│ │ │ -0029b790: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ -0029b7a0: 5f72 7379 6e63 6420 7b0a 2020 7365 7276  _rsyncd {.  serv
│ │ │ -0029b7b0: 6963 6520 7b27 7273 796e 6364 273a 0a20  ice {'rsyncd':. 
│ │ │ -0029b7c0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0029b7d0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0029b7e0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0029b7f0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0029b800: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0029b8b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0029b8c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -0029b950: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0029b960: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0029b980: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0029b9a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0029b9b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0029b9f0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0029ba00: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0029ba10: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0029ba20: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0029ba30: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0029ba40: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -0029ba50: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0029ba60: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -0029ba70: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0029ba80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0029ba90: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0029baa0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0029bab0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0029bac0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0029bad0: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -0029bae0: 6e63 645f 6469 7361 626c 6564 0a0a 2d20  ncd_disabled..- 
│ │ │ -0029baf0: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ -0029bb00: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ -0029bb10: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ -0029bb20: 6520 7365 7276 6963 6520 7273 796e 6364  e service rsyncd
│ │ │ -0029bb30: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0029bb40: 616d 653a 2045 6e73 7572 6520 7273 796e  ame: Ensure rsyn
│ │ │ -0029bb50: 6364 2073 6572 7669 6365 2069 7320 6469  cd service is di
│ │ │ -0029bb60: 7361 626c 6564 202d 2043 6f6c 6c65 6374  sabled - Collect
│ │ │ -0029bb70: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -0029bb80: 7320 5072 6573 656e 7420 696e 0a20 2020  s Present in.   
│ │ │ -0029bb90: 2020 2074 6865 2053 7973 7465 6d0a 2020     the System.  
│ │ │ -0029bba0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0029bbb0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0029bbc0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0029bbd0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0029bbe0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0029bbf0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0029bc00: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0029bc10: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0029bc20: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0029bc30: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0029bc40: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0029bc50: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0029bc60: 7365 0a0a 2020 2d20 6e61 6d65 3a20 456e  se..  - name: En
│ │ │ -0029bc70: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -0029bc80: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -0029bc90: 2d20 456e 7375 7265 2072 7379 6e63 642e  - Ensure rsyncd.
│ │ │ -0029bca0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0029bcb0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0029bcc0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0029bcd0: 2020 2020 206e 616d 653a 2072 7379 6e63       name: rsync
│ │ │ -0029bce0: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -0029bcf0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0029bd00: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0029bd10: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -0029bd20: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0029bd30: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0029bd40: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0029bd50: 7365 6172 6368 2822 7273 796e 6364 2e73  search("rsyncd.s
│ │ │ -0029bd60: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0029bd70: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0029bd80: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0029bd90: 4578 6973 7473 202d 2072 7379 6e63 642e  Exists - rsyncd.
│ │ │ -0029bda0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -0029bdb0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0029bdc0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0029bdd0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0029bde0: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -0029bdf0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -0029be00: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -0029be10: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0029be20: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0029be30: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -0029be40: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -0029be50: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0029be60: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0029be70: 7365 0a0a 2020 2d20 6e61 6d65 3a20 456e  se..  - name: En
│ │ │ -0029be80: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -0029be90: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -0029bea0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0029beb0: 2072 7379 6e63 640a 2020 2020 616e 7369   rsyncd.    ansi
│ │ │ -0029bec0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0029bed0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0029bee0: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -0029bef0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0029bf00: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0029bf10: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0029bf20: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0029bf30: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0029bf40: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0029bf50: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0029bf60: 2272 7379 6e63 642e 736f 636b 6574 222c  "rsyncd.socket",
│ │ │ -0029bf70: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0029bf80: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0029bf90: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0029bfa0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0029bfb0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0029bfc0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0029bfd0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0029bfe0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0029bff0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0029c000: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0029c010: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ -0029c020: 7379 6e63 645f 6469 7361 626c 6564 0a20  syncd_disabled. 
│ │ │ -0029c030: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0029c040: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0029c050: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0029c060: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0029c070: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +0029b5d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0029b5e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0029b630: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0029b640: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0029b650: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0029b660: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0029b670: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0029b680: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0029b690: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0029b6a0: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0029b6b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0029b6c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0029b6d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0029b6e0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0029b6f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0029b700: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0029b710: 655f 7273 796e 6364 5f64 6973 6162 6c65  e_rsyncd_disable
│ │ │ +0029b720: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +0029b730: 6520 7273 796e 6364 2073 6572 7669 6365  e rsyncd service
│ │ │ +0029b740: 2069 7320 6469 7361 626c 6564 202d 2044   is disabled - D
│ │ │ +0029b750: 6973 6162 6c65 2073 6572 7669 6365 2072  isable service r
│ │ │ +0029b760: 7379 6e63 640a 2020 626c 6f63 6b3a 0a0a  syncd.  block:..
│ │ │ +0029b770: 2020 2d20 6e61 6d65 3a20 456e 7375 7265    - name: Ensure
│ │ │ +0029b780: 2072 7379 6e63 6420 7365 7276 6963 6520   rsyncd service 
│ │ │ +0029b790: 6973 2064 6973 6162 6c65 6420 2d20 436f  is disabled - Co
│ │ │ +0029b7a0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +0029b7b0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +0029b7c0: 6e0a 2020 2020 2020 7468 6520 5379 7374  n.      the Syst
│ │ │ +0029b7d0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0029b7e0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0029b7f0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0029b800: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0029b810: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0029b820: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0029b830: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0029b840: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0029b850: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0029b860: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0029b870: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0029b880: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0029b890: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0029b8a0: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ +0029b8b0: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +0029b8c0: 626c 6564 202d 2045 6e73 7572 6520 7273  bled - Ensure rs
│ │ │ +0029b8d0: 796e 6364 2e73 6572 7669 6365 2069 7320  yncd.service is 
│ │ │ +0029b8e0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +0029b8f0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0029b900: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0029b910: 7273 796e 6364 2e73 6572 7669 6365 0a20  rsyncd.service. 
│ │ │ +0029b920: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0029b930: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0029b940: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0029b950: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0029b960: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0029b970: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0029b980: 7320 6973 2073 6561 7263 6828 2272 7379  s is search("rsy
│ │ │ +0029b990: 6e63 642e 7365 7276 6963 6522 2c20 6d75  ncd.service", mu
│ │ │ +0029b9a0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0029b9b0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0029b9c0: 636b 6574 2045 7869 7374 7320 2d20 7273  cket Exists - rs
│ │ │ +0029b9d0: 796e 6364 2e73 6f63 6b65 740a 2020 2020  yncd.socket.    
│ │ │ +0029b9e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0029b9f0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0029ba00: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0029ba10: 6669 6c65 7320 7273 796e 6364 2e73 6f63  files rsyncd.soc
│ │ │ +0029ba20: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +0029ba30: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0029ba40: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0029ba50: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0029ba60: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +0029ba70: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0029ba80: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0029ba90: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0029baa0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0029bab0: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ +0029bac0: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +0029bad0: 626c 6564 202d 2044 6973 6162 6c65 2053  bled - Disable S
│ │ │ +0029bae0: 6f63 6b65 7420 7273 796e 6364 0a20 2020  ocket rsyncd.   
│ │ │ +0029baf0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0029bb00: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0029bb10: 6e61 6d65 3a20 7273 796e 6364 2e73 6f63  name: rsyncd.soc
│ │ │ +0029bb20: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0029bb30: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0029bb40: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0029bb50: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0029bb60: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0029bb70: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0029bb80: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0029bb90: 6172 6368 2822 7273 796e 6364 2e73 6f63  arch("rsyncd.soc
│ │ │ +0029bba0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +0029bbb0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +0029bbc0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0029bbd0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0029bbe0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +0029bbf0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0029bc00: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0029bc10: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0029bc20: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0029bc30: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0029bc40: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0029bc50: 6963 655f 7273 796e 6364 5f64 6973 6162  ice_rsyncd_disab
│ │ │ +0029bc60: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0029bc70: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0029bc80: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0029bc90: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0029bca0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0029bcb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0029bd60: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0029bd70: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +0029b5b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0029b5c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0029b600: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0029b610: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0029be50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0029be60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0029beb0: 6e63 6c75 6465 2064 6973 6162 6c65 5f72  nclude disable_r
│ │ │ +0029bec0: 7379 6e63 640a 0a63 6c61 7373 2064 6973  syncd..class dis
│ │ │ +0029bed0: 6162 6c65 5f72 7379 6e63 6420 7b0a 2020  able_rsyncd {.  
│ │ │ +0029bee0: 7365 7276 6963 6520 7b27 7273 796e 6364  service {'rsyncd
│ │ │ +0029bef0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0029bf00: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0029bf10: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0029bf20: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0029bf40: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0029bfe0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0029bff0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0029c000: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0029c010: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0029c020: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0029c030: 7365 2220 6964 3d22 6964 3131 3035 223e se" id="id1105"> │ │ │ +0029c040: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0029c050: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0029c060: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0029c070: 2272 7379 6e63 6422 5d0a 3c2f 636f 6465  "rsyncd"].
Remediation Pup │ │ │ -0029d8e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0029d8f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0029be30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0029be40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0029be80: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0029be90: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -0029d9c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0029d9d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0029da30: 5f63 7570 730a 0a63 6c61 7373 2072 656d  _cups..class rem
│ │ │ -0029da40: 6f76 655f 6375 7073 207b 0a20 2070 6163  ove_cups {.  pac
│ │ │ -0029da50: 6b61 6765 207b 2027 6375 7073 273a 0a20  kage { 'cups':. 
│ │ │ -0029da60: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0029da70: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0029da80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -0029db40: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0029db50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -0029d9a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0029d9b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0029d9f0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0029da00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0029dbd0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0029dbf0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0029dc40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0029dc70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0029dc90: 7461 6c6c 2043 5550 5320 5061 636b 6167  tall CUPS Packag
│ │ │ -0029dca0: 653a 2045 6e73 7572 6520 6375 7073 2069  e: Ensure cups i
│ │ │ -0029dcb0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -0029dcc0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0029dcd0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -0029dce0: 6375 7073 0a20 2020 2073 7461 7465 3a20  cups.    state: 
│ │ │ -0029dcf0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0029dd00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0029dd10: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0029dd20: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0029dd30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0029dd40: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0029dd50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0029dd60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0029dd70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0029dd80: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0029dd90: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0029dda0: 6765 5f63 7570 735f 7265 6d6f 7665 640a  ge_cups_removed.
│ │ │ -0029ddb0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -0029ddc0: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation Ans
│ │ │ +0029d8e0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0029d8f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disr │ │ │ -0029dc00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0029dc10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0029dc50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0029dc60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0029d970: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029d990: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029d9e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0029da10: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0029da30: 7461 6c6c 2043 5550 5320 5061 636b 6167  tall CUPS Packag
│ │ │ +0029da40: 653a 2045 6e73 7572 6520 6375 7073 2069  e: Ensure cups i
│ │ │ +0029da50: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0029da60: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0029da70: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0029da80: 6375 7073 0a20 2020 2073 7461 7465 3a20  cups.    state: 
│ │ │ +0029da90: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0029daa0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0029dab0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0029dac0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0029dad0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0029dae0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0029daf0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0029db00: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0029db10: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0029db20: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0029db30: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0029db40: 6765 5f63 7570 735f 7265 6d6f 7665 640a  ge_cups_removed.
│ │ │ +0029db50: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +0029db60: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediatio
│ │ │ +0029dc20: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +0029dc30: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +0029dcb0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0029dcf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ +0029d9a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029d9b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029d9f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0029da00: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ +0029dcc0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0029dce0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0029dd10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0029dd30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0029dd60: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0029dd70: 656d 6f76 655f 6375 7073 0a0a 636c 6173  emove_cups..clas
│ │ │ +0029dd80: 7320 7265 6d6f 7665 5f63 7570 7320 7b0a  s remove_cups {.
│ │ │ +0029dd90: 2020 7061 636b 6167 6520 7b20 2763 7570    package { 'cup
│ │ │ +0029dda0: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +0029ddb0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0029ddc0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -0029f0a0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0029f0b0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0029f0c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ -0029f110: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0029f120: 736b 6564 203d 205b 2263 7570 7322 5d0a  sked = ["cups"].
│ │ │ -0029f130: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -0029f1f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0029f200: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -0029f2d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0029f2e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0029f330: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -0029f340: 6375 7073 0a0a 636c 6173 7320 6469 7361  cups..class disa
│ │ │ -0029f350: 626c 655f 6375 7073 207b 0a20 2073 6572  ble_cups {.  ser
│ │ │ -0029f360: 7669 6365 207b 2763 7570 7327 3a0a 2020  vice {'cups':.  
│ │ │ -0029f370: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -0029f380: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -0029f390: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -0029f3a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0029f3b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -0029f460: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ -0029f470: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -0029f480: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ -0029f2b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0029f2c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0029f300: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0029f310: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -0029f520: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0029f540: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0029f570: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0029f500: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0029f510: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0029f530: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0029f550: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0029f560: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0029f5a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0029f5b0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0029f5c0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0029f5d0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0029f5e0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0029f5f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -0029f600: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0029f610: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -0029f620: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -0029f630: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -0029f640: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -0029f650: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -0029f660: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -0029f670: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ -0029f680: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -0029f690: 2d20 7365 7276 6963 655f 6375 7073 5f64 - service_cups_d │ │ │ -0029f6a0: 6973 6162 6c65 640a 2020 2d20 756e 6b6e isabled. - unkn │ │ │ -0029f6b0: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20 own_severity..- │ │ │ -0029f6c0: 6e61 6d65 3a20 4469 7361 626c 6520 7468 name: Disable th │ │ │ -0029f6d0: 6520 4355 5053 2053 6572 7669 6365 202d e CUPS Service - │ │ │ -0029f6e0: 2044 6973 6162 6c65 2073 6572 7669 6365 Disable service │ │ │ -0029f6f0: 2063 7570 730a 2020 626c 6f63 6b3a 0a0a cups. block:.. │ │ │ -0029f700: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -0029f710: 6520 7468 6520 4355 5053 2053 6572 7669 e the CUPS Servi │ │ │ -0029f720: 6365 202d 2043 6f6c 6c65 6374 2073 7973 ce - Collect sys │ │ │ -0029f730: 7465 6d64 2053 6572 7669 6365 7320 5072 temd Services Pr │ │ │ -0029f740: 6573 656e 7420 696e 2074 6865 2053 7973 esent in the Sys │ │ │ -0029f750: 7465 6d0a 2020 2020 616e 7369 626c 652e tem. ansible. │ │ │ -0029f760: 6275 696c 7469 6e2e 636f 6d6d 616e 643a builtin.command: │ │ │ -0029f770: 2073 7973 7465 6d63 746c 202d 7120 6c69 systemctl -q li │ │ │ -0029f780: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d st-unit-files -- │ │ │ -0029f790: 7479 7065 2073 6572 7669 6365 0a20 2020 type service. │ │ │ -0029f7a0: 2072 6567 6973 7465 723a 2073 6572 7669 register: servi │ │ │ -0029f7b0: 6365 5f65 7869 7374 730a 2020 2020 6368 ce_exists. ch │ │ │ -0029f7c0: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ -0029f7d0: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ -0029f7e0: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -0029f7f0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20 s.rc not in [0, │ │ │ -0029f800: 315d 0a20 2020 2063 6865 636b 5f6d 6f64 1]. check_mod │ │ │ -0029f810: 653a 2066 616c 7365 0a0a 2020 2d20 6e61 e: false.. - na │ │ │ -0029f820: 6d65 3a20 4469 7361 626c 6520 7468 6520 me: Disable the │ │ │ -0029f830: 4355 5053 2053 6572 7669 6365 202d 2045 CUPS Service - E │ │ │ -0029f840: 6e73 7572 6520 6375 7073 2e73 6572 7669 nsure cups.servi │ │ │ -0029f850: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ -0029f860: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -0029f870: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -0029f880: 6e61 6d65 3a20 6375 7073 2e73 6572 7669 name: cups.servi │ │ │ -0029f890: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -0029f8a0: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -0029f8b0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -0029f8c0: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -0029f8d0: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -0029f8e0: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -0029f8f0: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -0029f900: 2263 7570 732e 7365 7276 6963 6522 2c20 "cups.service", │ │ │ -0029f910: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ -0029f920: 0a20 202d 206e 616d 653a 2055 6e69 7420 . - name: Unit │ │ │ -0029f930: 536f 636b 6574 2045 7869 7374 7320 2d20 Socket Exists - │ │ │ -0029f940: 6375 7073 2e73 6f63 6b65 740a 2020 2020 cups.socket. │ │ │ -0029f950: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -0029f960: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ -0029f970: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ -0029f980: 6669 6c65 7320 6375 7073 2e73 6f63 6b65 files cups.socke │ │ │ -0029f990: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ -0029f9a0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -0029f9b0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -0029f9c0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -0029f9d0: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ -0029f9e0: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ -0029f9f0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -0029fa00: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -0029fa10: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -0029fa20: 2044 6973 6162 6c65 2074 6865 2043 5550 Disable the CUP │ │ │ -0029fa30: 5320 5365 7276 6963 6520 2d20 4469 7361 S Service - Disa │ │ │ -0029fa40: 626c 6520 536f 636b 6574 2063 7570 730a ble Socket cups. │ │ │ -0029fa50: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0029fa60: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ -0029fa70: 2020 206e 616d 653a 2063 7570 732e 736f name: cups.so │ │ │ -0029fa80: 636b 6574 0a20 2020 2020 2065 6e61 626c cket. enabl │ │ │ -0029fa90: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ -0029faa0: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -0029fab0: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -0029fac0: 650a 2020 2020 7768 656e 3a20 736f 636b e. when: sock │ │ │ -0029fad0: 6574 5f66 696c 655f 6578 6973 7473 2e73 et_file_exists.s │ │ │ -0029fae0: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -0029faf0: 6561 7263 6828 2263 7570 732e 736f 636b earch("cups.sock │ │ │ -0029fb00: 6574 222c 206d 756c 7469 6c69 6e65 3d54 et", multiline=T │ │ │ -0029fb10: 7275 6529 0a20 2074 6167 733a 0a20 202d rue). tags:. - │ │ │ -0029fb20: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0029fb30: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -0029fb40: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ -0029fb50: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0029fb60: 3728 6229 0a20 202d 2064 6973 6162 6c65 7(b). - disable │ │ │ -0029fb70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0029fb80: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0029fb90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0029fba0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0029fbb0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -0029fbc0: 5f63 7570 735f 6469 7361 626c 6564 0a20 _cups_disabled. │ │ │ -0029fbd0: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -0029fbe0: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b ce_block. - unk │ │ │ -0029fbf0: 6e6f 776e 5f73 6576 6572 6974 790a 2020 nown_severity. │ │ │ -0029fc00: 7768 656e 3a20 2722 6c69 6e75 782d 6261 when: '"linux-ba │ │ │ -0029fc10: 7365 2220 696e 2061 6e73 6962 6c65 5f66 se" in ansible_f │ │ │ -0029fc20: 6163 7473 2e70 6163 6b61 6765 7327 0a3c acts.packages'.< │ │ │ +0029f0a0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +0029f0b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0029f130: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0029f140: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029f150: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0029f190: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0029f1a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0029f1c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0029f1d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0029f1f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0029f200: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0029f210: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0029f220: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0029f230: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0029f240: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0029f250: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0029f260: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0029f270: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0029f280: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0029f290: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0029f2a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0029f2b0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0029f2c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0029f2d0: 6572 7669 6365 5f63 7570 735f 6469 7361  ervice_cups_disa
│ │ │ +0029f2e0: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ +0029f2f0: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ +0029f300: 653a 2044 6973 6162 6c65 2074 6865 2043  e: Disable the C
│ │ │ +0029f310: 5550 5320 5365 7276 6963 6520 2d20 4469  UPS Service - Di
│ │ │ +0029f320: 7361 626c 6520 7365 7276 6963 6520 6375  sable service cu
│ │ │ +0029f330: 7073 0a20 2062 6c6f 636b 3a0a 0a20 202d  ps.  block:..  -
│ │ │ +0029f340: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +0029f350: 6865 2043 5550 5320 5365 7276 6963 6520  he CUPS Service 
│ │ │ +0029f360: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0029f370: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0029f380: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +0029f390: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0029f3a0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0029f3b0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0029f3c0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +0029f3d0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +0029f3e0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +0029f3f0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0029f400: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0029f410: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0029f420: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +0029f430: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0029f440: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0029f450: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0029f460: 2044 6973 6162 6c65 2074 6865 2043 5550   Disable the CUP
│ │ │ +0029f470: 5320 5365 7276 6963 6520 2d20 456e 7375  S Service - Ensu
│ │ │ +0029f480: 7265 2063 7570 732e 7365 7276 6963 6520  re cups.service 
│ │ │ +0029f490: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0029f4a0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0029f4b0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0029f4c0: 653a 2063 7570 732e 7365 7276 6963 650a  e: cups.service.
│ │ │ +0029f4d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0029f4e0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0029f4f0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0029f500: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0029f510: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0029f520: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0029f530: 6573 2069 7320 7365 6172 6368 2822 6375  es is search("cu
│ │ │ +0029f540: 7073 2e73 6572 7669 6365 222c 206d 756c  ps.service", mul
│ │ │ +0029f550: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +0029f560: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +0029f570: 6b65 7420 4578 6973 7473 202d 2063 7570  ket Exists - cup
│ │ │ +0029f580: 732e 736f 636b 6574 0a20 2020 2061 6e73  s.socket.    ans
│ │ │ +0029f590: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +0029f5a0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +0029f5b0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +0029f5c0: 6573 2063 7570 732e 736f 636b 6574 0a20  es cups.socket. 
│ │ │ +0029f5d0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0029f5e0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0029f5f0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0029f600: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0029f610: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0029f620: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0029f630: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0029f640: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0029f650: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0029f660: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ +0029f670: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0029f680: 2053 6f63 6b65 7420 6375 7073 0a20 2020   Socket cups.   
│ │ │ +0029f690: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0029f6a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0029f6b0: 6e61 6d65 3a20 6375 7073 2e73 6f63 6b65  name: cups.socke
│ │ │ +0029f6c0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +0029f6d0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +0029f6e0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0029f6f0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0029f700: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +0029f710: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +0029f720: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0029f730: 6368 2822 6375 7073 2e73 6f63 6b65 7422  ch("cups.socket"
│ │ │ +0029f740: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +0029f750: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ +0029f760: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0029f770: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0029f780: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +0029f790: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +0029f7a0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +0029f7b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0029f7c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0029f7d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0029f7e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0029f7f0: 640a 2020 2d20 7365 7276 6963 655f 6375  d.  - service_cu
│ │ │ +0029f800: 7073 5f64 6973 6162 6c65 640a 2020 2d20  ps_disabled.  - 
│ │ │ +0029f810: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +0029f820: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77  block.  - unknow
│ │ │ +0029f830: 6e5f 7365 7665 7269 7479 0a20 2077 6865  n_severity.  whe
│ │ │ +0029f840: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +0029f850: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0029f860: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +0029f880: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0029f890: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0029f8a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0029f8b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0029f8c0: 6431 3131 3322 2074 6162 696e 6465 783d d1113" tabindex= │ │ │ +0029f8d0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +0029f8e0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +0029f8f0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +0029f900: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +0029f910: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +0029f920: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0029f930: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0029f940: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +0029f9e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0029fa30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0029f9c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0029f9f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0029fa10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0029fa20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0029fa40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0029fa50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0029fa70: 7564 6520 6469 7361 626c 655f 6375 7073  ude disable_cups
│ │ │ +0029fa80: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +0029fa90: 6375 7073 207b 0a20 2073 6572 7669 6365  cups {.  service
│ │ │ +0029faa0: 207b 2763 7570 7327 3a0a 2020 2020 656e   {'cups':.    en
│ │ │ +0029fab0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +0029fac0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +0029fad0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +0029fae0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0029fba0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0029fbb0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ +0029fc10: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +0029fc20: 6b65 6420 3d20 5b22 6375 7073 225d 0a3c  ked = ["cups"].<
│ │ │  0029fc30: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -002a12a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002a12b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002a1340: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002a1360: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002a1370: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002a1380: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002a1390: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002a13b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002a13e0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002a13f0: 6d6f 7665 5f73 7175 6964 0a0a 636c 6173  move_squid..clas
│ │ │ -002a1400: 7320 7265 6d6f 7665 5f73 7175 6964 207b  s remove_squid {
│ │ │ -002a1410: 0a20 2070 6163 6b61 6765 207b 2027 7371  .  package { 'sq
│ │ │ -002a1420: 7569 6427 3a0a 2020 2020 656e 7375 7265  uid':.    ensure
│ │ │ -002a1430: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -002a1440: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -002a1500: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -002a1510: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002a1520: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002a1530: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002a1540: 7365 2220 6964 3d22 6964 3131 3138 223e se" id="id1118"> │ │ │ -002a1550: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002a15c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002a15e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002a1610: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002a15a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002a15b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002a15f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002a1600: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -002a1650: 2027 556e 696e 7374 616c 6c20 7371 7569 'Uninstall squi │ │ │ -002a1660: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ -002a1670: 6520 7371 7569 6420 6973 2072 656d 6f76 e squid is remov │ │ │ -002a1680: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -002a1690: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -002a16a0: 2020 206e 616d 653a 2073 7175 6964 0a20 name: squid. │ │ │ -002a16b0: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -002a16c0: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ -002a16d0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -002a16e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -002a16f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -002a1700: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ -002a1710: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -002a1720: 6b61 6765 5f73 7175 6964 5f72 656d 6f76 kage_squid_remov │ │ │ -002a1730: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73 ed. - unknown_s │ │ │ -002a1740: 6576 6572 6974 790a 3c2f 636f 6465 3e3c everity.< │ │ │ +002a12a0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +002a12b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

< │ │ │ +002a1330: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002a1340: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002a1360: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002a1370: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002a1390: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002a13b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002a13e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +002a13f0: 6e69 6e73 7461 6c6c 2073 7175 6964 2050  ninstall squid P
│ │ │ +002a1400: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ +002a1410: 7175 6964 2069 7320 7265 6d6f 7665 6427  quid is removed'
│ │ │ +002a1420: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002a1430: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +002a1440: 6e61 6d65 3a20 7371 7569 640a 2020 2020  name: squid.    
│ │ │ +002a1450: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +002a1460: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +002a1470: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002a1480: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002a1490: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002a14a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002a14b0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +002a14c0: 655f 7371 7569 645f 7265 6d6f 7665 640a  e_squid_removed.
│ │ │ +002a14d0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +002a14e0: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.
Remediatio │ │ │ +002a15a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002a15b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002a1630: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002a1640: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002a1660: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002a1670: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002a1690: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002a16b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002a16e0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +002a16f0: 656d 6f76 655f 7371 7569 640a 0a63 6c61  emove_squid..cla
│ │ │ +002a1700: 7373 2072 656d 6f76 655f 7371 7569 6420  ss remove_squid 
│ │ │ +002a1710: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +002a1720: 7175 6964 273a 0a20 2020 2065 6e73 7572  quid':.    ensur
│ │ │ +002a1730: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +002a1740: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  002a1750: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Re │ │ │ -002a2550: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002a2560: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002a2570: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002a2580: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002a2590: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002a25a0: 7365 2220 6964 3d22 6964 3131 3231 223e se" id="id1121"> │ │ │ -002a25b0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002a25c0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -002a25d0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002a25e0: 2273 7175 6964 225d 0a3c 2f63 6f64 653e  "squid"].
│ │ │ -002a25f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002a26a0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002a26b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a26c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002a2760: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002a2780: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002a27b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002a2740: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002a2750: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002a2770: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002a2790: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002a27a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -002a27f0: 2064 6973 6162 6c65 5f73 7175 6964 0a0a disable_squid.. │ │ │ -002a2800: 636c 6173 7320 6469 7361 626c 655f 7371 class disable_sq │ │ │ -002a2810: 7569 6420 7b0a 2020 7365 7276 6963 6520 uid {. service │ │ │ -002a2820: 7b27 7371 7569 6427 3a0a 2020 2020 656e {'squid':. en │ │ │ -002a2830: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ -002a2840: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -002a2850: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ -002a2860: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -002a2920: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002a2930: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002a29b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002a29c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002a29e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002a29f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002a2a10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002a2a30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002a2a60: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002a2a70: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002a2a80: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002a2a90: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002a2aa0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002a2ab0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002a2ac0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002a2ad0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002a2ae0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002a2af0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002a2b00: 640a 2020 2d20 7365 7276 6963 655f 7371  d.  - service_sq
│ │ │ -002a2b10: 7569 645f 6469 7361 626c 6564 0a20 202d  uid_disabled.  -
│ │ │ -002a2b20: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -002a2b30: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ -002a2b40: 6c65 2053 7175 6964 202d 2044 6973 6162  le Squid - Disab
│ │ │ -002a2b50: 6c65 2073 6572 7669 6365 2073 7175 6964  le service squid
│ │ │ -002a2b60: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -002a2b70: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ -002a2b80: 6964 202d 2043 6f6c 6c65 6374 2073 7973  id - Collect sys
│ │ │ -002a2b90: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -002a2ba0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -002a2bb0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -002a2bc0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002a2bd0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002a2be0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -002a2bf0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -002a2c00: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -002a2c10: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -002a2c20: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -002a2c30: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002a2c40: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002a2c50: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -002a2c60: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -002a2c70: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -002a2c80: 6d65 3a20 4469 7361 626c 6520 5371 7569  me: Disable Squi
│ │ │ -002a2c90: 6420 2d20 456e 7375 7265 2073 7175 6964  d - Ensure squid
│ │ │ -002a2ca0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002a2cb0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002a2cc0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002a2cd0: 2020 2020 2020 6e61 6d65 3a20 7371 7569        name: squi
│ │ │ -002a2ce0: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -002a2cf0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -002a2d00: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002a2d10: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -002a2d20: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -002a2d30: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -002a2d40: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002a2d50: 7365 6172 6368 2822 7371 7569 642e 7365  search("squid.se
│ │ │ -002a2d60: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -002a2d70: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -002a2d80: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -002a2d90: 7869 7374 7320 2d20 7371 7569 642e 736f  xists - squid.so
│ │ │ -002a2da0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002a2db0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002a2dc0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002a2dd0: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ -002a2de0: 7175 6964 2e73 6f63 6b65 740a 2020 2020  quid.socket.    
│ │ │ -002a2df0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002a2e00: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002a2e10: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002a2e20: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002a2e30: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002a2e40: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002a2e50: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002a2e60: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002a2e70: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002a2e80: 6c65 2053 7175 6964 202d 2044 6973 6162  le Squid - Disab
│ │ │ -002a2e90: 6c65 2053 6f63 6b65 7420 7371 7569 640a  le Socket squid.
│ │ │ -002a2ea0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002a2eb0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002a2ec0: 2020 206e 616d 653a 2073 7175 6964 2e73     name: squid.s
│ │ │ -002a2ed0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002a2ee0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002a2ef0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002a2f00: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002a2f10: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -002a2f20: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -002a2f30: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002a2f40: 7365 6172 6368 2822 7371 7569 642e 736f  search("squid.so
│ │ │ -002a2f50: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -002a2f60: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -002a2f70: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002a2f80: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002a2f90: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002a2fa0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -002a2fb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002a2fc0: 202d 2073 6572 7669 6365 5f73 7175 6964   - service_squid
│ │ │ -002a2fd0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -002a2fe0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -002a2ff0: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ -002a3000: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ -002a3010: 2028 2022 7371 7569 6422 2069 6e20 616e   ( "squid" in an
│ │ │ -002a3020: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -002a3030: 6167 6573 2061 6e64 2022 6c69 6e75 782d  ages and "linux-
│ │ │ -002a3040: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -002a3050: 5f66 6163 7473 2e70 6163 6b61 6765 730a  _facts.packages.
│ │ │ -002a3060: 2020 2020 290a 3c2f 636f 6465 3e3c 2f70      ).


│ │ │ +002a2600: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002a26a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002a26b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002a26c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002a26d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002a26e0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +002a26f0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002a2700: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002a2710: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002a2720: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +002a2730: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002a2740: 6572 7669 6365 5f73 7175 6964 5f64 6973  ervice_squid_dis
│ │ │ +002a2750: 6162 6c65 640a 2020 2d20 756e 6b6e 6f77  abled.  - unknow
│ │ │ +002a2760: 6e5f 7365 7665 7269 7479 0a0a 2d20 6e61  n_severity..- na
│ │ │ +002a2770: 6d65 3a20 4469 7361 626c 6520 5371 7569  me: Disable Squi
│ │ │ +002a2780: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ +002a2790: 6963 6520 7371 7569 640a 2020 626c 6f63  ice squid.  bloc
│ │ │ +002a27a0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +002a27b0: 7361 626c 6520 5371 7569 6420 2d20 436f  sable Squid - Co
│ │ │ +002a27c0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +002a27d0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +002a27e0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +002a27f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002a2800: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002a2810: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002a2820: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +002a2830: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +002a2840: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +002a2850: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002a2860: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002a2870: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +002a2880: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +002a2890: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002a28a0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002a28b0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002a28c0: 6162 6c65 2053 7175 6964 202d 2045 6e73  able Squid - Ens
│ │ │ +002a28d0: 7572 6520 7371 7569 642e 7365 7276 6963  ure squid.servic
│ │ │ +002a28e0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +002a28f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002a2900: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002a2910: 616d 653a 2073 7175 6964 2e73 6572 7669  ame: squid.servi
│ │ │ +002a2920: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +002a2930: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +002a2940: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002a2950: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002a2960: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +002a2970: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002a2980: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002a2990: 2273 7175 6964 2e73 6572 7669 6365 222c  "squid.service",
│ │ │ +002a29a0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002a29b0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +002a29c0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +002a29d0: 2073 7175 6964 2e73 6f63 6b65 740a 2020   squid.socket.  
│ │ │ +002a29e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002a29f0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002a2a00: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002a2a10: 742d 6669 6c65 7320 7371 7569 642e 736f  t-files squid.so
│ │ │ +002a2a20: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +002a2a30: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +002a2a40: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002a2a50: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002a2a60: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002a2a70: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002a2a80: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002a2a90: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002a2aa0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002a2ab0: 6d65 3a20 4469 7361 626c 6520 5371 7569  me: Disable Squi
│ │ │ +002a2ac0: 6420 2d20 4469 7361 626c 6520 536f 636b  d - Disable Sock
│ │ │ +002a2ad0: 6574 2073 7175 6964 0a20 2020 2061 6e73  et squid.    ans
│ │ │ +002a2ae0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002a2af0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002a2b00: 3a20 7371 7569 642e 736f 636b 6574 0a20  : squid.socket. 
│ │ │ +002a2b10: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002a2b20: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +002a2b30: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +002a2b40: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002a2b50: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +002a2b60: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002a2b70: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002a2b80: 2273 7175 6964 2e73 6f63 6b65 7422 2c20  "squid.socket", 
│ │ │ +002a2b90: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +002a2ba0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002a2bb0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002a2bc0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002a2bd0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002a2be0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002a2bf0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002a2c00: 6963 655f 7371 7569 645f 6469 7361 626c  ice_squid_disabl
│ │ │ +002a2c10: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +002a2c20: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ +002a2c30: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +002a2c40: 790a 2020 7768 656e 3a20 2820 2273 7175  y.  when: ( "squ
│ │ │ +002a2c50: 6964 2220 696e 2061 6e73 6962 6c65 5f66  id" in ansible_f
│ │ │ +002a2c60: 6163 7473 2e70 6163 6b61 6765 7320 616e  acts.packages an
│ │ │ +002a2c70: 6420 226c 696e 7578 2d62 6173 6522 2069  d "linux-base" i
│ │ │ +002a2c80: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +002a2c90: 7061 636b 6167 6573 0a20 2020 2029 0a3c  packages.    ).<
│ │ │ +002a2ca0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002a2d50: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002a2d60: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +002a25f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002a2620: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002a2630: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002a2670: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002a2680: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002a2e40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a2e50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +002a2ea0: 6e63 6c75 6465 2064 6973 6162 6c65 5f73  nclude disable_s
│ │ │ +002a2eb0: 7175 6964 0a0a 636c 6173 7320 6469 7361  quid..class disa
│ │ │ +002a2ec0: 626c 655f 7371 7569 6420 7b0a 2020 7365  ble_squid {.  se
│ │ │ +002a2ed0: 7276 6963 6520 7b27 7371 7569 6427 3a0a  rvice {'squid':.
│ │ │ +002a2ee0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +002a2ef0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +002a2f00: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +002a2f10: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +002a2fd0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +002a2fe0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +002a2ff0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +002a3040: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +002a3050: 735d 0a6d 6173 6b65 6420 3d20 5b22 7371 s].masked = ["sq │ │ │ +002a3060: 7569 6422 5d0a 3c2f 636f 6465 3e3c 2f70 uid"].

Reme │ │ │ -002a4800: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002a4810: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ +002a2e20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002a2e30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002a2e70: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +002a2e80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -002a48a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002a48d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002a48f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002a4900: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002a4920: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002a4930: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -002a4950: 6c75 6465 2072 656d 6f76 655f 7361 6d62  lude remove_samb
│ │ │ -002a4960: 610a 0a63 6c61 7373 2072 656d 6f76 655f  a..class remove_
│ │ │ -002a4970: 7361 6d62 6120 7b0a 2020 7061 636b 6167  samba {.  packag
│ │ │ -002a4980: 6520 7b20 2773 616d 6261 273a 0a20 2020  e { 'samba':.   
│ │ │ -002a4990: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -002a49a0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -002a4a60: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002a4a70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002a4b50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002a4b60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002a4bb0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -002a4bc0: 6c6c 2053 616d 6261 2050 6163 6b61 6765  ll Samba Package
│ │ │ -002a4bd0: 3a20 456e 7375 7265 2073 616d 6261 2069  : Ensure samba i
│ │ │ -002a4be0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002a4bf0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002a4c00: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002a4c10: 7361 6d62 610a 2020 2020 7374 6174 653a  samba.    state:
│ │ │ -002a4c20: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -002a4c30: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002a4c40: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002a4c50: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002a4c60: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002a4c70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002a4c80: 2020 2d20 7061 636b 6167 655f 7361 6d62    - package_samb
│ │ │ -002a4c90: 615f 7265 6d6f 7665 640a 2020 2d20 756e  a_removed.  - un
│ │ │ -002a4ca0: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +002a4800: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +002a4810: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +002a4820: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -002a4b30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002a4b40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002a4b80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002a4b90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +002a48c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002a4910: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002a4950: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +002a4960: 5361 6d62 6120 5061 636b 6167 653a 2045  Samba Package: E
│ │ │ +002a4970: 6e73 7572 6520 7361 6d62 6120 6973 2072  nsure samba is r
│ │ │ +002a4980: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +002a4990: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +002a49a0: 653a 0a20 2020 206e 616d 653a 2073 616d  e:.    name: sam
│ │ │ +002a49b0: 6261 0a20 2020 2073 7461 7465 3a20 6162  ba.    state: ab
│ │ │ +002a49c0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +002a49d0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002a49e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002a49f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002a4a00: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002a4a10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002a4a20: 2070 6163 6b61 6765 5f73 616d 6261 5f72   package_samba_r
│ │ │ +002a4a30: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ +002a4a40: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +002a4a60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002a4a70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002a4a80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002a4a90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002a4aa0: 6431 3132 3722 2074 6162 696e 6465 783d d1127" tabindex= │ │ │ +002a4ab0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002a4ac0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002a4ad0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002a4ae0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002a4af0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002a4b00: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002a4b10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002a4b20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +002a48a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002a48d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002a48f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002a4900: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002a4920: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002a4930: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002a4bc0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002a4c10: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +002a4c50: 636c 7564 6520 7265 6d6f 7665 5f73 616d  clude remove_sam
│ │ │ +002a4c60: 6261 0a0a 636c 6173 7320 7265 6d6f 7665  ba..class remove
│ │ │ +002a4c70: 5f73 616d 6261 207b 0a20 2070 6163 6b61  _samba {.  packa
│ │ │ +002a4c80: 6765 207b 2027 7361 6d62 6127 3a0a 2020  ge { 'samba':.  
│ │ │ +002a4c90: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002a4ca0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  002a4cb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remedi │ │ │ -002a5a40: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002a5a50: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002a5a60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -002a5ab0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002a5ac0: 5d0a 6d61 736b 6564 203d 205b 2273 6d62  ].masked = ["smb
│ │ │ -002a5ad0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -002a5ae0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002a5b90: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002a5ba0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -002a5c70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002a5cc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Co │ │ │ +002a4ba0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002a4bd0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002a4bf0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002a4c00: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002a4c20: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002a4c30: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -002a5c30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -002a5c50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002a5ca0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002a5cb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -002a5ce0: 6c65 5f73 6d62 0a0a 636c 6173 7320 6469  le_smb..class di
│ │ │ -002a5cf0: 7361 626c 655f 736d 6220 7b0a 2020 7365  sable_smb {.  se
│ │ │ -002a5d00: 7276 6963 6520 7b27 736d 6227 3a0a 2020  rvice {'smb':.  
│ │ │ -002a5d10: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -002a5d20: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -002a5d30: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -002a5d40: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002a5d50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002a5e00: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002a5e10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a5e20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002a5ec0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002a5ee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002a5f10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002a5ea0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002a5eb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002a5ed0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002a5ef0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002a5f00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002a5f40: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002a5f50: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -002a5f60: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002a5f70: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -002a5f80: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -002a5f90: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -002a5fa0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -002a5fb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -002a5fc0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -002a5fd0: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ -002a5fe0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002a5ff0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -002a6000: 6365 5f73 6d62 5f64 6973 6162 6c65 640a ce_smb_disabled. │ │ │ -002a6010: 0a2d 206e 616d 653a 2044 6973 6162 6c65 .- name: Disable │ │ │ -002a6020: 2053 616d 6261 202d 2044 6973 6162 6c65 Samba - Disable │ │ │ -002a6030: 2073 6572 7669 6365 2073 6d62 0a20 2062 service smb. b │ │ │ -002a6040: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ -002a6050: 2044 6973 6162 6c65 2053 616d 6261 202d Disable Samba - │ │ │ -002a6060: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ -002a6070: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ -002a6080: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ -002a6090: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -002a60a0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -002a60b0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -002a60c0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ -002a60d0: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ -002a60e0: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ -002a60f0: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ -002a6100: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ -002a6110: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ -002a6120: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ -002a6130: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -002a6140: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -002a6150: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -002a6160: 4469 7361 626c 6520 5361 6d62 6120 2d20 Disable Samba - │ │ │ -002a6170: 456e 7375 7265 2073 6d62 2e73 6572 7669 Ensure smb.servi │ │ │ -002a6180: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ -002a6190: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -002a61a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -002a61b0: 6e61 6d65 3a20 736d 622e 7365 7276 6963 name: smb.servic │ │ │ -002a61c0: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -002a61d0: 746f 7070 6564 0a20 2020 2020 2065 6e61 topped. ena │ │ │ -002a61e0: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ -002a61f0: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ -002a6200: 2020 2077 6865 6e3a 2073 6572 7669 6365 when: service │ │ │ -002a6210: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ -002a6220: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ -002a6230: 736d 622e 7365 7276 6963 6522 2c20 6d75 smb.service", mu │ │ │ -002a6240: 6c74 696c 696e 653d 5472 7565 290a 0a20 ltiline=True).. │ │ │ -002a6250: 202d 206e 616d 653a 2055 6e69 7420 536f - name: Unit So │ │ │ -002a6260: 636b 6574 2045 7869 7374 7320 2d20 736d cket Exists - sm │ │ │ -002a6270: 622e 736f 636b 6574 0a20 2020 2061 6e73 b.socket. ans │ │ │ -002a6280: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -002a6290: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -002a62a0: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -002a62b0: 6573 2073 6d62 2e73 6f63 6b65 740a 2020 es smb.socket. │ │ │ -002a62c0: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ -002a62d0: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ -002a62e0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -002a62f0: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -002a6300: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ -002a6310: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ -002a6320: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -002a6330: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -002a6340: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -002a6350: 6162 6c65 2053 616d 6261 202d 2044 6973 able Samba - Dis │ │ │ -002a6360: 6162 6c65 2053 6f63 6b65 7420 736d 620a able Socket smb. │ │ │ -002a6370: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -002a6380: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ -002a6390: 2020 206e 616d 653a 2073 6d62 2e73 6f63 name: smb.soc │ │ │ -002a63a0: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ -002a63b0: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ -002a63c0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -002a63d0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -002a63e0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ -002a63f0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ -002a6400: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ -002a6410: 6172 6368 2822 736d 622e 736f 636b 6574 arch("smb.socket │ │ │ -002a6420: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -002a6430: 6529 0a20 2074 6167 733a 0a20 202d 2064 e). tags:. - d │ │ │ -002a6440: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -002a6450: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -002a6460: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -002a6470: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365 ption. - low_se │ │ │ -002a6480: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -002a6490: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -002a64a0: 7365 7276 6963 655f 736d 625f 6469 7361 service_smb_disa │ │ │ -002a64b0: 626c 6564 0a20 202d 2073 7065 6369 616c bled. - special │ │ │ -002a64c0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20 _service_block. │ │ │ -002a64d0: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ -002a64e0: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -002a64f0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +002a5a40: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +002a5a50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002a5ae0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a5af0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a5b10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a5b30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a5b40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a5b80: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002a5b90: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +002a5ba0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002a5bb0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002a5bc0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002a5bd0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002a5be0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002a5bf0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002a5c00: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002a5c10: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +002a5c20: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002a5c30: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002a5c40: 6963 655f 736d 625f 6469 7361 626c 6564  ice_smb_disabled
│ │ │ +002a5c50: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +002a5c60: 6520 5361 6d62 6120 2d20 4469 7361 626c  e Samba - Disabl
│ │ │ +002a5c70: 6520 7365 7276 6963 6520 736d 620a 2020  e service smb.  
│ │ │ +002a5c80: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002a5c90: 3a20 4469 7361 626c 6520 5361 6d62 6120  : Disable Samba 
│ │ │ +002a5ca0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +002a5cb0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +002a5cc0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +002a5cd0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002a5ce0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +002a5cf0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +002a5d00: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +002a5d10: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +002a5d20: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +002a5d30: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002a5d40: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002a5d50: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002a5d60: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +002a5d70: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002a5d80: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002a5d90: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002a5da0: 2044 6973 6162 6c65 2053 616d 6261 202d   Disable Samba -
│ │ │ +002a5db0: 2045 6e73 7572 6520 736d 622e 7365 7276   Ensure smb.serv
│ │ │ +002a5dc0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +002a5dd0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002a5de0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002a5df0: 206e 616d 653a 2073 6d62 2e73 6572 7669   name: smb.servi
│ │ │ +002a5e00: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +002a5e10: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +002a5e20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002a5e30: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002a5e40: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +002a5e50: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002a5e60: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002a5e70: 2273 6d62 2e73 6572 7669 6365 222c 206d  "smb.service", m
│ │ │ +002a5e80: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +002a5e90: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +002a5ea0: 6f63 6b65 7420 4578 6973 7473 202d 2073  ocket Exists - s
│ │ │ +002a5eb0: 6d62 2e73 6f63 6b65 740a 2020 2020 616e  mb.socket.    an
│ │ │ +002a5ec0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002a5ed0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002a5ee0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002a5ef0: 6c65 7320 736d 622e 736f 636b 6574 0a20  les smb.socket. 
│ │ │ +002a5f00: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +002a5f10: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +002a5f20: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002a5f30: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002a5f40: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +002a5f50: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +002a5f60: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +002a5f70: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +002a5f80: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +002a5f90: 7361 626c 6520 5361 6d62 6120 2d20 4469  sable Samba - Di
│ │ │ +002a5fa0: 7361 626c 6520 536f 636b 6574 2073 6d62  sable Socket smb
│ │ │ +002a5fb0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002a5fc0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002a5fd0: 2020 2020 6e61 6d65 3a20 736d 622e 736f      name: smb.so
│ │ │ +002a5fe0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +002a5ff0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002a6000: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002a6010: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002a6020: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +002a6030: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +002a6040: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002a6050: 6561 7263 6828 2273 6d62 2e73 6f63 6b65  earch("smb.socke
│ │ │ +002a6060: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +002a6070: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +002a6080: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002a6090: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002a60a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002a60b0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +002a60c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002a60d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002a60e0: 2073 6572 7669 6365 5f73 6d62 5f64 6973   service_smb_dis
│ │ │ +002a60f0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +002a6100: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +002a6110: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +002a6120: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +002a6130: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +002a6140: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002a6200: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002a6210: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +002a6290: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002a62b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002a6300: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +002a6350: 5f73 6d62 0a0a 636c 6173 7320 6469 7361  _smb..class disa
│ │ │ +002a6360: 626c 655f 736d 6220 7b0a 2020 7365 7276  ble_smb {.  serv
│ │ │ +002a6370: 6963 6520 7b27 736d 6227 3a0a 2020 2020  ice {'smb':.    
│ │ │ +002a6380: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +002a6390: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +002a63a0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +002a63b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +002a6470: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +002a6480: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +002a6490: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +002a64e0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +002a64f0: 6173 6b65 6420 3d20 5b22 736d 6222 5d0a  asked = ["smb"].
│ │ │  002a6500: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediatio │ │ │ -002a7bf0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002a7c00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002a7c80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002a7cc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ +002a62c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002a62d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002a6310: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002a6320: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -002a7c90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002a7cb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002a7ce0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002a7d00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002a7d30: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002a7d40: 656d 6f76 655f 6e65 742d 736e 6d70 0a0a  emove_net-snmp..
│ │ │ -002a7d50: 636c 6173 7320 7265 6d6f 7665 5f6e 6574  class remove_net
│ │ │ -002a7d60: 2d73 6e6d 7020 7b0a 2020 7061 636b 6167  -snmp {.  packag
│ │ │ -002a7d70: 6520 7b20 276e 6574 2d73 6e6d 7027 3a0a  e { 'net-snmp':.
│ │ │ -002a7d80: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002a7d90: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002a7da0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002a7e60: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002a7e70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002a7ef0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002a7f10: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002a7f60: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002a7f90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002a7f00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002a7f20: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002a7f70: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002a7f80: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -002a7fb0: 7374 616c 6c20 6e65 742d 736e 6d70 2050  stall net-snmp P
│ │ │ -002a7fc0: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -002a7fd0: 6574 2d73 6e6d 7020 6973 2072 656d 6f76  et-snmp is remov
│ │ │ -002a7fe0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002a7ff0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002a8000: 2020 206e 616d 653a 206e 6574 2d73 6e6d     name: net-snm
│ │ │ -002a8010: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ -002a8020: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002a8030: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002a8040: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002a8050: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ -002a8060: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002a8070: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002a8080: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002a8090: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002a80a0: 640a 2020 2d20 7061 636b 6167 655f 6e65  d.  - package_ne
│ │ │ -002a80b0: 742d 736e 6d70 5f72 656d 6f76 6564 0a20  t-snmp_removed. 
│ │ │ -002a80c0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -002a80d0: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.

│ │ │ +002a7c80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002a7c90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002a7ca0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002a7ce0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002a7cf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002a7d10: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002a7d20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +002a7d40: 556e 696e 7374 616c 6c20 6e65 742d 736e  Uninstall net-sn
│ │ │ +002a7d50: 6d70 2050 6163 6b61 6765 3a20 456e 7375  mp Package: Ensu
│ │ │ +002a7d60: 7265 206e 6574 2d73 6e6d 7020 6973 2072  re net-snmp is r
│ │ │ +002a7d70: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +002a7d80: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +002a7d90: 653a 0a20 2020 206e 616d 653a 206e 6574  e:.    name: net
│ │ │ +002a7da0: 2d73 6e6d 700a 2020 2020 7374 6174 653a  -snmp.    state:
│ │ │ +002a7db0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002a7dc0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002a7dd0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +002a7de0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +002a7df0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002a7e00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002a7e10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002a7e20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002a7e30: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +002a7e40: 655f 6e65 742d 736e 6d70 5f72 656d 6f76  e_net-snmp_remov
│ │ │ +002a7e50: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +002a7e60: 6576 6572 6974 790a 3c2f 636f 6465 3e3c  everity.<
│ │ │ +002a7e70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +002a7f20: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002a7f30: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002a7f40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002a7f50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002a7f60: 7365 2220 6964 3d22 6964 3131 3336 223e se" id="id1136"> │ │ │ +002a7f70: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002a7fe0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002a8000: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002a8030: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002a7fc0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002a7fd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002a8010: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002a8020: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002a8070: 6520 7265 6d6f 7665 5f6e 6574 2d73 6e6d e remove_net-snm │ │ │ +002a8080: 700a 0a63 6c61 7373 2072 656d 6f76 655f p..class remove_ │ │ │ +002a8090: 6e65 742d 736e 6d70 207b 0a20 2070 6163 net-snmp {. pac │ │ │ +002a80a0: 6b61 6765 207b 2027 6e65 742d 736e 6d70 kage { 'net-snmp │ │ │ +002a80b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +002a80c0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +002a80d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

│ │ │ -002a8ef0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -002a8f00: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -002a8f10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ -002a8f60: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -002a8f70: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -002a8f80: 205b 2273 6e6d 7064 225d 0a3c 2f63 6f64   ["snmpd"].
Reme │ │ │ -002a9040: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002a9050: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002a90e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002a9110: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002a9130: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002a9140: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002a9160: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -002a9180: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -002a9190: 6465 2064 6973 6162 6c65 5f73 6e6d 7064  de disable_snmpd
│ │ │ -002a91a0: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -002a91b0: 736e 6d70 6420 7b0a 2020 7365 7276 6963  snmpd {.  servic
│ │ │ -002a91c0: 6520 7b27 736e 6d70 6427 3a0a 2020 2020  e {'snmpd':.    
│ │ │ -002a91d0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -002a91e0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -002a91f0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -002a9200: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -002a92c0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002a92d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002a9310: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002a9320: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002a9330: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002a9340: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002a9350: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002a9360: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002a9370: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002a93b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002a93c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002a93e0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002a93f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002a9410: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002a9420: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002a9430: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002a9440: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002a9450: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -002a9460: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -002a9470: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -002a9480: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -002a9490: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ -002a94a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -002a94b0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -002a94c0: 5f73 6e6d 7064 5f64 6973 6162 6c65 640a _snmpd_disabled. │ │ │ -002a94d0: 0a2d 206e 616d 653a 2044 6973 6162 6c65 .- name: Disable │ │ │ -002a94e0: 2073 6e6d 7064 2053 6572 7669 6365 202d snmpd Service - │ │ │ -002a94f0: 2044 6973 6162 6c65 2073 6572 7669 6365 Disable service │ │ │ -002a9500: 2073 6e6d 7064 0a20 2062 6c6f 636b 3a0a snmpd. block:. │ │ │ -002a9510: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -002a9520: 6c65 2073 6e6d 7064 2053 6572 7669 6365 le snmpd Service │ │ │ -002a9530: 202d 2043 6f6c 6c65 6374 2073 7973 7465 - Collect syste │ │ │ -002a9540: 6d64 2053 6572 7669 6365 7320 5072 6573 md Services Pres │ │ │ -002a9550: 656e 7420 696e 2074 6865 2053 7973 7465 ent in the Syste │ │ │ -002a9560: 6d0a 2020 2020 616e 7369 626c 652e 6275 m. ansible.bu │ │ │ -002a9570: 696c 7469 6e2e 636f 6d6d 616e 643a 2073 iltin.command: s │ │ │ -002a9580: 7973 7465 6d63 746c 202d 7120 6c69 7374 ystemctl -q list │ │ │ -002a9590: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479 -unit-files --ty │ │ │ -002a95a0: 7065 2073 6572 7669 6365 0a20 2020 2072 pe service. r │ │ │ -002a95b0: 6567 6973 7465 723a 2073 6572 7669 6365 egister: service │ │ │ -002a95c0: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ -002a95d0: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ -002a95e0: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ -002a95f0: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ -002a9600: 7263 206e 6f74 2069 6e20 5b30 2c20 315d rc not in [0, 1] │ │ │ -002a9610: 0a20 2020 2063 6865 636b 5f6d 6f64 653a . check_mode: │ │ │ -002a9620: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65 false.. - name │ │ │ -002a9630: 3a20 4469 7361 626c 6520 736e 6d70 6420 : Disable snmpd │ │ │ -002a9640: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ -002a9650: 2073 6e6d 7064 2e73 6572 7669 6365 2069 snmpd.service i │ │ │ -002a9660: 7320 4d61 736b 6564 0a20 2020 2061 6e73 s Masked. ans │ │ │ -002a9670: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -002a9680: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -002a9690: 3a20 736e 6d70 642e 7365 7276 6963 650a : snmpd.service. │ │ │ -002a96a0: 2020 2020 2020 7374 6174 653a 2073 746f state: sto │ │ │ -002a96b0: 7070 6564 0a20 2020 2020 2065 6e61 626c pped. enabl │ │ │ -002a96c0: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ -002a96d0: 6d61 736b 6564 3a20 7472 7565 0a20 2020 masked: true. │ │ │ -002a96e0: 2077 6865 6e3a 2073 6572 7669 6365 5f65 when: service_e │ │ │ -002a96f0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -002a9700: 6573 2069 7320 7365 6172 6368 2822 736e es is search("sn │ │ │ -002a9710: 6d70 642e 7365 7276 6963 6522 2c20 6d75 mpd.service", mu │ │ │ -002a9720: 6c74 696c 696e 653d 5472 7565 290a 0a20 ltiline=True).. │ │ │ -002a9730: 202d 206e 616d 653a 2055 6e69 7420 536f - name: Unit So │ │ │ -002a9740: 636b 6574 2045 7869 7374 7320 2d20 736e cket Exists - sn │ │ │ -002a9750: 6d70 642e 736f 636b 6574 0a20 2020 2061 mpd.socket. a │ │ │ -002a9760: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ -002a9770: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ -002a9780: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ -002a9790: 696c 6573 2073 6e6d 7064 2e73 6f63 6b65 iles snmpd.socke │ │ │ -002a97a0: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ -002a97b0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -002a97c0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -002a97d0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -002a97e0: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ -002a97f0: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ -002a9800: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -002a9810: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -002a9820: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -002a9830: 2044 6973 6162 6c65 2073 6e6d 7064 2053 Disable snmpd S │ │ │ -002a9840: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -002a9850: 2053 6f63 6b65 7420 736e 6d70 640a 2020 Socket snmpd. │ │ │ -002a9860: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -002a9870: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -002a9880: 206e 616d 653a 2073 6e6d 7064 2e73 6f63 name: snmpd.soc │ │ │ -002a9890: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ -002a98a0: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ -002a98b0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -002a98c0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -002a98d0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ -002a98e0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ -002a98f0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ -002a9900: 6172 6368 2822 736e 6d70 642e 736f 636b arch("snmpd.sock │ │ │ -002a9910: 6574 222c 206d 756c 7469 6c69 6e65 3d54 et", multiline=T │ │ │ -002a9920: 7275 6529 0a20 2074 6167 733a 0a20 202d rue). tags:. - │ │ │ -002a9930: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -002a9940: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -002a9950: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -002a9960: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f ruption. - low_ │ │ │ -002a9970: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -002a9980: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -002a9990: 2d20 7365 7276 6963 655f 736e 6d70 645f - service_snmpd_ │ │ │ -002a99a0: 6469 7361 626c 6564 0a20 202d 2073 7065 disabled. - spe │ │ │ -002a99b0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f cial_service_blo │ │ │ -002a99c0: 636b 0a20 2077 6865 6e3a 2028 2022 736e ck. when: ( "sn │ │ │ -002a99d0: 6d70 6422 2069 6e20 616e 7369 626c 655f mpd" in ansible_ │ │ │ -002a99e0: 6661 6374 732e 7061 636b 6167 6573 2061 facts.packages a │ │ │ -002a99f0: 6e64 2022 6c69 6e75 782d 6261 7365 2220 nd "linux-base" │ │ │ -002a9a00: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -002a9a10: 2e70 6163 6b61 6765 730a 2020 2020 290a .packages. ). │ │ │ +002a8ef0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +002a8f00: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +002a8f10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002a8fe0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002a8ff0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +002a9050: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002a9060: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002a9070: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002a9080: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002a9090: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002a90a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002a90b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002a90c0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002a90d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002a90e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002a90f0: 2d20 7365 7276 6963 655f 736e 6d70 645f  - service_snmpd_
│ │ │ +002a9100: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +002a9110: 3a20 4469 7361 626c 6520 736e 6d70 6420  : Disable snmpd 
│ │ │ +002a9120: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +002a9130: 6520 7365 7276 6963 6520 736e 6d70 640a  e service snmpd.
│ │ │ +002a9140: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002a9150: 6d65 3a20 4469 7361 626c 6520 736e 6d70  me: Disable snmp
│ │ │ +002a9160: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ +002a9170: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +002a9180: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +002a9190: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +002a91a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002a91b0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002a91c0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002a91d0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +002a91e0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +002a91f0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002a9200: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002a9210: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002a9220: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +002a9230: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +002a9240: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +002a9250: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +002a9260: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002a9270: 6c65 2073 6e6d 7064 2053 6572 7669 6365  le snmpd Service
│ │ │ +002a9280: 202d 2045 6e73 7572 6520 736e 6d70 642e   - Ensure snmpd.
│ │ │ +002a9290: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +002a92a0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002a92b0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +002a92c0: 2020 2020 206e 616d 653a 2073 6e6d 7064       name: snmpd
│ │ │ +002a92d0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +002a92e0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +002a92f0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002a9300: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +002a9310: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +002a9320: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +002a9330: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002a9340: 6561 7263 6828 2273 6e6d 7064 2e73 6572  earch("snmpd.ser
│ │ │ +002a9350: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +002a9360: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +002a9370: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +002a9380: 6973 7473 202d 2073 6e6d 7064 2e73 6f63  ists - snmpd.soc
│ │ │ +002a9390: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002a93a0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002a93b0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002a93c0: 7374 2d75 6e69 742d 6669 6c65 7320 736e  st-unit-files sn
│ │ │ +002a93d0: 6d70 642e 736f 636b 6574 0a20 2020 2072  mpd.socket.    r
│ │ │ +002a93e0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +002a93f0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +002a9400: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002a9410: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002a9420: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002a9430: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002a9440: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002a9450: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002a9460: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002a9470: 6520 736e 6d70 6420 5365 7276 6963 6520  e snmpd Service 
│ │ │ +002a9480: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +002a9490: 2073 6e6d 7064 0a20 2020 2061 6e73 6962   snmpd.    ansib
│ │ │ +002a94a0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +002a94b0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +002a94c0: 736e 6d70 642e 736f 636b 6574 0a20 2020  snmpd.socket.   
│ │ │ +002a94d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002a94e0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +002a94f0: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +002a9500: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002a9510: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002a9520: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +002a9530: 6e65 7320 6973 2073 6561 7263 6828 2273  nes is search("s
│ │ │ +002a9540: 6e6d 7064 2e73 6f63 6b65 7422 2c20 6d75  nmpd.socket", mu
│ │ │ +002a9550: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +002a9560: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +002a9570: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002a9580: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002a9590: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002a95a0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002a95b0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002a95c0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002a95d0: 6365 5f73 6e6d 7064 5f64 6973 6162 6c65  ce_snmpd_disable
│ │ │ +002a95e0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +002a95f0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +002a9600: 656e 3a20 2820 2273 6e6d 7064 2220 696e  en: ( "snmpd" in
│ │ │ +002a9610: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +002a9620: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ +002a9630: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +002a9640: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +002a9650: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +002a9660: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002a9710: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002a9720: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002a9730: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ +002a8fc0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002a8fd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002a9010: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002a9020: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002a97d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002a97f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002a9820: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002a97b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002a97c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002a97e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002a9800: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002a9810: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +002a9860: 2064 6973 6162 6c65 5f73 6e6d 7064 0a0a disable_snmpd.. │ │ │ +002a9870: 636c 6173 7320 6469 7361 626c 655f 736e class disable_sn │ │ │ +002a9880: 6d70 6420 7b0a 2020 7365 7276 6963 6520 mpd {. service │ │ │ +002a9890: 7b27 736e 6d70 6427 3a0a 2020 2020 656e {'snmpd':. en │ │ │ +002a98a0: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ +002a98b0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +002a98c0: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ +002a98d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ +002a9990: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +002a99a0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ +002a9a00: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +002a9a10: 6b65 6420 3d20 5b22 736e 6d70 6422 5d0a  ked = ["snmpd"].
│ │ │  002a9a20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -002cfa90: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002cfaa0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
...include ssh_
│ │ │ -002cfb00: 7072 6976 6174 655f 6b65 795f 7065 726d  private_key_perm
│ │ │ -002cfb10: 730a 0a63 6c61 7373 2073 7368 5f70 7269  s..class ssh_pri
│ │ │ -002cfb20: 7661 7465 5f6b 6579 5f70 6572 6d73 207b  vate_key_perms {
│ │ │ -002cfb30: 0a20 2065 7865 6320 7b20 2773 7368 645f  .  exec { 'sshd_
│ │ │ -002cfb40: 7072 6976 5f6b 6579 273a 0a20 2020 2063  priv_key':.    c
│ │ │ -002cfb50: 6f6d 6d61 6e64 203d 2667 743b 2022 6368  ommand => "ch
│ │ │ -002cfb60: 6d6f 6420 3036 3030 202f 6574 632f 7373  mod 0600 /etc/ss
│ │ │ -002cfb70: 682f 2a5f 6b65 7922 2c0a 2020 2020 7061  h/*_key",.    pa
│ │ │ -002cfb80: 7468 2020 2020 3d26 6774 3b20 272f 6269  th    => '/bi
│ │ │ -002cfb90: 6e3a 2f75 7372 2f62 696e 270a 2020 7d0a  n:/usr/bin'.  }.
│ │ │ -002cfba0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002cfbb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002cfc60: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002cfc70: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002cfd00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002cfd20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002cfd40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002cfd70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002cfd80: 636f 6e66 6967 7572 653c 2f74 643e 3c2f configure
│ │ │ -002cfda0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002cfdb0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002cfdc0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002cfdd0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002cfde0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002cfdf0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -002cfe00: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -002cfe10: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -002cfe20: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -002cfe30: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -002cfe40: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -002cfe50: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -002cfe60: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002cfe70: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -002cfe80: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -002cfe90: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002cfea0: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -002cfeb0: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -002cfec0: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -002cfed0: 6f6e 735f 7373 6864 5f70 7269 7661 7465  ons_sshd_private
│ │ │ -002cfee0: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ -002cfef0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002cff00: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002cff10: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002cff20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002cff30: 6465 640a 0a2d 206e 616d 653a 2046 696e  ded..- name: Fin
│ │ │ -002cff40: 6420 726f 6f74 3a72 6f6f 742d 6f77 6e65  d root:root-owne
│ │ │ -002cff50: 6420 6b65 7973 0a20 2061 6e73 6962 6c65  d keys.  ansible
│ │ │ -002cff60: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002cff70: 3a20 6669 6e64 202d 4820 2f65 7463 2f73  : find -H /etc/s
│ │ │ -002cff80: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ -002cff90: 2d75 7365 7220 726f 6f74 202d 7265 6765  -user root -rege
│ │ │ -002cffa0: 7820 222e 2a5f 6b65 7924 220a 2020 2020  x ".*_key$".    
│ │ │ -002cffb0: 2d74 7970 6520 6620 2d67 726f 7570 2072  -type f -group r
│ │ │ -002cffc0: 6f6f 7420 2d70 6572 6d20 2f75 2b78 732c  oot -perm /u+xs,
│ │ │ -002cffd0: 672b 7877 7273 2c6f 2b78 7772 740a 2020  g+xwrs,o+xwrt.  
│ │ │ -002cffe0: 7265 6769 7374 6572 3a20 726f 6f74 5f6f  register: root_o
│ │ │ -002cfff0: 776e 6564 5f6b 6579 730a 2020 6368 616e  wned_keys.  chan
│ │ │ -002d0000: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002d0010: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ -002d0020: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ -002d0030: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ -002d0040: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -002d0050: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002d0060: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -002d0070: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -002d0080: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -002d0090: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -002d00a0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -002d00b0: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -002d00c0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -002d00d0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -002d00e0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002d00f0: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -002d0100: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -002d0110: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002d0120: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -002d0130: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -002d0140: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -002d0150: 6f6e 735f 7373 6864 5f70 7269 7661 7465  ons_sshd_private
│ │ │ -002d0160: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ -002d0170: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002d0180: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002d0190: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002d01a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002d01b0: 6465 640a 0a2d 206e 616d 653a 2053 6574  ded..- name: Set
│ │ │ -002d01c0: 2070 6572 6d69 7373 696f 6e73 2066 6f72   permissions for
│ │ │ -002d01d0: 2072 6f6f 743a 726f 6f74 2d6f 776e 6564   root:root-owned
│ │ │ -002d01e0: 206b 6579 730a 2020 616e 7369 626c 652e   keys.  ansible.
│ │ │ -002d01f0: 6275 696c 7469 6e2e 6669 6c65 3a0a 2020  builtin.file:.  
│ │ │ -002d0200: 2020 7061 7468 3a20 277b 7b20 6974 656d    path: '{{ item
│ │ │ -002d0210: 207d 7d27 0a20 2020 206d 6f64 653a 2075   }}'.    mode: u
│ │ │ -002d0220: 2d78 732c 672d 7877 7273 2c6f 2d78 7772  -xs,g-xwrs,o-xwr
│ │ │ -002d0230: 740a 2020 2020 7374 6174 653a 2066 696c  t.    state: fil
│ │ │ -002d0240: 650a 2020 7769 7468 5f69 7465 6d73 3a0a  e.  with_items:.
│ │ │ -002d0250: 2020 2d20 277b 7b20 726f 6f74 5f6f 776e    - '{{ root_own
│ │ │ -002d0260: 6564 5f6b 6579 732e 7374 646f 7574 5f6c  ed_keys.stdout_l
│ │ │ -002d0270: 696e 6573 207d 7d27 0a20 2077 6865 6e3a  ines }}'.  when:
│ │ │ -002d0280: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -002d0290: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002d02a0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -002d02b0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -002d02c0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -002d02d0: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -002d02e0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -002d02f0: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -002d0300: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -002d0310: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -002d0320: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002d0330: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -002d0340: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -002d0350: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002d0360: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -002d0370: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -002d0380: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -002d0390: 6f6e 735f 7373 6864 5f70 7269 7661 7465  ons_sshd_private
│ │ │ -002d03a0: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ -002d03b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002d03c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002d03d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002d03e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002d03f0: 6465 640a 3c2f 636f 6465 3e3c 2f70 7265  ded.

< │ │ │ +002cfb80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002cfb90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false< │ │ │ +002cfbd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +002cfbf0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +002cfc00: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +002cfc10: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +002cfc20: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +002cfc30: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002cfc40: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +002cfc50: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +002cfc60: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +002cfc70: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +002cfc80: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +002cfc90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002cfca0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +002cfcb0: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +002cfcc0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +002cfcd0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002cfce0: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +002cfcf0: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +002cfd00: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +002cfd10: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ +002cfd20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002cfd30: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002cfd40: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +002cfd50: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +002cfd60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002cfd70: 0a2d 206e 616d 653a 2046 696e 6420 726f  .- name: Find ro
│ │ │ +002cfd80: 6f74 3a72 6f6f 742d 6f77 6e65 6420 6b65  ot:root-owned ke
│ │ │ +002cfd90: 7973 0a20 2061 6e73 6962 6c65 2e62 7569  ys.  ansible.bui
│ │ │ +002cfda0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 6669  ltin.command: fi
│ │ │ +002cfdb0: 6e64 202d 4820 2f65 7463 2f73 7368 2f20  nd -H /etc/ssh/ 
│ │ │ +002cfdc0: 2d6d 6178 6465 7074 6820 3120 2d75 7365  -maxdepth 1 -use
│ │ │ +002cfdd0: 7220 726f 6f74 202d 7265 6765 7820 222e  r root -regex ".
│ │ │ +002cfde0: 2a5f 6b65 7924 220a 2020 2020 2d74 7970  *_key$".    -typ
│ │ │ +002cfdf0: 6520 6620 2d67 726f 7570 2072 6f6f 7420  e f -group root 
│ │ │ +002cfe00: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ +002cfe10: 7273 2c6f 2b78 7772 740a 2020 7265 6769  rs,o+xwrt.  regi
│ │ │ +002cfe20: 7374 6572 3a20 726f 6f74 5f6f 776e 6564  ster: root_owned
│ │ │ +002cfe30: 5f6b 6579 730a 2020 6368 616e 6765 645f  _keys.  changed_
│ │ │ +002cfe40: 7768 656e 3a20 6661 6c73 650a 2020 6661  when: false.  fa
│ │ │ +002cfe50: 696c 6564 5f77 6865 6e3a 2066 616c 7365  iled_when: false
│ │ │ +002cfe60: 0a20 2063 6865 636b 5f6d 6f64 653a 2066  .  check_mode: f
│ │ │ +002cfe70: 616c 7365 0a20 2077 6865 6e3a 2027 226c  alse.  when: '"l
│ │ │ +002cfe80: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +002cfe90: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +002cfea0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +002cfeb0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002cfec0: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +002cfed0: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +002cfee0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +002cfef0: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +002cff00: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +002cff10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002cff20: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +002cff30: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +002cff40: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +002cff50: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002cff60: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +002cff70: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +002cff80: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +002cff90: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ +002cffa0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002cffb0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002cffc0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +002cffd0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +002cffe0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002cfff0: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ +002d0000: 6d69 7373 696f 6e73 2066 6f72 2072 6f6f  missions for roo
│ │ │ +002d0010: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ +002d0020: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ +002d0030: 7469 6e2e 6669 6c65 3a0a 2020 2020 7061  tin.file:.    pa
│ │ │ +002d0040: 7468 3a20 277b 7b20 6974 656d 207d 7d27  th: '{{ item }}'
│ │ │ +002d0050: 0a20 2020 206d 6f64 653a 2075 2d78 732c  .    mode: u-xs,
│ │ │ +002d0060: 672d 7877 7273 2c6f 2d78 7772 740a 2020  g-xwrs,o-xwrt.  
│ │ │ +002d0070: 2020 7374 6174 653a 2066 696c 650a 2020    state: file.  
│ │ │ +002d0080: 7769 7468 5f69 7465 6d73 3a0a 2020 2d20  with_items:.  - 
│ │ │ +002d0090: 277b 7b20 726f 6f74 5f6f 776e 6564 5f6b  '{{ root_owned_k
│ │ │ +002d00a0: 6579 732e 7374 646f 7574 5f6c 696e 6573  eys.stdout_lines
│ │ │ +002d00b0: 207d 7d27 0a20 2077 6865 6e3a 2027 226c   }}'.  when: '"l
│ │ │ +002d00c0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +002d00d0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +002d00e0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +002d00f0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002d0100: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +002d0110: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +002d0120: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +002d0130: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +002d0140: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +002d0150: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002d0160: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +002d0170: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +002d0180: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +002d0190: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002d01a0: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +002d01b0: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +002d01c0: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +002d01d0: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ +002d01e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002d01f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002d0200: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +002d0210: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +002d0220: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002d0230: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002d02f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002d0300: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
...include ss
│ │ │ +002d0350: 685f 7072 6976 6174 655f 6b65 795f 7065  h_private_key_pe
│ │ │ +002d0360: 726d 730a 0a63 6c61 7373 2073 7368 5f70  rms..class ssh_p
│ │ │ +002d0370: 7269 7661 7465 5f6b 6579 5f70 6572 6d73  rivate_key_perms
│ │ │ +002d0380: 207b 0a20 2065 7865 6320 7b20 2773 7368   {.  exec { 'ssh
│ │ │ +002d0390: 645f 7072 6976 5f6b 6579 273a 0a20 2020  d_priv_key':.   
│ │ │ +002d03a0: 2063 6f6d 6d61 6e64 203d 2667 743b 2022   command => "
│ │ │ +002d03b0: 6368 6d6f 6420 3036 3030 202f 6574 632f  chmod 0600 /etc/
│ │ │ +002d03c0: 7373 682f 2a5f 6b65 7922 2c0a 2020 2020  ssh/*_key",.    
│ │ │ +002d03d0: 7061 7468 2020 2020 3d26 6774 3b20 272f  path    => '/
│ │ │ +002d03e0: 6269 6e3a 2f75 7372 2f62 696e 270a 2020  bin:/usr/bin'.  
│ │ │ +002d03f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Rem │ │ │ -002d1850: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002d1860: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002d1870: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
i
│ │ │ -002d18b0: 6e63 6c75 6465 2073 7368 5f70 7562 6c69  nclude ssh_publi
│ │ │ -002d18c0: 635f 6b65 795f 7065 726d 730a 0a63 6c61  c_key_perms..cla
│ │ │ -002d18d0: 7373 2073 7368 5f70 7562 6c69 635f 6b65  ss ssh_public_ke
│ │ │ -002d18e0: 795f 7065 726d 7320 7b0a 2020 6578 6563  y_perms {.  exec
│ │ │ -002d18f0: 207b 2027 7373 6864 5f70 7562 5f6b 6579   { 'sshd_pub_key
│ │ │ -002d1900: 273a 0a20 2020 2063 6f6d 6d61 6e64 203d  ':.    command =
│ │ │ -002d1910: 2667 743b 2022 6368 6d6f 6420 3036 3434  > "chmod 0644
│ │ │ -002d1920: 202f 6574 632f 7373 682f 2a2e 7075 6222   /etc/ssh/*.pub"
│ │ │ -002d1930: 2c0a 2020 2020 7061 7468 2020 2020 3d26  ,.    path    =&
│ │ │ -002d1940: 6774 3b20 272f 6269 6e3a 2f75 7372 2f62  gt; '/bin:/usr/b
│ │ │ -002d1950: 696e 270a 2020 7d0a 7d0a 3c2f 636f 6465  in'.  }.}.
Remed │ │ │ -002d1a10: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002d1a20: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ +002cfb60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002cfb70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002cfbb0: 6779 3a3c 2f74 683e 3c74 643e 636f 6e66 gy:conf │ │ │ +002cfbc0: 6967 7572 653c 2f74 643e 3c2f 7472 3e3c igure
- 
│ │ │ -002d1b60: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002d1b70: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002d1b80: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002d1b90: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002d1ba0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -002d1bb0: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ -002d1bc0: 330a 2020 2d20 4e49 5354 2d38 3030 2d31  3.  - NIST-800-1
│ │ │ -002d1bd0: 3731 2d33 2e31 332e 3130 0a20 202d 204e  71-3.13.10.  - N
│ │ │ -002d1be0: 4953 542d 3830 302d 3533 2d41 432d 3137  IST-800-53-AC-17
│ │ │ -002d1bf0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002d1c00: 2d35 332d 4143 2d36 2831 290a 2020 2d20  -53-AC-6(1).  - 
│ │ │ -002d1c10: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002d1c20: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -002d1c30: 5265 712d 322e 322e 340a 2020 2d20 5043  Req-2.2.4.  - PC
│ │ │ -002d1c40: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002d1c50: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -002d1c60: 2020 2d20 636f 6e66 6967 7572 655f 7374    - configure_st
│ │ │ -002d1c70: 7261 7465 6779 0a20 202d 2066 696c 655f  rategy.  - file_
│ │ │ -002d1c80: 7065 726d 6973 7369 6f6e 735f 7373 6864  permissions_sshd
│ │ │ -002d1c90: 5f70 7562 5f6b 6579 0a20 202d 206c 6f77  _pub_key.  - low
│ │ │ -002d1ca0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002d1cb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002d1cc0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002d1cd0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002d1ce0: 5f6e 6565 6465 640a 0a2d 206e 616d 653a  _needed..- name:
│ │ │ -002d1cf0: 2046 696e 6420 2f65 7463 2f73 7368 2f20   Find /etc/ssh/ 
│ │ │ -002d1d00: 6669 6c65 2873 290a 2020 616e 7369 626c  file(s).  ansibl
│ │ │ -002d1d10: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002d1d20: 643a 2066 696e 6420 2d50 202f 6574 632f  d: find -P /etc/
│ │ │ -002d1d30: 7373 682f 202d 6d61 7864 6570 7468 2031  ssh/ -maxdepth 1
│ │ │ -002d1d40: 202d 7065 726d 202f 752b 7873 2c67 2b78   -perm /u+xs,g+x
│ │ │ -002d1d50: 7773 2c6f 2b78 7774 2020 2d74 7970 650a  ws,o+xwt  -type.
│ │ │ -002d1d60: 2020 2020 6620 2d72 6567 6578 7479 7065      f -regextype
│ │ │ -002d1d70: 2070 6f73 6978 2d65 7874 656e 6465 6420   posix-extended 
│ │ │ -002d1d80: 2d72 6567 6578 2022 5e2e 2a5c 2e70 7562  -regex "^.*\.pub
│ │ │ -002d1d90: 2422 0a20 2072 6567 6973 7465 723a 2066  $".  register: f
│ │ │ -002d1da0: 696c 6573 5f66 6f75 6e64 0a20 2063 6861  iles_found.  cha
│ │ │ -002d1db0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002d1dc0: 0a20 2066 6169 6c65 645f 7768 656e 3a20  .  failed_when: 
│ │ │ -002d1dd0: 6661 6c73 650a 2020 6368 6563 6b5f 6d6f  false.  check_mo
│ │ │ -002d1de0: 6465 3a20 6661 6c73 650a 2020 7768 656e  de: false.  when
│ │ │ -002d1df0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -002d1e00: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -002d1e10: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -002d1e20: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002d1e30: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ -002d1e40: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ -002d1e50: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ -002d1e60: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ -002d1e70: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002d1e80: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ -002d1e90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -002d1ea0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ -002d1eb0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -002d1ec0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -002d1ed0: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ -002d1ee0: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ -002d1ef0: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ -002d1f00: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ -002d1f10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002d1f20: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002d1f30: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -002d1f40: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -002d1f50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002d1f60: 0a0a 2d20 6e61 6d65 3a20 5365 7420 7065  ..- name: Set pe
│ │ │ -002d1f70: 726d 6973 7369 6f6e 7320 666f 7220 2f65  rmissions for /e
│ │ │ -002d1f80: 7463 2f73 7368 2f20 6669 6c65 2873 290a  tc/ssh/ file(s).
│ │ │ -002d1f90: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002d1fa0: 6e2e 6669 6c65 3a0a 2020 2020 7061 7468  n.file:.    path
│ │ │ -002d1fb0: 3a20 277b 7b20 6974 656d 207d 7d27 0a20  : '{{ item }}'. 
│ │ │ -002d1fc0: 2020 206d 6f64 653a 2075 2d78 732c 672d     mode: u-xs,g-
│ │ │ -002d1fd0: 7877 732c 6f2d 7877 740a 2020 2020 7374  xws,o-xwt.    st
│ │ │ -002d1fe0: 6174 653a 2066 696c 650a 2020 7769 7468  ate: file.  with
│ │ │ -002d1ff0: 5f69 7465 6d73 3a0a 2020 2d20 277b 7b20  _items:.  - '{{ 
│ │ │ -002d2000: 6669 6c65 735f 666f 756e 642e 7374 646f  files_found.stdo
│ │ │ -002d2010: 7574 5f6c 696e 6573 207d 7d27 0a20 2077  ut_lines }}'.  w
│ │ │ -002d2020: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -002d2030: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -002d2040: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -002d2050: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -002d2060: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ -002d2070: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -002d2080: 2e31 332e 3130 0a20 202d 204e 4953 542d  .13.10.  - NIST-
│ │ │ -002d2090: 3830 302d 3533 2d41 432d 3137 2861 290a  800-53-AC-17(a).
│ │ │ -002d20a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002d20b0: 4143 2d36 2831 290a 2020 2d20 4e49 5354  AC-6(1).  - NIST
│ │ │ -002d20c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002d20d0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -002d20e0: 322e 322e 340a 2020 2d20 5043 492d 4453  2.2.4.  - PCI-DS
│ │ │ -002d20f0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -002d2100: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -002d2110: 636f 6e66 6967 7572 655f 7374 7261 7465  configure_strate
│ │ │ -002d2120: 6779 0a20 202d 2066 696c 655f 7065 726d  gy.  - file_perm
│ │ │ -002d2130: 6973 7369 6f6e 735f 7373 6864 5f70 7562  issions_sshd_pub
│ │ │ -002d2140: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ -002d2150: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002d2160: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002d2170: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002d2180: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002d2190: 6465 640a 3c2f 636f 6465 3e3c 2f70 7265  ded.
│ │ │ +002d1870: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -002d1ab0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002d1ae0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002d1b00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002d1b10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002d1b30: 2f74 683e 3c74 643e 636f 6e66 6967 7572 /th>configur │ │ │ -002d1b40: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002d1900: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002d1910: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002d1960: 3c74 723e 3c74 683e 5374 7261 7465 6779

│ │ │ +002d19a0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002d19b0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002d19c0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002d19d0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002d19e0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002d19f0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +002d1a00: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ +002d1a10: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ +002d1a20: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +002d1a30: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ +002d1a40: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ +002d1a50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002d1a60: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +002d1a70: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ +002d1a80: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +002d1a90: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +002d1aa0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ +002d1ab0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ +002d1ac0: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ +002d1ad0: 6864 5f70 7562 5f6b 6579 0a20 202d 206c  hd_pub_key.  - l
│ │ │ +002d1ae0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002d1af0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002d1b00: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002d1b10: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002d1b20: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +002d1b30: 653a 2046 696e 6420 2f65 7463 2f73 7368  e: Find /etc/ssh
│ │ │ +002d1b40: 2f20 6669 6c65 2873 290a 2020 616e 7369  / file(s).  ansi
│ │ │ +002d1b50: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002d1b60: 616e 643a 2066 696e 6420 2d50 202f 6574  and: find -P /et
│ │ │ +002d1b70: 632f 7373 682f 202d 6d61 7864 6570 7468  c/ssh/ -maxdepth
│ │ │ +002d1b80: 2031 202d 7065 726d 202f 752b 7873 2c67   1 -perm /u+xs,g
│ │ │ +002d1b90: 2b78 7773 2c6f 2b78 7774 2020 2d74 7970  +xws,o+xwt  -typ
│ │ │ +002d1ba0: 650a 2020 2020 6620 2d72 6567 6578 7479  e.    f -regexty
│ │ │ +002d1bb0: 7065 2070 6f73 6978 2d65 7874 656e 6465  pe posix-extende
│ │ │ +002d1bc0: 6420 2d72 6567 6578 2022 5e2e 2a5c 2e70  d -regex "^.*\.p
│ │ │ +002d1bd0: 7562 2422 0a20 2072 6567 6973 7465 723a  ub$".  register:
│ │ │ +002d1be0: 2066 696c 6573 5f66 6f75 6e64 0a20 2063   files_found.  c
│ │ │ +002d1bf0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002d1c00: 7365 0a20 2066 6169 6c65 645f 7768 656e  se.  failed_when
│ │ │ +002d1c10: 3a20 6661 6c73 650a 2020 6368 6563 6b5f  : false.  check_
│ │ │ +002d1c20: 6d6f 6465 3a20 6661 6c73 650a 2020 7768  mode: false.  wh
│ │ │ +002d1c30: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +002d1c40: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +002d1c50: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +002d1c60: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002d1c70: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ +002d1c80: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002d1c90: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ +002d1ca0: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ +002d1cb0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +002d1cc0: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ +002d1cd0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +002d1ce0: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ +002d1cf0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ +002d1d00: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +002d1d10: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ +002d1d20: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ +002d1d30: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ +002d1d40: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ +002d1d50: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ +002d1d60: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002d1d70: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002d1d80: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002d1d90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002d1da0: 6564 0a0a 2d20 6e61 6d65 3a20 5365 7420  ed..- name: Set 
│ │ │ +002d1db0: 7065 726d 6973 7369 6f6e 7320 666f 7220  permissions for 
│ │ │ +002d1dc0: 2f65 7463 2f73 7368 2f20 6669 6c65 2873  /etc/ssh/ file(s
│ │ │ +002d1dd0: 290a 2020 616e 7369 626c 652e 6275 696c  ).  ansible.buil
│ │ │ +002d1de0: 7469 6e2e 6669 6c65 3a0a 2020 2020 7061  tin.file:.    pa
│ │ │ +002d1df0: 7468 3a20 277b 7b20 6974 656d 207d 7d27  th: '{{ item }}'
│ │ │ +002d1e00: 0a20 2020 206d 6f64 653a 2075 2d78 732c  .    mode: u-xs,
│ │ │ +002d1e10: 672d 7877 732c 6f2d 7877 740a 2020 2020  g-xws,o-xwt.    
│ │ │ +002d1e20: 7374 6174 653a 2066 696c 650a 2020 7769  state: file.  wi
│ │ │ +002d1e30: 7468 5f69 7465 6d73 3a0a 2020 2d20 277b  th_items:.  - '{
│ │ │ +002d1e40: 7b20 6669 6c65 735f 666f 756e 642e 7374  { files_found.st
│ │ │ +002d1e50: 646f 7574 5f6c 696e 6573 207d 7d27 0a20  dout_lines }}'. 
│ │ │ +002d1e60: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002d1e70: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002d1e80: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002d1e90: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002d1ea0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002d1eb0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002d1ec0: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002d1ed0: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002d1ee0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002d1ef0: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002d1f00: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002d1f10: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002d1f20: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002d1f30: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002d1f40: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002d1f50: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002d1f60: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002d1f70: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002d1f80: 7562 5f6b 6579 0a20 202d 206c 6f77 5f63  ub_key.  - low_c
│ │ │ +002d1f90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002d1fa0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002d1fb0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +002d1fc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002d1fd0: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70  eeded.

Remediati │ │ │ +002d2090: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002d20a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

include │ │ │ +002d20f0: 2073 7368 5f70 7562 6c69 635f 6b65 795f ssh_public_key_ │ │ │ +002d2100: 7065 726d 730a 0a63 6c61 7373 2073 7368 perms..class ssh │ │ │ +002d2110: 5f70 7562 6c69 635f 6b65 795f 7065 726d _public_key_perm │ │ │ +002d2120: 7320 7b0a 2020 6578 6563 207b 2027 7373 s {. exec { 'ss │ │ │ +002d2130: 6864 5f70 7562 5f6b 6579 273a 0a20 2020 hd_pub_key':. │ │ │ +002d2140: 2063 6f6d 6d61 6e64 203d 2667 743b 2022 command => " │ │ │ +002d2150: 6368 6d6f 6420 3036 3434 202f 6574 632f chmod 0644 /etc/ │ │ │ +002d2160: 7373 682f 2a2e 7075 6222 2c0a 2020 2020 ssh/*.pub",. │ │ │ +002d2170: 7061 7468 2020 2020 3d26 6774 3b20 272f path => '/ │ │ │ +002d2180: 6269 6e3a 2f75 7372 2f62 696e 270a 2020 bin:/usr/bin'. │ │ │ +002d2190: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -170,14 +153,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -1356,31 +1356,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1407,14 +1390,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -5839,31 +5839,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--mmoodduulleess PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5884,14 +5867,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -5908,31 +5908,14 @@ │ │ │ │ Rationale: Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts │ │ │ │ at guessing and brute-force attacks. "pwquality" enforces complex password construction configuration │ │ │ │ and has the ability to limit brute-force attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5953,14 +5936,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -5973,31 +5973,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--rruunnttiimmee PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6006,14 +5989,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -8580,31 +8580,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access Control │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -8614,14 +8597,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -8637,31 +8637,14 @@ │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000368-GPOS-00154, SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312- │ │ │ │ References: GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -8671,14 +8654,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -9110,31 +9110,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an attacker gains root │ │ │ │ Rationale: access on the local system, they could tamper with or remove log data that is stored on the local │ │ │ │ system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -9155,14 +9138,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -9187,31 +9187,14 @@ │ │ │ │ intact even if the local system is compromised. Additionally, centralized logs facilitate correlation │ │ │ │ of events across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -9247,14 +9230,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( │ │ │ │ @@ -9279,31 +9279,14 @@ │ │ │ │ Rationale: of failure and any information necessary to return to operations with least disruption to system │ │ │ │ processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -9338,14 +9321,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10313,31 +10313,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10360,14 +10343,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10395,31 +10395,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, A.15.2.1, │ │ │ │ A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10456,14 +10439,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10834,31 +10834,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be installed with the following command: │ │ │ │ $ apt-get install iptables-persistent │ │ │ │ Rationale: A method of configuring and maintaining firewall rules is necessary to configure a Host Based Firewall. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_installed │ │ │ │ References: _c_i_s 4.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables-persistent" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_iptables-persistent │ │ │ │ - │ │ │ │ -class install_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10879,14 +10862,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_iptables-persistent │ │ │ │ + │ │ │ │ +class install_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "iptables-persistent" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'iptables' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10903,31 +10903,14 @@ │ │ │ │ set up firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ References: _p_c_i_d_s_s Req-1.4.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 4.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_iptables │ │ │ │ - │ │ │ │ -class install_iptables { │ │ │ │ - package { 'iptables': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10952,14 +10935,31 @@ │ │ │ │ - PCI-DSS-Req-1.4.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_iptables │ │ │ │ + │ │ │ │ +class install_iptables { │ │ │ │ + package { 'iptables': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "iptables" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( ! (systemctl is-active nftables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -10973,27 +10973,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11014,14 +11001,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -16827,31 +16827,14 @@ │ │ │ │ $ apt-get install nftables │ │ │ │ Rationale: nftables is a subsystem of the Linux kernel that can protect against threats originating from within a │ │ │ │ corporate network to include malicious mobile code and poorly configured software on a host. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nftables_installed │ │ │ │ References: _c_i_s 4.3.1 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "nftables" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_nftables │ │ │ │ - │ │ │ │ -class install_nftables { │ │ │ │ - package { 'nftables': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -16876,14 +16859,31 @@ │ │ │ │ - PCI-DSSv4-1.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nftables_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_nftables │ │ │ │ + │ │ │ │ +class install_nftables { │ │ │ │ + package { 'nftables': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "nftables" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( ! (systemctl is-active iptables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -16899,31 +16899,14 @@ │ │ │ │ The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the /etc/sysconfig/ │ │ │ │ nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.3.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -16957,14 +16940,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep -q '^installed$' && ! │ │ │ │ @@ -16987,31 +16987,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: Running both firewalld and nftables may lead to conflict. nftables is actually one of the backends for │ │ │ │ firewalld management tools. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.4.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17067,14 +17050,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "firewalld" in ansible_facts.packages and "nftables" in ansible_facts.packages │ │ │ │ and "linux-base" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'firewalld' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -17567,31 +17567,14 @@ │ │ │ │ $ apt-get install ufw │ │ │ │ Rationale: ufw controls the Linux kernel network packet filtering code. ufw allows system operators to set up │ │ │ │ firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ufw" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ufw │ │ │ │ - │ │ │ │ -class install_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17612,14 +17595,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ufw │ │ │ │ + │ │ │ │ +class install_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ufw" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -17632,27 +17632,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee uuffww PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ufw package can be removed with the following command: │ │ │ │ $ apt-get remove ufw │ │ │ │ Rationale: Running iptables.persistent with ufw enabled may lead to conflict and unexpected results. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_removed │ │ │ │ References: _c_i_s 4.3.2, 4.4.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ufw │ │ │ │ - │ │ │ │ -class remove_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17673,14 +17660,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ufw │ │ │ │ + │ │ │ │ +class remove_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -17716,31 +17716,14 @@ │ │ │ │ The ufw service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable ufw.service │ │ │ │ Rationale: The ufw service must be enabled and running in order for ufw to protect the system │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ufw_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ufw"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ufw │ │ │ │ - │ │ │ │ -class enable_ufw { │ │ │ │ - service {'ufw': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17775,14 +17758,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ufw_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( "ufw" in ansible_facts.packages and "linux-base" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ufw │ │ │ │ + │ │ │ │ +class enable_ufw { │ │ │ │ + service {'ufw': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ufw"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( │ │ │ │ @@ -17889,31 +17889,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t AC-18(a), AC-18(3), CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["bluetooth"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_bluetooth │ │ │ │ - │ │ │ │ -class disable_bluetooth { │ │ │ │ - service {'bluetooth': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17977,14 +17960,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_bluetooth_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_bluetooth │ │ │ │ + │ │ │ │ +class disable_bluetooth { │ │ │ │ + service {'bluetooth': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["bluetooth"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -24816,27 +24816,14 @@ │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove autofs │ │ │ │ Rationale: With automounting enabled anyone with physical access could attach a USB drive or disc and have its │ │ │ │ contents available in the filesystem even if they lacked permissions to mount it themselves. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_autofs_removed │ │ │ │ References: _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_autofs │ │ │ │ - │ │ │ │ -class remove_autofs { │ │ │ │ - package { 'autofs': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove autofs Package: Ensure autofs is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -24845,14 +24832,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_autofs_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_autofs │ │ │ │ + │ │ │ │ +class remove_autofs { │ │ │ │ + package { 'autofs': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove autofs │ │ │ │ @@ -24905,31 +24905,14 @@ │ │ │ │ 2.1, SR 2.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.18.1.4, A.6.2.1, A.6.2.2, A.7.1.1, A.9.2.1, A.9.2.2, │ │ │ │ A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-3, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["autofs"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_autofs │ │ │ │ - │ │ │ │ -class disable_autofs { │ │ │ │ - service {'autofs': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -24990,14 +24973,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_autofs_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "autofs" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_autofs │ │ │ │ + │ │ │ │ +class disable_autofs { │ │ │ │ + service {'autofs': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["autofs"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'autofs' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -30739,27 +30739,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_avahi │ │ │ │ - │ │ │ │ -class remove_avahi { │ │ │ │ - package { 'avahi': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall avahi Server Package: Ensure avahi is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -30771,14 +30758,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_avahi_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_avahi │ │ │ │ + │ │ │ │ +class remove_avahi { │ │ │ │ + package { 'avahi': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove avahi │ │ │ │ @@ -30820,31 +30820,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["avahi-daemon"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_avahi-daemon │ │ │ │ - │ │ │ │ -class disable_avahi-daemon { │ │ │ │ - service {'avahi-daemon': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -30906,14 +30889,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_avahi-daemon │ │ │ │ + │ │ │ │ +class disable_avahi-daemon { │ │ │ │ + service {'avahi-daemon': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["avahi-daemon"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'avahi' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -31959,31 +31959,14 @@ │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32010,14 +31993,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -32044,31 +32044,14 @@ │ │ │ │ References: 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32103,14 +32086,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33884,27 +33884,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ Rationale: NIS is the historical SUN service for central account management, more and more replaced by LDAP. NIS │ │ │ │ does not support efficiently security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33913,14 +33900,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -33974,27 +33974,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34008,14 +33995,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -34046,31 +34046,14 @@ │ │ │ │ can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: 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. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34120,14 +34103,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34168,31 +34168,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34248,14 +34231,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34303,27 +34303,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind │ │ │ │ - │ │ │ │ -class remove_bind { │ │ │ │ - package { 'bind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34335,14 +34322,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind │ │ │ │ + │ │ │ │ +class remove_bind { │ │ │ │ + package { 'bind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind │ │ │ │ @@ -34382,31 +34382,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["named"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_named │ │ │ │ - │ │ │ │ -class disable_named { │ │ │ │ - service {'named': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34462,14 +34445,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_named_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_named │ │ │ │ + │ │ │ │ +class disable_named { │ │ │ │ + service {'named': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["named"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34501,27 +34501,14 @@ │ │ │ │ The dnsmasq package can be removed with the following command: │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34530,14 +34517,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -34567,31 +34567,14 @@ │ │ │ │ The dnsmasq service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34641,14 +34624,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34697,27 +34697,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34733,14 +34720,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -34781,31 +34781,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34861,14 +34844,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34904,27 +34904,14 @@ │ │ │ │ Rationale: be used if file transfer is required. Unless there is a need to run the system as a FTP server (for │ │ │ │ example, to allow anonymous downloads), it is recommended that the package be removed to reduce the │ │ │ │ potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34935,14 +34922,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -34975,27 +34975,14 @@ │ │ │ │ $ apt-get remove ftp │ │ │ │ Unless there is a need to run the system using Internet standard File Transfer Protocol (for example, │ │ │ │ Rationale: to allow anonymous downloads), it is recommended that the package be removed to reduce the potential │ │ │ │ attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tnftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tnftp │ │ │ │ - │ │ │ │ -class remove_tnftp { │ │ │ │ - package { 'tnftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tnftp Package: Ensure tnftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35004,14 +34991,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tnftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tnftp │ │ │ │ + │ │ │ │ +class remove_tnftp { │ │ │ │ + package { 'tnftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tnftp │ │ │ │ @@ -35064,27 +35064,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35096,14 +35083,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -35143,31 +35143,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35223,14 +35206,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35272,27 +35272,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35304,14 +35291,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -35341,31 +35341,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35415,14 +35398,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35458,27 +35458,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a safeguard against │ │ │ │ its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot │ │ │ │ - │ │ │ │ -class remove_dovecot { │ │ │ │ - package { 'dovecot': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35487,14 +35474,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot │ │ │ │ + │ │ │ │ +class remove_dovecot { │ │ │ │ + package { 'dovecot': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot │ │ │ │ @@ -35524,31 +35524,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35598,14 +35581,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35648,27 +35648,14 @@ │ │ │ │ from a central database. The ldap-utils package can be removed with the following command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software is removed to │ │ │ │ reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_openldap-clients │ │ │ │ - │ │ │ │ -class remove_openldap-clients { │ │ │ │ - package { 'openldap-clients': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure openldap-clients is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35677,14 +35664,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_openldap-clients │ │ │ │ + │ │ │ │ +class remove_openldap-clients { │ │ │ │ + package { 'openldap-clients': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove openldap-clients │ │ │ │ @@ -35728,27 +35728,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_openldap-servers │ │ │ │ - │ │ │ │ -class remove_openldap-servers { │ │ │ │ - package { 'openldap-servers': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure openldap-servers is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35760,14 +35747,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_openldap-servers │ │ │ │ + │ │ │ │ +class remove_openldap-servers { │ │ │ │ + package { 'openldap-servers': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove openldap-servers │ │ │ │ @@ -35797,31 +35797,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up information │ │ │ │ from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software be disabled │ │ │ │ to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35871,14 +35854,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35976,27 +35976,14 @@ │ │ │ │ be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36017,14 +36004,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36065,31 +36065,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36143,14 +36126,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36196,31 +36196,14 @@ │ │ │ │ 4.3.3.6.8, 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36277,14 +36260,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36314,27 +36314,14 @@ │ │ │ │ The nfs-kernel-server package can be removed with the following command: │ │ │ │ $ apt-get remove nfs-kernel-server │ │ │ │ Rationale: If the system does not export NFS shares or act as an NFS client, it is recommended that these services │ │ │ │ be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ References: _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36343,14 +36330,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -36428,31 +36428,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36479,14 +36462,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "chrony" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36580,31 +36580,14 @@ │ │ │ │ working properly. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_enabled │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_chrony │ │ │ │ - │ │ │ │ -class enable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36639,14 +36622,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_chrony │ │ │ │ + │ │ │ │ +class enable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["chrony"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -36679,31 +36679,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-timesyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-timesyncd │ │ │ │ - │ │ │ │ -class enable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36749,14 +36732,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( not ( "chrony" in ansible_facts.packages ) and not ( "ntp" in ansible_facts.packages │ │ │ │ ) ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-timesyncd │ │ │ │ + │ │ │ │ +class enable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-timesyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( ! │ │ │ │ @@ -37457,27 +37457,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37509,14 +37496,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37570,31 +37570,14 @@ │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37652,14 +37635,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37714,27 +37714,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37750,14 +37737,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -37788,31 +37788,14 @@ │ │ │ │ ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or NIS+ domain. This │ │ │ │ service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37862,14 +37845,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37909,27 +37909,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37941,14 +37928,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -38013,27 +38013,14 @@ │ │ │ │ client program. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38044,14 +38031,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -38085,27 +38085,14 @@ │ │ │ │ The telnet client allows users to start connections to other systems via the telnet protocol. │ │ │ │ The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could │ │ │ │ Rationale: allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and │ │ │ │ stronger security and is included in Debian 12. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_inetutils-telnet_removed │ │ │ │ References: _c_i_s 2.2.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnet │ │ │ │ - │ │ │ │ -class remove_inetutils-telnet { │ │ │ │ - package { 'inetutils-telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure inetutils-telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38114,14 +38101,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnet │ │ │ │ + │ │ │ │ +class remove_inetutils-telnet { │ │ │ │ + package { 'inetutils-telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnet │ │ │ │ @@ -38158,27 +38158,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38190,14 +38177,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -38252,27 +38252,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38286,14 +38273,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -38336,31 +38336,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38416,14 +38399,31 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38453,27 +38453,14 @@ │ │ │ │ The rsyncd service can be used to synchronize files between systems over network links. The rsync package can be │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38482,14 +38469,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -38519,31 +38519,14 @@ │ │ │ │ The rsyncd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38598,14 +38581,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38652,27 +38652,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_cups │ │ │ │ - │ │ │ │ -class remove_cups { │ │ │ │ - package { 'cups': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall CUPS Package: Ensure cups is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38684,14 +38671,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_cups_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_cups │ │ │ │ + │ │ │ │ +class remove_cups { │ │ │ │ + package { 'cups': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove cups │ │ │ │ @@ -38730,31 +38730,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["cups"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_cups │ │ │ │ - │ │ │ │ -class disable_cups { │ │ │ │ - service {'cups': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38810,14 +38793,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_cups_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_cups │ │ │ │ + │ │ │ │ +class disable_cups { │ │ │ │ + service {'cups': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["cups"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38856,27 +38856,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a safeguard │ │ │ │ against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38885,14 +38872,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -38923,31 +38923,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be removed if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38998,14 +38981,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -39046,27 +39046,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39075,14 +39062,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -39111,31 +39111,14 @@ │ │ │ │ ****** RRuullee? ?  DDiissaabbllee SSaammbbaa ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smb"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smb │ │ │ │ - │ │ │ │ -class disable_smb { │ │ │ │ - service {'smb': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39185,14 +39168,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smb │ │ │ │ + │ │ │ │ +class disable_smb { │ │ │ │ + service {'smb': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smb"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39230,27 +39230,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_net-snmp │ │ │ │ - │ │ │ │ -class remove_net-snmp { │ │ │ │ - package { 'net-snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure net-snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39261,14 +39248,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_net-snmp │ │ │ │ + │ │ │ │ +class remove_net-snmp { │ │ │ │ + package { 'net-snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove net-snmp │ │ │ │ @@ -39298,31 +39298,14 @@ │ │ │ │ The snmpd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39373,14 +39356,31 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmpd" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmpd' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -41796,26 +41796,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41879,14 +41867,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ if test root:root = "$(stat -c "%U:%G" "$keyfile")"; then │ │ │ │ @@ -41921,23 +41921,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42001,14 +41992,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-cis_level1_workstation.html │ │ │ @@ -15060,134 +15060,134 @@ │ │ │ 0003ad30: 7073 6522 2064 6174 612d 7461 7267 6574 pse" data-target │ │ │ 0003ad40: 3d22 2369 6431 3522 2074 6162 696e 6465 ="#id15" tabinde │ │ │ 0003ad50: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 0003ad60: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 0003ad70: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 0003ad80: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 0003ad90: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -0003ada0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0003adb0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0003adc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0003add0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -0003ae00: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -0003ae10: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -0003ae20: 6169 6465 220a 7665 7273 696f 6e20 3d20 aide".version = │ │ │ -0003ae30: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation P │ │ │ -0003aef0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0003af00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +002d18f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002d1920: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002d1930: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002d1970: 3a3c 2f74 683e 3c74 643e 636f 6e66 6967 :config │ │ │ +002d1980: 7572 653c 2f74 643e 3c2f 7472 3e3c 2f74 ure
Complexity: │ │ │ -0003afd0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003afe0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003b030: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -0003b040: 6169 6465 0a0a 636c 6173 7320 696e 7374  aide..class inst
│ │ │ -0003b050: 616c 6c5f 6169 6465 207b 0a20 2070 6163  all_aide {.  pac
│ │ │ -0003b060: 6b61 6765 207b 2027 6169 6465 273a 0a20  kage { 'aide':. 
│ │ │ -0003b070: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0003b080: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -0003b090: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0003b0a0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -0003b150: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0003b160: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -0003afb0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003afc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003b000: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003b010: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -0003b230: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003b240: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003b290: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0003b2a0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0003b2b0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0003b2c0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0003b2d0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0003b2e0: 434a 4953 2d35 2e31 302e 312e 330a 2020  CJIS-5.10.1.3.  
│ │ │ -0003b2f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0003b300: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0003b310: 532d 5265 712d 3131 2e35 0a20 202d 2050  S-Req-11.5.  - P
│ │ │ -0003b320: 4349 2d44 5353 7634 2d31 312e 352e 320a  CI-DSSv4-11.5.2.
│ │ │ -0003b330: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0003b340: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0003b350: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0003b360: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0003b370: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0003b380: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0003b390: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -0003b3a0: 6964 655f 696e 7374 616c 6c65 640a 0a2d  ide_installed..-
│ │ │ -0003b3b0: 206e 616d 653a 2045 6e73 7572 6520 6169   name: Ensure ai
│ │ │ -0003b3c0: 6465 2069 7320 696e 7374 616c 6c65 640a  de is installed.
│ │ │ -0003b3d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0003b3e0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0003b3f0: 616d 653a 2061 6964 650a 2020 2020 7374  ame: aide.    st
│ │ │ -0003b400: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -0003b410: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0003b420: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0003b430: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0003b440: 7461 6773 3a0a 2020 2d20 434a 4953 2d35  tags:.  - CJIS-5
│ │ │ -0003b450: 2e31 302e 312e 330a 2020 2d20 4e49 5354  .10.1.3.  - NIST
│ │ │ -0003b460: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0003b470: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -0003b480: 3131 2e35 0a20 202d 2050 4349 2d44 5353  11.5.  - PCI-DSS
│ │ │ -0003b490: 7634 2d31 312e 352e 320a 2020 2d20 656e  v4-11.5.2.  - en
│ │ │ -0003b4a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0003b4b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0003b4c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0003b4d0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0003b4e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0003b4f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0003b500: 2070 6163 6b61 6765 5f61 6964 655f 696e   package_aide_in
│ │ │ -0003b510: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0003ada0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +0003adb0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
low
Disru │ │ │ -0003b210: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003b220: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003b260: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003b270: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0003ae50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0003ae60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0003aeb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +0003aef0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0003af00: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0003af10: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0003af20: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0003af30: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ +0003af40: 532d 352e 3130 2e31 2e33 0a20 202d 204e  S-5.10.1.3.  - N
│ │ │ +0003af50: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0003af60: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0003af70: 6571 2d31 312e 350a 2020 2d20 5043 492d  eq-11.5.  - PCI-
│ │ │ +0003af80: 4453 5376 342d 3131 2e35 2e32 0a20 202d  DSSv4-11.5.2.  -
│ │ │ +0003af90: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0003afa0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0003afb0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0003afc0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0003afd0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0003afe0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0003aff0: 2020 2d20 7061 636b 6167 655f 6169 6465    - package_aide
│ │ │ +0003b000: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +0003b010: 6d65 3a20 456e 7375 7265 2061 6964 6520  me: Ensure aide 
│ │ │ +0003b020: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +0003b030: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0003b040: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0003b050: 3a20 6169 6465 0a20 2020 2073 7461 7465  : aide.    state
│ │ │ +0003b060: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +0003b070: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0003b080: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0003b090: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0003b0a0: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ +0003b0b0: 2e31 2e33 0a20 202d 204e 4953 542d 3830  .1.3.  - NIST-80
│ │ │ +0003b0c0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0003b0d0: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ +0003b0e0: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ +0003b0f0: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ +0003b100: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0003b110: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0003b120: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0003b130: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0003b140: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0003b150: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0003b160: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ +0003b170: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation 
│ │ │ +0003b230: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +0003b240: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ +0003ae40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0003ae70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0003ae80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0003aec0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0003aed0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0003b2c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0003b2e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0003b330: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0003b380: 5f61 6964 650a 0a63 6c61 7373 2069 6e73  _aide..class ins
│ │ │ +0003b390: 7461 6c6c 5f61 6964 6520 7b0a 2020 7061  tall_aide {.  pa
│ │ │ +0003b3a0: 636b 6167 6520 7b20 2761 6964 6527 3a0a  ckage { 'aide':.
│ │ │ +0003b3b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0003b3c0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +0003b3d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +0003b490: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0003b4a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0003b4b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +0003b4f0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +0003b500: 203d 2022 6169 6465 220a 7665 7273 696f   = "aide".versio
│ │ │ +0003b510: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  0003b520: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -0004d830: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0004d840: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0004d850: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ -0004d8a0: 6765 735d 5d0a 6e61 6d65 203d 2022 7375 ges]].name = "su │ │ │ -0004d8b0: 646f 220a 7665 7273 696f 6e20 3d20 222a do".version = "* │ │ │ -0004d8c0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ -0004d8d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ -0004d980: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0004d990: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +0003b2f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0003b300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0003b340: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0003b350: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0004da20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0004dac0: 636c 7564 6520 696e 7374 616c 6c5f 7375  clude install_su
│ │ │ -0004dad0: 646f 0a0a 636c 6173 7320 696e 7374 616c  do..class instal
│ │ │ -0004dae0: 6c5f 7375 646f 207b 0a20 2070 6163 6b61  l_sudo {.  packa
│ │ │ -0004daf0: 6765 207b 2027 7375 646f 273a 0a20 2020  ge { 'sudo':.   
│ │ │ -0004db00: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0004db10: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0004db20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0004dbd0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0004dbe0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0004dbf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -0004da10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0004da40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0004da50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0004da90: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0004daa0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0004dc80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0004dd20: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0004dd30: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0004dd40: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0004dd50: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0004dd60: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0004dd70: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0004dd80: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -0004dd90: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -0004dda0: 342d 322e 322e 360a 2020 2d20 656e 6162  4-2.2.6.  - enab
│ │ │ -0004ddb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0004ddc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0004ddd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0004dde0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0004ddf0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0004de00: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0004de10: 6163 6b61 6765 5f73 7564 6f5f 696e 7374  ackage_sudo_inst
│ │ │ -0004de20: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0004de30: 6e73 7572 6520 7375 646f 2069 7320 696e  nsure sudo is in
│ │ │ -0004de40: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -0004de50: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0004de60: 653a 0a20 2020 206e 616d 653a 2073 7564  e:.    name: sud
│ │ │ -0004de70: 6f0a 2020 2020 7374 6174 653a 2070 7265  o.    state: pre
│ │ │ -0004de80: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -0004de90: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -0004dea0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0004deb0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -0004dec0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0004ded0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0004dee0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -0004def0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -0004df00: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0004df10: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0004df20: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0004df30: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0004df40: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0004df50: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0004df60: 202d 2070 6163 6b61 6765 5f73 7564 6f5f   - package_sudo_
│ │ │ -0004df70: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
│ │ │ +0004d850: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
│ │ │ -0004dc70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0004dca0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0004dcb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0004dcf0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0004dd00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +0004d8d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0004d900: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0004d920: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0004d930: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0004d950: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0004d970: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0004d980: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0004d990: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0004d9a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0004d9b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0004d9c0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0004d9d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0004d9e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0004d9f0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0004da00: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ +0004da10: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0004da20: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0004da30: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0004da40: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0004da50: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0004da60: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0004da70: 6167 655f 7375 646f 5f69 6e73 7461 6c6c  age_sudo_install
│ │ │ +0004da80: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +0004da90: 7265 2073 7564 6f20 6973 2069 6e73 7461  re sudo is insta
│ │ │ +0004daa0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +0004dab0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0004dac0: 2020 2020 6e61 6d65 3a20 7375 646f 0a20      name: sudo. 
│ │ │ +0004dad0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +0004dae0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0004daf0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0004db00: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0004db10: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +0004db20: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0004db30: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +0004db40: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0004db50: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +0004db60: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0004db70: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0004db80: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0004db90: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0004dba0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0004dbb0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0004dbc0: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ +0004dbd0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediatio │ │ │ +0004dc90: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0004dca0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ +0004dd30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0004dd50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0004dd70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0004dda0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0004ddb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0004ddc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +0004dde0: 6c6c 5f73 7564 6f0a 0a63 6c61 7373 2069  ll_sudo..class i
│ │ │ +0004ddf0: 6e73 7461 6c6c 5f73 7564 6f20 7b0a 2020  nstall_sudo {.  
│ │ │ +0004de00: 7061 636b 6167 6520 7b20 2773 7564 6f27  package { 'sudo'
│ │ │ +0004de10: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0004de20: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +0004de30: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ +0004def0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0004df00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ +0004df50: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +0004df60: 6d65 203d 2022 7375 646f 220a 7665 7273  me = "sudo".vers
│ │ │ +0004df70: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -00096870: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00096880: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00096890: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -000968e0: 6167 6573 5d5d 0a6e 616d 6520 3d20 226c ages]].name = "l │ │ │ -000968f0: 6962 7061 6d2d 6d6f 6475 6c65 7322 0a76 ibpam-modules".v │ │ │ -00096900: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ -00096920: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000969c0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000969d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000969e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00096a60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00096a90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00096ab0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00096ac0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00096ae0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00096b00: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00096b10: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ -00096b20: 6d2d 6d6f 6475 6c65 730a 0a63 6c61 7373  m-modules..class
│ │ │ -00096b30: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ -00096b40: 6d6f 6475 6c65 7320 7b0a 2020 7061 636b  modules {.  pack
│ │ │ -00096b50: 6167 6520 7b20 276c 6962 7061 6d2d 6d6f  age { 'libpam-mo
│ │ │ -00096b60: 6475 6c65 7327 3a0a 2020 2020 656e 7375  dules':.    ensu
│ │ │ -00096b70: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -00096b80: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -00096ba0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00096bb0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00096bc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00096bd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00096be0: 6431 3534 2220 7461 6269 6e64 6578 3d22 d154" tabindex=" │ │ │ -00096bf0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00096c00: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00096c10: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00096c20: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00096c30: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00096c40: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00096c50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00096c60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00096ce0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00096d10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00096d30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00096d40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00096d60: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00096d80: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00096d90: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00096da0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00096db0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00096dc0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00096dd0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -00096de0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00096df0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00096e00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00096e10: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00096e20: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00096e30: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00096e40: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ -00096e50: 735f 696e 7374 616c 6c65 640a 0a2d 206e  s_installed..- n
│ │ │ -00096e60: 616d 653a 2045 6e73 7572 6520 6c69 6270  ame: Ensure libp
│ │ │ -00096e70: 616d 2d6d 6f64 756c 6573 2069 7320 696e  am-modules is in
│ │ │ -00096e80: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -00096e90: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00096ea0: 653a 0a20 2020 206e 616d 653a 206c 6962  e:.    name: lib
│ │ │ -00096eb0: 7061 6d2d 6d6f 6475 6c65 730a 2020 2020  pam-modules.    
│ │ │ -00096ec0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -00096ed0: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ -00096ee0: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ -00096ef0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00096f00: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00096f10: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00096f20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00096f30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00096f40: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00096f50: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00096f60: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00096f70: 202d 2070 6163 6b61 6765 5f70 616d 5f6d   - package_pam_m
│ │ │ -00096f80: 6f64 756c 6573 5f69 6e73 7461 6c6c 6564  odules_installed
│ │ │ +00096870: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00096880: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00096890: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00096930: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00096980: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00096910: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00096940: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00096960: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00096970: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00096990: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000969a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000969c0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +000969d0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +000969e0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +000969f0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00096a00: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +00096a10: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00096a20: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00096a30: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00096a40: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00096a50: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00096a60: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00096a70: 6163 6b61 6765 5f70 616d 5f6d 6f64 756c  ackage_pam_modul
│ │ │ +00096a80: 6573 5f69 6e73 7461 6c6c 6564 0a0a 2d20  es_installed..- 
│ │ │ +00096a90: 6e61 6d65 3a20 456e 7375 7265 206c 6962  name: Ensure lib
│ │ │ +00096aa0: 7061 6d2d 6d6f 6475 6c65 7320 6973 2069  pam-modules is i
│ │ │ +00096ab0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +00096ac0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00096ad0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69  ge:.    name: li
│ │ │ +00096ae0: 6270 616d 2d6d 6f64 756c 6573 0a20 2020  bpam-modules.   
│ │ │ +00096af0: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +00096b00: 2020 7768 656e 3a20 2722 6c69 6270 616d    when: '"libpam
│ │ │ +00096b10: 2d72 756e 7469 6d65 2220 696e 2061 6e73  -runtime" in ans
│ │ │ +00096b20: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00096b30: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00096b40: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00096b50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00096b60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00096b70: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00096b80: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00096b90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00096ba0: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ +00096bb0: 6d6f 6475 6c65 735f 696e 7374 616c 6c65  modules_installe
│ │ │ +00096bc0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00096bd0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00096c80: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00096c90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00096d60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00096d70: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00096dc0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00096dd0: 6c69 6270 616d 2d6d 6f64 756c 6573 0a0a  libpam-modules..
│ │ │ +00096de0: 636c 6173 7320 696e 7374 616c 6c5f 6c69  class install_li
│ │ │ +00096df0: 6270 616d 2d6d 6f64 756c 6573 207b 0a20  bpam-modules {. 
│ │ │ +00096e00: 2070 6163 6b61 6765 207b 2027 6c69 6270   package { 'libp
│ │ │ +00096e10: 616d 2d6d 6f64 756c 6573 273a 0a20 2020  am-modules':.   
│ │ │ +00096e20: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00096e30: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +00096e40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00096f00: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00096f10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +00096f60: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +00096f70: 3d20 226c 6962 7061 6d2d 6d6f 6475 6c65  = "libpam-module
│ │ │ +00096f80: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │  00096f90: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Reme │ │ │ -00097cb0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00097cc0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00097cd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -00097d20: 6765 735d 5d0a 6e61 6d65 203d 2022 6c69 ges]].name = "li │ │ │ -00097d30: 6270 616d 2d70 7771 7561 6c69 7479 220a bpam-pwquality". │ │ │ -00097d40: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".
Re │ │ │ -00097e00: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00097e10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00097e20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +00096d40: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00096d50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00096d90: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00096da0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -00097ec0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00097f10: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00097ea0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00097ed0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00097ef0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00097f00: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00097f20: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00097f30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00097f50: 7564 6520 696e 7374 616c 6c5f 6c69 6270  ude install_libp
│ │ │ -00097f60: 616d 2d70 7771 7561 6c69 7479 0a0a 636c  am-pwquality..cl
│ │ │ -00097f70: 6173 7320 696e 7374 616c 6c5f 6c69 6270  ass install_libp
│ │ │ -00097f80: 616d 2d70 7771 7561 6c69 7479 207b 0a20  am-pwquality {. 
│ │ │ -00097f90: 2070 6163 6b61 6765 207b 2027 6c69 6270   package { 'libp
│ │ │ -00097fa0: 616d 2d70 7771 7561 6c69 7479 273a 0a20  am-pwquality':. 
│ │ │ -00097fb0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00097fc0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -00097fd0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00097fe0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00098090: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000980a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00098120: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00098140: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00098190: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000981c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -000981e0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000981f0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00098200: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00098210: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00098220: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00098230: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00098240: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00098250: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00098260: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00098270: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00098280: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ -00098290: 5f70 7771 7561 6c69 7479 5f69 6e73 7461  _pwquality_insta
│ │ │ -000982a0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -000982b0: 7375 7265 206c 6962 7061 6d2d 7077 7175  sure libpam-pwqu
│ │ │ -000982c0: 616c 6974 7920 6973 2069 6e73 7461 6c6c  ality is install
│ │ │ -000982d0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000982e0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000982f0: 2020 6e61 6d65 3a20 6c69 6270 616d 2d70    name: libpam-p
│ │ │ -00098300: 7771 7561 6c69 7479 0a20 2020 2073 7461  wquality.    sta
│ │ │ -00098310: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00098320: 656e 3a20 2722 6c69 6270 616d 2d72 756e  en: '"libpam-run
│ │ │ -00098330: 7469 6d65 2220 696e 2061 6e73 6962 6c65  time" in ansible
│ │ │ -00098340: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00098350: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00098360: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00098370: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00098380: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00098390: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000983a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000983b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000983c0: 7061 636b 6167 655f 7061 6d5f 7077 7175  package_pam_pwqu
│ │ │ -000983d0: 616c 6974 795f 696e 7374 616c 6c65 640a  ality_installed.
│ │ │ +00097cb0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00097cc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00097cd0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:< │ │ │ -00098130: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00098150: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000981a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000981b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ +00097d50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00097d80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00097da0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00097db0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00097dd0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00097df0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00097e00: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00097e10: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00097e20: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00097e30: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00097e40: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00097e50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00097e60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00097e70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00097e80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00097e90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00097ea0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00097eb0: 636b 6167 655f 7061 6d5f 7077 7175 616c  ckage_pam_pwqual
│ │ │ +00097ec0: 6974 795f 696e 7374 616c 6c65 640a 0a2d  ity_installed..-
│ │ │ +00097ed0: 206e 616d 653a 2045 6e73 7572 6520 6c69   name: Ensure li
│ │ │ +00097ee0: 6270 616d 2d70 7771 7561 6c69 7479 2069  bpam-pwquality i
│ │ │ +00097ef0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +00097f00: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00097f10: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00097f20: 206c 6962 7061 6d2d 7077 7175 616c 6974   libpam-pwqualit
│ │ │ +00097f30: 790a 2020 2020 7374 6174 653a 2070 7265  y.    state: pre
│ │ │ +00097f40: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ +00097f50: 6962 7061 6d2d 7275 6e74 696d 6522 2069  ibpam-runtime" i
│ │ │ +00097f60: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00097f70: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00097f80: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +00097f90: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00097fa0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00097fb0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00097fc0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00097fd0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00097fe0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00097ff0: 5f70 616d 5f70 7771 7561 6c69 7479 5f69  _pam_pwquality_i
│ │ │ +00098000: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00098010: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000980c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000980d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000980e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000980f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00098100: 7365 2220 6964 3d22 6964 3135 3822 3e3c se" id="id158">< │ │ │ +00098110: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00098120: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00098130: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00098140: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00098150: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00098160: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00098170: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000981b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000981c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000981e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000981f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +00098210: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7077  nstall_libpam-pw
│ │ │ +00098220: 7175 616c 6974 790a 0a63 6c61 7373 2069  quality..class i
│ │ │ +00098230: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7077  nstall_libpam-pw
│ │ │ +00098240: 7175 616c 6974 7920 7b0a 2020 7061 636b  quality {.  pack
│ │ │ +00098250: 6167 6520 7b20 276c 6962 7061 6d2d 7077  age { 'libpam-pw
│ │ │ +00098260: 7175 616c 6974 7927 3a0a 2020 2020 656e  quality':.    en
│ │ │ +00098270: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +00098280: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +00098340: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00098350: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00098360: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00098370: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00098380: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00098390: 7365 2220 6964 3d22 6964 3135 3922 3e3c se" id="id159">< │ │ │ +000983a0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000983b0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000983c0: 6c69 6270 616d 2d70 7771 7561 6c69 7479 libpam-pwquality │ │ │ +000983d0: 220a 7665 7273 696f 6e20 3d20 222a 220a ".version = "*". │ │ │ 000983e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediation O │ │ │ -00098f40: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00098f50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00098f60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00098fa0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00098fb0: 6520 3d20 226c 6962 7061 6d2d 7275 6e74  e = "libpam-runt
│ │ │ -00098fc0: 696d 6522 0a76 6572 7369 6f6e 203d 2022  ime".version = "
│ │ │ -00098fd0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -00098fe0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -00099090: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000990a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00099120: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00099140: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00099190: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -000991e0: 5f6c 6962 7061 6d2d 7275 6e74 696d 650a  _libpam-runtime.
│ │ │ -000991f0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6c  .class install_l
│ │ │ -00099200: 6962 7061 6d2d 7275 6e74 696d 6520 7b0a  ibpam-runtime {.
│ │ │ -00099210: 2020 7061 636b 6167 6520 7b20 276c 6962    package { 'lib
│ │ │ -00099220: 7061 6d2d 7275 6e74 696d 6527 3a0a 2020  pam-runtime':.  
│ │ │ -00099230: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00099240: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -00099250: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00099260: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00099310: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00099320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -00099150: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00099160: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000991a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000991b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -000993a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000993c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00099410: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ -00099460: 6c69 6270 616d 2d72 756e 7469 6d65 2069  libpam-runtime i
│ │ │ -00099470: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00099480: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00099490: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -000994a0: 206c 6962 7061 6d2d 7275 6e74 696d 650a   libpam-runtime.
│ │ │ -000994b0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000994c0: 6e74 0a20 2074 6167 733a 0a20 202d 2065  nt.  tags:.  - e
│ │ │ -000994d0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000994e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000994f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00099500: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00099510: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00099520: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00099530: 2d20 7061 636b 6167 655f 7061 6d5f 7275  - package_pam_ru
│ │ │ -00099540: 6e74 696d 655f 696e 7374 616c 6c65 640a  ntime_installed.
│ │ │ +00098f30: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00098f40: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00098f50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disr │ │ │ -000993d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000993e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00099420: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00099430: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00098fd0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00098ff0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00099040: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00099070: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Ensure
│ │ │ +00099090: 206c 6962 7061 6d2d 7275 6e74 696d 6520   libpam-runtime 
│ │ │ +000990a0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000990b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000990c0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000990d0: 3a20 6c69 6270 616d 2d72 756e 7469 6d65  : libpam-runtime
│ │ │ +000990e0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +000990f0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00099100: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00099110: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00099120: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00099130: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00099140: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00099150: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00099160: 202d 2070 6163 6b61 6765 5f70 616d 5f72   - package_pam_r
│ │ │ +00099170: 756e 7469 6d65 5f69 6e73 7461 6c6c 6564  untime_installed
│ │ │ +00099180: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00099240: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00099250: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +00098fe0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00099000: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00099050: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00099060: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00099320: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00099330: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00099380: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ +00099390: 6962 7061 6d2d 7275 6e74 696d 650a 0a63  ibpam-runtime..c
│ │ │ +000993a0: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ +000993b0: 7061 6d2d 7275 6e74 696d 6520 7b0a 2020  pam-runtime {.  
│ │ │ +000993c0: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +000993d0: 6d2d 7275 6e74 696d 6527 3a0a 2020 2020  m-runtime':.    
│ │ │ +000993e0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000993f0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +00099400: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000994b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000994c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000994d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low< │ │ │ -000cf7c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -000cf810: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:low
Disrup │ │ │ +00099300: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00099310: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00099350: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00099360: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -000cf780: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -000cf7a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -000cf7f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000cf800: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ -000cf830: 6c6c 5f61 7070 6172 6d6f 722d 7574 696c  ll_apparmor-util
│ │ │ -000cf840: 730a 0a63 6c61 7373 2069 6e73 7461 6c6c  s..class install
│ │ │ -000cf850: 5f61 7070 6172 6d6f 722d 7574 696c 7320  _apparmor-utils 
│ │ │ -000cf860: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ -000cf870: 7070 6172 6d6f 722d 7574 696c 7327 3a0a  pparmor-utils':.
│ │ │ -000cf880: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000cf890: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -000cf8a0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -000cf960: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000cf970: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000cfa00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000cfa20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000cfa40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000cfa70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000cfa80: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000cfa90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Ensur
│ │ │ -000cfab0: 6520 6170 7061 726d 6f72 2d75 7469 6c73  e apparmor-utils
│ │ │ -000cfac0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000cfad0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000cfae0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000cfaf0: 653a 2061 7070 6172 6d6f 722d 7574 696c  e: apparmor-util
│ │ │ -000cfb00: 730a 2020 2020 7374 6174 653a 2070 7265  s.    state: pre
│ │ │ -000cfb10: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ -000cfb20: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ -000cfb30: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ -000cfb40: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ -000cfb50: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ -000cfb60: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ -000cfb70: 225d 0a20 2074 6167 733a 0a20 202d 2065  "].  tags:.  - e
│ │ │ -000cfb80: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000cfb90: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000cfba0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000cfbb0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000cfbc0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000cfbd0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000cfbe0: 2d20 7061 636b 6167 655f 6170 7061 726d  - package_apparm
│ │ │ -000cfbf0: 6f72 2d75 7469 6c73 5f69 6e73 7461 6c6c  or-utils_install
│ │ │ -000cfc00: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000cf590: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +000cf5a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +000cf630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000cf650: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000cf660: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000cf670: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000cf680: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000cf6a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ +000cf6e0: 7265 2061 7070 6172 6d6f 722d 7574 696c  re apparmor-util
│ │ │ +000cf6f0: 7320 6973 2069 6e73 7461 6c6c 6564 0a20  s is installed. 
│ │ │ +000cf700: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000cf710: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000cf720: 6d65 3a20 6170 7061 726d 6f72 2d75 7469  me: apparmor-uti
│ │ │ +000cf730: 6c73 0a20 2020 2073 7461 7465 3a20 7072  ls.    state: pr
│ │ │ +000cf740: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ +000cf750: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ +000cf760: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ +000cf770: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ +000cf780: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ +000cf790: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ +000cf7a0: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ +000cf7b0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000cf7c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000cf7d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000cf7e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000cf7f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000cf800: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000cf810: 202d 2070 6163 6b61 6765 5f61 7070 6172   - package_appar
│ │ │ +000cf820: 6d6f 722d 7574 696c 735f 696e 7374 616c  mor-utils_instal
│ │ │ +000cf830: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +000cf8f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000cf900: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +000cf980: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000cf9a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000cf9f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000cfa20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +000cfa40: 6c5f 6170 7061 726d 6f72 2d75 7469 6c73  l_apparmor-utils
│ │ │ +000cfa50: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +000cfa60: 6170 7061 726d 6f72 2d75 7469 6c73 207b  apparmor-utils {
│ │ │ +000cfa70: 0a20 2070 6163 6b61 6765 207b 2027 6170  .  package { 'ap
│ │ │ +000cfa80: 7061 726d 6f72 2d75 7469 6c73 273a 0a20  parmor-utils':. 
│ │ │ +000cfa90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000cfaa0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +000cfab0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +000cfac0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +000cfb70: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000cfb80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000cfb90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000cfbd0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +000cfbe0: 6520 3d20 2261 7070 6172 6d6f 722d 7574  e = "apparmor-ut
│ │ │ +000cfbf0: 696c 7322 0a76 6572 7369 6f6e 203d 2022  ils".version = "
│ │ │ +000cfc00: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 000cfc10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediatio │ │ │ -000d0880: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000d0890: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -000d08a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +000cf990: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000cf9b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000cfa00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000cfa10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -000d0a70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000d0b10: 636c 7564 6520 696e 7374 616c 6c5f 6170  clude install_ap
│ │ │ -000d0b20: 7061 726d 6f72 0a0a 636c 6173 7320 696e  parmor..class in
│ │ │ -000d0b30: 7374 616c 6c5f 6170 7061 726d 6f72 207b  stall_apparmor {
│ │ │ -000d0b40: 0a20 2070 6163 6b61 6765 207b 2027 6170  .  package { 'ap
│ │ │ -000d0b50: 7061 726d 6f72 273a 0a20 2020 2065 6e73  parmor':.    ens
│ │ │ -000d0b60: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000d0b70: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -000d0b90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000d0c30: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000d0c40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000d0c50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ -000d0a60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000d0a90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000d0aa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000d0ae0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000d0af0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -000d0cf0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000d0d40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000d0cd0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000d0d00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000d0d20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000d0d30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000d0d50: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000d0d60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000d0d80: 6d65 3a20 456e 7375 7265 2061 7070 6172  me: Ensure appar
│ │ │ -000d0d90: 6d6f 7220 6973 2069 6e73 7461 6c6c 6564  mor is installed
│ │ │ -000d0da0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -000d0db0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -000d0dc0: 6e61 6d65 3a20 6170 7061 726d 6f72 0a20  name: apparmor. 
│ │ │ -000d0dd0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -000d0de0: 740a 2020 7768 656e 3a20 616e 7369 626c  t.  when: ansibl
│ │ │ -000d0df0: 655f 7669 7274 7561 6c69 7a61 7469 6f6e  e_virtualization
│ │ │ -000d0e00: 5f74 7970 6520 6e6f 7420 696e 205b 2264  _type not in ["d
│ │ │ -000d0e10: 6f63 6b65 7222 2c20 226c 7863 222c 2022  ocker", "lxc", "
│ │ │ -000d0e20: 6f70 656e 767a 222c 2022 706f 646d 616e  openvz", "podman
│ │ │ -000d0e30: 222c 2022 636f 6e74 6169 6e65 7222 5d0a  ", "container"].
│ │ │ -000d0e40: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000d0e50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000d0e60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000d0e70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000d0e80: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000d0e90: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000d0ea0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000d0eb0: 6163 6b61 6765 5f61 7070 6172 6d6f 725f  ackage_apparmor_
│ │ │ -000d0ec0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +000d0910: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000d0920: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000d0940: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000d0950: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000d0970: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000d0990: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000d09c0: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ +000d09d0: 7572 6520 6170 7061 726d 6f72 2069 7320  ure apparmor is 
│ │ │ +000d09e0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +000d09f0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000d0a00: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ +000d0a10: 7070 6172 6d6f 720a 2020 2020 7374 6174  pparmor.    stat
│ │ │ +000d0a20: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +000d0a30: 6e3a 2061 6e73 6962 6c65 5f76 6972 7475  n: ansible_virtu
│ │ │ +000d0a40: 616c 697a 6174 696f 6e5f 7479 7065 206e  alization_type n
│ │ │ +000d0a50: 6f74 2069 6e20 5b22 646f 636b 6572 222c  ot in ["docker",
│ │ │ +000d0a60: 2022 6c78 6322 2c20 226f 7065 6e76 7a22   "lxc", "openvz"
│ │ │ +000d0a70: 2c20 2270 6f64 6d61 6e22 2c20 2263 6f6e  , "podman", "con
│ │ │ +000d0a80: 7461 696e 6572 225d 0a20 2074 6167 733a  tainer"].  tags:
│ │ │ +000d0a90: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000d0aa0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000d0ab0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000d0ac0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000d0ad0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000d0ae0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000d0af0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000d0b00: 6170 7061 726d 6f72 5f69 6e73 7461 6c6c  apparmor_install
│ │ │ +000d0b10: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000d0b20: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000d0bd0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000d0be0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000d0c60: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000d0c80: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000d0cd0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000d0d20: 5f61 7070 6172 6d6f 720a 0a63 6c61 7373  _apparmor..class
│ │ │ +000d0d30: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f   install_apparmo
│ │ │ +000d0d40: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ +000d0d50: 2761 7070 6172 6d6f 7227 3a0a 2020 2020  'apparmor':.    
│ │ │ +000d0d60: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000d0d70: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000d0d80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000d0e30: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000d0e40: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000d0e50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000d0ea0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000d0eb0: 2022 6170 7061 726d 6f72 220a 7665 7273   "apparmor".vers
│ │ │ +000d0ec0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remediation OS │ │ │ -000db100: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000db110: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000db120: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000db160: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000db170: 203d 2022 7379 7374 656d 642d 6a6f 7572   = "systemd-jour
│ │ │ -000db180: 6e61 6c2d 7265 6d6f 7465 220a 7665 7273  nal-remote".vers
│ │ │ -000db190: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000db250: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000db260: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000db270: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000db2a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +000d0c90: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000d0ca0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000d0ce0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000d0cf0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -000db310: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000db330: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000db360: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000db380: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000db2f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000db300: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000db340: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000db350: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000db3a0: 696e 7374 616c 6c5f 7379 7374 656d 642d install_systemd- │ │ │ -000db3b0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 0a0a journal-remote.. │ │ │ -000db3c0: 636c 6173 7320 696e 7374 616c 6c5f 7379 class install_sy │ │ │ -000db3d0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265 stemd-journal-re │ │ │ -000db3e0: 6d6f 7465 207b 0a20 2070 6163 6b61 6765 mote {. package │ │ │ -000db3f0: 207b 2027 7379 7374 656d 642d 6a6f 7572 { 'systemd-jour │ │ │ -000db400: 6e61 6c2d 7265 6d6f 7465 273a 0a20 2020 nal-remote':. │ │ │ -000db410: 2065 6e73 7572 6520 3d26 6774 3b20 2769 ensure => 'i │ │ │ -000db420: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d nstalled',. }.} │ │ │ -000db430: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
Remediation Ans │ │ │ -000db4f0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000db500: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000db5d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000db5e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000db630: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000db640: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000db650: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000db660: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000db670: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000db680: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000db690: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000db6a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000db6b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000db6c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000db6d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000db6e0: 202d 2070 6163 6b61 6765 5f73 7973 7465   - package_syste
│ │ │ -000db6f0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000db700: 655f 696e 7374 616c 6c65 640a 0a2d 206e  e_installed..- n
│ │ │ -000db710: 616d 653a 2045 6e73 7572 6520 7379 7374  ame: Ensure syst
│ │ │ -000db720: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000db730: 7465 2069 7320 696e 7374 616c 6c65 640a  te is installed.
│ │ │ -000db740: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000db750: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000db760: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ -000db770: 726e 616c 2d72 656d 6f74 650a 2020 2020  rnal-remote.    
│ │ │ -000db780: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -000db790: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -000db7a0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -000db7b0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -000db7c0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000db7d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000db7e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000db7f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000db800: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000db810: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000db820: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000db830: 6163 6b61 6765 5f73 7973 7465 6d64 2d6a  ackage_systemd-j
│ │ │ -000db840: 6f75 726e 616c 2d72 656d 6f74 655f 696e  ournal-remote_in
│ │ │ -000db850: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000db0f0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000db100: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000db110: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disru │ │ │ -000db5b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000db5c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000db600: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000db610: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000db190: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000db1b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000db200: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000db250: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000db260: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000db270: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000db280: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000db290: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000db2a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000db2b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000db2c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000db2d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000db2e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000db2f0: 2020 2d20 7061 636b 6167 655f 7379 7374    - package_syst
│ │ │ +000db300: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ +000db310: 7465 5f69 6e73 7461 6c6c 6564 0a0a 2d20  te_installed..- 
│ │ │ +000db320: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ +000db330: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000db340: 6f74 6520 6973 2069 6e73 7461 6c6c 6564  ote is installed
│ │ │ +000db350: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000db360: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000db370: 6e61 6d65 3a20 7379 7374 656d 642d 6a6f  name: systemd-jo
│ │ │ +000db380: 7572 6e61 6c2d 7265 6d6f 7465 0a20 2020  urnal-remote.   
│ │ │ +000db390: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +000db3a0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +000db3b0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +000db3c0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000db3d0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +000db3e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000db3f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000db400: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000db410: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000db420: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000db430: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000db440: 7061 636b 6167 655f 7379 7374 656d 642d  package_systemd-
│ │ │ +000db450: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 5f69  journal-remote_i
│ │ │ +000db460: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000db470: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000db520: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000db530: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000db540: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000db550: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000db560: 7365 2220 6964 3d22 6964 3237 3522 3e3c se" id="id275">< │ │ │ +000db570: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000db580: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000db590: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000db5a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000db5b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +000db640: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000db650: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ +000db1c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000db1d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000db210: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000db220: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +000db5c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000db5d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000db610: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000db620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +000db670: 6e73 7461 6c6c 5f73 7973 7465 6d64 2d6a  nstall_systemd-j
│ │ │ +000db680: 6f75 726e 616c 2d72 656d 6f74 650a 0a63  ournal-remote..c
│ │ │ +000db690: 6c61 7373 2069 6e73 7461 6c6c 5f73 7973  lass install_sys
│ │ │ +000db6a0: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000db6b0: 6f74 6520 7b0a 2020 7061 636b 6167 6520  ote {.  package 
│ │ │ +000db6c0: 7b20 2773 7973 7465 6d64 2d6a 6f75 726e  { 'systemd-journ
│ │ │ +000db6d0: 616c 2d72 656d 6f74 6527 3a0a 2020 2020  al-remote':.    
│ │ │ +000db6e0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000db6f0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000db700: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000db7b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000db7c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000db7d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000db820: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000db830: 2022 7379 7374 656d 642d 6a6f 7572 6e61   "systemd-journa
│ │ │ +000db840: 6c2d 7265 6d6f 7465 220a 7665 7273 696f  l-remote".versio
│ │ │ +000db850: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  000db860: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedi │ │ │ -000dc980: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000dc990: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000dc9a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000dc9e0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -000dc9f0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -000dca00: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ -000dca10: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ -000dca20: 6f61 6422 5d0a 3c2f 636f 6465 3e3c 2f70  oad"].

Remediatio │ │ │ -000dcae0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000dcaf0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000dcb80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000dcba0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000dcbb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000dcbc0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000dcbd0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000dcbf0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ -000dcc30: 6c65 5f73 7973 7465 6d64 2d6a 6f75 726e  le_systemd-journ
│ │ │ -000dcc40: 616c 2d75 706c 6f61 640a 0a63 6c61 7373  al-upload..class
│ │ │ -000dcc50: 2065 6e61 626c 655f 7379 7374 656d 642d   enable_systemd-
│ │ │ -000dcc60: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 207b  journal-upload {
│ │ │ -000dcc70: 0a20 2073 6572 7669 6365 207b 2773 7973  .  service {'sys
│ │ │ -000dcc80: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ -000dcc90: 6f61 6427 3a0a 2020 2020 656e 6162 6c65  oad':.    enable
│ │ │ -000dcca0: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -000dccb0: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -000dccc0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -000dccd0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000dcd80: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000dcd90: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000dce30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000dced0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000dcee0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000dcef0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000dcf00: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000dcf10: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000dcf20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000dcf30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000dcf40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000dcf50: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000dcf60: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000dcf70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000dcf80: 2073 6572 7669 6365 5f73 7973 7465 6d64   service_systemd
│ │ │ -000dcf90: 2d6a 6f75 726e 616c 2d75 706c 6f61 645f  -journal-upload_
│ │ │ -000dcfa0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -000dcfb0: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ -000dcfc0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 2053  journal-upload S
│ │ │ -000dcfd0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000dcfe0: 7365 7276 6963 6520 7379 7374 656d 642d  service systemd-
│ │ │ -000dcff0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 0a20  journal-upload. 
│ │ │ -000dd000: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -000dd010: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000dd020: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -000dd030: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000dd040: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000dd050: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -000dd060: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ -000dd070: 6162 6c65 2073 7973 7465 6d64 2d6a 6f75  able systemd-jou
│ │ │ -000dd080: 726e 616c 2d75 706c 6f61 6420 5365 7276  rnal-upload Serv
│ │ │ -000dd090: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -000dd0a0: 7669 6365 2073 7973 7465 6d64 2d6a 6f75  vice systemd-jou
│ │ │ -000dd0b0: 726e 616c 2d75 706c 6f61 640a 2020 2020  rnal-upload.    
│ │ │ -000dd0c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000dd0d0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -000dd0e0: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ -000dd0f0: 726e 616c 2d75 706c 6f61 640a 2020 2020  rnal-upload.    
│ │ │ -000dd100: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ -000dd110: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ -000dd120: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ -000dd130: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ -000dd140: 6e3a 0a20 2020 202d 2027 2273 7973 7465  n:.    - '"syste
│ │ │ -000dd150: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000dd160: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000dd170: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000dd180: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000dd190: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000dd1a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000dd1b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000dd1c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000dd1d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000dd1e0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000dd1f0: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75  vice_systemd-jou
│ │ │ -000dd200: 726e 616c 2d75 706c 6f61 645f 656e 6162  rnal-upload_enab
│ │ │ -000dd210: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -000dd220: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -000dd230: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ -000dd240: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -000dd250: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000dd260: 7327 0a20 202d 2028 2061 6e73 6962 6c65  s'.  - ( ansible
│ │ │ -000dd270: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ -000dd280: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ -000dd290: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ -000dd2a0: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ -000dd2b0: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ -000dd2c0: 2020 2061 6e64 2022 7379 7374 656d 642d     and "systemd-
│ │ │ -000dd2d0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 2220  journal-remote" 
│ │ │ -000dd2e0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000dd2f0: 2e70 6163 6b61 6765 7320 290a 3c2f 636f  .packages ).
│ │ │ -000dce20: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000dce50: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000dce60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000dcea0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000dceb0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +000dca40: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000dca60: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000dca90: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000dca20: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000dca30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000dca50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000dca70: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000dca80: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000dcad0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000dcae0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000dcaf0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000dcb00: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000dcb10: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +000dcb20: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000dcb30: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000dcb40: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000dcb50: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000dcb60: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000dcb70: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +000dcb80: 6963 655f 7379 7374 656d 642d 6a6f 7572 ice_systemd-jour │ │ │ +000dcb90: 6e61 6c2d 7570 6c6f 6164 5f65 6e61 626c nal-upload_enabl │ │ │ +000dcba0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +000dcbb0: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e le systemd-journ │ │ │ +000dcbc0: 616c 2d75 706c 6f61 6420 5365 7276 6963 al-upload Servic │ │ │ +000dcbd0: 6520 2d20 456e 6162 6c65 2073 6572 7669 e - Enable servi │ │ │ +000dcbe0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e ce systemd-journ │ │ │ +000dcbf0: 616c 2d75 706c 6f61 640a 2020 626c 6f63 al-upload. bloc │ │ │ +000dcc00: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ +000dcc10: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ +000dcc20: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ +000dcc30: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +000dcc40: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ +000dcc50: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ +000dcc60: 202d 206e 616d 653a 2045 6e61 626c 6520 - name: Enable │ │ │ +000dcc70: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000dcc80: 7570 6c6f 6164 2053 6572 7669 6365 202d upload Service - │ │ │ +000dcc90: 2045 6e61 626c 6520 5365 7276 6963 6520 Enable Service │ │ │ +000dcca0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000dccb0: 7570 6c6f 6164 0a20 2020 2061 6e73 6962 upload. ansib │ │ │ +000dccc0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +000dccd0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +000dcce0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000dccf0: 7570 6c6f 6164 0a20 2020 2020 2065 6e61 upload. ena │ │ │ +000dcd00: 626c 6564 3a20 7472 7565 0a20 2020 2020 bled: true. │ │ │ +000dcd10: 2073 7461 7465 3a20 7374 6172 7465 640a state: started. │ │ │ +000dcd20: 2020 2020 2020 6d61 736b 6564 3a20 6661 masked: fa │ │ │ +000dcd30: 6c73 650a 2020 2020 7768 656e 3a0a 2020 lse. when:. │ │ │ +000dcd40: 2020 2d20 2722 7379 7374 656d 642d 6a6f - '"systemd-jo │ │ │ +000dcd50: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e urnal-remote" in │ │ │ +000dcd60: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +000dcd70: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ +000dcd80: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000dcd90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +000dcda0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +000dcdb0: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +000dcdc0: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +000dcdd0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000dcde0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +000dcdf0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000dce00: 7570 6c6f 6164 5f65 6e61 626c 6564 0a20 upload_enabled. │ │ │ +000dce10: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ +000dce20: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ +000dce30: 0a20 202d 2027 226c 696e 7578 2d62 6173 . - '"linux-bas │ │ │ +000dce40: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +000dce50: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +000dce60: 2d20 2820 616e 7369 626c 655f 7669 7274 - ( ansible_virt │ │ │ +000dce70: 7561 6c69 7a61 7469 6f6e 5f74 7970 6520 ualization_type │ │ │ +000dce80: 6e6f 7420 696e 205b 2264 6f63 6b65 7222 not in ["docker" │ │ │ +000dce90: 2c20 226c 7863 222c 2022 6f70 656e 767a , "lxc", "openvz │ │ │ +000dcea0: 222c 2022 706f 646d 616e 222c 2022 636f ", "podman", "co │ │ │ +000dceb0: 6e74 6169 6e65 7222 5d0a 2020 2020 616e ntainer"]. an │ │ │ +000dcec0: 6420 2273 7973 7465 6d64 2d6a 6f75 726e d "systemd-journ │ │ │ +000dced0: 616c 2d72 656d 6f74 6522 2069 6e20 616e al-remote" in an │ │ │ +000dcee0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +000dcef0: 6167 6573 2029 0a3c 2f63 6f64 653e 3c2f ages ).

Remediati │ │ │ +000dcfb0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000dcfc0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000dd040: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000dd050: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000dd070: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000dd080: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000dd0a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000dd0c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000dd0f0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +000dd100: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ +000dd110: 6e61 6c2d 7570 6c6f 6164 0a0a 636c 6173  nal-upload..clas
│ │ │ +000dd120: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ +000dd130: 2d6a 6f75 726e 616c 2d75 706c 6f61 6420  -journal-upload 
│ │ │ +000dd140: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ +000dd150: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000dd160: 6c6f 6164 273a 0a20 2020 2065 6e61 626c  load':.    enabl
│ │ │ +000dd170: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +000dd180: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000dd190: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +000dd1a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000dd250: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000dd260: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000dd270: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +000dd2c0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +000dd2d0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +000dd2e0: 205b 2273 7973 7465 6d64 2d6a 6f75 726e   ["systemd-journ
│ │ │ +000dd2f0: 616c 2d75 706c 6f61 6422 5d0a 3c2f 636f  al-upload"].
< │ │ │ 000dd310: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000dd320: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000dd330: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000dd340: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000dd350: 6432 3832 2220 7461 6269 6e64 6578 3d22 d282" tabindex=" │ │ │ 000dd360: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -56856,154 +56856,154 @@ │ │ │ 000de170: 6174 612d 7461 7267 6574 3d22 2369 6432 ata-target="#id2 │ │ │ 000de180: 3834 2220 7461 6269 6e64 6578 3d22 3022 84" tabindex="0" │ │ │ 000de190: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 000de1a0: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 000de1b0: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 000de1c0: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 000de1d0: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -000de1e0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000de1f0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000de200: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000de240: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -000de250: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -000de260: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ -000de270: 7465 6d64 2d6a 6f75 726e 616c 6422 5d0a  temd-journald"].
│ │ │ -000de280: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000de330: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000de340: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -000de3e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000de480: 636c 7564 6520 656e 6162 6c65 5f73 7973  clude enable_sys
│ │ │ -000de490: 7465 6d64 2d6a 6f75 726e 616c 640a 0a63  temd-journald..c
│ │ │ -000de4a0: 6c61 7373 2065 6e61 626c 655f 7379 7374  lass enable_syst
│ │ │ -000de4b0: 656d 642d 6a6f 7572 6e61 6c64 207b 0a20  emd-journald {. 
│ │ │ -000de4c0: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ -000de4d0: 6d64 2d6a 6f75 726e 616c 6427 3a0a 2020  md-journald':.  
│ │ │ -000de4e0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ -000de4f0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ -000de500: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ -000de510: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -000de5d0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -000de5e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -000de660: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000de6f0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000de3d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000de400: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000de410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000de450: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000de460: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -000de670: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000de680: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000de6c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000de6d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000de710: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000de720: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000de730: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000de740: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000de750: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000de760: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000de770: 332d 5343 2d32 340a 2020 2d20 656e 6162  3-SC-24.  - enab
│ │ │ -000de780: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000de790: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000de7a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000de7b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000de7c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000de7d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -000de7e0: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ -000de7f0: 6f75 726e 616c 645f 656e 6162 6c65 640a  ournald_enabled.
│ │ │ -000de800: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -000de810: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -000de820: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -000de830: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ -000de840: 642d 6a6f 7572 6e61 6c64 0a20 2062 6c6f  d-journald.  blo
│ │ │ -000de850: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -000de860: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000de870: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -000de880: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000de890: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -000de8a0: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -000de8b0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -000de8c0: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ -000de8d0: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ -000de8e0: 6c65 2053 6572 7669 6365 2073 7973 7465  le Service syste
│ │ │ -000de8f0: 6d64 2d6a 6f75 726e 616c 640a 2020 2020  md-journald.    
│ │ │ -000de900: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000de910: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -000de920: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ -000de930: 726e 616c 640a 2020 2020 2020 656e 6162  rnald.      enab
│ │ │ -000de940: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -000de950: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -000de960: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -000de970: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -000de980: 202d 2027 2273 7973 7465 6d64 2220 696e   - '"systemd" in
│ │ │ -000de990: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000de9a0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -000de9b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000de9c0: 2d53 432d 3234 0a20 202d 2065 6e61 626c  -SC-24.  - enabl
│ │ │ -000de9d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000de9e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000de9f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000dea00: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000dea10: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000dea20: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -000dea30: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ -000dea40: 7572 6e61 6c64 5f65 6e61 626c 6564 0a20  urnald_enabled. 
│ │ │ -000dea50: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -000dea60: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -000dea70: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -000dea80: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000dea90: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
│ │ │ +000de2a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000de2c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000de2f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000de280: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000de290: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000de2b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000de2d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000de2e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000de330: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000de340: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000de350: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000de360: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000de370: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000de380: 302d 3533 2d53 432d 3234 0a20 202d 2065 0-53-SC-24. - e │ │ │ +000de390: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ +000de3a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +000de3b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +000de3c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +000de3d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +000de3e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +000de3f0: 2d20 7365 7276 6963 655f 7379 7374 656d - service_system │ │ │ +000de400: 642d 6a6f 7572 6e61 6c64 5f65 6e61 626c d-journald_enabl │ │ │ +000de410: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +000de420: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e le systemd-journ │ │ │ +000de430: 616c 6420 5365 7276 6963 6520 2d20 456e ald Service - En │ │ │ +000de440: 6162 6c65 2073 6572 7669 6365 2073 7973 able service sys │ │ │ +000de450: 7465 6d64 2d6a 6f75 726e 616c 640a 2020 temd-journald. │ │ │ +000de460: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +000de470: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000de480: 6b61 6765 2066 6163 7473 0a20 2020 2061 kage facts. a │ │ │ +000de490: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +000de4a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020 ackage_facts:. │ │ │ +000de4b0: 2020 2020 6d61 6e61 6765 723a 2061 7574 manager: aut │ │ │ +000de4c0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61 o.. - name: Ena │ │ │ +000de4d0: 626c 6520 7379 7374 656d 642d 6a6f 7572 ble systemd-jour │ │ │ +000de4e0: 6e61 6c64 2053 6572 7669 6365 202d 2045 nald Service - E │ │ │ +000de4f0: 6e61 626c 6520 5365 7276 6963 6520 7379 nable Service sy │ │ │ +000de500: 7374 656d 642d 6a6f 7572 6e61 6c64 0a20 stemd-journald. │ │ │ +000de510: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +000de520: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +000de530: 2020 6e61 6d65 3a20 7379 7374 656d 642d name: systemd- │ │ │ +000de540: 6a6f 7572 6e61 6c64 0a20 2020 2020 2065 journald. e │ │ │ +000de550: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ +000de560: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ +000de570: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +000de580: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ +000de590: 2020 2020 2d20 2722 7379 7374 656d 6422 - '"systemd" │ │ │ +000de5a0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +000de5b0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +000de5c0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +000de5d0: 2d35 332d 5343 2d32 340a 2020 2d20 656e -53-SC-24. - en │ │ │ +000de5e0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +000de5f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +000de600: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +000de610: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +000de620: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +000de630: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +000de640: 2073 6572 7669 6365 5f73 7973 7465 6d64 service_systemd │ │ │ +000de650: 2d6a 6f75 726e 616c 645f 656e 6162 6c65 -journald_enable │ │ │ +000de660: 640a 2020 2d20 7370 6563 6961 6c5f 7365 d. - special_se │ │ │ +000de670: 7276 6963 655f 626c 6f63 6b0a 2020 7768 rvice_block. wh │ │ │ +000de680: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +000de690: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +000de6a0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63 ts.packages'.

│ │ │ +000de6c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000de760: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000de770: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000de780: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +000de800: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000de830: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000de850: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000de860: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000de880: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000de8a0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000de8b0: 6465 2065 6e61 626c 655f 7379 7374 656d  de enable_system
│ │ │ +000de8c0: 642d 6a6f 7572 6e61 6c64 0a0a 636c 6173  d-journald..clas
│ │ │ +000de8d0: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ +000de8e0: 2d6a 6f75 726e 616c 6420 7b0a 2020 7365  -journald {.  se
│ │ │ +000de8f0: 7276 6963 6520 7b27 7379 7374 656d 642d  rvice {'systemd-
│ │ │ +000de900: 6a6f 7572 6e61 6c64 273a 0a20 2020 2065  journald':.    e
│ │ │ +000de910: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +000de920: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +000de930: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +000de940: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000dea00: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000dea10: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000dea60: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +000dea70: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +000dea80: 6564 203d 205b 2273 7973 7465 6d64 2d6a  ed = ["systemd-j
│ │ │ +000dea90: 6f75 726e 616c 6422 5d0a 3c2f 636f 6465  ournald"].
Remed │ │ │ -000ec610: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000ec620: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000ec630: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -000ec680: 6573 5d5d 0a6e 616d 6520 3d20 2272 7379  es]].name = "rsy
│ │ │ -000ec690: 736c 6f67 220a 7665 7273 696f 6e20 3d20  slog".version = 
│ │ │ -000ec6a0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000ec760: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000ec770: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000ec7f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000ec810: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000ec860: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000ec890: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000ec8b0: 6c5f 7273 7973 6c6f 670a 0a63 6c61 7373  l_rsyslog..class
│ │ │ -000ec8c0: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67   install_rsyslog
│ │ │ -000ec8d0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000ec8e0: 7273 7973 6c6f 6727 3a0a 2020 2020 656e  rsyslog':.    en
│ │ │ -000ec8f0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000ec900: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000ec9c0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000ec9d0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:< │ │ │ -000ec800: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000ec820: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000ec870: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000ec880: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -000eca70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000eca80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000ecad0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000ecb10: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000ecb20: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000ecb30: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000ecb40: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000ecb50: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000ecb60: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000ecb70: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000ecb80: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000ecb90: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000ecba0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000ecbb0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000ecbc0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000ecbd0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000ecbe0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ -000ecbf0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -000ecc00: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ -000ecc10: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -000ecc20: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000ecc30: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ -000ecc40: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ -000ecc50: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -000ecc60: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000ecc70: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000ecc80: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000ecc90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000ecca0: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ -000eccb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000eccc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000eccd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000ecce0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000eccf0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000ecd00: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000ecd10: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ -000ecd20: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000ec610: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +000ec620: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
C │ │ │ -000eca60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000eca90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000ecaa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000ecae0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000ecaf0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +000ec6b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000ec6c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000ec6e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000ec700: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000ec710: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000ec750: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000ec760: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000ec770: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000ec780: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000ec790: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000ec7a0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +000ec7b0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +000ec7c0: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ +000ec7d0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +000ec7e0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +000ec7f0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +000ec800: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +000ec810: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +000ec820: 0a20 202d 2070 6163 6b61 6765 5f72 7379 . - package_rsy │ │ │ +000ec830: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a0a slog_installed.. │ │ │ +000ec840: 2d20 6e61 6d65 3a20 456e 7375 7265 2072 - name: Ensure r │ │ │ +000ec850: 7379 736c 6f67 2069 7320 696e 7374 616c syslog is instal │ │ │ +000ec860: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +000ec870: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +000ec880: 2020 206e 616d 653a 2072 7379 736c 6f67 name: rsyslog │ │ │ +000ec890: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ +000ec8a0: 656e 740a 2020 7768 656e 3a20 2722 6c69 ent. when: '"li │ │ │ +000ec8b0: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ +000ec8c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ +000ec8d0: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ +000ec8e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +000ec8f0: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ +000ec900: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000ec910: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000ec920: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000ec930: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000ec940: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000ec950: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +000ec960: 6167 655f 7273 7973 6c6f 675f 696e 7374 age_rsyslog_inst │ │ │ +000ec970: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +000eca30: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000eca40: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +000ecad0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000ecaf0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000ecb00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000ecb10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000ecb20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000ecb40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000ecb80: 616c 6c5f 7273 7973 6c6f 670a 0a63 6c61  all_rsyslog..cla
│ │ │ +000ecb90: 7373 2069 6e73 7461 6c6c 5f72 7379 736c  ss install_rsysl
│ │ │ +000ecba0: 6f67 207b 0a20 2070 6163 6b61 6765 207b  og {.  package {
│ │ │ +000ecbb0: 2027 7273 7973 6c6f 6727 3a0a 2020 2020   'rsyslog':.    
│ │ │ +000ecbc0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000ecbd0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000ecbe0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000ecc90: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000ecca0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000eccb0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000ecd00: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000ecd10: 2022 7273 7973 6c6f 6722 0a76 6572 7369   "rsyslog".versi
│ │ │ +000ecd20: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  000ecd30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remed │ │ │ -000edfa0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000edfb0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000edfc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -000ee010: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -000ee020: 5d0a 656e 6162 6c65 6420 3d20 5b22 7273  ].enabled = ["rs
│ │ │ -000ee030: 7973 6c6f 6722 5d0a 3c2f 636f 6465 3e3c  yslog"].<
│ │ │ -000ee040: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000ee0f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000ee100: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000ee180: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000ee190: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000ee1a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000ee1e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000ee1f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000ee210: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000ee230: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -000ee240: 6162 6c65 5f72 7379 736c 6f67 0a0a 636c  able_rsyslog..cl
│ │ │ -000ee250: 6173 7320 656e 6162 6c65 5f72 7379 736c  ass enable_rsysl
│ │ │ -000ee260: 6f67 207b 0a20 2073 6572 7669 6365 207b  og {.  service {
│ │ │ -000ee270: 2772 7379 736c 6f67 273a 0a20 2020 2065  'rsyslog':.    e
│ │ │ -000ee280: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -000ee290: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -000ee2a0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -000ee2b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -000ee370: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000ee380: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000ee410: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000ee430: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000ee450: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000ee480: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000ee490: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000ee4a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -000ee4c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000ee4d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -000ee4e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -000ee4f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -000ee500: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000ee510: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -000ee520: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000ee530: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000ee540: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000ee550: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000ee560: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000ee570: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000ee580: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000ee590: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -000ee5a0: 7973 6c6f 675f 656e 6162 6c65 640a 0a2d  yslog_enabled..-
│ │ │ -000ee5b0: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ -000ee5c0: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ -000ee5d0: 456e 6162 6c65 2073 6572 7669 6365 2072  Enable service r
│ │ │ -000ee5e0: 7379 736c 6f67 0a20 2062 6c6f 636b 3a0a  syslog.  block:.
│ │ │ -000ee5f0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -000ee600: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000ee610: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -000ee620: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -000ee630: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -000ee640: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -000ee650: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ -000ee660: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ -000ee670: 6e61 626c 6520 5365 7276 6963 6520 7273  nable Service rs
│ │ │ -000ee680: 7973 6c6f 670a 2020 2020 616e 7369 626c  yslog.    ansibl
│ │ │ -000ee690: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -000ee6a0: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -000ee6b0: 7379 736c 6f67 0a20 2020 2020 2065 6e61  syslog.      ena
│ │ │ -000ee6c0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -000ee6d0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -000ee6e0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -000ee6f0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -000ee700: 2020 2d20 2722 7273 7973 6c6f 6722 2069    - '"rsyslog" i
│ │ │ -000ee710: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000ee720: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -000ee730: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000ee740: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -000ee750: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000ee760: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -000ee770: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000ee780: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000ee790: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000ee7a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000ee7b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000ee7c0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -000ee7d0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -000ee7e0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -000ee7f0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -000ee800: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -000ee810: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000ee820: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Comp │ │ │ +000ee040: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000ee050: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000ee070: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000ee090: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000ee0a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000ee0e0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000ee0f0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000ee100: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000ee110: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000ee120: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000ee130: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +000ee140: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +000ee150: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +000ee160: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +000ee170: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +000ee180: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +000ee190: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +000ee1a0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +000ee1b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +000ee1c0: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +000ee1d0: 7669 6365 5f72 7379 736c 6f67 5f65 6e61 vice_rsyslog_ena │ │ │ +000ee1e0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e bled..- name: En │ │ │ +000ee1f0: 6162 6c65 2072 7379 736c 6f67 2053 6572 able rsyslog Ser │ │ │ +000ee200: 7669 6365 202d 2045 6e61 626c 6520 7365 vice - Enable se │ │ │ +000ee210: 7276 6963 6520 7273 7973 6c6f 670a 2020 rvice rsyslog. │ │ │ +000ee220: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +000ee230: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000ee240: 6b61 6765 2066 6163 7473 0a20 2020 2061 kage facts. a │ │ │ +000ee250: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +000ee260: 6163 6b61 6765 5f66 6163 7473 3a0a 2020 ackage_facts:. │ │ │ +000ee270: 2020 2020 6d61 6e61 6765 723a 2061 7574 manager: aut │ │ │ +000ee280: 6f0a 0a20 202d 206e 616d 653a 2045 6e61 o.. - name: Ena │ │ │ +000ee290: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ +000ee2a0: 6963 6520 2d20 456e 6162 6c65 2053 6572 ice - Enable Ser │ │ │ +000ee2b0: 7669 6365 2072 7379 736c 6f67 0a20 2020 vice rsyslog. │ │ │ +000ee2c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +000ee2d0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +000ee2e0: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020 name: rsyslog. │ │ │ +000ee2f0: 2020 2020 656e 6162 6c65 643a 2074 7275 enabled: tru │ │ │ +000ee300: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +000ee310: 7461 7274 6564 0a20 2020 2020 206d 6173 tarted. mas │ │ │ +000ee320: 6b65 643a 2066 616c 7365 0a20 2020 2077 ked: false. w │ │ │ +000ee330: 6865 6e3a 0a20 2020 202d 2027 2272 7379 hen:. - '"rsy │ │ │ +000ee340: 736c 6f67 2220 696e 2061 6e73 6962 6c65 slog" in ansible │ │ │ +000ee350: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +000ee360: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +000ee370: 542d 3830 302d 3533 2d41 552d 3428 3129 T-800-53-AU-4(1) │ │ │ +000ee380: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +000ee390: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ +000ee3a0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +000ee3b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +000ee3c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +000ee3d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +000ee3e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +000ee3f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +000ee400: 7365 7276 6963 655f 7273 7973 6c6f 675f service_rsyslog_ │ │ │ +000ee410: 656e 6162 6c65 640a 2020 2d20 7370 6563 enabled. - spec │ │ │ +000ee420: 6961 6c5f 7365 7276 6963 655f 626c 6f63 ial_service_bloc │ │ │ +000ee430: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75 k. when: '"linu │ │ │ +000ee440: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ +000ee450: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +000ee460: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e s'.
│ │ │ +000ee470: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000ee520: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000ee530: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000ee5b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000ee5d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000ee620: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ +000ee670: 7273 7973 6c6f 670a 0a63 6c61 7373 2065  rsyslog..class e
│ │ │ +000ee680: 6e61 626c 655f 7273 7973 6c6f 6720 7b0a  nable_rsyslog {.
│ │ │ +000ee690: 2020 7365 7276 6963 6520 7b27 7273 7973    service {'rsys
│ │ │ +000ee6a0: 6c6f 6727 3a0a 2020 2020 656e 6162 6c65  log':.    enable
│ │ │ +000ee6b0: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ +000ee6c0: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ +000ee6d0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ +000ee6e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000ee790: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +000ee7a0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +000ee7b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000ee7c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000ee7f0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +000ee800: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +000ee810: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +000ee820: 5b22 7273 7973 6c6f 6722 5d0a 3c2f 636f  ["rsyslog"].
< │ │ │ 000ee840: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000ee850: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000ee860: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000ee870: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000ee880: 6433 3138 2220 7461 6269 6e64 6578 3d22 d318" tabindex=" │ │ │ 000ee890: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -63558,130 +63558,130 @@ │ │ │ 000f8450: 6172 6765 743d 2223 6964 3333 3222 2074 arget="#id332" t │ │ │ 000f8460: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 000f8470: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 000f8480: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 000f8490: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 000f84a0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 000f84b0: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -000f84c0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000f84d0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -000f8530: 616d 6520 3d20 2269 7074 6162 6c65 732d  ame = "iptables-
│ │ │ -000f8540: 7065 7273 6973 7465 6e74 220a 7665 7273  persistent".vers
│ │ │ -000f8550: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000f8610: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000f8620: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000f8630: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000f8660: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +000ee5e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000ee5f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000ee630: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000ee640: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -000f86d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000f86f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000f8720: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000f8740: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000f86b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000f86c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000f8700: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000f8710: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000f8760: 696e 7374 616c 6c5f 6970 7461 626c 6573 install_iptables │ │ │ -000f8770: 2d70 6572 7369 7374 656e 740a 0a63 6c61 -persistent..cla │ │ │ -000f8780: 7373 2069 6e73 7461 6c6c 5f69 7074 6162 ss install_iptab │ │ │ -000f8790: 6c65 732d 7065 7273 6973 7465 6e74 207b les-persistent { │ │ │ -000f87a0: 0a20 2070 6163 6b61 6765 207b 2027 6970 . package { 'ip │ │ │ -000f87b0: 7461 626c 6573 2d70 6572 7369 7374 656e tables-persisten │ │ │ -000f87c0: 7427 3a0a 2020 2020 656e 7375 7265 203d t':. ensure = │ │ │ -000f87d0: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ -000f87e0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -000f87f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -000f88a0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000f88b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000f88c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000f88d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000f88e0: 7365 2220 6964 3d22 6964 3333 3422 3e3c se" id="id334">< │ │ │ -000f88f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000f8900: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000f8910: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000f8920: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000f8930: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000f8940: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000f8950: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000f8990: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000f89a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000f89c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000f89d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -000f89f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000f8a00: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -000f8a10: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000f8a20: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000f8a30: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000f8a40: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000f8a50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000f8a60: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000f8a70: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000f8a80: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000f8a90: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000f8aa0: 655f 6970 7461 626c 6573 2d70 6572 7369  e_iptables-persi
│ │ │ -000f8ab0: 7374 656e 745f 696e 7374 616c 6c65 640a  stent_installed.
│ │ │ -000f8ac0: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -000f8ad0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -000f8ae0: 656e 7420 6973 2069 6e73 7461 6c6c 6564  ent is installed
│ │ │ -000f8af0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -000f8b00: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -000f8b10: 6e61 6d65 3a20 6970 7461 626c 6573 2d70  name: iptables-p
│ │ │ -000f8b20: 6572 7369 7374 656e 740a 2020 2020 7374  ersistent.    st
│ │ │ -000f8b30: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000f8b40: 6865 6e3a 2027 2269 7074 6162 6c65 7322  hen: '"iptables"
│ │ │ -000f8b50: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000f8b60: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -000f8b70: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ -000f8b80: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000f8b90: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000f8ba0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000f8bb0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000f8bc0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000f8bd0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000f8be0: 6765 5f69 7074 6162 6c65 732d 7065 7273  ge_iptables-pers
│ │ │ -000f8bf0: 6973 7465 6e74 5f69 6e73 7461 6c6c 6564  istent_installed
│ │ │ +000f84c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +000f84d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +000f8560: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000f8580: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000f8590: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f85a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000f85b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000f85d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000f8610: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000f8620: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000f8630: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000f8640: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000f8650: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000f8660: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000f8670: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000f8680: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000f8690: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000f86a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000f86b0: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ +000f86c0: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +000f86d0: 6e74 5f69 6e73 7461 6c6c 6564 0a0a 2d20  nt_installed..- 
│ │ │ +000f86e0: 6e61 6d65 3a20 456e 7375 7265 2069 7074  name: Ensure ipt
│ │ │ +000f86f0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000f8700: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000f8710: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000f8720: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000f8730: 653a 2069 7074 6162 6c65 732d 7065 7273  e: iptables-pers
│ │ │ +000f8740: 6973 7465 6e74 0a20 2020 2073 7461 7465  istent.    state
│ │ │ +000f8750: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000f8760: 3a20 2722 6970 7461 626c 6573 2220 696e  : '"iptables" in
│ │ │ +000f8770: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000f8780: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000f8790: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000f87a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000f87b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000f87c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000f87d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000f87e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000f87f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000f8800: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +000f8810: 656e 745f 696e 7374 616c 6c65 640a 3c2f  ent_installed.
Re │ │ │ +000f88d0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000f88e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000f88f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +000f8990: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000f89e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000f8970: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000f89a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000f89c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000f89d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000f89f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000f8a00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000f8a20: 7564 6520 696e 7374 616c 6c5f 6970 7461  ude install_ipta
│ │ │ +000f8a30: 626c 6573 2d70 6572 7369 7374 656e 740a  bles-persistent.
│ │ │ +000f8a40: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f69  .class install_i
│ │ │ +000f8a50: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +000f8a60: 6e74 207b 0a20 2070 6163 6b61 6765 207b  nt {.  package {
│ │ │ +000f8a70: 2027 6970 7461 626c 6573 2d70 6572 7369   'iptables-persi
│ │ │ +000f8a80: 7374 656e 7427 3a0a 2020 2020 656e 7375  stent':.    ensu
│ │ │ +000f8a90: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +000f8aa0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +000f8ac0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000f8ad0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000f8ae0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000f8af0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000f8b00: 6433 3334 2220 7461 6269 6e64 6578 3d22 d334" tabindex=" │ │ │ +000f8b10: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000f8b20: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000f8b30: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000f8b40: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000f8b50: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000f8b60: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000f8b70: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000f8b80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +000f8bd0: 6765 735d 5d0a 6e61 6d65 203d 2022 6970 ges]].name = "ip │ │ │ +000f8be0: 7461 626c 6573 2d70 6572 7369 7374 656e tables-persisten │ │ │ +000f8bf0: 7422 0a76 6572 7369 6f6e 203d 2022 2a22 t".version = "*" │ │ │ 000f8c00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
Rem │ │ │ -000f9920: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000f9930: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000f9940: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -000f9990: 6167 6573 5d5d 0a6e 616d 6520 3d20 2269 ages]].name = "i │ │ │ -000f99a0: 7074 6162 6c65 7322 0a76 6572 7369 6f6e ptables".version │ │ │ -000f99b0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".

Remediati │ │ │ -000f9a70: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000f9a80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f9b00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000f9b10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000f9b30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000f9b40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000f9b60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000f9b80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000f9bb0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000f9bc0: 7461 6c6c 5f69 7074 6162 6c65 730a 0a63  tall_iptables..c
│ │ │ -000f9bd0: 6c61 7373 2069 6e73 7461 6c6c 5f69 7074  lass install_ipt
│ │ │ -000f9be0: 6162 6c65 7320 7b0a 2020 7061 636b 6167  ables {.  packag
│ │ │ -000f9bf0: 6520 7b20 2769 7074 6162 6c65 7327 3a0a  e { 'iptables':.
│ │ │ -000f9c00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000f9c10: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -000f9c20: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -000f9ce0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000f9cf0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000f9d80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000f9da0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000f9dc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000f9df0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000f9e00: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000f9e10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -000f9e30: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000f9e40: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -000f9e50: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -000f9e60: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -000f9e70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000f9e80: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -000f9e90: 5353 2d52 6571 2d31 2e34 2e31 0a20 202d  SS-Req-1.4.1.  -
│ │ │ -000f9ea0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000f9eb0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000f9ec0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000f9ed0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000f9ee0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000f9ef0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000f9f00: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ -000f9f10: 626c 6573 5f69 6e73 7461 6c6c 6564 0a0a  bles_installed..
│ │ │ -000f9f20: 2d20 6e61 6d65 3a20 456e 7375 7265 2069  - name: Ensure i
│ │ │ -000f9f30: 7074 6162 6c65 7320 6973 2069 6e73 7461  ptables is insta
│ │ │ -000f9f40: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -000f9f50: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -000f9f60: 2020 2020 6e61 6d65 3a20 6970 7461 626c      name: iptabl
│ │ │ -000f9f70: 6573 0a20 2020 2073 7461 7465 3a20 7072  es.    state: pr
│ │ │ -000f9f80: 6573 656e 740a 2020 7768 656e 3a20 2820  esent.  when: ( 
│ │ │ -000f9f90: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000f9fa0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000f9fb0: 636b 6167 6573 2029 0a20 2074 6167 733a  ckages ).  tags:
│ │ │ -000f9fc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000f9fd0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -000f9fe0: 2d44 5353 2d52 6571 2d31 2e34 2e31 0a20  -DSS-Req-1.4.1. 
│ │ │ -000f9ff0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000fa000: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000fa010: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000fa020: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000fa030: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000fa040: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000fa050: 640a 2020 2d20 7061 636b 6167 655f 6970  d.  - package_ip
│ │ │ -000fa060: 7461 626c 6573 5f69 6e73 7461 6c6c 6564  tables_installed
│ │ │ +000f9920: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +000f9930: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +000f9940: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +000f99e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000f9a30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000f99c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000f99f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000f9a10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000f9a20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000f9a40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000f9a50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000f9a70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +000f9a80: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +000f9a90: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +000f9aa0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +000f9ab0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +000f9ac0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +000f9ad0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +000f9ae0: 312e 342e 310a 2020 2d20 656e 6162 6c65  1.4.1.  - enable
│ │ │ +000f9af0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000f9b00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000f9b10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000f9b20: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000f9b30: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000f9b40: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000f9b50: 6b61 6765 5f69 7074 6162 6c65 735f 696e  kage_iptables_in
│ │ │ +000f9b60: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +000f9b70: 2045 6e73 7572 6520 6970 7461 626c 6573   Ensure iptables
│ │ │ +000f9b80: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000f9b90: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000f9ba0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000f9bb0: 653a 2069 7074 6162 6c65 730a 2020 2020  e: iptables.    
│ │ │ +000f9bc0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +000f9bd0: 2077 6865 6e3a 2028 2022 6c69 6e75 782d   when: ( "linux-
│ │ │ +000f9be0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +000f9bf0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +000f9c00: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ +000f9c10: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000f9c20: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +000f9c30: 712d 312e 342e 310a 2020 2d20 656e 6162  q-1.4.1.  - enab
│ │ │ +000f9c40: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000f9c50: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000f9c60: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000f9c70: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000f9c80: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000f9c90: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000f9ca0: 6163 6b61 6765 5f69 7074 6162 6c65 735f  ackage_iptables_
│ │ │ +000f9cb0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remedi │ │ │ +000f9d70: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000f9d80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000f9d90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000f9dc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000f9e30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000f9e50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000f9e80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000f9ea0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000f9e10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000f9e20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000f9e60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000f9e70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000f9ec0: 696e 7374 616c 6c5f 6970 7461 626c 6573 install_iptables │ │ │ +000f9ed0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +000f9ee0: 6970 7461 626c 6573 207b 0a20 2070 6163 iptables {. pac │ │ │ +000f9ef0: 6b61 6765 207b 2027 6970 7461 626c 6573 kage { 'iptables │ │ │ +000f9f00: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +000f9f10: 6774 3b20 2769 6e73 7461 6c6c 6564 272c gt; 'installed', │ │ │ +000f9f20: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediati │ │ │ +000f9fe0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000f9ff0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000fa000: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +000fa050: 0a6e 616d 6520 3d20 2269 7074 6162 6c65  .name = "iptable
│ │ │ +000fa060: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │  000fa070: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation P │ │ │ -000fac90: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000faca0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000fad20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000fad40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000fad90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -000fadc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -000fade0: 655f 6970 7461 626c 6573 2d70 6572 7369  e_iptables-persi
│ │ │ -000fadf0: 7374 656e 740a 0a63 6c61 7373 2072 656d  stent..class rem
│ │ │ -000fae00: 6f76 655f 6970 7461 626c 6573 2d70 6572  ove_iptables-per
│ │ │ -000fae10: 7369 7374 656e 7420 7b0a 2020 7061 636b  sistent {.  pack
│ │ │ -000fae20: 6167 6520 7b20 2769 7074 6162 6c65 732d  age { 'iptables-
│ │ │ -000fae30: 7065 7273 6973 7465 6e74 273a 0a20 2020  persistent':.   
│ │ │ -000fae40: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -000fae50: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -000faf10: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000faf20: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -000fad50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000fad60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000fada0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -000fadb0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -000fafc0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000fafd0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000fb020: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -000fb060: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000fb070: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000fb080: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000fb090: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000fb0a0: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ -000fb0b0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -000fb0c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000fb0d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000fb0e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000fb0f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000fb100: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000fb110: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ -000fb120: 6573 2d70 6572 7369 7374 656e 745f 7265  es-persistent_re
│ │ │ -000fb130: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ -000fb140: 5265 6d6f 7665 2069 7074 6162 6c65 732d  Remove iptables-
│ │ │ -000fb150: 7065 7273 6973 7465 6e74 2050 6163 6b61  persistent Packa
│ │ │ -000fb160: 6765 3a20 456e 7375 7265 2069 7074 6162  ge: Ensure iptab
│ │ │ -000fb170: 6c65 732d 7065 7273 6973 7465 6e74 2069  les-persistent i
│ │ │ -000fb180: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -000fb190: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -000fb1a0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -000fb1b0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -000fb1c0: 656e 740a 2020 2020 7374 6174 653a 2061  ent.    state: a
│ │ │ -000fb1d0: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ -000fb1e0: 7566 7722 2069 6e20 616e 7369 626c 655f  ufw" in ansible_
│ │ │ -000fb1f0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -000fb200: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -000fb210: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000fb220: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000fb230: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000fb240: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000fb250: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000fb260: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000fb270: 7061 636b 6167 655f 6970 7461 626c 6573  package_iptables
│ │ │ -000fb280: 2d70 6572 7369 7374 656e 745f 7265 6d6f  -persistent_remo
│ │ │ -000fb290: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation A │ │ │ +000fac90: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +000faca0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ -000fafb0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000fafe0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000faff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000fb030: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -000fb040: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +000fad20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000fad40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000fad90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +000fadc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +000fad30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000fad50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000fada0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +000fadb0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +000fade0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000fadf0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000fae00: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +000fae10: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +000fae20: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +000fae30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000fae40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000fae50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000fae60: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000fae70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000fae80: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ +000fae90: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +000faea0: 6e74 5f72 656d 6f76 6564 0a0a 2d20 6e61  nt_removed..- na
│ │ │ +000faeb0: 6d65 3a20 2752 656d 6f76 6520 6970 7461  me: 'Remove ipta
│ │ │ +000faec0: 626c 6573 2d70 6572 7369 7374 656e 7420  bles-persistent 
│ │ │ +000faed0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +000faee0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +000faef0: 656e 7420 6973 2072 656d 6f76 6564 270a  ent is removed'.
│ │ │ +000faf00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000faf10: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +000faf20: 616d 653a 2069 7074 6162 6c65 732d 7065  ame: iptables-pe
│ │ │ +000faf30: 7273 6973 7465 6e74 0a20 2020 2073 7461  rsistent.    sta
│ │ │ +000faf40: 7465 3a20 6162 7365 6e74 0a20 2077 6865  te: absent.  whe
│ │ │ +000faf50: 6e3a 2027 2275 6677 2220 696e 2061 6e73  n: '"ufw" in ans
│ │ │ +000faf60: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000faf70: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +000faf80: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +000faf90: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000fafa0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000fafb0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000fafc0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000fafd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000fafe0: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ +000faff0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000fb000: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +000fb010: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000fb0c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000fb0d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000fb0e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000fb0f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000fb100: 7365 2220 6964 3d22 6964 3334 3322 3e3c se" id="id343">< │ │ │ +000fb110: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000fb120: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000fb130: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000fb140: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000fb150: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000fb160: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000fb170: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000fb1b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000fb1c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000fb1e0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +000fb1f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +000fb210: 2072 656d 6f76 655f 6970 7461 626c 6573 remove_iptables │ │ │ +000fb220: 2d70 6572 7369 7374 656e 740a 0a63 6c61 -persistent..cla │ │ │ +000fb230: 7373 2072 656d 6f76 655f 6970 7461 626c ss remove_iptabl │ │ │ +000fb240: 6573 2d70 6572 7369 7374 656e 7420 7b0a es-persistent {. │ │ │ +000fb250: 2020 7061 636b 6167 6520 7b20 2769 7074 package { 'ipt │ │ │ +000fb260: 6162 6c65 732d 7065 7273 6973 7465 6e74 ables-persistent │ │ │ +000fb270: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +000fb280: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +000fb290: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation OS │ │ │ -00146ac0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00146ad0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00146ae0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -00146b20: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -00146b30: 203d 2022 6e66 7461 626c 6573 220a 7665   = "nftables".ve
│ │ │ -00146b40: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -00146b60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00146b70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00146b80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00146b90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00146ba0: 6434 3136 2220 7461 6269 6e64 6578 3d22 d416" tabindex=" │ │ │ -00146bb0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00146bc0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00146bd0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00146be0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00146bf0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00146c00: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00146c10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00146ca0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00146cb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00146cd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00146cf0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00146d00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00146d40: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00146d50: 6520 696e 7374 616c 6c5f 6e66 7461 626c e install_nftabl │ │ │ -00146d60: 6573 0a0a 636c 6173 7320 696e 7374 616c es..class instal │ │ │ -00146d70: 6c5f 6e66 7461 626c 6573 207b 0a20 2070 l_nftables {. p │ │ │ -00146d80: 6163 6b61 6765 207b 2027 6e66 7461 626c ackage { 'nftabl │ │ │ -00146d90: 6573 273a 0a20 2020 2065 6e73 7572 6520 es':. ensure │ │ │ -00146da0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ -00146db0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00146dc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -00146e70: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00146e80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00146e90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00146ec0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00146f30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00146f50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00146f80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00146fa0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00146f10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00146f20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00146f60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00146f70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00146fc0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00146fd0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00146fe0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00146ff0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00147000: 6773 3a0a 2020 2d20 5043 492d 4453 5376 gs:. - PCI-DSSv │ │ │ -00147010: 342d 312e 320a 2020 2d20 5043 492d 4453 4-1.2. - PCI-DS │ │ │ -00147020: 5376 342d 312e 322e 310a 2020 2d20 656e Sv4-1.2.1. - en │ │ │ -00147030: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -00147040: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -00147050: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -00147060: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -00147070: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -00147080: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -00147090: 2070 6163 6b61 6765 5f6e 6674 6162 6c65 package_nftable │ │ │ -001470a0: 735f 696e 7374 616c 6c65 640a 0a2d 206e s_installed..- n │ │ │ -001470b0: 616d 653a 2045 6e73 7572 6520 6e66 7461 ame: Ensure nfta │ │ │ -001470c0: 626c 6573 2069 7320 696e 7374 616c 6c65 bles is installe │ │ │ -001470d0: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -001470e0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -001470f0: 206e 616d 653a 206e 6674 6162 6c65 730a name: nftables. │ │ │ -00147100: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ -00147110: 6e74 0a20 2077 6865 6e3a 2028 2022 6c69 nt. when: ( "li │ │ │ -00147120: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -00147130: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -00147140: 6765 7320 290a 2020 7461 6773 3a0a 2020 ges ). tags:. │ │ │ -00147150: 2d20 5043 492d 4453 5376 342d 312e 320a - PCI-DSSv4-1.2. │ │ │ -00147160: 2020 2d20 5043 492d 4453 5376 342d 312e - PCI-DSSv4-1. │ │ │ -00147170: 322e 310a 2020 2d20 656e 6162 6c65 5f73 2.1. - enable_s │ │ │ -00147180: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00147190: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -001471a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -001471b0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -001471c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -001471d0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -001471e0: 6765 5f6e 6674 6162 6c65 735f 696e 7374 ge_nftables_inst │ │ │ -001471f0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediation An │ │ │ +00146ac0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00146ad0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00146b50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00146b70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00146bc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00146c10: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00146c20: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00146c30: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00146c40: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00146c50: 2050 4349 2d44 5353 7634 2d31 2e32 0a20   PCI-DSSv4-1.2. 
│ │ │ +00146c60: 202d 2050 4349 2d44 5353 7634 2d31 2e32   - PCI-DSSv4-1.2
│ │ │ +00146c70: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ +00146c80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00146c90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00146ca0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00146cb0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00146cc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00146cd0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00146ce0: 655f 6e66 7461 626c 6573 5f69 6e73 7461  e_nftables_insta
│ │ │ +00146cf0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +00146d00: 7375 7265 206e 6674 6162 6c65 7320 6973  sure nftables is
│ │ │ +00146d10: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00146d20: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00146d30: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00146d40: 6e66 7461 626c 6573 0a20 2020 2073 7461  nftables.    sta
│ │ │ +00146d50: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +00146d60: 656e 3a20 2820 226c 696e 7578 2d62 6173  en: ( "linux-bas
│ │ │ +00146d70: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00146d80: 6374 732e 7061 636b 6167 6573 2029 0a20  cts.packages ). 
│ │ │ +00146d90: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +00146da0: 5353 7634 2d31 2e32 0a20 202d 2050 4349  SSv4-1.2.  - PCI
│ │ │ +00146db0: 2d44 5353 7634 2d31 2e32 2e31 0a20 202d  -DSSv4-1.2.1.  -
│ │ │ +00146dc0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00146dd0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00146de0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00146df0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00146e00: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00146e10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00146e20: 2020 2d20 7061 636b 6167 655f 6e66 7461    - package_nfta
│ │ │ +00146e30: 626c 6573 5f69 6e73 7461 6c6c 6564 0a3c  bles_installed.<
│ │ │ +00146e40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00146ef0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00146f00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00146b80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00146b90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00146bd0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00146be0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +00146fa0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00146fb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00147000: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00147040: 6c75 6465 2069 6e73 7461 6c6c 5f6e 6674  lude install_nft
│ │ │ +00147050: 6162 6c65 730a 0a63 6c61 7373 2069 6e73  ables..class ins
│ │ │ +00147060: 7461 6c6c 5f6e 6674 6162 6c65 7320 7b0a  tall_nftables {.
│ │ │ +00147070: 2020 7061 636b 6167 6520 7b20 276e 6674    package { 'nft
│ │ │ +00147080: 6162 6c65 7327 3a0a 2020 2020 656e 7375  ables':.    ensu
│ │ │ +00147090: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +001470a0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +001470c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +001470d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +001470e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001470f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00147100: 6434 3137 2220 7461 6269 6e64 6578 3d22 d417" tabindex=" │ │ │ +00147110: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00147120: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00147130: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00147140: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00147150: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00147160: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00147170: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00147180: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +001471d0: 6765 735d 5d0a 6e61 6d65 203d 2022 6e66 ges]].name = "nf │ │ │ +001471e0: 7461 626c 6573 220a 7665 7273 696f 6e20 tables".version │ │ │ +001471f0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remedia │ │ │ -00147e80: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00147e90: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00147ea0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -00147ee0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00147ef0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00147f00: 656e 6162 6c65 6420 3d20 5b22 6e66 7461  enabled = ["nfta
│ │ │ -00147f10: 626c 6573 225d 0a3c 2f63 6f64 653e 3c2f  bles"].
Remediati │ │ │ -00147fd0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00147fe0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00148060: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -001480a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ +00146f90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00146fc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00146fd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00147010: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00147020: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -00148070: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00148090: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -001480c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -001480e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00148110: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -00148120: 626c 655f 6e66 7461 626c 6573 0a0a 636c  ble_nftables..cl
│ │ │ -00148130: 6173 7320 656e 6162 6c65 5f6e 6674 6162  ass enable_nftab
│ │ │ -00148140: 6c65 7320 7b0a 2020 7365 7276 6963 6520  les {.  service 
│ │ │ -00148150: 7b27 6e66 7461 626c 6573 273a 0a20 2020  {'nftables':.   
│ │ │ -00148160: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -00148170: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -00148180: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -00148190: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00148250: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00148260: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001482e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -001482f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00148310: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00148320: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00148340: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00148360: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00148390: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -001483a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -001483b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -001483c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -001483d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -001483e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -001483f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00148400: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00148410: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00148420: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00148430: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00148440: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00148450: 6e66 7461 626c 6573 5f65 6e61 626c 6564  nftables_enabled
│ │ │ -00148460: 0a0a 2d20 6e61 6d65 3a20 5665 7269 6679  ..- name: Verify
│ │ │ -00148470: 206e 6674 6162 6c65 7320 5365 7276 6963   nftables Servic
│ │ │ -00148480: 6520 6973 2045 6e61 626c 6564 202d 2045  e is Enabled - E
│ │ │ -00148490: 6e61 626c 6520 7365 7276 6963 6520 6e66  nable service nf
│ │ │ -001484a0: 7461 626c 6573 0a20 2062 6c6f 636b 3a0a  tables.  block:.
│ │ │ -001484b0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -001484c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -001484d0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -001484e0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -001484f0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00148500: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00148510: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ -00148520: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ -00148530: 2045 6e61 626c 6564 202d 2045 6e61 626c   Enabled - Enabl
│ │ │ -00148540: 6520 5365 7276 6963 6520 6e66 7461 626c  e Service nftabl
│ │ │ -00148550: 6573 0a20 2020 2061 6e73 6962 6c65 2e62  es.    ansible.b
│ │ │ -00148560: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00148570: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ -00148580: 626c 6573 0a20 2020 2020 2065 6e61 626c  bles.      enabl
│ │ │ -00148590: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -001485a0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -001485b0: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -001485c0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -001485d0: 2d20 2722 6e66 7461 626c 6573 2220 696e  - '"nftables" in
│ │ │ -001485e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001485f0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00148600: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00148610: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00148620: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00148630: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00148640: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00148650: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00148660: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00148670: 6e66 7461 626c 6573 5f65 6e61 626c 6564  nftables_enabled
│ │ │ -00148680: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00148690: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -001486a0: 6e3a 2028 2022 6e66 7461 626c 6573 2220  n: ( "nftables" 
│ │ │ -001486b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -001486c0: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ -001486d0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -001486e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001486f0: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
│ │ │ +00147ea0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00147ed0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00147f40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00147f60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00147f90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00147fb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00147f20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00147f30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00147f70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00147f80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00147fd0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00147fe0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00147ff0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00148000: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00148010: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ +00148020: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00148030: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00148040: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00148050: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00148060: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00148070: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +00148080: 6365 5f6e 6674 6162 6c65 735f 656e 6162 ce_nftables_enab │ │ │ +00148090: 6c65 640a 0a2d 206e 616d 653a 2056 6572 led..- name: Ver │ │ │ +001480a0: 6966 7920 6e66 7461 626c 6573 2053 6572 ify nftables Ser │ │ │ +001480b0: 7669 6365 2069 7320 456e 6162 6c65 6420 vice is Enabled │ │ │ +001480c0: 2d20 456e 6162 6c65 2073 6572 7669 6365 - Enable service │ │ │ +001480d0: 206e 6674 6162 6c65 730a 2020 626c 6f63 nftables. bloc │ │ │ +001480e0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ +001480f0: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ +00148100: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ +00148110: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +00148120: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ +00148130: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ +00148140: 202d 206e 616d 653a 2056 6572 6966 7920 - name: Verify │ │ │ +00148150: 6e66 7461 626c 6573 2053 6572 7669 6365 nftables Service │ │ │ +00148160: 2069 7320 456e 6162 6c65 6420 2d20 456e is Enabled - En │ │ │ +00148170: 6162 6c65 2053 6572 7669 6365 206e 6674 able Service nft │ │ │ +00148180: 6162 6c65 730a 2020 2020 616e 7369 626c ables. ansibl │ │ │ +00148190: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +001481a0: 643a 0a20 2020 2020 206e 616d 653a 206e d:. name: n │ │ │ +001481b0: 6674 6162 6c65 730a 2020 2020 2020 656e ftables. en │ │ │ +001481c0: 6162 6c65 643a 2074 7275 650a 2020 2020 abled: true. │ │ │ +001481d0: 2020 7374 6174 653a 2073 7461 7274 6564 state: started │ │ │ +001481e0: 0a20 2020 2020 206d 6173 6b65 643a 2066 . masked: f │ │ │ +001481f0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20 alse. when:. │ │ │ +00148200: 2020 202d 2027 226e 6674 6162 6c65 7322 - '"nftables" │ │ │ +00148210: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +00148220: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +00148230: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ +00148240: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00148250: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00148260: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00148270: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00148280: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00148290: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +001482a0: 6365 5f6e 6674 6162 6c65 735f 656e 6162 ce_nftables_enab │ │ │ +001482b0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f led. - special_ │ │ │ +001482c0: 7365 7276 6963 655f 626c 6f63 6b0a 2020 service_block. │ │ │ +001482d0: 7768 656e 3a20 2820 226e 6674 6162 6c65 when: ( "nftable │ │ │ +001482e0: 7322 2069 6e20 616e 7369 626c 655f 6661 s" in ansible_fa │ │ │ +001482f0: 6374 732e 7061 636b 6167 6573 2061 6e64 cts.packages and │ │ │ +00148300: 2022 6c69 6e75 782d 6261 7365 2220 696e "linux-base" in │ │ │ +00148310: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00148320: 6163 6b61 6765 730a 2020 2020 290a 3c2f ackages. ).
Re │ │ │ +001483e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001483f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00148400: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +001484a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001484f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00148480: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001484b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001484d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001484e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00148500: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00148510: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00148530: 7564 6520 656e 6162 6c65 5f6e 6674 6162  ude enable_nftab
│ │ │ +00148540: 6c65 730a 0a63 6c61 7373 2065 6e61 626c  les..class enabl
│ │ │ +00148550: 655f 6e66 7461 626c 6573 207b 0a20 2073  e_nftables {.  s
│ │ │ +00148560: 6572 7669 6365 207b 276e 6674 6162 6c65  ervice {'nftable
│ │ │ +00148570: 7327 3a0a 2020 2020 656e 6162 6c65 203d  s':.    enable =
│ │ │ +00148580: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +00148590: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +001485a0: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +001485c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00148660: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00148670: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00148680: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +001486d0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +001486e0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ +001486f0: 6e66 7461 626c 6573 225d 0a3c 2f63 6f64 nftables"].

Remediation │ │ │ -00149500: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00149510: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -00149560: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00149570: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00149580: 6420 3d20 5b22 6e66 7461 626c 6573 225d  d = ["nftables"]
│ │ │ -00149590: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00149650: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00149660: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00149730: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00149740: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00149790: 6e63 6c75 6465 2064 6973 6162 6c65 5f6e  nclude disable_n
│ │ │ -001497a0: 6674 6162 6c65 730a 0a63 6c61 7373 2064  ftables..class d
│ │ │ -001497b0: 6973 6162 6c65 5f6e 6674 6162 6c65 7320  isable_nftables 
│ │ │ -001497c0: 7b0a 2020 7365 7276 6963 6520 7b27 6e66  {.  service {'nf
│ │ │ -001497d0: 7461 626c 6573 273a 0a20 2020 2065 6e61  tables':.    ena
│ │ │ -001497e0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -001497f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00149800: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -00149810: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00149820: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -001498d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -001498e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ -00149710: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00149720: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00149760: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00149770: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00149960: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00149980: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -001499d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00149a00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00149970: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00149990: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -001499e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -001499f0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00149a20: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00149a30: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00149a40: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00149a50: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00149a60: 202d 2050 4349 2d44 5353 7634 2d31 2e32   - PCI-DSSv4-1.2
│ │ │ -00149a70: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00149a80: 2e32 2e31 0a20 202d 2064 6973 6162 6c65  .2.1.  - disable
│ │ │ -00149a90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00149aa0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00149ab0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00149ac0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00149ad0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00149ae0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00149af0: 7669 6365 5f6e 6674 6162 6c65 735f 6469  vice_nftables_di
│ │ │ -00149b00: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -00149b10: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ -00149b20: 5365 7276 6963 6520 6973 2044 6973 6162  Service is Disab
│ │ │ -00149b30: 6c65 6420 2d20 4469 7361 626c 6520 7365  led - Disable se
│ │ │ -00149b40: 7276 6963 6520 6e66 7461 626c 6573 0a20  rvice nftables. 
│ │ │ -00149b50: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -00149b60: 653a 2056 6572 6966 7920 6e66 7461 626c  e: Verify nftabl
│ │ │ -00149b70: 6573 2053 6572 7669 6365 2069 7320 4469  es Service is Di
│ │ │ -00149b80: 7361 626c 6564 202d 2043 6f6c 6c65 6374  sabled - Collect
│ │ │ -00149b90: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -00149ba0: 7320 5072 6573 656e 7420 696e 0a20 2020  s Present in.   
│ │ │ -00149bb0: 2020 2074 6865 2053 7973 7465 6d0a 2020     the System.  
│ │ │ -00149bc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00149bd0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00149be0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00149bf0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -00149c00: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -00149c10: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -00149c20: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -00149c30: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -00149c40: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -00149c50: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -00149c60: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00149c70: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00149c80: 7365 0a0a 2020 2d20 6e61 6d65 3a20 5665  se..  - name: Ve
│ │ │ -00149c90: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ -00149ca0: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ -00149cb0: 6420 2d20 456e 7375 7265 206e 6674 6162  d - Ensure nftab
│ │ │ -00149cc0: 6c65 732e 7365 7276 6963 6520 6973 204d  les.service is M
│ │ │ -00149cd0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00149ce0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00149cf0: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ -00149d00: 6674 6162 6c65 732e 7365 7276 6963 650a  ftables.service.
│ │ │ -00149d10: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00149d20: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -00149d30: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00149d40: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00149d50: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -00149d60: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -00149d70: 6573 2069 7320 7365 6172 6368 2822 6e66  es is search("nf
│ │ │ -00149d80: 7461 626c 6573 2e73 6572 7669 6365 222c  tables.service",
│ │ │ -00149d90: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00149da0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -00149db0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -00149dc0: 206e 6674 6162 6c65 732e 736f 636b 6574   nftables.socket
│ │ │ -00149dd0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00149de0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00149df0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00149e00: 756e 6974 2d66 696c 6573 206e 6674 6162  unit-files nftab
│ │ │ -00149e10: 6c65 732e 736f 636b 6574 0a20 2020 2072  les.socket.    r
│ │ │ -00149e20: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -00149e30: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -00149e40: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -00149e50: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -00149e60: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00149e70: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -00149e80: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -00149e90: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -00149ea0: 2020 2d20 6e61 6d65 3a20 5665 7269 6679    - name: Verify
│ │ │ -00149eb0: 206e 6674 6162 6c65 7320 5365 7276 6963   nftables Servic
│ │ │ -00149ec0: 6520 6973 2044 6973 6162 6c65 6420 2d20  e is Disabled - 
│ │ │ -00149ed0: 4469 7361 626c 6520 536f 636b 6574 206e  Disable Socket n
│ │ │ -00149ee0: 6674 6162 6c65 730a 2020 2020 616e 7369  ftables.    ansi
│ │ │ -00149ef0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00149f00: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00149f10: 206e 6674 6162 6c65 732e 736f 636b 6574   nftables.socket
│ │ │ -00149f20: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00149f30: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -00149f40: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00149f50: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00149f60: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -00149f70: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -00149f80: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00149f90: 6828 226e 6674 6162 6c65 732e 736f 636b  h("nftables.sock
│ │ │ -00149fa0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -00149fb0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -00149fc0: 2050 4349 2d44 5353 7634 2d31 2e32 0a20   PCI-DSSv4-1.2. 
│ │ │ -00149fd0: 202d 2050 4349 2d44 5353 7634 2d31 2e32   - PCI-DSSv4-1.2
│ │ │ -00149fe0: 2e31 0a20 202d 2064 6973 6162 6c65 5f73  .1.  - disable_s
│ │ │ -00149ff0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0014a000: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0014a010: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0014a020: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0014a030: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0014a040: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0014a050: 6365 5f6e 6674 6162 6c65 735f 6469 7361  ce_nftables_disa
│ │ │ -0014a060: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -0014a070: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -0014a080: 2077 6865 6e3a 2028 2022 6669 7265 7761   when: ( "firewa
│ │ │ -0014a090: 6c6c 6422 2069 6e20 616e 7369 626c 655f  lld" in ansible_
│ │ │ -0014a0a0: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ -0014a0b0: 6e64 2022 6e66 7461 626c 6573 2220 696e  nd "nftables" in
│ │ │ -0014a0c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0014a0d0: 6163 6b61 6765 730a 2020 2020 616e 6420  ackages.    and 
│ │ │ -0014a0e0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0014a0f0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0014a100: 636b 6167 6573 2029 0a3c 2f63 6f64 653e  ckages ).
│ │ │ +00149500: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +00149510: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity: │ │ │ +001495a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +001495c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +001495e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00149610: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00149620: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00149650: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00149660: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00149670: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00149680: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00149690: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ +001496a0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +001496b0: 312e 322e 310a 2020 2d20 6469 7361 626c  1.2.1.  - disabl
│ │ │ +001496c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001496d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001496e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001496f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00149700: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00149710: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00149720: 7276 6963 655f 6e66 7461 626c 6573 5f64  rvice_nftables_d
│ │ │ +00149730: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ +00149740: 2056 6572 6966 7920 6e66 7461 626c 6573   Verify nftables
│ │ │ +00149750: 2053 6572 7669 6365 2069 7320 4469 7361   Service is Disa
│ │ │ +00149760: 626c 6564 202d 2044 6973 6162 6c65 2073  bled - Disable s
│ │ │ +00149770: 6572 7669 6365 206e 6674 6162 6c65 730a  ervice nftables.
│ │ │ +00149780: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00149790: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ +001497a0: 6c65 7320 5365 7276 6963 6520 6973 2044  les Service is D
│ │ │ +001497b0: 6973 6162 6c65 6420 2d20 436f 6c6c 6563  isabled - Collec
│ │ │ +001497c0: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +001497d0: 6573 2050 7265 7365 6e74 2069 6e0a 2020  es Present in.  
│ │ │ +001497e0: 2020 2020 7468 6520 5379 7374 656d 0a20      the System. 
│ │ │ +001497f0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00149800: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00149810: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00149820: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +00149830: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +00149840: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +00149850: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00149860: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00149870: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +00149880: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +00149890: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +001498a0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +001498b0: 6c73 650a 0a20 202d 206e 616d 653a 2056  lse..  - name: V
│ │ │ +001498c0: 6572 6966 7920 6e66 7461 626c 6573 2053  erify nftables S
│ │ │ +001498d0: 6572 7669 6365 2069 7320 4469 7361 626c  ervice is Disabl
│ │ │ +001498e0: 6564 202d 2045 6e73 7572 6520 6e66 7461  ed - Ensure nfta
│ │ │ +001498f0: 626c 6573 2e73 6572 7669 6365 2069 7320  bles.service is 
│ │ │ +00149900: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +00149910: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00149920: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00149930: 6e66 7461 626c 6573 2e73 6572 7669 6365  nftables.service
│ │ │ +00149940: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00149950: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +00149960: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00149970: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00149980: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00149990: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +001499a0: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ +001499b0: 6674 6162 6c65 732e 7365 7276 6963 6522  ftables.service"
│ │ │ +001499c0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +001499d0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +001499e0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +001499f0: 2d20 6e66 7461 626c 6573 2e73 6f63 6b65  - nftables.socke
│ │ │ +00149a00: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00149a10: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00149a20: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00149a30: 2d75 6e69 742d 6669 6c65 7320 6e66 7461  -unit-files nfta
│ │ │ +00149a40: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ +00149a50: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +00149a60: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +00149a70: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00149a80: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00149a90: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00149aa0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +00149ab0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +00149ac0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +00149ad0: 0a20 202d 206e 616d 653a 2056 6572 6966  .  - name: Verif
│ │ │ +00149ae0: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ +00149af0: 6365 2069 7320 4469 7361 626c 6564 202d  ce is Disabled -
│ │ │ +00149b00: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +00149b10: 6e66 7461 626c 6573 0a20 2020 2061 6e73  nftables.    ans
│ │ │ +00149b20: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00149b30: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00149b40: 3a20 6e66 7461 626c 6573 2e73 6f63 6b65  : nftables.socke
│ │ │ +00149b50: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +00149b60: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +00149b70: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00149b80: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00149b90: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +00149ba0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +00149bb0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00149bc0: 6368 2822 6e66 7461 626c 6573 2e73 6f63  ch("nftables.soc
│ │ │ +00149bd0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00149be0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +00149bf0: 2d20 5043 492d 4453 5376 342d 312e 320a  - PCI-DSSv4-1.2.
│ │ │ +00149c00: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ +00149c10: 322e 310a 2020 2d20 6469 7361 626c 655f  2.1.  - disable_
│ │ │ +00149c20: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00149c30: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00149c40: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00149c50: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00149c60: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00149c70: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00149c80: 6963 655f 6e66 7461 626c 6573 5f64 6973  ice_nftables_dis
│ │ │ +00149c90: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00149ca0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00149cb0: 2020 7768 656e 3a20 2820 2266 6972 6577    when: ( "firew
│ │ │ +00149cc0: 616c 6c64 2220 696e 2061 6e73 6962 6c65  alld" in ansible
│ │ │ +00149cd0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00149ce0: 616e 6420 226e 6674 6162 6c65 7322 2069  and "nftables" i
│ │ │ +00149cf0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00149d00: 7061 636b 6167 6573 0a20 2020 2061 6e64  packages.    and
│ │ │ +00149d10: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ +00149d20: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00149d30: 6163 6b61 6765 7320 290a 3c2f 636f 6465  ackages ).
Remedi │ │ │ +00149df0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00149e00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00149e10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00149e40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00149eb0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00149ed0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00149f00: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00149f20: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00149e90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00149ea0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00149ee0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00149ef0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00149f40: 6469 7361 626c 655f 6e66 7461 626c 6573 disable_nftables │ │ │ +00149f50: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +00149f60: 6e66 7461 626c 6573 207b 0a20 2073 6572 nftables {. ser │ │ │ +00149f70: 7669 6365 207b 276e 6674 6162 6c65 7327 vice {'nftables' │ │ │ +00149f80: 3a0a 2020 2020 656e 6162 6c65 203d 2667 :. enable =&g │ │ │ +00149f90: 743b 2066 616c 7365 2c0a 2020 2020 656e t; false,. en │ │ │ +00149fa0: 7375 7265 203d 2667 743b 2027 7374 6f70 sure => 'stop │ │ │ +00149fb0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ped',. }.}.
< │ │ │ +00149fd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00149fe0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00149ff0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0014a000: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0014a010: 6434 3237 2220 7461 6269 6e64 6578 3d22 d427" tabindex=" │ │ │ +0014a020: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0014a030: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0014a040: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0014a050: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0014a060: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0014a070: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0014a080: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0014a090: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0014a0e0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0014a0f0: 735d 0a6d 6173 6b65 6420 3d20 5b22 6e66 s].masked = ["nf │ │ │ +0014a100: 7461 626c 6573 225d 0a3c 2f63 6f64 653e tables"]. │ │ │ 0014a110: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Re │ │ │ -00152880: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00152890: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -001528a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001528b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001528c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001528d0: 7365 2220 6964 3d22 6964 3434 3122 3e3c se" id="id441">< │ │ │ -001528e0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -001528f0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00152900: 7566 7722 0a76 6572 7369 6f6e 203d 2022 ufw".version = " │ │ │ -00152910: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ -00152920: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -001529d0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -001529e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00152a60: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00152a80: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00152ad0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -00152b20: 5f75 6677 0a0a 636c 6173 7320 696e 7374  _ufw..class inst
│ │ │ -00152b30: 616c 6c5f 7566 7720 7b0a 2020 7061 636b  all_ufw {.  pack
│ │ │ -00152b40: 6167 6520 7b20 2775 6677 273a 0a20 2020  age { 'ufw':.   
│ │ │ -00152b50: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -00152b60: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -00152b70: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00152c30: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00152c40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -00152a90: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00152aa0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00152ae0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00152af0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00152d10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00152d20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00152d70: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00152d80: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00152d90: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00152da0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00152db0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00152dc0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00152dd0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00152de0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00152df0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00152e00: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00152e10: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00152e20: 202d 2070 6163 6b61 6765 5f75 6677 5f69   - package_ufw_i
│ │ │ -00152e30: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -00152e40: 3a20 456e 7375 7265 2075 6677 2069 7320  : Ensure ufw is 
│ │ │ -00152e50: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00152e60: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00152e70: 6167 653a 0a20 2020 206e 616d 653a 2075  age:.    name: u
│ │ │ -00152e80: 6677 0a20 2020 2073 7461 7465 3a20 7072  fw.    state: pr
│ │ │ -00152e90: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00152ea0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00152eb0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00152ec0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00152ed0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00152ee0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00152ef0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00152f00: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00152f10: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00152f20: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00152f30: 640a 2020 2d20 7061 636b 6167 655f 7566  d.  - package_uf
│ │ │ -00152f40: 775f 696e 7374 616c 6c65 640a 3c2f 636f  w_installed.
low
Disru │ │ │ -00152cf0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00152d00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00152d40: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00152d50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00152930: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00152940: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00152990: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +001529d0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +001529e0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +001529f0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00152a00: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00152a10: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +00152a20: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00152a30: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00152a40: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00152a50: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00152a60: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00152a70: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00152a80: 7061 636b 6167 655f 7566 775f 696e 7374  package_ufw_inst
│ │ │ +00152a90: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +00152aa0: 6e73 7572 6520 7566 7720 6973 2069 6e73  nsure ufw is ins
│ │ │ +00152ab0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00152ac0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00152ad0: 3a0a 2020 2020 6e61 6d65 3a20 7566 770a  :.    name: ufw.
│ │ │ +00152ae0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +00152af0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00152b00: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00152b10: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00152b20: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00152b30: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00152b40: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00152b50: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00152b60: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00152b70: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00152b80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00152b90: 202d 2070 6163 6b61 6765 5f75 6677 5f69   - package_ufw_i
│ │ │ +00152ba0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00152bb0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00152c60: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00152c70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00152c80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00152c90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00152ca0: 7365 2220 6964 3d22 6964 3434 3222 3e3c se" id="id442">< │ │ │ +00152cb0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00152cc0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00152cd0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00152ce0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00152cf0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00152d80: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00152d90: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +00152920: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00152950: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00152960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001529a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +001529b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +00152d00: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00152d10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00152d50: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00152d60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +00152db0: 6e73 7461 6c6c 5f75 6677 0a0a 636c 6173  nstall_ufw..clas
│ │ │ +00152dc0: 7320 696e 7374 616c 6c5f 7566 7720 7b0a  s install_ufw {.
│ │ │ +00152dd0: 2020 7061 636b 6167 6520 7b20 2775 6677    package { 'ufw
│ │ │ +00152de0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00152df0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +00152e00: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +00152ec0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00152ed0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00152ee0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +00152f30: 0a6e 616d 6520 3d20 2275 6677 220a 7665  .name = "ufw".ve
│ │ │ +00152f40: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00152f60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00152f70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00152f80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00152f90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00152fa0: 6434 3434 2220 7461 6269 6e64 6578 3d22 d444" tabindex=" │ │ │ 00152fb0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -86943,104 +86943,104 @@ │ │ │ 001539e0: 6c61 7073 6522 2064 6174 612d 7461 7267 lapse" data-targ │ │ │ 001539f0: 6574 3d22 2369 6434 3436 2220 7461 6269 et="#id446" tabi │ │ │ 00153a00: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 00153a10: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 00153a20: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 00153a30: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 00153a40: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -00153a50: 223e 5265 6d65 6469 6174 696f 6e20 5075 ">Remediation Pu │ │ │ -00153a60: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00153a70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00153b40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00153b50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00153bb0: 5f75 6677 0a0a 636c 6173 7320 7265 6d6f  _ufw..class remo
│ │ │ -00153bc0: 7665 5f75 6677 207b 0a20 2070 6163 6b61  ve_ufw {.  packa
│ │ │ -00153bd0: 6765 207b 2027 7566 7727 3a0a 2020 2020  ge { 'ufw':.    
│ │ │ -00153be0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00153bf0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00153c10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00153cb0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00153cc0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00153cd0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ -00153b20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00153b30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00153b70: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00153b80: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -00153d70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00153dc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00153e00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00153e10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00153e20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00153e30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00153e40: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00153e50: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00153e60: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00153e70: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00153e80: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00153e90: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00153ea0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00153eb0: 2070 6163 6b61 6765 5f75 6677 5f72 656d   package_ufw_rem
│ │ │ -00153ec0: 6f76 6564 0a0a 2d20 6e61 6d65 3a20 2752  oved..- name: 'R
│ │ │ -00153ed0: 656d 6f76 6520 7566 7720 5061 636b 6167  emove ufw Packag
│ │ │ -00153ee0: 653a 2045 6e73 7572 6520 7566 7720 6973  e: Ensure ufw is
│ │ │ -00153ef0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00153f00: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00153f10: 6167 653a 0a20 2020 206e 616d 653a 2075  age:.    name: u
│ │ │ -00153f20: 6677 0a20 2020 2073 7461 7465 3a20 6162  fw.    state: ab
│ │ │ -00153f30: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -00153f40: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00153f50: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00153f60: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -00153f70: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00153f80: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00153f90: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00153fa0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00153fb0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00153fc0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00153fd0: 640a 2020 2d20 7061 636b 6167 655f 7566  d.  - package_uf
│ │ │ -00153fe0: 775f 7265 6d6f 7665 640a 3c2f 636f 6465  w_removed.Remediation An
│ │ │ +00153a60: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00153a70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Co │ │ │ -00153d50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00153d80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00153da0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00153db0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00153dd0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00153de0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00153af0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00153b10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00153b60: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00153b90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00153bb0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00153bc0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00153bd0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00153be0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00153bf0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00153c00: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00153c10: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00153c20: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00153c30: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00153c40: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00153c50: 640a 2020 2d20 7061 636b 6167 655f 7566  d.  - package_uf
│ │ │ +00153c60: 775f 7265 6d6f 7665 640a 0a2d 206e 616d  w_removed..- nam
│ │ │ +00153c70: 653a 2027 5265 6d6f 7665 2075 6677 2050  e: 'Remove ufw P
│ │ │ +00153c80: 6163 6b61 6765 3a20 456e 7375 7265 2075  ackage: Ensure u
│ │ │ +00153c90: 6677 2069 7320 7265 6d6f 7665 6427 0a20  fw is removed'. 
│ │ │ +00153ca0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00153cb0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00153cc0: 6d65 3a20 7566 770a 2020 2020 7374 6174  me: ufw.    stat
│ │ │ +00153cd0: 653a 2061 6273 656e 740a 2020 7768 656e  e: absent.  when
│ │ │ +00153ce0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00153cf0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00153d00: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +00153d10: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00153d20: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00153d30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00153d40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00153d50: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00153d60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00153d70: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00153d80: 6765 5f75 6677 5f72 656d 6f76 6564 0a3c  ge_ufw_removed.<
│ │ │ +00153d90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00153e40: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00153e50: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00153b20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00153b30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00153b70: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00153b80: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00153ef0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00153f00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00153f50: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00153f90: 6e63 6c75 6465 2072 656d 6f76 655f 7566  nclude remove_uf
│ │ │ +00153fa0: 770a 0a63 6c61 7373 2072 656d 6f76 655f  w..class remove_
│ │ │ +00153fb0: 7566 7720 7b0a 2020 7061 636b 6167 6520  ufw {.  package 
│ │ │ +00153fc0: 7b20 2775 6677 273a 0a20 2020 2065 6e73  { 'ufw':.    ens
│ │ │ +00153fd0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00153fe0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation │ │ │ -00154ef0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00154f00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -00154f60: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -00154f70: 6c65 6420 3d20 5b22 7566 7722 5d0a 3c2f  led = ["ufw"].
Re │ │ │ -00155030: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00155040: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00155050: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +00153ee0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00153f10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00153f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00153f60: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00153f70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -001550f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00155140: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -001550d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00155100: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00155120: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00155130: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00155150: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00155160: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00155180: 7564 6520 656e 6162 6c65 5f75 6677 0a0a  ude enable_ufw..
│ │ │ -00155190: 636c 6173 7320 656e 6162 6c65 5f75 6677  class enable_ufw
│ │ │ -001551a0: 207b 0a20 2073 6572 7669 6365 207b 2775   {.  service {'u
│ │ │ -001551b0: 6677 273a 0a20 2020 2065 6e61 626c 6520  fw':.    enable 
│ │ │ -001551c0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -001551d0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -001551e0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -001552a0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -001552b0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00155350: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00155360: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001553b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -001553f0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00155400: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00155410: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00155420: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00155430: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00155440: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00155450: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00155460: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00155470: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00155480: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00155490: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001554a0: 7365 7276 6963 655f 7566 775f 656e 6162  service_ufw_enab
│ │ │ -001554b0: 6c65 640a 0a2d 206e 616d 653a 2056 6572  led..- name: Ver
│ │ │ -001554c0: 6966 7920 7566 7720 456e 6162 6c65 6420  ify ufw Enabled 
│ │ │ -001554d0: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -001554e0: 2075 6677 0a20 2062 6c6f 636b 3a0a 0a20   ufw.  block:.. 
│ │ │ -001554f0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -00155500: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00155510: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -00155520: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -00155530: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -00155540: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -00155550: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ -00155560: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ -00155570: 5365 7276 6963 6520 7566 770a 2020 2020  Service ufw.    
│ │ │ -00155580: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00155590: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -001555a0: 616d 653a 2075 6677 0a20 2020 2020 2065  ame: ufw.      e
│ │ │ -001555b0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -001555c0: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -001555d0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -001555e0: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -001555f0: 2020 2020 2d20 2722 7566 7722 2069 6e20      - '"ufw" in 
│ │ │ -00155600: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00155610: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00155620: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00155630: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00155640: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00155650: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00155660: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00155670: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00155680: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ -00155690: 6677 5f65 6e61 626c 6564 0a20 202d 2073  fw_enabled.  - s
│ │ │ -001556a0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -001556b0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -001556c0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -001556d0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -001556e0: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -001556f0: 2275 6677 2220 696e 2061 6e73 6962 6c65  "ufw" in ansible
│ │ │ -00155700: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ -00155710: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ -00155720: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00155730: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
< │ │ │ +00154fc0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00154fd0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00155340: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00155370: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00155380: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001553c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -001553d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00154f90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00154fb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00154fe0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00155000: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00155040: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00155050: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00155060: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00155070: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00155080: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00155090: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +001550a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +001550b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +001550c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +001550d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001550e0: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ +001550f0: 6677 5f65 6e61 626c 6564 0a0a 2d20 6e61  fw_enabled..- na
│ │ │ +00155100: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ +00155110: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ +00155120: 7365 7276 6963 6520 7566 770a 2020 626c  service ufw.  bl
│ │ │ +00155130: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00155140: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00155150: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00155160: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00155170: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00155180: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00155190: 0a20 202d 206e 616d 653a 2056 6572 6966  .  - name: Verif
│ │ │ +001551a0: 7920 7566 7720 456e 6162 6c65 6420 2d20  y ufw Enabled - 
│ │ │ +001551b0: 456e 6162 6c65 2053 6572 7669 6365 2075  Enable Service u
│ │ │ +001551c0: 6677 0a20 2020 2061 6e73 6962 6c65 2e62  fw.    ansible.b
│ │ │ +001551d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +001551e0: 2020 2020 2020 6e61 6d65 3a20 7566 770a        name: ufw.
│ │ │ +001551f0: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +00155200: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +00155210: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +00155220: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +00155230: 2077 6865 6e3a 0a20 2020 202d 2027 2275   when:.    - '"u
│ │ │ +00155240: 6677 2220 696e 2061 6e73 6962 6c65 5f66  fw" in ansible_f
│ │ │ +00155250: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00155260: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00155270: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00155280: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00155290: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001552a0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001552b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001552c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001552d0: 7276 6963 655f 7566 775f 656e 6162 6c65  rvice_ufw_enable
│ │ │ +001552e0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +001552f0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00155300: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ +00155310: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00155320: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00155330: 0a20 202d 2028 2022 7566 7722 2069 6e20  .  - ( "ufw" in 
│ │ │ +00155340: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00155350: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ +00155360: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00155370: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00155380: 7320 290a 3c2f 636f 6465 3e3c 2f70 7265  s ).
Remediation │ │ │ +00155440: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00155450: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001554d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001554f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00155540: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00155570: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +00155590: 5f75 6677 0a0a 636c 6173 7320 656e 6162  _ufw..class enab
│ │ │ +001555a0: 6c65 5f75 6677 207b 0a20 2073 6572 7669  le_ufw {.  servi
│ │ │ +001555b0: 6365 207b 2775 6677 273a 0a20 2020 2065  ce {'ufw':.    e
│ │ │ +001555c0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +001555d0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +001555e0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +001555f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +001556b0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +001556c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00155710: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00155720: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00155730: 6564 203d 205b 2275 6677 225d 0a3c 2f63  ed = ["ufw"].
│ │ │ 00155750: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation OSB │ │ │ -00218b40: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00218b50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -00218ba0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -00218bb0: 3d20 2263 726f 6e22 0a76 6572 7369 6f6e  = "cron".version
│ │ │ -00218bc0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00218c80: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00218c90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00218d10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00218d50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ +001554e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00155500: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00155550: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00155560: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -00218d20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00218d40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00218d70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00218d90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00218dc0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00218dd0: 7461 6c6c 5f63 726f 6e0a 0a63 6c61 7373  tall_cron..class
│ │ │ -00218de0: 2069 6e73 7461 6c6c 5f63 726f 6e20 7b0a   install_cron {.
│ │ │ -00218df0: 2020 7061 636b 6167 6520 7b20 2763 726f    package { 'cro
│ │ │ -00218e00: 6e27 3a0a 2020 2020 656e 7375 7265 203d  n':.    ensure =
│ │ │ -00218e10: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00218e20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00218e30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00218ee0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00218ef0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00218f00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00218f10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00218f20: 7365 2220 6964 3d22 6964 3831 3522 3e3c se" id="id815">< │ │ │ -00218f30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00218f40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00218f50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00218f60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00218f70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00218f80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00218f90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00218fd0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00218fe0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00219000: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00219010: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00219030: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00219040: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00219050: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00219060: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00219070: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00219080: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -00219090: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -002190a0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -002190b0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -002190c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002190d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002190e0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002190f0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00219100: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00219110: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00219120: 6372 6f6e 5f69 6e73 7461 6c6c 6564 0a0a  cron_installed..
│ │ │ -00219130: 2d20 6e61 6d65 3a20 456e 7375 7265 2063  - name: Ensure c
│ │ │ -00219140: 726f 6e20 6973 2069 6e73 7461 6c6c 6564  ron is installed
│ │ │ -00219150: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00219160: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00219170: 6e61 6d65 3a20 6372 6f6e 0a20 2020 2073  name: cron.    s
│ │ │ -00219180: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -00219190: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -002191a0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -002191b0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -002191c0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002191d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002191e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002191f0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00219200: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ -00219210: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00219220: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00219230: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00219240: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00219250: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00219260: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00219270: 6167 655f 6372 6f6e 5f69 6e73 7461 6c6c  age_cron_install
│ │ │ -00219280: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00218b30: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00218b40: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00218b50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00218c20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00218c30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00218c80: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00218c90: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00218ca0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00218cb0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00218cc0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00218cd0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00218ce0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ +00218cf0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00218d00: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ +00218d10: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00218d20: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00218d30: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00218d40: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00218d50: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00218d60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00218d70: 2070 6163 6b61 6765 5f63 726f 6e5f 696e   package_cron_in
│ │ │ +00218d80: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00218d90: 2045 6e73 7572 6520 6372 6f6e 2069 7320   Ensure cron is 
│ │ │ +00218da0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +00218db0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00218dc0: 6167 653a 0a20 2020 206e 616d 653a 2063  age:.    name: c
│ │ │ +00218dd0: 726f 6e0a 2020 2020 7374 6174 653a 2070  ron.    state: p
│ │ │ +00218de0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +00218df0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00218e00: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00218e10: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00218e20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00218e30: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00218e40: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00218e50: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +00218e60: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00218e70: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00218e80: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00218e90: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00218ea0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00218eb0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00218ec0: 0a20 202d 2070 6163 6b61 6765 5f63 726f  .  - package_cro
│ │ │ +00218ed0: 6e5f 696e 7374 616c 6c65 640a 3c2f 636f  n_installed.
< │ │ │ +00218ef0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00218f00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00218f10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00218f20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00218f30: 6438 3134 2220 7461 6269 6e64 6578 3d22 d814" tabindex=" │ │ │ +00218f40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00218f50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00218f60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00218f70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00218f80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00218f90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00218fa0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +00218c00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00218c10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00218c50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00218c60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +00219030: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00219040: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00219060: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00219080: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00219090: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +002190d0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +002190e0: 6520 696e 7374 616c 6c5f 6372 6f6e 0a0a e install_cron.. │ │ │ +002190f0: 636c 6173 7320 696e 7374 616c 6c5f 6372 class install_cr │ │ │ +00219100: 6f6e 207b 0a20 2070 6163 6b61 6765 207b on {. package { │ │ │ +00219110: 2027 6372 6f6e 273a 0a20 2020 2065 6e73 'cron':. ens │ │ │ +00219120: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ +00219130: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ +00219150: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +002191f0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00219200: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00219210: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +00219260: 6167 6573 5d5d 0a6e 616d 6520 3d20 2263 ages]].name = "c │ │ │ +00219270: 726f 6e22 0a76 6572 7369 6f6e 203d 2022 ron".version = " │ │ │ +00219280: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ 00219290: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22

Remediation OSB │ │ │ -0021a4b0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0021a4c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -0021a510: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -0021a520: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -0021a530: 3d20 5b22 6372 6f6e 225d 0a3c 2f63 6f64  = ["cron"].
Remed │ │ │ -0021a5f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0021a600: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0021a6b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0021a6d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0021a700: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0021a690: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0021a6a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0021a6c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0021a6e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0021a6f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0021a740: 2065 6e61 626c 655f 6372 6f6e 0a0a 636c enable_cron..cl │ │ │ -0021a750: 6173 7320 656e 6162 6c65 5f63 726f 6e20 ass enable_cron │ │ │ -0021a760: 7b0a 2020 7365 7276 6963 6520 7b27 6372 {. service {'cr │ │ │ -0021a770: 6f6e 273a 0a20 2020 2065 6e61 626c 6520 on':. enable │ │ │ -0021a780: 3d26 6774 3b20 7472 7565 2c0a 2020 2020 => true,. │ │ │ -0021a790: 656e 7375 7265 203d 2667 743b 2027 7275 ensure => 'ru │ │ │ -0021a7a0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f nning',. }.}.

Re │ │ │ -0021a860: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0021a870: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0021a910: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0021a920: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0021a970: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0021a9b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0021a9c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0021a9d0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0021a9e0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0021a9f0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0021aa00: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0021aa10: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0021aa20: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0021aa30: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0021aa40: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0021aa50: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0021aa60: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0021aa70: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0021aa80: 6372 6f6e 5f65 6e61 626c 6564 0a0a 2d20  cron_enabled..- 
│ │ │ -0021aa90: 6e61 6d65 3a20 456e 6162 6c65 2063 726f  name: Enable cro
│ │ │ -0021aaa0: 6e20 5365 7276 6963 6520 2d20 456e 6162  n Service - Enab
│ │ │ -0021aab0: 6c65 2073 6572 7669 6365 2063 726f 6e0a  le service cron.
│ │ │ -0021aac0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0021aad0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0021aae0: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -0021aaf0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0021ab00: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -0021ab10: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -0021ab20: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -0021ab30: 6e61 626c 6520 6372 6f6e 2053 6572 7669  nable cron Servi
│ │ │ -0021ab40: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ -0021ab50: 6963 6520 6372 6f6e 0a20 2020 2061 6e73  ice cron.    ans
│ │ │ -0021ab60: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -0021ab70: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -0021ab80: 3a20 6372 6f6e 0a20 2020 2020 2065 6e61  : cron.      ena
│ │ │ -0021ab90: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -0021aba0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -0021abb0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -0021abc0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -0021abd0: 2020 2d20 2722 6372 6f6e 2220 696e 2061    - '"cron" in a
│ │ │ -0021abe0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0021abf0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -0021ac00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0021ac10: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -0021ac20: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0021ac30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0021ac40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0021ac50: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0021ac60: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0021ac70: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0021ac80: 7276 6963 655f 6372 6f6e 5f65 6e61 626c  rvice_cron_enabl
│ │ │ -0021ac90: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -0021aca0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -0021acb0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0021acc0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0021acd0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation Ans
│ │ │ +0021a4b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0021a4c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
C │ │ │ -0021a900: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0021a930: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0021a940: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0021a980: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0021a990: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +0021a590: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0021a5a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0021a5f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0021a600: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0021a610: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0021a620: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0021a630: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0021a640: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0021a650: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +0021a660: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0021a670: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0021a680: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0021a690: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0021a6a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0021a6b0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0021a6c0: 6365 5f63 726f 6e5f 656e 6162 6c65 640a  ce_cron_enabled.
│ │ │ +0021a6d0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +0021a6e0: 6372 6f6e 2053 6572 7669 6365 202d 2045  cron Service - E
│ │ │ +0021a6f0: 6e61 626c 6520 7365 7276 6963 6520 6372  nable service cr
│ │ │ +0021a700: 6f6e 0a20 2062 6c6f 636b 3a0a 0a20 202d  on.  block:..  -
│ │ │ +0021a710: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0021a720: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0021a730: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0021a740: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ +0021a750: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ +0021a760: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ +0021a770: 3a20 456e 6162 6c65 2063 726f 6e20 5365  : Enable cron Se
│ │ │ +0021a780: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ +0021a790: 6572 7669 6365 2063 726f 6e0a 2020 2020  ervice cron.    
│ │ │ +0021a7a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0021a7b0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0021a7c0: 616d 653a 2063 726f 6e0a 2020 2020 2020  ame: cron.      
│ │ │ +0021a7d0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +0021a7e0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +0021a7f0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +0021a800: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +0021a810: 0a20 2020 202d 2027 2263 726f 6e22 2069  .    - '"cron" i
│ │ │ +0021a820: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0021a830: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0021a840: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0021a850: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +0021a860: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0021a870: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0021a880: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0021a890: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0021a8a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0021a8b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0021a8c0: 2073 6572 7669 6365 5f63 726f 6e5f 656e   service_cron_en
│ │ │ +0021a8d0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0021a8e0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0021a8f0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +0021a900: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0021a910: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0021a920: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0021a9e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0021a9f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +0021a570: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0021a580: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0021a5c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0021a5d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0021aac0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0021aad0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0021ab20: 6e63 6c75 6465 2065 6e61 626c 655f 6372  nclude enable_cr
│ │ │ +0021ab30: 6f6e 0a0a 636c 6173 7320 656e 6162 6c65  on..class enable
│ │ │ +0021ab40: 5f63 726f 6e20 7b0a 2020 7365 7276 6963  _cron {.  servic
│ │ │ +0021ab50: 6520 7b27 6372 6f6e 273a 0a20 2020 2065  e {'cron':.    e
│ │ │ +0021ab60: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +0021ab70: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +0021ab80: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +0021ab90: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0021ac50: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0021ac60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +0021acb0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0021acc0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +0021acd0: 6564 203d 205b 2263 726f 6e22 5d0a 3c2f  ed = ["cron"].
Remediation Pup │ │ │ -00236f50: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00236f60: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0021aaa0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0021aab0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0021aaf0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0021ab00: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00237030: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00237040: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00237090: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002370a0: 6e69 730a 0a63 6c61 7373 2072 656d 6f76  nis..class remov
│ │ │ -002370b0: 655f 6e69 7320 7b0a 2020 7061 636b 6167  e_nis {.  packag
│ │ │ -002370c0: 6520 7b20 276e 6973 273a 0a20 2020 2065  e { 'nis':.    e
│ │ │ -002370d0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002370e0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00237100: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00237110: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00237120: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00237130: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00237140: 6438 3738 2220 7461 6269 6e64 6578 3d22 d878" tabindex=" │ │ │ -00237150: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00237160: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00237170: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00237180: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00237190: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -002371a0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002371b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002371c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -00237010: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00237020: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00237060: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00237070: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -00237240: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00237270: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00237290: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002372a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002372c0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002372d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002372f0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -00237300: 6865 206e 6973 2070 6163 6b61 6765 3a20  he nis package: 
│ │ │ -00237310: 456e 7375 7265 206e 6973 2069 7320 7265  Ensure nis is re
│ │ │ -00237320: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00237330: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00237340: 3a0a 2020 2020 6e61 6d65 3a20 6e69 730a  :.    name: nis.
│ │ │ -00237350: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00237360: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ -00237370: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00237380: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00237390: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002373a0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -002373b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002373c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002373d0: 6163 6b61 6765 5f6e 6973 5f72 656d 6f76  ackage_nis_remov
│ │ │ -002373e0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00236f40: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00236f50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00236f60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00237030: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00237040: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +002370a0: 616c 6c20 7468 6520 6e69 7320 7061 636b  all the nis pack
│ │ │ +002370b0: 6167 653a 2045 6e73 7572 6520 6e69 7320  age: Ensure nis 
│ │ │ +002370c0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002370d0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002370e0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002370f0: 206e 6973 0a20 2020 2073 7461 7465 3a20   nis.    state: 
│ │ │ +00237100: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00237110: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00237120: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00237130: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00237140: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00237150: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00237160: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00237170: 2020 2d20 7061 636b 6167 655f 6e69 735f    - package_nis_
│ │ │ +00237180: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00237190: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00237240: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00237250: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +002372d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00237360: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00237370: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00237010: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00237020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00237060: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00237070: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +002372e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002372f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00237330: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00237340: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +00237390: 7265 6d6f 7665 5f6e 6973 0a0a 636c 6173  remove_nis..clas
│ │ │ +002373a0: 7320 7265 6d6f 7665 5f6e 6973 207b 0a20  s remove_nis {. 
│ │ │ +002373b0: 2070 6163 6b61 6765 207b 2027 6e69 7327   package { 'nis'
│ │ │ +002373c0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +002373d0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +002373e0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 002373f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediatio │ │ │ -00239170: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00239180: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00239210: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00239230: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00239240: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00239250: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00239260: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00239280: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002392b0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002392c0: 6d6f 7665 5f64 6863 700a 0a63 6c61 7373  move_dhcp..class
│ │ │ -002392d0: 2072 656d 6f76 655f 6468 6370 207b 0a20   remove_dhcp {. 
│ │ │ -002392e0: 2070 6163 6b61 6765 207b 2027 6468 6370   package { 'dhcp
│ │ │ -002392f0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00239300: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00239310: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002393d0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002393e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00239470: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00239490: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002394b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002394e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002394f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00239520: 6e73 7461 6c6c 2044 4843 5020 5365 7276  nstall DHCP Serv
│ │ │ -00239530: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -00239540: 7265 2064 6863 7020 6973 2072 656d 6f76  re dhcp is remov
│ │ │ -00239550: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00239560: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00239570: 2020 206e 616d 653a 2064 6863 700a 2020     name: dhcp.  
│ │ │ -00239580: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00239590: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002395a0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002395b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002395c0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -002395d0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002395e0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002395f0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00239600: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00239610: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00239620: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00239630: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00239640: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00239650: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00239660: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00239670: 636b 6167 655f 6468 6370 5f72 656d 6f76  ckage_dhcp_remov
│ │ │ -00239680: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00239170: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00239180: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00239200: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00239210: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00239230: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00239240: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00239260: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00239280: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002392b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +002392c0: 6e69 6e73 7461 6c6c 2044 4843 5020 5365  ninstall DHCP Se
│ │ │ +002392d0: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ +002392e0: 7375 7265 2064 6863 7020 6973 2072 656d  sure dhcp is rem
│ │ │ +002392f0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00239300: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00239310: 0a20 2020 206e 616d 653a 2064 6863 700a  .    name: dhcp.
│ │ │ +00239320: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +00239330: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +00239340: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00239350: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00239360: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00239370: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +00239380: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +00239390: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +002393a0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +002393b0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002393c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002393d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002393e0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +002393f0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00239400: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00239410: 7061 636b 6167 655f 6468 6370 5f72 656d  package_dhcp_rem
│ │ │ +00239420: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +002394e0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002394f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00239580: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002395a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002395c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002395f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00239600: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00239630: 6f76 655f 6468 6370 0a0a 636c 6173 7320  ove_dhcp..class 
│ │ │ +00239640: 7265 6d6f 7665 5f64 6863 7020 7b0a 2020  remove_dhcp {.  
│ │ │ +00239650: 7061 636b 6167 6520 7b20 2764 6863 7027  package { 'dhcp'
│ │ │ +00239660: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00239670: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00239680: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00239690: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
R │ │ │ -0023a4e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0023a4f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0023a500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023a510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023a540: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0023a550: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0023a560: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0023a570: 2264 6863 7064 3622 5d0a 3c2f 636f 6465  "dhcpd6"].
Remedi │ │ │ -0023a630: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0023a640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023a650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023a680: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0023a6f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0023a710: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0023a740: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0023a760: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0023a6d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0023a6e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0023a720: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0023a730: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0023a780: 6469 7361 626c 655f 6468 6370 6436 0a0a disable_dhcpd6.. │ │ │ -0023a790: 636c 6173 7320 6469 7361 626c 655f 6468 class disable_dh │ │ │ -0023a7a0: 6370 6436 207b 0a20 2073 6572 7669 6365 cpd6 {. service │ │ │ -0023a7b0: 207b 2764 6863 7064 3627 3a0a 2020 2020 {'dhcpd6':. │ │ │ -0023a7c0: 656e 6162 6c65 203d 2667 743b 2066 616c enable => fal │ │ │ -0023a7d0: 7365 2c0a 2020 2020 656e 7375 7265 203d se,. ensure = │ │ │ -0023a7e0: 2667 743b 2027 7374 6f70 7065 6427 2c0a > 'stopped',. │ │ │ -0023a7f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -0023a8b0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0023a8c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0023a940: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0023a950: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0023a970: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0023a980: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0023a9a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0023a9c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0023a9f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0023aa00: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0023aa10: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0023aa20: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0023aa30: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0023aa40: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0023aa50: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0023aa60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0023aa70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0023aa80: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0023aa90: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0023aaa0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0023aab0: 655f 6468 6370 6436 5f64 6973 6162 6c65  e_dhcpd6_disable
│ │ │ -0023aac0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0023aad0: 6c65 2044 4843 5044 3620 5365 7276 6963  le DHCPD6 Servic
│ │ │ -0023aae0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0023aaf0: 6963 6520 6468 6370 6436 0a20 2062 6c6f  ice dhcpd6.  blo
│ │ │ -0023ab00: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -0023ab10: 6973 6162 6c65 2044 4843 5044 3620 5365  isable DHCPD6 Se
│ │ │ -0023ab20: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0023ab30: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0023ab40: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0023ab50: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0023ab60: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0023ab70: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0023ab80: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0023ab90: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0023aba0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0023abb0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0023abc0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0023abd0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0023abe0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0023abf0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0023ac00: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0023ac10: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0023ac20: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -0023ac30: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ -0023ac40: 456e 7375 7265 2064 6863 7064 362e 7365  Ensure dhcpd6.se
│ │ │ -0023ac50: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0023ac60: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0023ac70: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0023ac80: 2020 206e 616d 653a 2064 6863 7064 362e     name: dhcpd6.
│ │ │ -0023ac90: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0023aca0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0023acb0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0023acc0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0023acd0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0023ace0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0023acf0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0023ad00: 6172 6368 2822 6468 6370 6436 2e73 6572  arch("dhcpd6.ser
│ │ │ -0023ad10: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0023ad20: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0023ad30: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0023ad40: 6973 7473 202d 2064 6863 7064 362e 736f  ists - dhcpd6.so
│ │ │ -0023ad50: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0023ad60: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0023ad70: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0023ad80: 6973 742d 756e 6974 2d66 696c 6573 2064  ist-unit-files d
│ │ │ -0023ad90: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ -0023ada0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0023adb0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0023adc0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0023add0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0023ade0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0023adf0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0023ae00: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0023ae10: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0023ae20: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0023ae30: 626c 6520 4448 4350 4436 2053 6572 7669  ble DHCPD6 Servi
│ │ │ -0023ae40: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -0023ae50: 6b65 7420 6468 6370 6436 0a20 2020 2061  ket dhcpd6.    a
│ │ │ -0023ae60: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0023ae70: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0023ae80: 6d65 3a20 6468 6370 6436 2e73 6f63 6b65  me: dhcpd6.socke
│ │ │ -0023ae90: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -0023aea0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -0023aeb0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0023aec0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0023aed0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -0023aee0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -0023aef0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0023af00: 6368 2822 6468 6370 6436 2e73 6f63 6b65  ch("dhcpd6.socke
│ │ │ -0023af10: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -0023af20: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -0023af30: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0023af40: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0023af50: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0023af60: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0023af70: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0023af80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0023af90: 2020 2d20 7365 7276 6963 655f 6468 6370    - service_dhcp
│ │ │ -0023afa0: 6436 5f64 6973 6162 6c65 640a 2020 2d20  d6_disabled.  - 
│ │ │ -0023afb0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0023afc0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -0023afd0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0023afe0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0023aff0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +0023a590: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0023a630: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0023a640: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0023a650: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0023a660: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0023a670: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +0023a680: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0023a690: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0023a6a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0023a6b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0023a6c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0023a6d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0023a6e0: 202d 2073 6572 7669 6365 5f64 6863 7064   - service_dhcpd
│ │ │ +0023a6f0: 365f 6469 7361 626c 6564 0a0a 2d20 6e61  6_disabled..- na
│ │ │ +0023a700: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +0023a710: 4436 2053 6572 7669 6365 202d 2044 6973  D6 Service - Dis
│ │ │ +0023a720: 6162 6c65 2073 6572 7669 6365 2064 6863  able service dhc
│ │ │ +0023a730: 7064 360a 2020 626c 6f63 6b3a 0a0a 2020  pd6.  block:..  
│ │ │ +0023a740: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0023a750: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ +0023a760: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +0023a770: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +0023a780: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +0023a790: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0023a7a0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0023a7b0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0023a7c0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +0023a7d0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +0023a7e0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +0023a7f0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0023a800: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0023a810: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0023a820: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +0023a830: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0023a840: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0023a850: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0023a860: 4469 7361 626c 6520 4448 4350 4436 2053  Disable DHCPD6 S
│ │ │ +0023a870: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +0023a880: 6468 6370 6436 2e73 6572 7669 6365 2069  dhcpd6.service i
│ │ │ +0023a890: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +0023a8a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0023a8b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0023a8c0: 3a20 6468 6370 6436 2e73 6572 7669 6365  : dhcpd6.service
│ │ │ +0023a8d0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0023a8e0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +0023a8f0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0023a900: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0023a910: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +0023a920: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0023a930: 6e65 7320 6973 2073 6561 7263 6828 2264  nes is search("d
│ │ │ +0023a940: 6863 7064 362e 7365 7276 6963 6522 2c20  hcpd6.service", 
│ │ │ +0023a950: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0023a960: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0023a970: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0023a980: 6468 6370 6436 2e73 6f63 6b65 740a 2020  dhcpd6.socket.  
│ │ │ +0023a990: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0023a9a0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0023a9b0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0023a9c0: 742d 6669 6c65 7320 6468 6370 6436 2e73  t-files dhcpd6.s
│ │ │ +0023a9d0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0023a9e0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0023a9f0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0023aa00: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0023aa10: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0023aa20: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0023aa30: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0023aa40: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0023aa50: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0023aa60: 616d 653a 2044 6973 6162 6c65 2044 4843  ame: Disable DHC
│ │ │ +0023aa70: 5044 3620 5365 7276 6963 6520 2d20 4469  PD6 Service - Di
│ │ │ +0023aa80: 7361 626c 6520 536f 636b 6574 2064 6863  sable Socket dhc
│ │ │ +0023aa90: 7064 360a 2020 2020 616e 7369 626c 652e  pd6.    ansible.
│ │ │ +0023aaa0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0023aab0: 0a20 2020 2020 206e 616d 653a 2064 6863  .      name: dhc
│ │ │ +0023aac0: 7064 362e 736f 636b 6574 0a20 2020 2020  pd6.socket.     
│ │ │ +0023aad0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0023aae0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0023aaf0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +0023ab00: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0023ab10: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0023ab20: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0023ab30: 7320 6973 2073 6561 7263 6828 2264 6863  s is search("dhc
│ │ │ +0023ab40: 7064 362e 736f 636b 6574 222c 206d 756c  pd6.socket", mul
│ │ │ +0023ab50: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +0023ab60: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +0023ab70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0023ab80: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0023ab90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0023aba0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0023abb0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0023abc0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0023abd0: 7669 6365 5f64 6863 7064 365f 6469 7361  vice_dhcpd6_disa
│ │ │ +0023abe0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +0023abf0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +0023ac00: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0023ac10: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0023ac20: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0023ac30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0023ace0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0023acf0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0023a580: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0023a5b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0023a5c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0023a600: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0023a610: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0023ad90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0023ae30: 636c 7564 6520 6469 7361 626c 655f 6468  clude disable_dh
│ │ │ +0023ae40: 6370 6436 0a0a 636c 6173 7320 6469 7361  cpd6..class disa
│ │ │ +0023ae50: 626c 655f 6468 6370 6436 207b 0a20 2073  ble_dhcpd6 {.  s
│ │ │ +0023ae60: 6572 7669 6365 207b 2764 6863 7064 3627  ervice {'dhcpd6'
│ │ │ +0023ae70: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0023ae80: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +0023ae90: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +0023aea0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +0023aec0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0023aed0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0023aee0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0023aef0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0023af00: 6438 3837 2220 7461 6269 6e64 6578 3d22 d887" tabindex=" │ │ │ +0023af10: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0023af20: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0023af30: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0023af40: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0023af50: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0023af60: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0023af70: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0023af80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0023afd0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0023afe0: 735d 0a6d 6173 6b65 6420 3d20 5b22 6468 s].masked = ["dh │ │ │ +0023aff0: 6370 6436 225d 0a3c 2f63 6f64 653e 3c2f cpd6"].Remedia │ │ │ -0023c3f0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0023c400: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0023c410: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -0023c450: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -0023c460: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -0023c470: 6d61 736b 6564 203d 205b 2264 6863 7064  masked = ["dhcpd
│ │ │ -0023c480: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0023c490: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -0023c540: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0023c550: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0023ad80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0023adb0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0023adc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0023ae00: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0023ae10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0023c5d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0023c5f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0023c640: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -0023c690: 5f64 6863 7064 0a0a 636c 6173 7320 6469  _dhcpd..class di
│ │ │ -0023c6a0: 7361 626c 655f 6468 6370 6420 7b0a 2020  sable_dhcpd {.  
│ │ │ -0023c6b0: 7365 7276 6963 6520 7b27 6468 6370 6427  service {'dhcpd'
│ │ │ -0023c6c0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -0023c6d0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -0023c6e0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -0023c6f0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -0023c710: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0023c720: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0023c730: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0023c740: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0023c750: 6438 3932 2220 7461 6269 6e64 6578 3d22 d892" tabindex=" │ │ │ -0023c760: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0023c770: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0023c780: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0023c790: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0023c7a0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0023c7b0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0023c7c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0023c7d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -0023c600: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0023c610: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0023c650: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0023c660: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -0023c850: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0023c880: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0023c8a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0023c8b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0023c8d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0023c8e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0023c900: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0023c910: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0023c920: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0023c930: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0023c940: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0023c950: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0023c960: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0023c970: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -0023c980: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -0023c990: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0023c9a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0023c9b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0023c9c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0023c9d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0023c9e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0023c9f0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0023ca00: 6468 6370 645f 6469 7361 626c 6564 0a0a  dhcpd_disabled..
│ │ │ -0023ca10: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -0023ca20: 4448 4350 2053 6572 7669 6365 202d 2044  DHCP Service - D
│ │ │ -0023ca30: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ -0023ca40: 6863 7064 0a20 2062 6c6f 636b 3a0a 0a20  hcpd.  block:.. 
│ │ │ -0023ca50: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0023ca60: 2044 4843 5020 5365 7276 6963 6520 2d20   DHCP Service - 
│ │ │ -0023ca70: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -0023ca80: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -0023ca90: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -0023caa0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0023cab0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0023cac0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0023cad0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -0023cae0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -0023caf0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -0023cb00: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0023cb10: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0023cb20: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -0023cb30: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -0023cb40: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0023cb50: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0023cb60: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0023cb70: 6973 6162 6c65 2044 4843 5020 5365 7276  isable DHCP Serv
│ │ │ -0023cb80: 6963 6520 2d20 456e 7375 7265 2064 6863  ice - Ensure dhc
│ │ │ -0023cb90: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ -0023cba0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -0023cbb0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0023cbc0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6468  :.      name: dh
│ │ │ -0023cbd0: 6370 642e 7365 7276 6963 650a 2020 2020  cpd.service.    
│ │ │ -0023cbe0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0023cbf0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0023cc00: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0023cc10: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0023cc20: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0023cc30: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0023cc40: 7320 7365 6172 6368 2822 6468 6370 642e  s search("dhcpd.
│ │ │ -0023cc50: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -0023cc60: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -0023cc70: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -0023cc80: 2045 7869 7374 7320 2d20 6468 6370 642e   Exists - dhcpd.
│ │ │ -0023cc90: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -0023cca0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0023ccb0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0023ccc0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0023ccd0: 2064 6863 7064 2e73 6f63 6b65 740a 2020   dhcpd.socket.  
│ │ │ -0023cce0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -0023ccf0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -0023cd00: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -0023cd10: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -0023cd20: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -0023cd30: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -0023cd40: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -0023cd50: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -0023cd60: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -0023cd70: 6162 6c65 2044 4843 5020 5365 7276 6963  able DHCP Servic
│ │ │ -0023cd80: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ -0023cd90: 6574 2064 6863 7064 0a20 2020 2061 6e73  et dhcpd.    ans
│ │ │ -0023cda0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -0023cdb0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -0023cdc0: 3a20 6468 6370 642e 736f 636b 6574 0a20  : dhcpd.socket. 
│ │ │ -0023cdd0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0023cde0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0023cdf0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0023ce00: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0023ce10: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0023ce20: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0023ce30: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0023ce40: 2264 6863 7064 2e73 6f63 6b65 7422 2c20  "dhcpd.socket", 
│ │ │ -0023ce50: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0023ce60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0023ce70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0023ce80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0023ce90: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -0023cea0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -0023ceb0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0023cec0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0023ced0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0023cee0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0023cef0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0023cf00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0023cf10: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0023cf20: 6468 6370 645f 6469 7361 626c 6564 0a20  dhcpd_disabled. 
│ │ │ -0023cf30: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0023cf40: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0023cf50: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0023cf60: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0023cf70: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
│ │ │ +0023c410: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0023c440: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0023c4b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0023c4d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0023c500: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0023c490: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0023c4a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0023c4e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0023c4f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0023c540: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0023c550: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0023c560: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0023c570: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0023c580: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0023c590: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0023c5a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0023c5b0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +0023c5c0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +0023c5d0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +0023c5e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +0023c5f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +0023c600: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +0023c610: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +0023c620: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0023c630: 0a20 202d 2073 6572 7669 6365 5f64 6863 . - service_dhc │ │ │ +0023c640: 7064 5f64 6973 6162 6c65 640a 0a2d 206e pd_disabled..- n │ │ │ +0023c650: 616d 653a 2044 6973 6162 6c65 2044 4843 ame: Disable DHC │ │ │ +0023c660: 5020 5365 7276 6963 6520 2d20 4469 7361 P Service - Disa │ │ │ +0023c670: 626c 6520 7365 7276 6963 6520 6468 6370 ble service dhcp │ │ │ +0023c680: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20 d. block:.. - │ │ │ +0023c690: 6e61 6d65 3a20 4469 7361 626c 6520 4448 name: Disable DH │ │ │ +0023c6a0: 4350 2053 6572 7669 6365 202d 2043 6f6c CP Service - Col │ │ │ +0023c6b0: 6c65 6374 2073 7973 7465 6d64 2053 6572 lect systemd Ser │ │ │ +0023c6c0: 7669 6365 7320 5072 6573 656e 7420 696e vices Present in │ │ │ +0023c6d0: 2074 6865 2053 7973 7465 6d0a 2020 2020 the System. │ │ │ +0023c6e0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0023c6f0: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ +0023c700: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ +0023c710: 6669 6c65 7320 2d2d 7479 7065 2073 6572 files --type ser │ │ │ +0023c720: 7669 6365 0a20 2020 2072 6567 6973 7465 vice. registe │ │ │ +0023c730: 723a 2073 6572 7669 6365 5f65 7869 7374 r: service_exist │ │ │ +0023c740: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +0023c750: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +0023c760: 696c 6564 5f77 6865 6e3a 2073 6572 7669 iled_when: servi │ │ │ +0023c770: 6365 5f65 7869 7374 732e 7263 206e 6f74 ce_exists.rc not │ │ │ +0023c780: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ +0023c790: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ +0023c7a0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361 .. - name: Disa │ │ │ +0023c7b0: 626c 6520 4448 4350 2053 6572 7669 6365 ble DHCP Service │ │ │ +0023c7c0: 202d 2045 6e73 7572 6520 6468 6370 642e - Ensure dhcpd. │ │ │ +0023c7d0: 7365 7276 6963 6520 6973 204d 6173 6b65 service is Maske │ │ │ +0023c7e0: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ +0023c7f0: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ +0023c800: 2020 2020 206e 616d 653a 2064 6863 7064 name: dhcpd │ │ │ +0023c810: 2e73 6572 7669 6365 0a20 2020 2020 2073 .service. s │ │ │ +0023c820: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +0023c830: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +0023c840: 7365 0a20 2020 2020 206d 6173 6b65 643a se. masked: │ │ │ +0023c850: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ +0023c860: 7365 7276 6963 655f 6578 6973 7473 2e73 service_exists.s │ │ │ +0023c870: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ +0023c880: 6561 7263 6828 2264 6863 7064 2e73 6572 earch("dhcpd.ser │ │ │ +0023c890: 7669 6365 222c 206d 756c 7469 6c69 6e65 vice", multiline │ │ │ +0023c8a0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65 =True).. - name │ │ │ +0023c8b0: 3a20 556e 6974 2053 6f63 6b65 7420 4578 : Unit Socket Ex │ │ │ +0023c8c0: 6973 7473 202d 2064 6863 7064 2e73 6f63 ists - dhcpd.soc │ │ │ +0023c8d0: 6b65 740a 2020 2020 616e 7369 626c 652e ket. ansible. │ │ │ +0023c8e0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a builtin.command: │ │ │ +0023c8f0: 2073 7973 7465 6d63 746c 202d 7120 6c69 systemctl -q li │ │ │ +0023c900: 7374 2d75 6e69 742d 6669 6c65 7320 6468 st-unit-files dh │ │ │ +0023c910: 6370 642e 736f 636b 6574 0a20 2020 2072 cpd.socket. r │ │ │ +0023c920: 6567 6973 7465 723a 2073 6f63 6b65 745f egister: socket_ │ │ │ +0023c930: 6669 6c65 5f65 7869 7374 730a 2020 2020 file_exists. │ │ │ +0023c940: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ +0023c950: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ +0023c960: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ +0023c970: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ +0023c980: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ +0023c990: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ +0023c9a0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ +0023c9b0: 6520 4448 4350 2053 6572 7669 6365 202d e DHCP Service - │ │ │ +0023c9c0: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ +0023c9d0: 6468 6370 640a 2020 2020 616e 7369 626c dhcpd. ansibl │ │ │ +0023c9e0: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +0023c9f0: 643a 0a20 2020 2020 206e 616d 653a 2064 d:. name: d │ │ │ +0023ca00: 6863 7064 2e73 6f63 6b65 740a 2020 2020 hcpd.socket. │ │ │ +0023ca10: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +0023ca20: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ +0023ca30: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ +0023ca40: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ +0023ca50: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ +0023ca60: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ +0023ca70: 6573 2069 7320 7365 6172 6368 2822 6468 es is search("dh │ │ │ +0023ca80: 6370 642e 736f 636b 6574 222c 206d 756c cpd.socket", mul │ │ │ +0023ca90: 7469 6c69 6e65 3d54 7275 6529 0a20 2074 tiline=True). t │ │ │ +0023caa0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0023cab0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0023cac0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0023cad0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +0023cae0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +0023caf0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +0023cb00: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +0023cb10: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +0023cb20: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +0023cb30: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +0023cb40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0023cb50: 0a20 202d 2073 6572 7669 6365 5f64 6863 . - service_dhc │ │ │ +0023cb60: 7064 5f64 6973 6162 6c65 640a 2020 2d20 pd_disabled. - │ │ │ +0023cb70: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +0023cb80: 626c 6f63 6b0a 2020 7768 656e 3a20 2722 block. when: '" │ │ │ +0023cb90: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ +0023cba0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +0023cbb0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f kages'.

Remediati │ │ │ +0023cc70: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0023cc80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0023cd00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0023cd10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0023cd30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0023cd40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0023cd60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0023cd80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0023cdb0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +0023cdc0: 6162 6c65 5f64 6863 7064 0a0a 636c 6173  able_dhcpd..clas
│ │ │ +0023cdd0: 7320 6469 7361 626c 655f 6468 6370 6420  s disable_dhcpd 
│ │ │ +0023cde0: 7b0a 2020 7365 7276 6963 6520 7b27 6468  {.  service {'dh
│ │ │ +0023cdf0: 6370 6427 3a0a 2020 2020 656e 6162 6c65  cpd':.    enable
│ │ │ +0023ce00: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +0023ce10: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0023ce20: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +0023ce30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0023cee0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0023cef0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0023cf00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +0023cf50: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +0023cf60: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +0023cf70: 5b22 6468 6370 6422 5d0a 3c2f 636f 6465  ["dhcpd"].
Remediation │ │ │ -0023eb10: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0023eb20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0023eba0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0023ebc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0023ec10: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0023ec40: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0023ebb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0023ebd0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0023ec20: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0023ec30: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0023ec60: 7665 5f62 696e 640a 0a63 6c61 7373 2072  ve_bind..class r
│ │ │ -0023ec70: 656d 6f76 655f 6269 6e64 207b 0a20 2070  emove_bind {.  p
│ │ │ -0023ec80: 6163 6b61 6765 207b 2027 6269 6e64 273a  ackage { 'bind':
│ │ │ -0023ec90: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0023eca0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0023ecb0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0023ecc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0023ed70: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0023ed80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0023ee00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0023ee20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0023ee70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0023eea0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0023eec0: 7461 6c6c 2062 696e 6420 5061 636b 6167  tall bind Packag
│ │ │ -0023eed0: 653a 2045 6e73 7572 6520 6269 6e64 2069  e: Ensure bind i
│ │ │ -0023eee0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -0023eef0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0023ef00: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -0023ef10: 6269 6e64 0a20 2020 2073 7461 7465 3a20  bind.    state: 
│ │ │ -0023ef20: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0023ef30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0023ef40: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0023ef50: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0023ef60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0023ef70: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0023ef80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0023ef90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0023efa0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0023efb0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -0023efc0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0023efd0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0023efe0: 6167 655f 6269 6e64 5f72 656d 6f76 6564  age_bind_removed
│ │ │ +0023eb10: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +0023eb20: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +0023ebf0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ -0023ee30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0023ee40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0023ee80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0023ee90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +0023ebb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0023ebd0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0023ec20: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0023ec30: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0023ec60: 6e73 7461 6c6c 2062 696e 6420 5061 636b  nstall bind Pack
│ │ │ +0023ec70: 6167 653a 2045 6e73 7572 6520 6269 6e64  age: Ensure bind
│ │ │ +0023ec80: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +0023ec90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0023eca0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0023ecb0: 3a20 6269 6e64 0a20 2020 2073 7461 7465  : bind.    state
│ │ │ +0023ecc0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +0023ecd0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0023ece0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0023ecf0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0023ed00: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0023ed10: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0023ed20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0023ed30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0023ed40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0023ed50: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +0023ed60: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0023ed70: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0023ed80: 636b 6167 655f 6269 6e64 5f72 656d 6f76  ckage_bind_remov
│ │ │ +0023ed90: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0023eda0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0023ee50: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0023ee60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0023eee0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0023ef00: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0023ef50: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0023ef80: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0023efa0: 655f 6269 6e64 0a0a 636c 6173 7320 7265  e_bind..class re
│ │ │ +0023efb0: 6d6f 7665 5f62 696e 6420 7b0a 2020 7061  move_bind {.  pa
│ │ │ +0023efc0: 636b 6167 6520 7b20 2762 696e 6427 3a0a  ckage { 'bind':.
│ │ │ +0023efd0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0023efe0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0023eff0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Rem │ │ │ -00240310: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00240320: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00240330: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00240380: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00240390: 6573 5d0a 6d61 736b 6564 203d 205b 226e es].masked = ["n │ │ │ -002403a0: 616d 6564 225d 0a3c 2f63 6f64 653e 3c2f amed"].Remediati │ │ │ -00240460: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00240470: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002404f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>

│ │ │ -00240530: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disr │ │ │ +0023ef10: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0023ef20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0023ef60: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0023ef70: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ -00240500: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00240520: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00240550: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00240570: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -002405a0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002405b0: 6162 6c65 5f6e 616d 6564 0a0a 636c 6173  able_named..clas
│ │ │ -002405c0: 7320 6469 7361 626c 655f 6e61 6d65 6420  s disable_named 
│ │ │ -002405d0: 7b0a 2020 7365 7276 6963 6520 7b27 6e61  {.  service {'na
│ │ │ -002405e0: 6d65 6427 3a0a 2020 2020 656e 6162 6c65  med':.    enable
│ │ │ -002405f0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -00240600: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00240610: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -00240620: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -002406d0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002406e0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002406f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -002407c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002407d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00240820: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00240830: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00240840: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00240850: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00240860: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00240870: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00240880: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00240890: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -002408a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002408b0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -002408c0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002408d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002408e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002408f0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00240900: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00240910: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00240920: 6963 655f 6e61 6d65 645f 6469 7361 626c  ice_named_disabl
│ │ │ -00240930: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -00240940: 626c 6520 6e61 6d65 6420 5365 7276 6963  ble named Servic
│ │ │ -00240950: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -00240960: 6963 6520 6e61 6d65 640a 2020 626c 6f63  ice named.  bloc
│ │ │ -00240970: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -00240980: 7361 626c 6520 6e61 6d65 6420 5365 7276  sable named Serv
│ │ │ -00240990: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -002409a0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002409b0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002409c0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002409d0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002409e0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002409f0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00240a00: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00240a10: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -00240a20: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -00240a30: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00240a40: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00240a50: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00240a60: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00240a70: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00240a80: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00240a90: 616d 653a 2044 6973 6162 6c65 206e 616d  ame: Disable nam
│ │ │ -00240aa0: 6564 2053 6572 7669 6365 202d 2045 6e73  ed Service - Ens
│ │ │ -00240ab0: 7572 6520 6e61 6d65 642e 7365 7276 6963  ure named.servic
│ │ │ -00240ac0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -00240ad0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00240ae0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00240af0: 616d 653a 206e 616d 6564 2e73 6572 7669  ame: named.servi
│ │ │ -00240b00: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00240b10: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00240b20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00240b30: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00240b40: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00240b50: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00240b60: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00240b70: 226e 616d 6564 2e73 6572 7669 6365 222c  "named.service",
│ │ │ -00240b80: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00240b90: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -00240ba0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -00240bb0: 206e 616d 6564 2e73 6f63 6b65 740a 2020   named.socket.  
│ │ │ -00240bc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00240bd0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00240be0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00240bf0: 742d 6669 6c65 7320 6e61 6d65 642e 736f  t-files named.so
│ │ │ -00240c00: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00240c10: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00240c20: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00240c30: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00240c40: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00240c50: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00240c60: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00240c70: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00240c80: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00240c90: 6d65 3a20 4469 7361 626c 6520 6e61 6d65  me: Disable name
│ │ │ -00240ca0: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -00240cb0: 626c 6520 536f 636b 6574 206e 616d 6564  ble Socket named
│ │ │ -00240cc0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00240cd0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00240ce0: 2020 2020 6e61 6d65 3a20 6e61 6d65 642e      name: named.
│ │ │ -00240cf0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -00240d00: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00240d10: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00240d20: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00240d30: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00240d40: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00240d50: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00240d60: 2073 6561 7263 6828 226e 616d 6564 2e73   search("named.s
│ │ │ -00240d70: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00240d80: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00240d90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00240da0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00240db0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00240dc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00240dd0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00240de0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00240df0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00240e00: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00240e10: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00240e20: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00240e30: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00240e40: 7365 7276 6963 655f 6e61 6d65 645f 6469  service_named_di
│ │ │ -00240e50: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -00240e60: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -00240e70: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00240e80: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00240e90: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00240ea0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00240310: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +00240320: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00240330: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -002407a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002407b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002407f0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00240800: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +002403d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00240420: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00240460: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00240470: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00240480: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00240490: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +002404a0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +002404b0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +002404c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002404d0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +002404e0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +002404f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00240500: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00240510: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00240520: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00240530: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00240540: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00240550: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00240560: 5f6e 616d 6564 5f64 6973 6162 6c65 640a  _named_disabled.
│ │ │ +00240570: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00240580: 206e 616d 6564 2053 6572 7669 6365 202d   named Service -
│ │ │ +00240590: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +002405a0: 206e 616d 6564 0a20 2062 6c6f 636b 3a0a   named.  block:.
│ │ │ +002405b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002405c0: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ +002405d0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +002405e0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +002405f0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +00240600: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00240610: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00240620: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00240630: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00240640: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00240650: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00240660: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00240670: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00240680: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00240690: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002406a0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +002406b0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +002406c0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +002406d0: 3a20 4469 7361 626c 6520 6e61 6d65 6420  : Disable named 
│ │ │ +002406e0: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ +002406f0: 206e 616d 6564 2e73 6572 7669 6365 2069   named.service i
│ │ │ +00240700: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +00240710: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00240720: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00240730: 3a20 6e61 6d65 642e 7365 7276 6963 650a  : named.service.
│ │ │ +00240740: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00240750: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +00240760: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00240770: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00240780: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00240790: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002407a0: 6573 2069 7320 7365 6172 6368 2822 6e61  es is search("na
│ │ │ +002407b0: 6d65 642e 7365 7276 6963 6522 2c20 6d75  med.service", mu
│ │ │ +002407c0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002407d0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +002407e0: 636b 6574 2045 7869 7374 7320 2d20 6e61  cket Exists - na
│ │ │ +002407f0: 6d65 642e 736f 636b 6574 0a20 2020 2061  med.socket.    a
│ │ │ +00240800: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00240810: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00240820: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00240830: 696c 6573 206e 616d 6564 2e73 6f63 6b65  iles named.socke
│ │ │ +00240840: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00240850: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00240860: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00240870: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00240880: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00240890: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +002408a0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002408b0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002408c0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002408d0: 2044 6973 6162 6c65 206e 616d 6564 2053   Disable named S
│ │ │ +002408e0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002408f0: 2053 6f63 6b65 7420 6e61 6d65 640a 2020   Socket named.  
│ │ │ +00240900: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00240910: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00240920: 206e 616d 653a 206e 616d 6564 2e73 6f63   name: named.soc
│ │ │ +00240930: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +00240940: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +00240950: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00240960: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +00240970: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +00240980: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +00240990: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +002409a0: 6172 6368 2822 6e61 6d65 642e 736f 636b  arch("named.sock
│ │ │ +002409b0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +002409c0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +002409d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002409e0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +002409f0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00240a00: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00240a10: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +00240a20: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00240a30: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00240a40: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00240a50: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00240a60: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00240a70: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00240a80: 7669 6365 5f6e 616d 6564 5f64 6973 6162  vice_named_disab
│ │ │ +00240a90: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00240aa0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00240ab0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00240ac0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00240ad0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00240ae0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00240b90: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00240ba0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Co │ │ │ +002403b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002403e0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00240400: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00240410: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00240430: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00240440: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00240c40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00240c50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00240ca0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00240ce0: 6c75 6465 2064 6973 6162 6c65 5f6e 616d  lude disable_nam
│ │ │ +00240cf0: 6564 0a0a 636c 6173 7320 6469 7361 626c  ed..class disabl
│ │ │ +00240d00: 655f 6e61 6d65 6420 7b0a 2020 7365 7276  e_named {.  serv
│ │ │ +00240d10: 6963 6520 7b27 6e61 6d65 6427 3a0a 2020  ice {'named':.  
│ │ │ +00240d20: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +00240d30: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +00240d40: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +00240d50: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00240d60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00240e10: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00240e20: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00240e30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +00240e80: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00240e90: 6173 6b65 6420 3d20 5b22 6e61 6d65 6422  asked = ["named"
│ │ │ +00240ea0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00240eb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediatio │ │ │ -00241d30: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00241d40: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00241e00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00241e10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +00240c30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00240c60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00240c70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00240cb0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00240cc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -00241dd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00241df0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00241e20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00241e40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00241e70: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00241e80: 6d6f 7665 5f64 6e73 6d61 7371 0a0a 636c  move_dnsmasq..cl
│ │ │ -00241e90: 6173 7320 7265 6d6f 7665 5f64 6e73 6d61  ass remove_dnsma
│ │ │ -00241ea0: 7371 207b 0a20 2070 6163 6b61 6765 207b  sq {.  package {
│ │ │ -00241eb0: 2027 646e 736d 6173 7127 3a0a 2020 2020   'dnsmasq':.    
│ │ │ -00241ec0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00241ed0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00241ef0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00241f90: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00241fa0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00241fb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00242050: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002420a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002420e0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002420f0: 646e 736d 6173 7120 5061 636b 6167 653a  dnsmasq Package:
│ │ │ -00242100: 2045 6e73 7572 6520 646e 736d 6173 7120   Ensure dnsmasq 
│ │ │ -00242110: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00242120: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00242130: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00242140: 2064 6e73 6d61 7371 0a20 2020 2073 7461   dnsmasq.    sta
│ │ │ -00242150: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00242160: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00242170: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00242180: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00242190: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002421a0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -002421b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002421c0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -002421d0: 646e 736d 6173 715f 7265 6d6f 7665 640a  dnsmasq_removed.
│ │ │ +00241d30: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +00241d40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00241dc0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00241e00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -00242030: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00242060: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00242080: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00242090: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002420b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002420c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00241dd0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00241df0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00241e20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00241e40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00241e70: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00241e80: 6e69 6e73 7461 6c6c 2064 6e73 6d61 7371  ninstall dnsmasq
│ │ │ +00241e90: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +00241ea0: 2064 6e73 6d61 7371 2069 7320 7265 6d6f   dnsmasq is remo
│ │ │ +00241eb0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00241ec0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00241ed0: 2020 2020 6e61 6d65 3a20 646e 736d 6173      name: dnsmas
│ │ │ +00241ee0: 710a 2020 2020 7374 6174 653a 2061 6273  q.    state: abs
│ │ │ +00241ef0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00241f00: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00241f10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00241f20: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00241f30: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00241f40: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00241f50: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00241f60: 2070 6163 6b61 6765 5f64 6e73 6d61 7371   package_dnsmasq
│ │ │ +00241f70: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00241f80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00242030: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00242040: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00242050: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00242060: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00242070: 7365 2220 6964 3d22 6964 3930 3522 3e3c se" id="id905">< │ │ │ +00242080: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00242090: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002420a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002420b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002420c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002420d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002420e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00242120: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00242130: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00242150: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00242160: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00242180: 2072 656d 6f76 655f 646e 736d 6173 710a remove_dnsmasq. │ │ │ +00242190: 0a63 6c61 7373 2072 656d 6f76 655f 646e .class remove_dn │ │ │ +002421a0: 736d 6173 7120 7b0a 2020 7061 636b 6167 smasq {. packag │ │ │ +002421b0: 6520 7b20 2764 6e73 6d61 7371 273a 0a20 e { 'dnsmasq':. │ │ │ +002421c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +002421d0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 002421e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediation O │ │ │ -00242ff0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00243000: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00243010: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00243050: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00243060: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00243070: 203d 205b 2264 6e73 6d61 7371 225d 0a3c   = ["dnsmasq"].<
│ │ │ -00243080: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00243130: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00243140: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -002431e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002431f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00243240: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00243280: 6c75 6465 2064 6973 6162 6c65 5f64 6e73  lude disable_dns
│ │ │ -00243290: 6d61 7371 0a0a 636c 6173 7320 6469 7361  masq..class disa
│ │ │ -002432a0: 626c 655f 646e 736d 6173 7120 7b0a 2020  ble_dnsmasq {.  
│ │ │ -002432b0: 7365 7276 6963 6520 7b27 646e 736d 6173  service {'dnsmas
│ │ │ -002432c0: 7127 3a0a 2020 2020 656e 6162 6c65 203d  q':.    enable =
│ │ │ -002432d0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -002432e0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002432f0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -002433b0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -002433c0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
C │ │ │ -002431d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00243200: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00243210: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00243250: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00243260: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00243460: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00243470: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002434c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00243500: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00243510: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00243520: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00243530: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00243540: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ -00243550: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00243560: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00243570: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00243580: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00243590: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002435a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002435b0: 2d20 7365 7276 6963 655f 646e 736d 6173  - service_dnsmas
│ │ │ -002435c0: 715f 6469 7361 626c 6564 0a0a 2d20 6e61  q_disabled..- na
│ │ │ -002435d0: 6d65 3a20 4469 7361 626c 6520 646e 736d  me: Disable dnsm
│ │ │ -002435e0: 6173 7120 5365 7276 6963 6520 2d20 4469  asq Service - Di
│ │ │ -002435f0: 7361 626c 6520 7365 7276 6963 6520 646e  sable service dn
│ │ │ -00243600: 736d 6173 710a 2020 626c 6f63 6b3a 0a0a  smasq.  block:..
│ │ │ -00243610: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00243620: 6520 646e 736d 6173 7120 5365 7276 6963  e dnsmasq Servic
│ │ │ -00243630: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -00243640: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00243650: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -00243660: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -00243670: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -00243680: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -00243690: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -002436a0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -002436b0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -002436c0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002436d0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002436e0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -002436f0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00243700: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00243710: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00243720: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00243730: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ -00243740: 7371 2053 6572 7669 6365 202d 2045 6e73  sq Service - Ens
│ │ │ -00243750: 7572 6520 646e 736d 6173 712e 7365 7276  ure dnsmasq.serv
│ │ │ -00243760: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00243770: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00243780: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00243790: 206e 616d 653a 2064 6e73 6d61 7371 2e73   name: dnsmasq.s
│ │ │ -002437a0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -002437b0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002437c0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002437d0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002437e0: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -002437f0: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -00243800: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -00243810: 7263 6828 2264 6e73 6d61 7371 2e73 6572  rch("dnsmasq.ser
│ │ │ -00243820: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00243830: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00243840: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00243850: 6973 7473 202d 2064 6e73 6d61 7371 2e73  ists - dnsmasq.s
│ │ │ -00243860: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -00243870: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00243880: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -00243890: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002438a0: 646e 736d 6173 712e 736f 636b 6574 0a20  dnsmasq.socket. 
│ │ │ -002438b0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002438c0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -002438d0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002438e0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002438f0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00243900: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00243910: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00243920: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00243930: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00243940: 7361 626c 6520 646e 736d 6173 7120 5365  sable dnsmasq Se
│ │ │ -00243950: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -00243960: 536f 636b 6574 2064 6e73 6d61 7371 0a20  Socket dnsmasq. 
│ │ │ -00243970: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00243980: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -00243990: 2020 6e61 6d65 3a20 646e 736d 6173 712e    name: dnsmasq.
│ │ │ -002439a0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002439b0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002439c0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002439d0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002439e0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -002439f0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00243a00: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00243a10: 2073 6561 7263 6828 2264 6e73 6d61 7371   search("dnsmasq
│ │ │ -00243a20: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00243a30: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00243a40: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00243a50: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00243a60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00243a70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00243a80: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00243a90: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00243aa0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00243ab0: 655f 646e 736d 6173 715f 6469 7361 626c  e_dnsmasq_disabl
│ │ │ -00243ac0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00243ad0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00243ae0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00243af0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00243b00: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation A
│ │ │ +00242ff0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00243000: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ -00243450: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00243480: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00243490: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002434d0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002434e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00243080: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002430a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002430f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00243120: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00243090: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002430b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00243100: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00243110: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00243140: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00243150: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00243160: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00243170: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00243180: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00243190: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002431a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002431b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002431c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002431d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002431e0: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +002431f0: 6e73 6d61 7371 5f64 6973 6162 6c65 640a  nsmasq_disabled.
│ │ │ +00243200: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00243210: 2064 6e73 6d61 7371 2053 6572 7669 6365   dnsmasq Service
│ │ │ +00243220: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00243230: 6365 2064 6e73 6d61 7371 0a20 2062 6c6f  ce dnsmasq.  blo
│ │ │ +00243240: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00243250: 6973 6162 6c65 2064 6e73 6d61 7371 2053  isable dnsmasq S
│ │ │ +00243260: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00243270: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00243280: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00243290: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +002432a0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002432b0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002432c0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +002432d0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +002432e0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +002432f0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00243300: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00243310: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00243320: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00243330: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00243340: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00243350: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00243360: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00243370: 646e 736d 6173 7120 5365 7276 6963 6520  dnsmasq Service 
│ │ │ +00243380: 2d20 456e 7375 7265 2064 6e73 6d61 7371  - Ensure dnsmasq
│ │ │ +00243390: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +002433a0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +002433b0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +002433c0: 2020 2020 2020 6e61 6d65 3a20 646e 736d        name: dnsm
│ │ │ +002433d0: 6173 712e 7365 7276 6963 650a 2020 2020  asq.service.    
│ │ │ +002433e0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002433f0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00243400: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +00243410: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00243420: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00243430: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00243440: 7320 7365 6172 6368 2822 646e 736d 6173  s search("dnsmas
│ │ │ +00243450: 712e 7365 7276 6963 6522 2c20 6d75 6c74  q.service", mult
│ │ │ +00243460: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00243470: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00243480: 6574 2045 7869 7374 7320 2d20 646e 736d  et Exists - dnsm
│ │ │ +00243490: 6173 712e 736f 636b 6574 0a20 2020 2061  asq.socket.    a
│ │ │ +002434a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002434b0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002434c0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002434d0: 696c 6573 2064 6e73 6d61 7371 2e73 6f63  iles dnsmasq.soc
│ │ │ +002434e0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +002434f0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00243500: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00243510: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00243520: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00243530: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00243540: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00243550: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00243560: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00243570: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ +00243580: 7371 2053 6572 7669 6365 202d 2044 6973  sq Service - Dis
│ │ │ +00243590: 6162 6c65 2053 6f63 6b65 7420 646e 736d  able Socket dnsm
│ │ │ +002435a0: 6173 710a 2020 2020 616e 7369 626c 652e  asq.    ansible.
│ │ │ +002435b0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002435c0: 0a20 2020 2020 206e 616d 653a 2064 6e73  .      name: dns
│ │ │ +002435d0: 6d61 7371 2e73 6f63 6b65 740a 2020 2020  masq.socket.    
│ │ │ +002435e0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002435f0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00243600: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +00243610: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00243620: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +00243630: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00243640: 6573 2069 7320 7365 6172 6368 2822 646e  es is search("dn
│ │ │ +00243650: 736d 6173 712e 736f 636b 6574 222c 206d  smasq.socket", m
│ │ │ +00243660: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00243670: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00243680: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00243690: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002436a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002436b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002436c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002436d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002436e0: 6572 7669 6365 5f64 6e73 6d61 7371 5f64  ervice_dnsmasq_d
│ │ │ +002436f0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +00243700: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +00243710: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +00243720: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00243730: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00243740: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00243750: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00243800: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00243810: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00243890: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002438b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00243900: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +00243950: 5f64 6e73 6d61 7371 0a0a 636c 6173 7320  _dnsmasq..class 
│ │ │ +00243960: 6469 7361 626c 655f 646e 736d 6173 7120  disable_dnsmasq 
│ │ │ +00243970: 7b0a 2020 7365 7276 6963 6520 7b27 646e  {.  service {'dn
│ │ │ +00243980: 736d 6173 7127 3a0a 2020 2020 656e 6162  smasq':.    enab
│ │ │ +00243990: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002439a0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002439b0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002439c0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002439d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00243a80: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00243a90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00243aa0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00243ae0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00243af0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +00243b00: 3d20 5b22 646e 736d 6173 7122 5d0a 3c2f  = ["dnsmasq"].
Re │ │ │ -002457b0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002457c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002457d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +002438c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002438d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00243910: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00243920: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -00245870: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002458c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00245900: 636c 7564 6520 7265 6d6f 7665 5f76 7366  clude remove_vsf
│ │ │ -00245910: 7470 640a 0a63 6c61 7373 2072 656d 6f76  tpd..class remov
│ │ │ -00245920: 655f 7673 6674 7064 207b 0a20 2070 6163  e_vsftpd {.  pac
│ │ │ -00245930: 6b61 6765 207b 2027 7673 6674 7064 273a  kage { 'vsftpd':
│ │ │ -00245940: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00245950: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00245960: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00245970: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00245a20: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00245a30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -00245850: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00245880: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002458a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002458b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002458d0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002458e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00245ab0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00245ad0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00245b20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00245b50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00245b70: 7461 6c6c 2076 7366 7470 6420 5061 636b  tall vsftpd Pack
│ │ │ -00245b80: 6167 653a 2045 6e73 7572 6520 7673 6674  age: Ensure vsft
│ │ │ -00245b90: 7064 2069 7320 7265 6d6f 7665 6427 0a20  pd is removed'. 
│ │ │ -00245ba0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00245bb0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00245bc0: 6d65 3a20 7673 6674 7064 0a20 2020 2073  me: vsftpd.    s
│ │ │ -00245bd0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00245be0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00245bf0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00245c00: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00245c10: 370a 2020 2d20 4e49 5354 2d38 3030 2d35  7.  - NIST-800-5
│ │ │ -00245c20: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00245c30: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00245c40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00245c50: 332d 434d 2d37 2e31 2869 6929 0a20 202d  3-CM-7.1(ii).  -
│ │ │ -00245c60: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ -00245c70: 3528 3129 2863 290a 2020 2d20 4e49 5354  5(1)(c).  - NIST
│ │ │ -00245c80: 2d38 3030 2d35 332d 4941 2d35 2831 292e  -800-53-IA-5(1).
│ │ │ -00245c90: 3128 7629 0a20 202d 2064 6973 6162 6c65  1(v).  - disable
│ │ │ -00245ca0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -00245cb0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -00245cc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00245cd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00245ce0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00245cf0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00245d00: 6765 5f76 7366 7470 645f 7265 6d6f 7665  ge_vsftpd_remove
│ │ │ -00245d10: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002457b0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +002457c0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -00245ae0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00245af0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00245b30: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00245b40: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00245860: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00245870: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002458c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00245900: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00245910: 2076 7366 7470 6420 5061 636b 6167 653a   vsftpd Package:
│ │ │ +00245920: 2045 6e73 7572 6520 7673 6674 7064 2069   Ensure vsftpd i
│ │ │ +00245930: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +00245940: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00245950: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00245960: 7673 6674 7064 0a20 2020 2073 7461 7465  vsftpd.    state
│ │ │ +00245970: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00245980: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00245990: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002459a0: 542d 3830 302d 3533 2d43 4d2d 370a 2020  T-800-53-CM-7.  
│ │ │ +002459b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002459c0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +002459d0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +002459e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002459f0: 2d37 2e31 2869 6929 0a20 202d 204e 4953  -7.1(ii).  - NIS
│ │ │ +00245a00: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ +00245a10: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ +00245a20: 2d35 332d 4941 2d35 2831 292e 3128 7629  -53-IA-5(1).1(v)
│ │ │ +00245a30: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00245a40: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +00245a50: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +00245a60: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00245a70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00245a80: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00245a90: 6564 0a20 202d 2070 6163 6b61 6765 5f76  ed.  - package_v
│ │ │ +00245aa0: 7366 7470 645f 7265 6d6f 7665 640a 3c2f  sftpd_removed.
Re │ │ │ +00245b60: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00245b70: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00245b80: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +00245850: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00245880: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00245890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002458d0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002458e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00245c20: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00245c70: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00245cb0: 636c 7564 6520 7265 6d6f 7665 5f76 7366  clude remove_vsf
│ │ │ +00245cc0: 7470 640a 0a63 6c61 7373 2072 656d 6f76  tpd..class remov
│ │ │ +00245cd0: 655f 7673 6674 7064 207b 0a20 2070 6163  e_vsftpd {.  pac
│ │ │ +00245ce0: 6b61 6765 207b 2027 7673 6674 7064 273a  kage { 'vsftpd':
│ │ │ +00245cf0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00245d00: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00245d10: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00245d20: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Rem │ │ │ -002470a0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -002470b0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -002470c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00247110: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00247120: 6573 5d0a 6d61 736b 6564 203d 205b 2276 es].masked = ["v │ │ │ -00247130: 7366 7470 6422 5d0a 3c2f 636f 6465 3e3c sftpd"].< │ │ │ -00247140: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remediat │ │ │ -002471f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00247200: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00247280: 3c74 723e 3c74 683e 436f 6d70 6c65 7869

< │ │ │ -00247310: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Co │ │ │ +00245c00: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00245c30: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00245c50: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00245c60: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00245c80: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00245c90: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00247290: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002472a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002472e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002472f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -00247330: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00247340: 7361 626c 655f 7673 6674 7064 0a0a 636c  sable_vsftpd..cl
│ │ │ -00247350: 6173 7320 6469 7361 626c 655f 7673 6674  ass disable_vsft
│ │ │ -00247360: 7064 207b 0a20 2073 6572 7669 6365 207b  pd {.  service {
│ │ │ -00247370: 2776 7366 7470 6427 3a0a 2020 2020 656e  'vsftpd':.    en
│ │ │ -00247380: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -00247390: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002473a0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002473b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00247470: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00247480: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00247510: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00247530: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00247550: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00247580: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00247590: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -002475c0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -002475d0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -002475e0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -002475f0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00247600: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00247610: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00247620: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00247630: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00247640: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00247650: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00247660: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00247670: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00247680: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00247690: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002476a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002476b0: 7365 7276 6963 655f 7673 6674 7064 5f64  service_vsftpd_d
│ │ │ -002476c0: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -002476d0: 2044 6973 6162 6c65 2076 7366 7470 6420   Disable vsftpd 
│ │ │ -002476e0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -002476f0: 6520 7365 7276 6963 6520 7673 6674 7064  e service vsftpd
│ │ │ -00247700: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -00247710: 616d 653a 2044 6973 6162 6c65 2076 7366  ame: Disable vsf
│ │ │ -00247720: 7470 6420 5365 7276 6963 6520 2d20 436f  tpd Service - Co
│ │ │ -00247730: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -00247740: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -00247750: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -00247760: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00247770: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00247780: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00247790: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -002477a0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -002477b0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -002477c0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -002477d0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -002477e0: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -002477f0: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -00247800: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00247810: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00247820: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00247830: 6162 6c65 2076 7366 7470 6420 5365 7276  able vsftpd Serv
│ │ │ -00247840: 6963 6520 2d20 456e 7375 7265 2076 7366  ice - Ensure vsf
│ │ │ -00247850: 7470 642e 7365 7276 6963 6520 6973 204d  tpd.service is M
│ │ │ -00247860: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00247870: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00247880: 643a 0a20 2020 2020 206e 616d 653a 2076  d:.      name: v
│ │ │ -00247890: 7366 7470 642e 7365 7276 6963 650a 2020  sftpd.service.  
│ │ │ -002478a0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002478b0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -002478c0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -002478d0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002478e0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -002478f0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00247900: 2069 7320 7365 6172 6368 2822 7673 6674   is search("vsft
│ │ │ -00247910: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ -00247920: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -00247930: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -00247940: 6b65 7420 4578 6973 7473 202d 2076 7366  ket Exists - vsf
│ │ │ -00247950: 7470 642e 736f 636b 6574 0a20 2020 2061  tpd.socket.    a
│ │ │ -00247960: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00247970: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00247980: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00247990: 696c 6573 2076 7366 7470 642e 736f 636b  iles vsftpd.sock
│ │ │ -002479a0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -002479b0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002479c0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002479d0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002479e0: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -002479f0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00247a00: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00247a10: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00247a20: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00247a30: 3a20 4469 7361 626c 6520 7673 6674 7064  : Disable vsftpd
│ │ │ -00247a40: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -00247a50: 6c65 2053 6f63 6b65 7420 7673 6674 7064  le Socket vsftpd
│ │ │ -00247a60: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00247a70: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00247a80: 2020 2020 6e61 6d65 3a20 7673 6674 7064      name: vsftpd
│ │ │ -00247a90: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -00247aa0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00247ab0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00247ac0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00247ad0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00247ae0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00247af0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -00247b00: 7320 7365 6172 6368 2822 7673 6674 7064  s search("vsftpd
│ │ │ -00247b10: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00247b20: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00247b30: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00247b40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00247b50: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00247b60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00247b70: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -00247b80: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00247b90: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00247ba0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00247bb0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00247bc0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00247bd0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00247be0: 2d20 7365 7276 6963 655f 7673 6674 7064  - service_vsftpd
│ │ │ -00247bf0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -00247c00: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -00247c10: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -00247c20: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00247c30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00247c40: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
│ │ │ +002470c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00247160: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002471b0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002471f0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00247200: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00247210: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00247220: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00247230: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00247240: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00247250: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00247260: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00247270: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00247280: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00247290: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002472a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002472b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002472c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002472d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002472e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002472f0: 5f76 7366 7470 645f 6469 7361 626c 6564  _vsftpd_disabled
│ │ │ +00247300: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +00247310: 6520 7673 6674 7064 2053 6572 7669 6365  e vsftpd Service
│ │ │ +00247320: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00247330: 6365 2076 7366 7470 640a 2020 626c 6f63  ce vsftpd.  bloc
│ │ │ +00247340: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +00247350: 7361 626c 6520 7673 6674 7064 2053 6572  sable vsftpd Ser
│ │ │ +00247360: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +00247370: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00247380: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +00247390: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +002473a0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002473b0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +002473c0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +002473d0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +002473e0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +002473f0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +00247400: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00247410: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00247420: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00247430: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +00247440: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +00247450: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +00247460: 6e61 6d65 3a20 4469 7361 626c 6520 7673  name: Disable vs
│ │ │ +00247470: 6674 7064 2053 6572 7669 6365 202d 2045  ftpd Service - E
│ │ │ +00247480: 6e73 7572 6520 7673 6674 7064 2e73 6572  nsure vsftpd.ser
│ │ │ +00247490: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +002474a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002474b0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002474c0: 2020 6e61 6d65 3a20 7673 6674 7064 2e73    name: vsftpd.s
│ │ │ +002474d0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002474e0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002474f0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00247500: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00247510: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +00247520: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +00247530: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00247540: 7263 6828 2276 7366 7470 642e 7365 7276  rch("vsftpd.serv
│ │ │ +00247550: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +00247560: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +00247570: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +00247580: 7374 7320 2d20 7673 6674 7064 2e73 6f63  sts - vsftpd.soc
│ │ │ +00247590: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002475a0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002475b0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002475c0: 7374 2d75 6e69 742d 6669 6c65 7320 7673  st-unit-files vs
│ │ │ +002475d0: 6674 7064 2e73 6f63 6b65 740a 2020 2020  ftpd.socket.    
│ │ │ +002475e0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +002475f0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +00247600: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00247610: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00247620: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00247630: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +00247640: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +00247650: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +00247660: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00247670: 6c65 2076 7366 7470 6420 5365 7276 6963  le vsftpd Servic
│ │ │ +00247680: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00247690: 6574 2076 7366 7470 640a 2020 2020 616e  et vsftpd.    an
│ │ │ +002476a0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +002476b0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +002476c0: 653a 2076 7366 7470 642e 736f 636b 6574  e: vsftpd.socket
│ │ │ +002476d0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002476e0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +002476f0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00247700: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00247710: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +00247720: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +00247730: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +00247740: 6828 2276 7366 7470 642e 736f 636b 6574  h("vsftpd.socket
│ │ │ +00247750: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00247760: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ +00247770: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00247780: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00247790: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002477a0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002477b0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +002477c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002477d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002477e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002477f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00247800: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00247810: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00247820: 6365 5f76 7366 7470 645f 6469 7361 626c  ce_vsftpd_disabl
│ │ │ +00247830: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +00247840: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +00247850: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00247860: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00247870: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +00247930: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00247940: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00247950: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ +00247140: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00247170: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00247190: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002471a0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002471c0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002471d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002479f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00247a40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +002479d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00247a00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00247a20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00247a30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00247a50: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00247a60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00247a80: 7564 6520 6469 7361 626c 655f 7673 6674  ude disable_vsft
│ │ │ +00247a90: 7064 0a0a 636c 6173 7320 6469 7361 626c  pd..class disabl
│ │ │ +00247aa0: 655f 7673 6674 7064 207b 0a20 2073 6572  e_vsftpd {.  ser
│ │ │ +00247ab0: 7669 6365 207b 2776 7366 7470 6427 3a0a  vice {'vsftpd':.
│ │ │ +00247ac0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +00247ad0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +00247ae0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +00247af0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +00247bb0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00247bc0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00247bd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00247c10: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00247c20: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00247c30: 0a6d 6173 6b65 6420 3d20 5b22 7673 6674  .masked = ["vsft
│ │ │ +00247c40: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remediation Pu │ │ │ -00248c40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00248c50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00248d20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00248d30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00248d90: 5f66 7470 0a0a 636c 6173 7320 7265 6d6f  _ftp..class remo
│ │ │ -00248da0: 7665 5f66 7470 207b 0a20 2070 6163 6b61  ve_ftp {.  packa
│ │ │ -00248db0: 6765 207b 2027 6674 7027 3a0a 2020 2020  ge { 'ftp':.    
│ │ │ -00248dc0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00248dd0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00248df0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00248e90: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00248ea0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00248eb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ -00248d00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00248d10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00248d50: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00248d60: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -00248f50: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00248fa0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00248fe0: 616d 653a 2027 5265 6d6f 7665 2066 7470  ame: 'Remove ftp
│ │ │ -00248ff0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -00249000: 2066 7470 2069 7320 7265 6d6f 7665 6427   ftp is removed'
│ │ │ -00249010: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00249020: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00249030: 6e61 6d65 3a20 6674 700a 2020 2020 7374  name: ftp.    st
│ │ │ -00249040: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00249050: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -00249060: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00249070: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00249080: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00249090: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002490a0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002490b0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -002490c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002490d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002490e0: 6163 6b61 6765 5f66 7470 5f72 656d 6f76  ackage_ftp_remov
│ │ │ -002490f0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00248c30: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +00248c40: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00248c50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -00248f30: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00248f60: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00248f80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00248f90: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00248fb0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00248fc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00248cd0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00248cf0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00248d40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00248d70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ +00248d90: 6520 6674 7020 5061 636b 6167 653a 2045  e ftp Package: E
│ │ │ +00248da0: 6e73 7572 6520 6674 7020 6973 2072 656d  nsure ftp is rem
│ │ │ +00248db0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00248dc0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00248dd0: 0a20 2020 206e 616d 653a 2066 7470 0a20  .    name: ftp. 
│ │ │ +00248de0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00248df0: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ +00248e00: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00248e10: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +00248e20: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00248e30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00248e40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00248e50: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00248e60: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00248e70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00248e80: 2020 2d20 7061 636b 6167 655f 6674 705f    - package_ftp_
│ │ │ +00248e90: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00248ea0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00248f50: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00248f60: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00248fe0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00249070: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00249080: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ +00248d00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00248d10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00248d50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00248d60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +00248ff0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00249000: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00249040: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00249050: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +002490a0: 7265 6d6f 7665 5f66 7470 0a0a 636c 6173  remove_ftp..clas
│ │ │ +002490b0: 7320 7265 6d6f 7665 5f66 7470 207b 0a20  s remove_ftp {. 
│ │ │ +002490c0: 2070 6163 6b61 6765 207b 2027 6674 7027   package { 'ftp'
│ │ │ +002490d0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +002490e0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +002490f0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00249100: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
R │ │ │ -00249f80: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00249f90: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -0024a030: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0024a040: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0024a090: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0024a0d0: 6e63 6c75 6465 2072 656d 6f76 655f 746e  nclude remove_tn
│ │ │ -0024a0e0: 6674 700a 0a63 6c61 7373 2072 656d 6f76  ftp..class remov
│ │ │ -0024a0f0: 655f 746e 6674 7020 7b0a 2020 7061 636b  e_tnftp {.  pack
│ │ │ -0024a100: 6167 6520 7b20 2774 6e66 7470 273a 0a20  age { 'tnftp':. 
│ │ │ -0024a110: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0024a120: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0024a130: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0024a1e0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0024a1f0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0024a200: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -0024a020: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0024a050: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0024a060: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0024a0a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0024a0b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0024a2d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0024a2e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0024a330: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -0024a340: 746e 6674 7020 5061 636b 6167 653a 2045  tnftp Package: E
│ │ │ -0024a350: 6e73 7572 6520 746e 6674 7020 6973 2072  nsure tnftp is r
│ │ │ -0024a360: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0024a370: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0024a380: 653a 0a20 2020 206e 616d 653a 2074 6e66  e:.    name: tnf
│ │ │ -0024a390: 7470 0a20 2020 2073 7461 7465 3a20 6162  tp.    state: ab
│ │ │ -0024a3a0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0024a3b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0024a3c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0024a3d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0024a3e0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -0024a3f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0024a400: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0024a410: 2d20 7061 636b 6167 655f 746e 6674 705f  - package_tnftp_
│ │ │ -0024a420: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00249f80: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00249f90: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
Complexity:low
Disrup │ │ │ -0024a2b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0024a2c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0024a300: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0024a310: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0024a030: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0024a0d0: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ +0024a0e0: 6e66 7470 2050 6163 6b61 6765 3a20 456e  nftp Package: En
│ │ │ +0024a0f0: 7375 7265 2074 6e66 7470 2069 7320 7265  sure tnftp is re
│ │ │ +0024a100: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0024a110: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0024a120: 3a0a 2020 2020 6e61 6d65 3a20 746e 6674  :.    name: tnft
│ │ │ +0024a130: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ +0024a140: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0024a150: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0024a160: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0024a170: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0024a180: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0024a190: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0024a1a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0024a1b0: 2070 6163 6b61 6765 5f74 6e66 7470 5f72   package_tnftp_r
│ │ │ +0024a1c0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0024a280: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0024a290: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0024a310: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0024a350: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ +0024a020: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0024a050: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0024a060: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0024a0a0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0024a0b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +0024a320: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0024a340: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0024a370: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0024a390: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0024a3c0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0024a3d0: 656d 6f76 655f 746e 6674 700a 0a63 6c61  emove_tnftp..cla
│ │ │ +0024a3e0: 7373 2072 656d 6f76 655f 746e 6674 7020  ss remove_tnftp 
│ │ │ +0024a3f0: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ +0024a400: 6e66 7470 273a 0a20 2020 2065 6e73 7572  nftp':.    ensur
│ │ │ +0024a410: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +0024a420: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  0024a430: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -0024c010: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0024c020: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024c030: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024c040: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024c050: 7365 2220 6964 3d22 6964 3933 3022 3e3c se" id="id930">< │ │ │ -0024c060: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024c070: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024c080: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024c090: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024c0a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024c0b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024c0c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024c100: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024c110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024c130: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024c140: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0024c160: 2072 656d 6f76 655f 6170 6163 6865 320a remove_apache2. │ │ │ -0024c170: 0a63 6c61 7373 2072 656d 6f76 655f 6170 .class remove_ap │ │ │ -0024c180: 6163 6865 3220 7b0a 2020 7061 636b 6167 ache2 {. packag │ │ │ -0024c190: 6520 7b20 2761 7061 6368 6532 273a 0a20 e { 'apache2':. │ │ │ -0024c1a0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -0024c1b0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ -0024c1c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ -0024c270: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0024c280: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0024c290: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0024c360: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0024c370: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0024c3c0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -0024c3d0: 6c6c 2061 7061 6368 6532 2050 6163 6b61  ll apache2 Packa
│ │ │ -0024c3e0: 6765 3a20 456e 7375 7265 2061 7061 6368  ge: Ensure apach
│ │ │ -0024c3f0: 6532 2069 7320 7265 6d6f 7665 6427 0a20  e2 is removed'. 
│ │ │ -0024c400: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0024c410: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0024c420: 6d65 3a20 6170 6163 6865 320a 2020 2020  me: apache2.    
│ │ │ -0024c430: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -0024c440: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0024c450: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0024c460: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0024c470: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -0024c480: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -0024c490: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0024c4a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0024c4b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0024c4c0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0024c4d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0024c4e0: 2d20 7061 636b 6167 655f 6874 7470 645f  - package_httpd_
│ │ │ -0024c4f0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ -0024c500: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +0024c030: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0024c060: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -0024c340: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0024c350: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0024c390: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0024c3a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0024c0d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0024c0f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0024c120: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0024c0b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0024c0c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0024c100: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0024c110: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0024c160: 2027 556e 696e 7374 616c 6c20 6170 6163 'Uninstall apac │ │ │ +0024c170: 6865 3220 5061 636b 6167 653a 2045 6e73 he2 Package: Ens │ │ │ +0024c180: 7572 6520 6170 6163 6865 3220 6973 2072 ure apache2 is r │ │ │ +0024c190: 656d 6f76 6564 270a 2020 616e 7369 626c emoved'. ansibl │ │ │ +0024c1a0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +0024c1b0: 653a 0a20 2020 206e 616d 653a 2061 7061 e:. name: apa │ │ │ +0024c1c0: 6368 6532 0a20 2020 2073 7461 7465 3a20 che2. state: │ │ │ +0024c1d0: 6162 7365 6e74 0a20 2074 6167 733a 0a20 absent. tags:. │ │ │ +0024c1e0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0024c1f0: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ +0024c200: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ +0024c210: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0024c220: 4d2d 3728 6229 0a20 202d 2064 6973 6162 M-7(b). - disab │ │ │ +0024c230: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0024c240: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0024c250: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0024c260: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f n. - no_reboot_ │ │ │ +0024c270: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0024c280: 6765 5f68 7474 7064 5f72 656d 6f76 6564 ge_httpd_removed │ │ │ +0024c290: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ +0024c2a0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70 erity.

Remediatio │ │ │ +0024c360: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0024c370: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0024c400: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024c420: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024c430: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024c440: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024c450: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024c470: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024c4a0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0024c4b0: 6d6f 7665 5f61 7061 6368 6532 0a0a 636c  move_apache2..cl
│ │ │ +0024c4c0: 6173 7320 7265 6d6f 7665 5f61 7061 6368  ass remove_apach
│ │ │ +0024c4d0: 6532 207b 0a20 2070 6163 6b61 6765 207b  e2 {.  package {
│ │ │ +0024c4e0: 2027 6170 6163 6865 3227 3a0a 2020 2020   'apache2':.    
│ │ │ +0024c4f0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0024c500: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0024c520: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediatio │ │ │ -0024d840: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0024d850: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0024d860: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -0024d8b0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -0024d8c0: 6b65 6420 3d20 5b22 6170 6163 6865 3222  ked = ["apache2"
│ │ │ -0024d8d0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0024d8e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ -0024d990: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0024d9a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0024da70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0024da80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0024dad0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -0024dae0: 6170 6163 6865 320a 0a63 6c61 7373 2064  apache2..class d
│ │ │ -0024daf0: 6973 6162 6c65 5f61 7061 6368 6532 207b  isable_apache2 {
│ │ │ -0024db00: 0a20 2073 6572 7669 6365 207b 2761 7061  .  service {'apa
│ │ │ -0024db10: 6368 6532 273a 0a20 2020 2065 6e61 626c  che2':.    enabl
│ │ │ -0024db20: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -0024db30: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0024db40: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -0024db50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0024dc10: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0024dc20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -0024da50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0024da60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0024daa0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0024dab0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -0024dcf0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0024dd00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -0024dd60: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0024dd70: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0024dd80: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0024dd90: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0024dda0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0024ddb0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0024ddc0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0024ddd0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0024dde0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -0024ddf0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0024de00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0024de10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0024de20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0024de30: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0024de40: 5f68 7474 7064 5f64 6973 6162 6c65 640a  _httpd_disabled.
│ │ │ -0024de50: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -0024de60: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469  rity..- name: Di
│ │ │ -0024de70: 7361 626c 6520 6170 6163 6865 3220 5365  sable apache2 Se
│ │ │ -0024de80: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -0024de90: 7365 7276 6963 6520 6170 6163 6865 320a  service apache2.
│ │ │ -0024dea0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0024deb0: 6d65 3a20 4469 7361 626c 6520 6170 6163  me: Disable apac
│ │ │ -0024dec0: 6865 3220 5365 7276 6963 6520 2d20 436f  he2 Service - Co
│ │ │ -0024ded0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -0024dee0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -0024def0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -0024df00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0024df10: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0024df20: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0024df30: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -0024df40: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -0024df50: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -0024df60: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -0024df70: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -0024df80: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -0024df90: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -0024dfa0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -0024dfb0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -0024dfc0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -0024dfd0: 6162 6c65 2061 7061 6368 6532 2053 6572  able apache2 Ser
│ │ │ -0024dfe0: 7669 6365 202d 2045 6e73 7572 6520 6170  vice - Ensure ap
│ │ │ -0024dff0: 6163 6865 322e 7365 7276 6963 6520 6973  ache2.service is
│ │ │ -0024e000: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -0024e010: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0024e020: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0024e030: 2061 7061 6368 6532 2e73 6572 7669 6365   apache2.service
│ │ │ -0024e040: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0024e050: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -0024e060: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0024e070: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0024e080: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -0024e090: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0024e0a0: 6e65 7320 6973 2073 6561 7263 6828 2261  nes is search("a
│ │ │ -0024e0b0: 7061 6368 6532 2e73 6572 7669 6365 222c  pache2.service",
│ │ │ -0024e0c0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0024e0d0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -0024e0e0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -0024e0f0: 2061 7061 6368 6532 2e73 6f63 6b65 740a   apache2.socket.
│ │ │ -0024e100: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0024e110: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -0024e120: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -0024e130: 6e69 742d 6669 6c65 7320 6170 6163 6865  nit-files apache
│ │ │ -0024e140: 322e 736f 636b 6574 0a20 2020 2072 6567  2.socket.    reg
│ │ │ -0024e150: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -0024e160: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -0024e170: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0024e180: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0024e190: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -0024e1a0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -0024e1b0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -0024e1c0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -0024e1d0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -0024e1e0: 6170 6163 6865 3220 5365 7276 6963 6520  apache2 Service 
│ │ │ -0024e1f0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0024e200: 2061 7061 6368 6532 0a20 2020 2061 6e73   apache2.    ans
│ │ │ -0024e210: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -0024e220: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -0024e230: 3a20 6170 6163 6865 322e 736f 636b 6574  : apache2.socket
│ │ │ -0024e240: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0024e250: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -0024e260: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -0024e270: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0024e280: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -0024e290: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -0024e2a0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0024e2b0: 6828 2261 7061 6368 6532 2e73 6f63 6b65  h("apache2.socke
│ │ │ -0024e2c0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -0024e2d0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -0024e2e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0024e2f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0024e300: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0024e310: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0024e320: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0024e330: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0024e340: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0024e350: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0024e360: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0024e370: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0024e380: 6874 7470 645f 6469 7361 626c 6564 0a20  httpd_disabled. 
│ │ │ -0024e390: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0024e3a0: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ -0024e3b0: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ -0024e3c0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0024e3d0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0024e3e0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0024d840: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +0024d850: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0024d8d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0024d910: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -0024dcd0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0024dce0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0024dd20: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0024dd30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +0024d8e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0024d900: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0024d930: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0024d950: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0024d980: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0024d990: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0024d9a0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0024d9b0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0024d9c0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0024d9d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0024d9e0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0024d9f0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0024da00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0024da10: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +0024da20: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0024da30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0024da40: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0024da50: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +0024da60: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0024da70: 7276 6963 655f 6874 7470 645f 6469 7361  rvice_httpd_disa
│ │ │ +0024da80: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ +0024da90: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ +0024daa0: 653a 2044 6973 6162 6c65 2061 7061 6368  e: Disable apach
│ │ │ +0024dab0: 6532 2053 6572 7669 6365 202d 2044 6973  e2 Service - Dis
│ │ │ +0024dac0: 6162 6c65 2073 6572 7669 6365 2061 7061  able service apa
│ │ │ +0024dad0: 6368 6532 0a20 2062 6c6f 636b 3a0a 0a20  che2.  block:.. 
│ │ │ +0024dae0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0024daf0: 2061 7061 6368 6532 2053 6572 7669 6365   apache2 Service
│ │ │ +0024db00: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +0024db10: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +0024db20: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +0024db30: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +0024db40: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0024db50: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0024db60: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +0024db70: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +0024db80: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +0024db90: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0024dba0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0024dbb0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0024dbc0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0024dbd0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0024dbe0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0024dbf0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0024dc00: 3a20 4469 7361 626c 6520 6170 6163 6865  : Disable apache
│ │ │ +0024dc10: 3220 5365 7276 6963 6520 2d20 456e 7375  2 Service - Ensu
│ │ │ +0024dc20: 7265 2061 7061 6368 6532 2e73 6572 7669  re apache2.servi
│ │ │ +0024dc30: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +0024dc40: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024dc50: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0024dc60: 6e61 6d65 3a20 6170 6163 6865 322e 7365  name: apache2.se
│ │ │ +0024dc70: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +0024dc80: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +0024dc90: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0024dca0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0024dcb0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +0024dcc0: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +0024dcd0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0024dce0: 6368 2822 6170 6163 6865 322e 7365 7276  ch("apache2.serv
│ │ │ +0024dcf0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +0024dd00: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +0024dd10: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +0024dd20: 7374 7320 2d20 6170 6163 6865 322e 736f  sts - apache2.so
│ │ │ +0024dd30: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +0024dd40: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0024dd50: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +0024dd60: 6973 742d 756e 6974 2d66 696c 6573 2061  ist-unit-files a
│ │ │ +0024dd70: 7061 6368 6532 2e73 6f63 6b65 740a 2020  pache2.socket.  
│ │ │ +0024dd80: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +0024dd90: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +0024dda0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +0024ddb0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +0024ddc0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +0024ddd0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +0024dde0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +0024ddf0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +0024de00: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +0024de10: 6162 6c65 2061 7061 6368 6532 2053 6572  able apache2 Ser
│ │ │ +0024de20: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ +0024de30: 6f63 6b65 7420 6170 6163 6865 320a 2020  ocket apache2.  
│ │ │ +0024de40: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0024de50: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0024de60: 206e 616d 653a 2061 7061 6368 6532 2e73   name: apache2.s
│ │ │ +0024de70: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +0024de80: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0024de90: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0024dea0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0024deb0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +0024dec0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0024ded0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0024dee0: 7365 6172 6368 2822 6170 6163 6865 322e  search("apache2.
│ │ │ +0024def0: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0024df00: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0024df10: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0024df20: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0024df30: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0024df40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0024df50: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0024df60: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0024df70: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0024df80: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0024df90: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0024dfa0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0024dfb0: 7669 6365 5f68 7474 7064 5f64 6973 6162  vice_httpd_disab
│ │ │ +0024dfc0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0024dfd0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0024dfe0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0024dff0: 7479 0a20 2077 6865 6e3a 2027 226c 696e  ty.  when: '"lin
│ │ │ +0024e000: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0024e010: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0024e020: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +0024e0e0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0024e0f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0024e170: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0024e190: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0024e1e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0024e210: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0024e230: 655f 6170 6163 6865 320a 0a63 6c61 7373  e_apache2..class
│ │ │ +0024e240: 2064 6973 6162 6c65 5f61 7061 6368 6532   disable_apache2
│ │ │ +0024e250: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ +0024e260: 7061 6368 6532 273a 0a20 2020 2065 6e61  pache2':.    ena
│ │ │ +0024e270: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +0024e280: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0024e290: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +0024e2a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0024e2b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +0024e360: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0024e370: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0024e380: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0024e3c0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0024e3d0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +0024e3e0: 203d 205b 2261 7061 6368 6532 225d 0a3c   = ["apache2"].<
│ │ │  0024e3f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediati │ │ │ -0024fa80: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0024fa90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024fb10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0024fb50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:< │ │ │ +0024e180: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0024e1a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0024e1f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0024e200: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -0024fb20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0024fb40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0024fb70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0024fb90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0024fbc0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0024fbd0: 656d 6f76 655f 6e67 696e 780a 0a63 6c61  emove_nginx..cla
│ │ │ -0024fbe0: 7373 2072 656d 6f76 655f 6e67 696e 7820  ss remove_nginx 
│ │ │ -0024fbf0: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ -0024fc00: 6769 6e78 273a 0a20 2020 2065 6e73 7572  ginx':.    ensur
│ │ │ -0024fc10: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0024fc20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0024fc30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0024fce0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0024fcf0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024fd00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024fd10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024fd20: 7365 2220 6964 3d22 6964 3934 3022 3e3c se" id="id940">< │ │ │ -0024fd30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024fd40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024fd50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024fd60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024fd70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024fd80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024fd90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024fdd0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024fde0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024fe00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024fe10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0024fe30: 2755 6e69 6e73 7461 6c6c 206e 6769 6e78 'Uninstall nginx │ │ │ -0024fe40: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -0024fe50: 206e 6769 6e78 2069 7320 7265 6d6f 7665 nginx is remove │ │ │ -0024fe60: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -0024fe70: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -0024fe80: 2020 6e61 6d65 3a20 6e67 696e 780a 2020 name: nginx. │ │ │ -0024fe90: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0024fea0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -0024feb0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0024fec0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0024fed0: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ -0024fee0: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ -0024fef0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -0024ff00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -0024ff10: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -0024ff20: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ -0024ff30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0024ff40: 2020 2d20 7061 636b 6167 655f 6e67 696e - package_ngin │ │ │ -0024ff50: 785f 7265 6d6f 7665 640a 2020 2d20 756e x_removed. - un │ │ │ -0024ff60: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c known_severity.< │ │ │ +0024fa80: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0024fa90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0024fb10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0024fb20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0024fb30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0024fb70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0024fb80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0024fba0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0024fbb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +0024fbd0: 556e 696e 7374 616c 6c20 6e67 696e 7820  Uninstall nginx 
│ │ │ +0024fbe0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +0024fbf0: 6e67 696e 7820 6973 2072 656d 6f76 6564  nginx is removed
│ │ │ +0024fc00: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0024fc10: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0024fc20: 206e 616d 653a 206e 6769 6e78 0a20 2020   name: nginx.   
│ │ │ +0024fc30: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0024fc40: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0024fc50: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0024fc60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0024fc70: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0024fc80: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0024fc90: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0024fca0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0024fcb0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0024fcc0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0024fcd0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0024fce0: 202d 2070 6163 6b61 6765 5f6e 6769 6e78   - package_nginx
│ │ │ +0024fcf0: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ +0024fd00: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
Re │ │ │ +0024fdc0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0024fdd0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0024fde0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0024fe80: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0024fed0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0024ff10: 636c 7564 6520 7265 6d6f 7665 5f6e 6769  clude remove_ngi
│ │ │ +0024ff20: 6e78 0a0a 636c 6173 7320 7265 6d6f 7665  nx..class remove
│ │ │ +0024ff30: 5f6e 6769 6e78 207b 0a20 2070 6163 6b61  _nginx {.  packa
│ │ │ +0024ff40: 6765 207b 2027 6e67 696e 7827 3a0a 2020  ge { 'nginx':.  
│ │ │ +0024ff50: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0024ff60: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0024ff70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -00250d20: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00250d30: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
Co │ │ │ +0024fe60: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0024fe90: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0024feb0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0024fec0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0024fee0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0024fef0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00250f10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00250f20: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00250f70: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00250fb0: 6c75 6465 2064 6973 6162 6c65 5f6e 6769  lude disable_ngi
│ │ │ -00250fc0: 6e78 0a0a 636c 6173 7320 6469 7361 626c  nx..class disabl
│ │ │ -00250fd0: 655f 6e67 696e 7820 7b0a 2020 7365 7276  e_nginx {.  serv
│ │ │ -00250fe0: 6963 6520 7b27 6e67 696e 7827 3a0a 2020  ice {'nginx':.  
│ │ │ -00250ff0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -00251000: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -00251010: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -00251020: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00251030: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -002510e0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -002510f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00251100: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00251110: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00251120: 7365 2220 6964 3d22 6964 3934 3522 3e3c se" id="id945">< │ │ │ -00251130: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00251140: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00251150: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00251160: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00251170: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00251200: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00251210: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ -00250f00: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00250f30: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00250f40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00250f80: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00250f90: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ -00251180: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00251190: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002511d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002511e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -00251230: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00251240: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00251250: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00251260: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00251270: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -00251280: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00251290: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -002512a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -002512b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -002512c0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -002512d0: 6e67 696e 785f 6469 7361 626c 6564 0a20 nginx_disabled. │ │ │ -002512e0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572 - unknown_sever │ │ │ -002512f0: 6974 790a 0a2d 206e 616d 653a 2044 6973 ity..- name: Dis │ │ │ -00251300: 6162 6c65 206e 6769 6e78 2053 6572 7669 able nginx Servi │ │ │ -00251310: 6365 202d 2044 6973 6162 6c65 2073 6572 ce - Disable ser │ │ │ -00251320: 7669 6365 206e 6769 6e78 0a20 2062 6c6f vice nginx. blo │ │ │ -00251330: 636b 3a0a 0a20 202d 206e 616d 653a 2044 ck:.. - name: D │ │ │ -00251340: 6973 6162 6c65 206e 6769 6e78 2053 6572 isable nginx Ser │ │ │ -00251350: 7669 6365 202d 2043 6f6c 6c65 6374 2073 vice - Collect s │ │ │ -00251360: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ -00251370: 5072 6573 656e 7420 696e 2074 6865 2053 Present in the S │ │ │ -00251380: 7973 7465 6d0a 2020 2020 616e 7369 626c ystem. ansibl │ │ │ -00251390: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -002513a0: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -002513b0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -002513c0: 2d2d 7479 7065 2073 6572 7669 6365 0a20 --type service. │ │ │ -002513d0: 2020 2072 6567 6973 7465 723a 2073 6572 register: ser │ │ │ -002513e0: 7669 6365 5f65 7869 7374 730a 2020 2020 vice_exists. │ │ │ -002513f0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -00251400: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -00251410: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ -00251420: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -00251430: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -00251440: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -00251450: 6e61 6d65 3a20 4469 7361 626c 6520 6e67 name: Disable ng │ │ │ -00251460: 696e 7820 5365 7276 6963 6520 2d20 456e inx Service - En │ │ │ -00251470: 7375 7265 206e 6769 6e78 2e73 6572 7669 sure nginx.servi │ │ │ -00251480: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ -00251490: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -002514a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -002514b0: 6e61 6d65 3a20 6e67 696e 782e 7365 7276 name: nginx.serv │ │ │ -002514c0: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ -002514d0: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ -002514e0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ -002514f0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -00251500: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ -00251510: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ -00251520: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ -00251530: 2822 6e67 696e 782e 7365 7276 6963 6522 ("nginx.service" │ │ │ -00251540: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -00251550: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ -00251560: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ -00251570: 2d20 6e67 696e 782e 736f 636b 6574 0a20 - nginx.socket. │ │ │ -00251580: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00251590: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -002515a0: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -002515b0: 6974 2d66 696c 6573 206e 6769 6e78 2e73 it-files nginx.s │ │ │ -002515c0: 6f63 6b65 740a 2020 2020 7265 6769 7374 ocket. regist │ │ │ -002515d0: 6572 3a20 736f 636b 6574 5f66 696c 655f er: socket_file_ │ │ │ -002515e0: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ -002515f0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ -00251600: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ -00251610: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -00251620: 7473 2e72 6320 6e6f 7420 696e 205b 302c ts.rc not in [0, │ │ │ -00251630: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f 1]. check_mo │ │ │ -00251640: 6465 3a20 6661 6c73 650a 0a20 202d 206e de: false.. - n │ │ │ -00251650: 616d 653a 2044 6973 6162 6c65 206e 6769 ame: Disable ngi │ │ │ -00251660: 6e78 2053 6572 7669 6365 202d 2044 6973 nx Service - Dis │ │ │ -00251670: 6162 6c65 2053 6f63 6b65 7420 6e67 696e able Socket ngin │ │ │ -00251680: 780a 2020 2020 616e 7369 626c 652e 6275 x. ansible.bu │ │ │ -00251690: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ -002516a0: 2020 2020 206e 616d 653a 206e 6769 6e78 name: nginx │ │ │ -002516b0: 2e73 6f63 6b65 740a 2020 2020 2020 656e .socket. en │ │ │ -002516c0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -002516d0: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ -002516e0: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ -002516f0: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ -00251700: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -00251710: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -00251720: 7320 7365 6172 6368 2822 6e67 696e 782e s search("nginx. │ │ │ -00251730: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ -00251740: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ -00251750: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -00251760: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -00251770: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -00251780: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -00251790: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -002517a0: 0a20 202d 2073 6572 7669 6365 5f6e 6769 . - service_ngi │ │ │ -002517b0: 6e78 5f64 6973 6162 6c65 640a 2020 2d20 nx_disabled. - │ │ │ -002517c0: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -002517d0: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ -002517e0: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ -002517f0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00251800: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00251810: 732e 7061 636b 6167 6573 270a 3c2f 636f s.packages'.
Complexity │ │ │ +00250dc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00250de0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00250df0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00250e00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00250e10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00250e30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00250e60: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00250e70: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00250e80: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00250e90: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00250ea0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00250eb0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00250ec0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00250ed0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00250ee0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00250ef0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00250f00: 0a20 202d 2073 6572 7669 6365 5f6e 6769  .  - service_ngi
│ │ │ +00250f10: 6e78 5f64 6973 6162 6c65 640a 2020 2d20  nx_disabled.  - 
│ │ │ +00250f20: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +00250f30: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +00250f40: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ +00250f50: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +00250f60: 6520 6e67 696e 780a 2020 626c 6f63 6b3a  e nginx.  block:
│ │ │ +00250f70: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00250f80: 626c 6520 6e67 696e 7820 5365 7276 6963  ble nginx Servic
│ │ │ +00250f90: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +00250fa0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +00250fb0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +00250fc0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +00250fd0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +00250fe0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +00250ff0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +00251000: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +00251010: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +00251020: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00251030: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00251040: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00251050: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00251060: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00251070: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00251080: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00251090: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ +002510a0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +002510b0: 6520 6e67 696e 782e 7365 7276 6963 6520  e nginx.service 
│ │ │ +002510c0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +002510d0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +002510e0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +002510f0: 653a 206e 6769 6e78 2e73 6572 7669 6365  e: nginx.service
│ │ │ +00251100: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00251110: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +00251120: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00251130: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00251140: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00251150: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00251160: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ +00251170: 6769 6e78 2e73 6572 7669 6365 222c 206d  ginx.service", m
│ │ │ +00251180: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +00251190: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +002511a0: 6f63 6b65 7420 4578 6973 7473 202d 206e  ocket Exists - n
│ │ │ +002511b0: 6769 6e78 2e73 6f63 6b65 740a 2020 2020  ginx.socket.    
│ │ │ +002511c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002511d0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002511e0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002511f0: 6669 6c65 7320 6e67 696e 782e 736f 636b  files nginx.sock
│ │ │ +00251200: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +00251210: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00251220: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00251230: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00251240: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +00251250: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00251260: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00251270: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00251280: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00251290: 3a20 4469 7361 626c 6520 6e67 696e 7820  : Disable nginx 
│ │ │ +002512a0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +002512b0: 6520 536f 636b 6574 206e 6769 6e78 0a20  e Socket nginx. 
│ │ │ +002512c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002512d0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002512e0: 2020 6e61 6d65 3a20 6e67 696e 782e 736f    name: nginx.so
│ │ │ +002512f0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +00251300: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00251310: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00251320: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00251330: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +00251340: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +00251350: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00251360: 6561 7263 6828 226e 6769 6e78 2e73 6f63  earch("nginx.soc
│ │ │ +00251370: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00251380: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +00251390: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002513a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002513b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002513c0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +002513d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002513e0: 2d20 7365 7276 6963 655f 6e67 696e 785f  - service_nginx_
│ │ │ +002513f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00251400: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00251410: 636b 0a20 202d 2075 6e6b 6e6f 776e 5f73  ck.  - unknown_s
│ │ │ +00251420: 6576 6572 6974 790a 2020 7768 656e 3a20  everity.  when: 
│ │ │ +00251430: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00251440: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00251450: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00251460: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00251510: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00251520: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00251530: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00251540: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00251550: 7365 2220 6964 3d22 6964 3934 3422 3e3c se" id="id944">< │ │ │ +00251560: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00251570: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00251580: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00251590: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002515a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002515b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002515c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00251600: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00251610: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00251630: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00251640: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +00251660: 6973 6162 6c65 5f6e 6769 6e78 0a0a 636c  isable_nginx..cl
│ │ │ +00251670: 6173 7320 6469 7361 626c 655f 6e67 696e  ass disable_ngin
│ │ │ +00251680: 7820 7b0a 2020 7365 7276 6963 6520 7b27  x {.  service {'
│ │ │ +00251690: 6e67 696e 7827 3a0a 2020 2020 656e 6162  nginx':.    enab
│ │ │ +002516a0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002516b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002516c0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002516d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002516e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00251790: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +002517a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002517b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +002517f0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00251800: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +00251810: 3d20 5b22 6e67 696e 7822 5d0a 3c2f 636f  = ["nginx"].
< │ │ │ 00251830: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00251840: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00251850: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00251860: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00251870: 6439 3436 2220 7461 6269 6e64 6578 3d22 d946" tabindex=" │ │ │ 00251880: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -152273,90 +152273,90 @@ │ │ │ 00252d00: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 00252d10: 2369 6439 3438 2220 7461 6269 6e64 6578 #id948" tabindex │ │ │ 00252d20: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 00252d30: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 00252d40: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 00252d50: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 00252d60: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -00252d70: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00252d80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00252d90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00252e30: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00252e80: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00252ec0: 636c 7564 6520 7265 6d6f 7665 5f64 6f76  clude remove_dov
│ │ │ -00252ed0: 6563 6f74 0a0a 636c 6173 7320 7265 6d6f  ecot..class remo
│ │ │ -00252ee0: 7665 5f64 6f76 6563 6f74 207b 0a20 2070  ve_dovecot {.  p
│ │ │ -00252ef0: 6163 6b61 6765 207b 2027 646f 7665 636f  ackage { 'doveco
│ │ │ -00252f00: 7427 3a0a 2020 2020 656e 7375 7265 203d  t':.    ensure =
│ │ │ -00252f10: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00252f20: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -00252fe0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -00252ff0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -002530b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002530c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ -00252e10: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00252e40: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00252e60: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00252e70: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00252e90: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00252ea0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -00253080: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002530a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -002530d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -002530f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00253120: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00253130: 696e 7374 616c 6c20 646f 7665 636f 7420  install dovecot 
│ │ │ -00253140: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00253150: 646f 7665 636f 7420 6973 2072 656d 6f76  dovecot is remov
│ │ │ -00253160: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00253170: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00253180: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ -00253190: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002531a0: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -002531b0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002531c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002531d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002531e0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -002531f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00253200: 6163 6b61 6765 5f64 6f76 6563 6f74 5f72  ackage_dovecot_r
│ │ │ -00253210: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ -00253220: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +00252e20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00252e30: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00252e80: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00252ec0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00252ed0: 2064 6f76 6563 6f74 2050 6163 6b61 6765   dovecot Package
│ │ │ +00252ee0: 3a20 456e 7375 7265 2064 6f76 6563 6f74  : Ensure dovecot
│ │ │ +00252ef0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00252f00: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00252f10: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00252f20: 3a20 646f 7665 636f 740a 2020 2020 7374  : dovecot.    st
│ │ │ +00252f30: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00252f40: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +00252f50: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00252f60: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00252f70: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00252f80: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00252f90: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00252fa0: 646f 7665 636f 745f 7265 6d6f 7665 640a  dovecot_removed.
│ │ │ +00252fb0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +00252fc0: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation
│ │ │ +00253080: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +00253090: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +00253160: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +00252e10: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00252e40: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00252e50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00252e90: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00252ea0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00253120: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00253140: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00253190: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002531a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +002531d0: 6f76 655f 646f 7665 636f 740a 0a63 6c61  ove_dovecot..cla
│ │ │ +002531e0: 7373 2072 656d 6f76 655f 646f 7665 636f  ss remove_doveco
│ │ │ +002531f0: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ +00253200: 2764 6f76 6563 6f74 273a 0a20 2020 2065  'dovecot':.    e
│ │ │ +00253210: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00253220: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00253240: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00253250: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00253260: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00253270: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00253280: 6439 3530 2220 7461 6269 6e64 6578 3d22 d950" tabindex=" │ │ │ 00253290: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -152569,193 +152569,193 @@ │ │ │ 00253f80: 6c61 7073 6522 2064 6174 612d 7461 7267 lapse" data-targ │ │ │ 00253f90: 6574 3d22 2369 6439 3532 2220 7461 6269 et="#id952" tabi │ │ │ 00253fa0: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 00253fb0: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 00253fc0: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 00253fd0: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 00253fe0: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -00253ff0: 223e 5265 6d65 6469 6174 696f 6e20 4f53 ">Remediation OS │ │ │ -00254000: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00254010: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00254020: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -00254060: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -00254070: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -00254080: 3d20 5b22 646f 7665 636f 7422 5d0a 3c2f  = ["dovecot"].
Re │ │ │ -00254140: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00254150: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00254160: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00254200: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00254250: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -002541e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00254210: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00254230: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00254240: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00254260: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00254270: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00254290: 7564 6520 6469 7361 626c 655f 646f 7665  ude disable_dove
│ │ │ -002542a0: 636f 740a 0a63 6c61 7373 2064 6973 6162  cot..class disab
│ │ │ -002542b0: 6c65 5f64 6f76 6563 6f74 207b 0a20 2073  le_dovecot {.  s
│ │ │ -002542c0: 6572 7669 6365 207b 2764 6f76 6563 6f74  ervice {'dovecot
│ │ │ -002542d0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -002542e0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -002542f0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -00254300: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -00254320: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002543c0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002543d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002543e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00254480: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002544d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00254510: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00254520: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00254530: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00254540: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00254550: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00254560: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00254570: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00254580: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00254590: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002545a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002545b0: 7669 6365 5f64 6f76 6563 6f74 5f64 6973  vice_dovecot_dis
│ │ │ -002545c0: 6162 6c65 640a 2020 2d20 756e 6b6e 6f77  abled.  - unknow
│ │ │ -002545d0: 6e5f 7365 7665 7269 7479 0a0a 2d20 6e61  n_severity..- na
│ │ │ -002545e0: 6d65 3a20 4469 7361 626c 6520 446f 7665  me: Disable Dove
│ │ │ -002545f0: 636f 7420 5365 7276 6963 6520 2d20 4469  cot Service - Di
│ │ │ -00254600: 7361 626c 6520 7365 7276 6963 6520 646f  sable service do
│ │ │ -00254610: 7665 636f 740a 2020 626c 6f63 6b3a 0a0a  vecot.  block:..
│ │ │ -00254620: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00254630: 6520 446f 7665 636f 7420 5365 7276 6963  e Dovecot Servic
│ │ │ -00254640: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -00254650: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00254660: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -00254670: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -00254680: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -00254690: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -002546a0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -002546b0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -002546c0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -002546d0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002546e0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002546f0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00254700: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00254710: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00254720: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00254730: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00254740: 653a 2044 6973 6162 6c65 2044 6f76 6563  e: Disable Dovec
│ │ │ -00254750: 6f74 2053 6572 7669 6365 202d 2045 6e73  ot Service - Ens
│ │ │ -00254760: 7572 6520 646f 7665 636f 742e 7365 7276  ure dovecot.serv
│ │ │ -00254770: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00254780: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00254790: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002547a0: 206e 616d 653a 2064 6f76 6563 6f74 2e73   name: dovecot.s
│ │ │ -002547b0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -002547c0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002547d0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002547e0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002547f0: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -00254800: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -00254810: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -00254820: 7263 6828 2264 6f76 6563 6f74 2e73 6572  rch("dovecot.ser
│ │ │ -00254830: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00254840: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00254850: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00254860: 6973 7473 202d 2064 6f76 6563 6f74 2e73  ists - dovecot.s
│ │ │ -00254870: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -00254880: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00254890: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002548a0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002548b0: 646f 7665 636f 742e 736f 636b 6574 0a20  dovecot.socket. 
│ │ │ -002548c0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002548d0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -002548e0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002548f0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00254900: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00254910: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00254920: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00254930: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00254940: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00254950: 7361 626c 6520 446f 7665 636f 7420 5365  sable Dovecot Se
│ │ │ -00254960: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -00254970: 536f 636b 6574 2064 6f76 6563 6f74 0a20  Socket dovecot. 
│ │ │ -00254980: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00254990: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002549a0: 2020 6e61 6d65 3a20 646f 7665 636f 742e    name: dovecot.
│ │ │ -002549b0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002549c0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002549d0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002549e0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002549f0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00254a00: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00254a10: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00254a20: 2073 6561 7263 6828 2264 6f76 6563 6f74   search("dovecot
│ │ │ -00254a30: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00254a40: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00254a50: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00254a60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00254a70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00254a80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00254a90: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00254aa0: 640a 2020 2d20 7365 7276 6963 655f 646f  d.  - service_do
│ │ │ -00254ab0: 7665 636f 745f 6469 7361 626c 6564 0a20  vecot_disabled. 
│ │ │ -00254ac0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00254ad0: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ -00254ae0: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ -00254af0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00254b00: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00254b10: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00253ff0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +00254000: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00254010: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Co │ │ │ -00254460: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00254490: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002544b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002544c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002544e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002544f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00254090: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002540b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00254100: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00254130: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00254150: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00254160: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00254170: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00254180: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00254190: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002541a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002541b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002541c0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +002541d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002541e0: 2d20 7365 7276 6963 655f 646f 7665 636f  - service_doveco
│ │ │ +002541f0: 745f 6469 7361 626c 6564 0a20 202d 2075  t_disabled.  - u
│ │ │ +00254200: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00254210: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00254220: 2044 6f76 6563 6f74 2053 6572 7669 6365   Dovecot Service
│ │ │ +00254230: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00254240: 6365 2064 6f76 6563 6f74 0a20 2062 6c6f  ce dovecot.  blo
│ │ │ +00254250: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00254260: 6973 6162 6c65 2044 6f76 6563 6f74 2053  isable Dovecot S
│ │ │ +00254270: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00254280: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00254290: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +002542a0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +002542b0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002542c0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002542d0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +002542e0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +002542f0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00254300: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00254310: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00254320: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00254330: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00254340: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00254350: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00254360: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00254370: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00254380: 446f 7665 636f 7420 5365 7276 6963 6520  Dovecot Service 
│ │ │ +00254390: 2d20 456e 7375 7265 2064 6f76 6563 6f74  - Ensure dovecot
│ │ │ +002543a0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +002543b0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +002543c0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +002543d0: 2020 2020 2020 6e61 6d65 3a20 646f 7665        name: dove
│ │ │ +002543e0: 636f 742e 7365 7276 6963 650a 2020 2020  cot.service.    
│ │ │ +002543f0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00254400: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00254410: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +00254420: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00254430: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00254440: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00254450: 7320 7365 6172 6368 2822 646f 7665 636f  s search("doveco
│ │ │ +00254460: 742e 7365 7276 6963 6522 2c20 6d75 6c74  t.service", mult
│ │ │ +00254470: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00254480: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00254490: 6574 2045 7869 7374 7320 2d20 646f 7665  et Exists - dove
│ │ │ +002544a0: 636f 742e 736f 636b 6574 0a20 2020 2061  cot.socket.    a
│ │ │ +002544b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002544c0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002544d0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002544e0: 696c 6573 2064 6f76 6563 6f74 2e73 6f63  iles dovecot.soc
│ │ │ +002544f0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00254500: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00254510: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00254520: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00254530: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00254540: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00254550: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00254560: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00254570: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00254580: 653a 2044 6973 6162 6c65 2044 6f76 6563  e: Disable Dovec
│ │ │ +00254590: 6f74 2053 6572 7669 6365 202d 2044 6973  ot Service - Dis
│ │ │ +002545a0: 6162 6c65 2053 6f63 6b65 7420 646f 7665  able Socket dove
│ │ │ +002545b0: 636f 740a 2020 2020 616e 7369 626c 652e  cot.    ansible.
│ │ │ +002545c0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002545d0: 0a20 2020 2020 206e 616d 653a 2064 6f76  .      name: dov
│ │ │ +002545e0: 6563 6f74 2e73 6f63 6b65 740a 2020 2020  ecot.socket.    
│ │ │ +002545f0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00254600: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00254610: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +00254620: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00254630: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +00254640: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00254650: 6573 2069 7320 7365 6172 6368 2822 646f  es is search("do
│ │ │ +00254660: 7665 636f 742e 736f 636b 6574 222c 206d  vecot.socket", m
│ │ │ +00254670: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00254680: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00254690: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002546a0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002546b0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002546c0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002546d0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002546e0: 6365 5f64 6f76 6563 6f74 5f64 6973 6162  ce_dovecot_disab
│ │ │ +002546f0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00254700: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00254710: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00254720: 7479 0a20 2077 6865 6e3a 2027 226c 696e  ty.  when: '"lin
│ │ │ +00254730: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00254740: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00254750: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00254810: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00254820: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ +002540c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002540d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00254110: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00254120: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +002548a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002548c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00254910: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00254940: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +00254960: 655f 646f 7665 636f 740a 0a63 6c61 7373  e_dovecot..class
│ │ │ +00254970: 2064 6973 6162 6c65 5f64 6f76 6563 6f74   disable_dovecot
│ │ │ +00254980: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ +00254990: 6f76 6563 6f74 273a 0a20 2020 2065 6e61  ovecot':.    ena
│ │ │ +002549a0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +002549b0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +002549c0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +002549d0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +002549e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +00254a90: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00254aa0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00254ab0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00254af0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00254b00: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00254b10: 203d 205b 2264 6f76 6563 6f74 225d 0a3c   = ["dovecot"].<
│ │ │  00254b20: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation Pup │ │ │ -00256470: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00256480: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +002548b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002548d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00254920: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00254930: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00256550: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00256560: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002565b0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002565c0: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ -002565d0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6f  ..class remove_o
│ │ │ -002565e0: 7065 6e6c 6461 702d 636c 6965 6e74 7320  penldap-clients 
│ │ │ -002565f0: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ -00256600: 7065 6e6c 6461 702d 636c 6965 6e74 7327  penldap-clients'
│ │ │ -00256610: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00256620: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00256630: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00256640: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -002566f0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00256700: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ -00256530: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00256540: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00256580: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00256590: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00256780: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002567a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002567f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00256820: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00256790: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002567b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00256800: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00256810: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Ensu
│ │ │ -00256840: 7265 204c 4441 5020 636c 6965 6e74 2069  re LDAP client i
│ │ │ -00256850: 7320 6e6f 7420 696e 7374 616c 6c65 643a  s not installed:
│ │ │ -00256860: 2045 6e73 7572 6520 6f70 656e 6c64 6170   Ensure openldap
│ │ │ -00256870: 2d63 6c69 656e 7473 2069 7320 7265 6d6f  -clients is remo
│ │ │ -00256880: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00256890: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -002568a0: 2020 2020 6e61 6d65 3a20 6f70 656e 6c64      name: openld
│ │ │ -002568b0: 6170 2d63 6c69 656e 7473 0a20 2020 2073  ap-clients.    s
│ │ │ -002568c0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -002568d0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -002568e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002568f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00256900: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00256910: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -00256920: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00256930: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00256940: 655f 6f70 656e 6c64 6170 2d63 6c69 656e  e_openldap-clien
│ │ │ -00256950: 7473 5f72 656d 6f76 6564 0a3c 2f63 6f64  ts_removed.Remediation Ans
│ │ │ +00256470: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00256480: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +00256550: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00256560: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Ensure
│ │ │ +002565c0: 204c 4441 5020 636c 6965 6e74 2069 7320   LDAP client is 
│ │ │ +002565d0: 6e6f 7420 696e 7374 616c 6c65 643a 2045  not installed: E
│ │ │ +002565e0: 6e73 7572 6520 6f70 656e 6c64 6170 2d63  nsure openldap-c
│ │ │ +002565f0: 6c69 656e 7473 2069 7320 7265 6d6f 7665  lients is remove
│ │ │ +00256600: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00256610: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00256620: 2020 6e61 6d65 3a20 6f70 656e 6c64 6170    name: openldap
│ │ │ +00256630: 2d63 6c69 656e 7473 0a20 2020 2073 7461  -clients.    sta
│ │ │ +00256640: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00256650: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00256660: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00256670: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00256680: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00256690: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +002566a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002566b0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002566c0: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ +002566d0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002566e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00256790: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002567a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002567b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002567c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002567d0: 7365 2220 6964 3d22 6964 3935 3822 3e3c se" id="id958">< │ │ │ +002567e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002567f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00256800: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00256810: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00256820: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +002568b0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +002568c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disru │ │ │ +00256530: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00256540: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00256580: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00256590: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +00256830: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00256840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00256880: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00256890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +002568e0: 2072 656d 6f76 655f 6f70 656e 6c64 6170 remove_openldap │ │ │ +002568f0: 2d63 6c69 656e 7473 0a0a 636c 6173 7320 -clients..class │ │ │ +00256900: 7265 6d6f 7665 5f6f 7065 6e6c 6461 702d remove_openldap- │ │ │ +00256910: 636c 6965 6e74 7320 7b0a 2020 7061 636b clients {. pack │ │ │ +00256920: 6167 6520 7b20 276f 7065 6e6c 6461 702d age { 'openldap- │ │ │ +00256930: 636c 6965 6e74 7327 3a0a 2020 2020 656e clients':. en │ │ │ +00256940: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +00256950: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Rem │ │ │ -00258130: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00258140: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00258150: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -002581d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00258200: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00258220: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00258230: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00258250: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00258260: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00258280: 6c75 6465 2072 656d 6f76 655f 6f70 656e  lude remove_open
│ │ │ -00258290: 6c64 6170 2d73 6572 7665 7273 0a0a 636c  ldap-servers..cl
│ │ │ -002582a0: 6173 7320 7265 6d6f 7665 5f6f 7065 6e6c  ass remove_openl
│ │ │ -002582b0: 6461 702d 7365 7276 6572 7320 7b0a 2020  dap-servers {.  
│ │ │ -002582c0: 7061 636b 6167 6520 7b20 276f 7065 6e6c  package { 'openl
│ │ │ -002582d0: 6461 702d 7365 7276 6572 7327 3a0a 2020  dap-servers':.  
│ │ │ -002582e0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002582f0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00258300: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -002583b0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002583c0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00258460: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00258500: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00258510: 6c20 736c 6170 6420 5061 636b 6167 653a  l slapd Package:
│ │ │ -00258520: 2045 6e73 7572 6520 6f70 656e 6c64 6170   Ensure openldap
│ │ │ -00258530: 2d73 6572 7665 7273 2069 7320 7265 6d6f  -servers is remo
│ │ │ -00258540: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00258550: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00258560: 2020 2020 6e61 6d65 3a20 6f70 656e 6c64      name: openld
│ │ │ -00258570: 6170 2d73 6572 7665 7273 0a20 2020 2073  ap-servers.    s
│ │ │ -00258580: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00258590: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -002585a0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -002585b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002585c0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -002585d0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -002585e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002585f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00258600: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00258610: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -00258620: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00258630: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00258640: 2d20 7061 636b 6167 655f 6f70 656e 6c64  - package_openld
│ │ │ -00258650: 6170 2d73 6572 7665 7273 5f72 656d 6f76  ap-servers_remov
│ │ │ -00258660: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00258130: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +00258140: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00258150: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ -00258450: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00258480: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00258490: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002584d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002584e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +002581f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00258240: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00258280: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00258290: 736c 6170 6420 5061 636b 6167 653a 2045  slapd Package: E
│ │ │ +002582a0: 6e73 7572 6520 6f70 656e 6c64 6170 2d73  nsure openldap-s
│ │ │ +002582b0: 6572 7665 7273 2069 7320 7265 6d6f 7665  ervers is remove
│ │ │ +002582c0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +002582d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +002582e0: 2020 6e61 6d65 3a20 6f70 656e 6c64 6170    name: openldap
│ │ │ +002582f0: 2d73 6572 7665 7273 0a20 2020 2073 7461  -servers.    sta
│ │ │ +00258300: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00258310: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00258320: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00258330: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00258340: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00258350: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00258360: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00258370: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00258380: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00258390: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +002583a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +002583b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002583c0: 7061 636b 6167 655f 6f70 656e 6c64 6170  package_openldap
│ │ │ +002583d0: 2d73 6572 7665 7273 5f72 656d 6f76 6564  -servers_removed
│ │ │ +002583e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +002584a0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002584b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ +002581d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00258200: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00258220: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00258230: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00258250: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00258260: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00258580: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00258590: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002585e0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +002585f0: 6f70 656e 6c64 6170 2d73 6572 7665 7273  openldap-servers
│ │ │ +00258600: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6f  ..class remove_o
│ │ │ +00258610: 7065 6e6c 6461 702d 7365 7276 6572 7320  penldap-servers 
│ │ │ +00258620: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ +00258630: 7065 6e6c 6461 702d 7365 7276 6572 7327  penldap-servers'
│ │ │ +00258640: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00258650: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00258660: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00258670: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 │ │ │ -00259470: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00259480: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00259490: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -002594e0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002594f0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -00259500: 5b22 736c 6170 6422 5d0a 3c2f 636f 6465  ["slapd"].
Remedi │ │ │ -002595c0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002595d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002595e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00259610: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +00258560: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00258570: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002585b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002585c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00259680: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002596a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002596d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -002596f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00259660: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00259670: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002596b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002596c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00259710: 6469 7361 626c 655f 736c 6170 640a 0a63 disable_slapd..c │ │ │ -00259720: 6c61 7373 2064 6973 6162 6c65 5f73 6c61 lass disable_sla │ │ │ -00259730: 7064 207b 0a20 2073 6572 7669 6365 207b pd {. service { │ │ │ -00259740: 2773 6c61 7064 273a 0a20 2020 2065 6e61 'slapd':. ena │ │ │ -00259750: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ -00259760: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00259770: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ -00259780: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ -00259790: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00259840: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00259850: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -002598d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002598f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00259940: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00259970: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002598e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00259900: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00259950: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00259960: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00259990: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -002599a0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -002599b0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -002599c0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -002599d0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002599e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002599f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00259a00: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00259a10: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00259a20: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00259a30: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -00259a40: 6c61 7064 5f64 6973 6162 6c65 640a 0a2d  lapd_disabled..-
│ │ │ -00259a50: 206e 616d 653a 2044 6973 6162 6c65 204c   name: Disable L
│ │ │ -00259a60: 4441 5020 5365 7276 6572 2028 736c 6170  DAP Server (slap
│ │ │ -00259a70: 6429 202d 2044 6973 6162 6c65 2073 6572  d) - Disable ser
│ │ │ -00259a80: 7669 6365 2073 6c61 7064 0a20 2062 6c6f  vice slapd.  blo
│ │ │ -00259a90: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -00259aa0: 6973 6162 6c65 204c 4441 5020 5365 7276  isable LDAP Serv
│ │ │ -00259ab0: 6572 2028 736c 6170 6429 202d 2043 6f6c  er (slapd) - Col
│ │ │ -00259ac0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -00259ad0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -00259ae0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -00259af0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00259b00: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00259b10: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00259b20: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -00259b30: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -00259b40: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -00259b50: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00259b60: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00259b70: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -00259b80: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -00259b90: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00259ba0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00259bb0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00259bc0: 626c 6520 4c44 4150 2053 6572 7665 7220  ble LDAP Server 
│ │ │ -00259bd0: 2873 6c61 7064 2920 2d20 456e 7375 7265  (slapd) - Ensure
│ │ │ -00259be0: 2073 6c61 7064 2e73 6572 7669 6365 2069   slapd.service i
│ │ │ -00259bf0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -00259c00: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00259c10: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00259c20: 3a20 736c 6170 642e 7365 7276 6963 650a  : slapd.service.
│ │ │ -00259c30: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00259c40: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -00259c50: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00259c60: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00259c70: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -00259c80: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -00259c90: 6573 2069 7320 7365 6172 6368 2822 736c  es is search("sl
│ │ │ -00259ca0: 6170 642e 7365 7276 6963 6522 2c20 6d75  apd.service", mu
│ │ │ -00259cb0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -00259cc0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -00259cd0: 636b 6574 2045 7869 7374 7320 2d20 736c  cket Exists - sl
│ │ │ -00259ce0: 6170 642e 736f 636b 6574 0a20 2020 2061  apd.socket.    a
│ │ │ -00259cf0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00259d00: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00259d10: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00259d20: 696c 6573 2073 6c61 7064 2e73 6f63 6b65  iles slapd.socke
│ │ │ -00259d30: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ -00259d40: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00259d50: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00259d60: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00259d70: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ -00259d80: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ -00259d90: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00259da0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00259db0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00259dc0: 2044 6973 6162 6c65 204c 4441 5020 5365   Disable LDAP Se
│ │ │ -00259dd0: 7276 6572 2028 736c 6170 6429 202d 2044  rver (slapd) - D
│ │ │ -00259de0: 6973 6162 6c65 2053 6f63 6b65 7420 736c  isable Socket sl
│ │ │ -00259df0: 6170 640a 2020 2020 616e 7369 626c 652e  apd.    ansible.
│ │ │ -00259e00: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00259e10: 0a20 2020 2020 206e 616d 653a 2073 6c61  .      name: sla
│ │ │ -00259e20: 7064 2e73 6f63 6b65 740a 2020 2020 2020  pd.socket.      
│ │ │ -00259e30: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00259e40: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00259e50: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -00259e60: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00259e70: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00259e80: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00259e90: 2069 7320 7365 6172 6368 2822 736c 6170   is search("slap
│ │ │ -00259ea0: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ -00259eb0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -00259ec0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00259ed0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00259ee0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00259ef0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00259f00: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00259f10: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00259f20: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00259f30: 6365 5f73 6c61 7064 5f64 6973 6162 6c65  ce_slapd_disable
│ │ │ -00259f40: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00259f50: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -00259f60: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00259f70: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00259f80: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
< │ │ │ +00259560: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00259570: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002595c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002595d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002595e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002595f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00259600: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00259610: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00259620: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00259630: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00259640: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00259650: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00259660: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00259670: 2020 2d20 7365 7276 6963 655f 736c 6170    - service_slap
│ │ │ +00259680: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +00259690: 6d65 3a20 4469 7361 626c 6520 4c44 4150  me: Disable LDAP
│ │ │ +002596a0: 2053 6572 7665 7220 2873 6c61 7064 2920   Server (slapd) 
│ │ │ +002596b0: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +002596c0: 6520 736c 6170 640a 2020 626c 6f63 6b3a  e slapd.  block:
│ │ │ +002596d0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002596e0: 626c 6520 4c44 4150 2053 6572 7665 7220  ble LDAP Server 
│ │ │ +002596f0: 2873 6c61 7064 2920 2d20 436f 6c6c 6563  (slapd) - Collec
│ │ │ +00259700: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +00259710: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ +00259720: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +00259730: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00259740: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00259750: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00259760: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +00259770: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +00259780: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +00259790: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +002597a0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +002597b0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +002597c0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002597d0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002597e0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002597f0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +00259800: 204c 4441 5020 5365 7276 6572 2028 736c   LDAP Server (sl
│ │ │ +00259810: 6170 6429 202d 2045 6e73 7572 6520 736c  apd) - Ensure sl
│ │ │ +00259820: 6170 642e 7365 7276 6963 6520 6973 204d  apd.service is M
│ │ │ +00259830: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ +00259840: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00259850: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +00259860: 6c61 7064 2e73 6572 7669 6365 0a20 2020  lapd.service.   
│ │ │ +00259870: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00259880: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +00259890: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002598a0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002598b0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002598c0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002598d0: 6973 2073 6561 7263 6828 2273 6c61 7064  is search("slapd
│ │ │ +002598e0: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +002598f0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +00259900: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +00259910: 7420 4578 6973 7473 202d 2073 6c61 7064  t Exists - slapd
│ │ │ +00259920: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ +00259930: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00259940: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00259950: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00259960: 7320 736c 6170 642e 736f 636b 6574 0a20  s slapd.socket. 
│ │ │ +00259970: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +00259980: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +00259990: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002599a0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002599b0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +002599c0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +002599d0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +002599e0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +002599f0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00259a00: 7361 626c 6520 4c44 4150 2053 6572 7665  sable LDAP Serve
│ │ │ +00259a10: 7220 2873 6c61 7064 2920 2d20 4469 7361  r (slapd) - Disa
│ │ │ +00259a20: 626c 6520 536f 636b 6574 2073 6c61 7064  ble Socket slapd
│ │ │ +00259a30: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00259a40: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00259a50: 2020 2020 6e61 6d65 3a20 736c 6170 642e      name: slapd.
│ │ │ +00259a60: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +00259a70: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00259a80: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00259a90: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00259aa0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00259ab0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00259ac0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00259ad0: 2073 6561 7263 6828 2273 6c61 7064 2e73   search("slapd.s
│ │ │ +00259ae0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +00259af0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +00259b00: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00259b10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00259b20: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00259b30: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00259b40: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00259b50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00259b60: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00259b70: 736c 6170 645f 6469 7361 626c 6564 0a20  slapd_disabled. 
│ │ │ +00259b80: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00259b90: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00259ba0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00259bb0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00259bc0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +00259c80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00259c90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00259ca0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00259cd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +00259540: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00259550: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00259590: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002595a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00259d40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00259d60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00259d90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00259db0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00259d20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00259d30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00259d70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00259d80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00259dd0: 6469 7361 626c 655f 736c 6170 640a 0a63 disable_slapd..c │ │ │ +00259de0: 6c61 7373 2064 6973 6162 6c65 5f73 6c61 lass disable_sla │ │ │ +00259df0: 7064 207b 0a20 2073 6572 7669 6365 207b pd {. service { │ │ │ +00259e00: 2773 6c61 7064 273a 0a20 2020 2065 6e61 'slapd':. ena │ │ │ +00259e10: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ +00259e20: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +00259e30: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ +00259e40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ +00259e50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +00259f00: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00259f10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00259f20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00259f60: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00259f70: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00259f80: 203d 205b 2273 6c61 7064 225d 0a3c 2f63   = ["slapd"].
│ │ │ 00259fa0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation Pup │ │ │ -0025e100: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0025e110: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0025e1e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0025e1f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0025e240: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0025e250: 7270 6362 696e 640a 0a63 6c61 7373 2072  rpcbind..class r
│ │ │ -0025e260: 656d 6f76 655f 7270 6362 696e 6420 7b0a  emove_rpcbind {.
│ │ │ -0025e270: 2020 7061 636b 6167 6520 7b20 2772 7063    package { 'rpc
│ │ │ -0025e280: 6269 6e64 273a 0a20 2020 2065 6e73 7572  bind':.    ensur
│ │ │ -0025e290: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0025e2a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0025e2b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -0025e360: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -0025e370: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0025e380: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0025e390: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0025e3a0: 7365 2220 6964 3d22 6964 3937 3322 3e3c se" id="id973">< │ │ │ -0025e3b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0025e3c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0025e3d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0025e3e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0025e3f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0025e480: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0025e490: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -0025e1c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0025e1d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0025e210: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0025e220: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -0025e400: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0025e410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0025e450: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0025e460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0025e4b0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0025e4c0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0025e4d0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0025e4e0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0025e4f0: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -0025e500: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0025e510: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0025e520: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0025e530: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ -0025e540: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0025e550: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -0025e560: 5f72 7063 6269 6e64 5f72 656d 6f76 6564 _rpcbind_removed │ │ │ -0025e570: 0a0a 2d20 6e61 6d65 3a20 2755 6e69 6e73 ..- name: 'Unins │ │ │ -0025e580: 7461 6c6c 2072 7063 6269 6e64 2050 6163 tall rpcbind Pac │ │ │ -0025e590: 6b61 6765 3a20 456e 7375 7265 2072 7063 kage: Ensure rpc │ │ │ -0025e5a0: 6269 6e64 2069 7320 7265 6d6f 7665 6427 bind is removed' │ │ │ -0025e5b0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -0025e5c0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -0025e5d0: 6e61 6d65 3a20 7270 6362 696e 640a 2020 name: rpcbind. │ │ │ -0025e5e0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0025e5f0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -0025e600: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -0025e610: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -0025e620: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ -0025e630: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0025e640: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -0025e650: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -0025e660: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665 ion. - low_seve │ │ │ -0025e670: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -0025e680: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -0025e690: 636b 6167 655f 7270 6362 696e 645f 7265 ckage_rpcbind_re │ │ │ -0025e6a0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.

Remediation Ans │ │ │ +0025e100: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0025e110: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0025e1e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0025e1f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0025e250: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0025e260: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0025e270: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0025e280: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0025e290: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0025e2a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0025e2b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0025e2c0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +0025e2d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0025e2e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0025e2f0: 2d20 7061 636b 6167 655f 7270 6362 696e  - package_rpcbin
│ │ │ +0025e300: 645f 7265 6d6f 7665 640a 0a2d 206e 616d  d_removed..- nam
│ │ │ +0025e310: 653a 2027 556e 696e 7374 616c 6c20 7270  e: 'Uninstall rp
│ │ │ +0025e320: 6362 696e 6420 5061 636b 6167 653a 2045  cbind Package: E
│ │ │ +0025e330: 6e73 7572 6520 7270 6362 696e 6420 6973  nsure rpcbind is
│ │ │ +0025e340: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0025e350: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0025e360: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +0025e370: 7063 6269 6e64 0a20 2020 2073 7461 7465  pcbind.    state
│ │ │ +0025e380: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ +0025e390: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0025e3a0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0025e3b0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0025e3c0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0025e3d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0025e3e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0025e3f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0025e400: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +0025e410: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0025e420: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ +0025e430: 7063 6269 6e64 5f72 656d 6f76 6564 0a3c  pcbind_removed.<
│ │ │ +0025e440: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0025e4f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0025e500: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ +0025e1c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0025e1d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0025e210: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025e220: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0025e5a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025e5b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0025e600: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0025e640: 6e63 6c75 6465 2072 656d 6f76 655f 7270  nclude remove_rp
│ │ │ +0025e650: 6362 696e 640a 0a63 6c61 7373 2072 656d  cbind..class rem
│ │ │ +0025e660: 6f76 655f 7270 6362 696e 6420 7b0a 2020  ove_rpcbind {.  
│ │ │ +0025e670: 7061 636b 6167 6520 7b20 2772 7063 6269  package { 'rpcbi
│ │ │ +0025e680: 6e64 273a 0a20 2020 2065 6e73 7572 6520  nd':.    ensure 
│ │ │ +0025e690: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0025e6a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -0025f7b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0025f7c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0025f7d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0025f820: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0025f830: 736b 6564 203d 205b 2272 7063 6269 6e64  sked = ["rpcbind
│ │ │ -0025f840: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0025f850: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -0025f900: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0025f910: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +0025e590: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0025e5c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0025e5d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0025e610: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0025e620: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0025f990: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0025f9b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0025fa00: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -0025fa50: 5f72 7063 6269 6e64 0a0a 636c 6173 7320  _rpcbind..class 
│ │ │ -0025fa60: 6469 7361 626c 655f 7270 6362 696e 6420  disable_rpcbind 
│ │ │ -0025fa70: 7b0a 2020 7365 7276 6963 6520 7b27 7270  {.  service {'rp
│ │ │ -0025fa80: 6362 696e 6427 3a0a 2020 2020 656e 6162  cbind':.    enab
│ │ │ -0025fa90: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -0025faa0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0025fab0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -0025fac0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0025fad0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0025fb80: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0025fb90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -0025f9c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0025f9d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0025fa10: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0025fa20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0025fc10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0025fc30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0025fc80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0025fcb0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0025fcd0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0025fce0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0025fcf0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0025fd00: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0025fd10: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -0025fd20: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -0025fd30: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -0025fd40: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0025fd50: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0025fd60: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0025fd70: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -0025fd80: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0025fd90: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0025fda0: 5f72 7063 6269 6e64 5f64 6973 6162 6c65  _rpcbind_disable
│ │ │ -0025fdb0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0025fdc0: 6c65 2072 7063 6269 6e64 2053 6572 7669  le rpcbind Servi
│ │ │ -0025fdd0: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ -0025fde0: 7669 6365 2072 7063 6269 6e64 0a20 2062  vice rpcbind.  b
│ │ │ -0025fdf0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -0025fe00: 2044 6973 6162 6c65 2072 7063 6269 6e64   Disable rpcbind
│ │ │ -0025fe10: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ -0025fe20: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -0025fe30: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -0025fe40: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -0025fe50: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0025fe60: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0025fe70: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0025fe80: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -0025fe90: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -0025fea0: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -0025feb0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0025fec0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0025fed0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -0025fee0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0025fef0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0025ff00: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0025ff10: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0025ff20: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ -0025ff30: 6520 2d20 456e 7375 7265 2072 7063 6269  e - Ensure rpcbi
│ │ │ -0025ff40: 6e64 2e73 6572 7669 6365 2069 7320 4d61  nd.service is Ma
│ │ │ -0025ff50: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -0025ff60: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0025ff70: 3a0a 2020 2020 2020 6e61 6d65 3a20 7270  :.      name: rp
│ │ │ -0025ff80: 6362 696e 642e 7365 7276 6963 650a 2020  cbind.service.  
│ │ │ -0025ff90: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0025ffa0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -0025ffb0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -0025ffc0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -0025ffd0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -0025ffe0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -0025fff0: 2069 7320 7365 6172 6368 2822 7270 6362   is search("rpcb
│ │ │ -00260000: 696e 642e 7365 7276 6963 6522 2c20 6d75  ind.service", mu
│ │ │ -00260010: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -00260020: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -00260030: 636b 6574 2045 7869 7374 7320 2d20 7270  cket Exists - rp
│ │ │ -00260040: 6362 696e 642e 736f 636b 6574 0a20 2020  cbind.socket.   
│ │ │ -00260050: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00260060: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00260070: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00260080: 2d66 696c 6573 2072 7063 6269 6e64 2e73  -files rpcbind.s
│ │ │ -00260090: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -002600a0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -002600b0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002600c0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002600d0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002600e0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002600f0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00260100: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00260110: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00260120: 616d 653a 2044 6973 6162 6c65 2072 7063  ame: Disable rpc
│ │ │ -00260130: 6269 6e64 2053 6572 7669 6365 202d 2044  bind Service - D
│ │ │ -00260140: 6973 6162 6c65 2053 6f63 6b65 7420 7270  isable Socket rp
│ │ │ -00260150: 6362 696e 640a 2020 2020 616e 7369 626c  cbind.    ansibl
│ │ │ -00260160: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00260170: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -00260180: 7063 6269 6e64 2e73 6f63 6b65 740a 2020  pcbind.socket.  
│ │ │ -00260190: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002601a0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002601b0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002601c0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002601d0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002601e0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002601f0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00260200: 7270 6362 696e 642e 736f 636b 6574 222c  rpcbind.socket",
│ │ │ -00260210: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00260220: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -00260230: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00260240: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00260250: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00260260: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00260270: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00260280: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00260290: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -002602a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002602b0: 2020 2d20 7365 7276 6963 655f 7270 6362    - service_rpcb
│ │ │ -002602c0: 696e 645f 6469 7361 626c 6564 0a20 202d  ind_disabled.  -
│ │ │ -002602d0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -002602e0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -002602f0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00260300: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00260310: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0025f7b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +0025f7c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +0025f840: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0025f8d0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0025f8e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -0025fc40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0025fc50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0025fc90: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0025fca0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +0025f850: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0025f860: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0025f8a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0025f8b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +0025f900: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0025f910: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0025f920: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0025f930: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0025f940: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +0025f950: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0025f960: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +0025f970: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0025f980: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0025f990: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0025f9a0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +0025f9b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0025f9c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0025f9d0: 7276 6963 655f 7270 6362 696e 645f 6469  rvice_rpcbind_di
│ │ │ +0025f9e0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +0025f9f0: 4469 7361 626c 6520 7270 6362 696e 6420  Disable rpcbind 
│ │ │ +0025fa00: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +0025fa10: 6520 7365 7276 6963 6520 7270 6362 696e  e service rpcbin
│ │ │ +0025fa20: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +0025fa30: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ +0025fa40: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ +0025fa50: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +0025fa60: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +0025fa70: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +0025fa80: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0025fa90: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0025faa0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0025fab0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +0025fac0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +0025fad0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +0025fae0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0025faf0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0025fb00: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +0025fb10: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +0025fb20: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0025fb30: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0025fb40: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0025fb50: 6973 6162 6c65 2072 7063 6269 6e64 2053  isable rpcbind S
│ │ │ +0025fb60: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +0025fb70: 7270 6362 696e 642e 7365 7276 6963 6520  rpcbind.service 
│ │ │ +0025fb80: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0025fb90: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0025fba0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0025fbb0: 653a 2072 7063 6269 6e64 2e73 6572 7669  e: rpcbind.servi
│ │ │ +0025fbc0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +0025fbd0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +0025fbe0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0025fbf0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0025fc00: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +0025fc10: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0025fc20: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0025fc30: 2272 7063 6269 6e64 2e73 6572 7669 6365  "rpcbind.service
│ │ │ +0025fc40: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0025fc50: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +0025fc60: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +0025fc70: 202d 2072 7063 6269 6e64 2e73 6f63 6b65   - rpcbind.socke
│ │ │ +0025fc80: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +0025fc90: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0025fca0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0025fcb0: 2d75 6e69 742d 6669 6c65 7320 7270 6362  -unit-files rpcb
│ │ │ +0025fcc0: 696e 642e 736f 636b 6574 0a20 2020 2072  ind.socket.    r
│ │ │ +0025fcd0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +0025fce0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +0025fcf0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +0025fd00: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +0025fd10: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +0025fd20: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +0025fd30: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +0025fd40: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +0025fd50: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0025fd60: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ +0025fd70: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +0025fd80: 6574 2072 7063 6269 6e64 0a20 2020 2061  et rpcbind.    a
│ │ │ +0025fd90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0025fda0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0025fdb0: 6d65 3a20 7270 6362 696e 642e 736f 636b  me: rpcbind.sock
│ │ │ +0025fdc0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +0025fdd0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +0025fde0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0025fdf0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0025fe00: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +0025fe10: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +0025fe20: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0025fe30: 7263 6828 2272 7063 6269 6e64 2e73 6f63  rch("rpcbind.soc
│ │ │ +0025fe40: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +0025fe50: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +0025fe60: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0025fe70: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0025fe80: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +0025fe90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0025fea0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0025feb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0025fec0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +0025fed0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0025fee0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0025fef0: 5f72 7063 6269 6e64 5f64 6973 6162 6c65  _rpcbind_disable
│ │ │ +0025ff00: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0025ff10: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +0025ff20: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0025ff30: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0025ff40: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +0025ff60: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00260000: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00260010: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00260020: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +002600a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002600d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002600f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00260100: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00260120: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00260140: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00260150: 6465 2064 6973 6162 6c65 5f72 7063 6269  de disable_rpcbi
│ │ │ +00260160: 6e64 0a0a 636c 6173 7320 6469 7361 626c  nd..class disabl
│ │ │ +00260170: 655f 7270 6362 696e 6420 7b0a 2020 7365  e_rpcbind {.  se
│ │ │ +00260180: 7276 6963 6520 7b27 7270 6362 696e 6427  rvice {'rpcbind'
│ │ │ +00260190: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +002601a0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +002601b0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +002601c0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002601e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002601f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00260200: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00260210: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00260220: 6439 3738 2220 7461 6269 6e64 6578 3d22 d978" tabindex=" │ │ │ +00260230: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00260240: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00260250: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00260260: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00260270: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00260280: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00260290: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +002602a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +002602f0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00260300: 735d 0a6d 6173 6b65 6420 3d20 5b22 7270 s].masked = ["rp │ │ │ +00260310: 6362 696e 6422 5d0a 3c2f 636f 6465 3e3c cbind"].< │ │ │ 00260320: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation OSB │ │ │ -00261f20: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00261f30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -00261f80: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00261f90: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -00261fa0: 205b 226e 6673 2d73 6572 7665 7222 5d0a   ["nfs-server"].
│ │ │ -00261fb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00262060: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00262070: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00262110: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -002621b0: 636c 7564 6520 6469 7361 626c 655f 6e66  clude disable_nf
│ │ │ -002621c0: 732d 7365 7276 6572 0a0a 636c 6173 7320  s-server..class 
│ │ │ -002621d0: 6469 7361 626c 655f 6e66 732d 7365 7276  disable_nfs-serv
│ │ │ -002621e0: 6572 207b 0a20 2073 6572 7669 6365 207b  er {.  service {
│ │ │ -002621f0: 276e 6673 2d73 6572 7665 7227 3a0a 2020  'nfs-server':.  
│ │ │ -00262200: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -00262210: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -00262220: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -00262230: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00262240: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -002622f0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00262300: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00262310: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00262320: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00262330: 7365 2220 6964 3d22 6964 3938 3322 3e3c se" id="id983">< │ │ │ -00262340: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00262350: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00262360: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00262370: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00262380: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00262410: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00262420: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -00262100: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00262130: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00262140: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00262180: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00262190: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00262390: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002623a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002623e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002623f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -00262440: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00262450: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00262460: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00262470: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00262480: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00262490: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -002624a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -002624b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -002624c0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -002624d0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -002624e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -002624f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00262500: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -00262510: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00262520: 7365 7276 6963 655f 6e66 735f 6469 7361 service_nfs_disa │ │ │ -00262530: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e bled. - unknown │ │ │ -00262540: 5f73 6576 6572 6974 790a 0a2d 206e 616d _severity..- nam │ │ │ -00262550: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ -00262560: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ -00262570: 6e66 7329 202d 2044 6973 6162 6c65 2073 nfs) - Disable s │ │ │ -00262580: 6572 7669 6365 206e 6673 2d73 6572 7665 ervice nfs-serve │ │ │ -00262590: 720a 2020 626c 6f63 6b3a 0a0a 2020 2d20 r. block:.. - │ │ │ -002625a0: 6e61 6d65 3a20 4469 7361 626c 6520 4e65 name: Disable Ne │ │ │ -002625b0: 7477 6f72 6b20 4669 6c65 2053 7973 7465 twork File Syste │ │ │ -002625c0: 6d20 286e 6673 2920 2d20 436f 6c6c 6563 m (nfs) - Collec │ │ │ -002625d0: 7420 7379 7374 656d 6420 5365 7276 6963 t systemd Servic │ │ │ -002625e0: 6573 2050 7265 7365 6e74 2069 6e0a 2020 es Present in. │ │ │ -002625f0: 2020 2020 7468 6520 5379 7374 656d 0a20 the System. │ │ │ -00262600: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00262610: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -00262620: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -00262630: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -00262640: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -00262650: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -00262660: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -00262670: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -00262680: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -00262690: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -002626a0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -002626b0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002626c0: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -002626d0: 6973 6162 6c65 204e 6574 776f 726b 2046 isable Network F │ │ │ -002626e0: 696c 6520 5379 7374 656d 2028 6e66 7329 ile System (nfs) │ │ │ -002626f0: 202d 2045 6e73 7572 6520 6e66 732d 7365 - Ensure nfs-se │ │ │ -00262700: 7276 6572 2e73 6572 7669 6365 2069 7320 rver.service is │ │ │ -00262710: 4d61 736b 6564 0a20 2020 2061 6e73 6962 Masked. ansib │ │ │ -00262720: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -00262730: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -00262740: 6e66 732d 7365 7276 6572 2e73 6572 7669 nfs-server.servi │ │ │ -00262750: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -00262760: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -00262770: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -00262780: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -00262790: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -002627a0: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -002627b0: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -002627c0: 226e 6673 2d73 6572 7665 722e 7365 7276 "nfs-server.serv │ │ │ -002627d0: 6963 6522 2c20 6d75 6c74 696c 696e 653d ice", multiline= │ │ │ -002627e0: 5472 7565 290a 0a20 202d 206e 616d 653a True).. - name: │ │ │ -002627f0: 2055 6e69 7420 536f 636b 6574 2045 7869 Unit Socket Exi │ │ │ -00262800: 7374 7320 2d20 6e66 732d 7365 7276 6572 sts - nfs-server │ │ │ -00262810: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -00262820: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -00262830: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -00262840: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -00262850: 7320 6e66 732d 7365 7276 6572 2e73 6f63 s nfs-server.soc │ │ │ -00262860: 6b65 740a 2020 2020 7265 6769 7374 6572 ket. register │ │ │ -00262870: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -00262880: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -00262890: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -002628a0: 2066 6169 6c65 645f 7768 656e 3a20 736f failed_when: so │ │ │ -002628b0: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -002628c0: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ -002628d0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ -002628e0: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ -002628f0: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ -00262900: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ -00262910: 6e66 7329 202d 2044 6973 6162 6c65 2053 nfs) - Disable S │ │ │ -00262920: 6f63 6b65 7420 6e66 732d 7365 7276 6572 ocket nfs-server │ │ │ -00262930: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00262940: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -00262950: 2020 2020 6e61 6d65 3a20 6e66 732d 7365 name: nfs-se │ │ │ -00262960: 7276 6572 2e73 6f63 6b65 740a 2020 2020 rver.socket. │ │ │ -00262970: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -00262980: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -00262990: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -002629a0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -002629b0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -002629c0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -002629d0: 6573 2069 7320 7365 6172 6368 2822 6e66 es is search("nf │ │ │ -002629e0: 732d 7365 7276 6572 2e73 6f63 6b65 7422 s-server.socket" │ │ │ -002629f0: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -00262a00: 290a 2020 7461 6773 3a0a 2020 2d20 4e49 ). tags:. - NI │ │ │ -00262a10: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -00262a20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00262a30: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -00262a40: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -00262a50: 290a 2020 2d20 6469 7361 626c 655f 7374 ). - disable_st │ │ │ -00262a60: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00262a70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00262a80: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00262a90: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00262aa0: 640a 2020 2d20 7365 7276 6963 655f 6e66 d. - service_nf │ │ │ -00262ab0: 735f 6469 7361 626c 6564 0a20 202d 2073 s_disabled. - s │ │ │ -00262ac0: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ -00262ad0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e lock. - unknown │ │ │ -00262ae0: 5f73 6576 6572 6974 790a 2020 7768 656e _severity. when │ │ │ -00262af0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -00262b00: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00262b10: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.Remediation Ans │ │ │ +00261f20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00261f30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00262000: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00262010: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +00262070: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00262080: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00262090: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002620a0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002620b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002620c0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +002620d0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +002620e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002620f0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +00262100: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00262110: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00262120: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00262130: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00262140: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00262150: 5f6e 6673 5f64 6973 6162 6c65 640a 2020  _nfs_disabled.  
│ │ │ +00262160: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00262170: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ +00262180: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ +00262190: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ +002621a0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +002621b0: 6e66 732d 7365 7276 6572 0a20 2062 6c6f  nfs-server.  blo
│ │ │ +002621c0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +002621d0: 6973 6162 6c65 204e 6574 776f 726b 2046  isable Network F
│ │ │ +002621e0: 696c 6520 5379 7374 656d 2028 6e66 7329  ile System (nfs)
│ │ │ +002621f0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +00262200: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +00262210: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ +00262220: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00262230: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00262240: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00262250: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00262260: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00262270: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00262280: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00262290: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002622a0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002622b0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +002622c0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002622d0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002622e0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002622f0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00262300: 4e65 7477 6f72 6b20 4669 6c65 2053 7973  Network File Sys
│ │ │ +00262310: 7465 6d20 286e 6673 2920 2d20 456e 7375  tem (nfs) - Ensu
│ │ │ +00262320: 7265 206e 6673 2d73 6572 7665 722e 7365  re nfs-server.se
│ │ │ +00262330: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +00262340: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00262350: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00262360: 2020 206e 616d 653a 206e 6673 2d73 6572     name: nfs-ser
│ │ │ +00262370: 7665 722e 7365 7276 6963 650a 2020 2020  ver.service.    
│ │ │ +00262380: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00262390: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002623a0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +002623b0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002623c0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +002623d0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002623e0: 7320 7365 6172 6368 2822 6e66 732d 7365  s search("nfs-se
│ │ │ +002623f0: 7276 6572 2e73 6572 7669 6365 222c 206d  rver.service", m
│ │ │ +00262400: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +00262410: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +00262420: 6f63 6b65 7420 4578 6973 7473 202d 206e  ocket Exists - n
│ │ │ +00262430: 6673 2d73 6572 7665 722e 736f 636b 6574  fs-server.socket
│ │ │ +00262440: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00262450: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +00262460: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +00262470: 756e 6974 2d66 696c 6573 206e 6673 2d73  unit-files nfs-s
│ │ │ +00262480: 6572 7665 722e 736f 636b 6574 0a20 2020  erver.socket.   
│ │ │ +00262490: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +002624a0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +002624b0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002624c0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002624d0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +002624e0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +002624f0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00262500: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00262510: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00262520: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ +00262530: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ +00262540: 4469 7361 626c 6520 536f 636b 6574 206e  Disable Socket n
│ │ │ +00262550: 6673 2d73 6572 7665 720a 2020 2020 616e  fs-server.    an
│ │ │ +00262560: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00262570: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00262580: 653a 206e 6673 2d73 6572 7665 722e 736f  e: nfs-server.so
│ │ │ +00262590: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +002625a0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002625b0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002625c0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002625d0: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +002625e0: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +002625f0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00262600: 6561 7263 6828 226e 6673 2d73 6572 7665  earch("nfs-serve
│ │ │ +00262610: 722e 736f 636b 6574 222c 206d 756c 7469  r.socket", multi
│ │ │ +00262620: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +00262630: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00262640: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00262650: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00262660: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00262670: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00262680: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00262690: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002626a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002626b0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +002626c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002626d0: 6572 7669 6365 5f6e 6673 5f64 6973 6162  ervice_nfs_disab
│ │ │ +002626e0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002626f0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00262700: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00262710: 7479 0a20 2077 6865 6e3a 2027 226c 696e  ty.  when: '"lin
│ │ │ +00262720: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00262730: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00262740: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00262800: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00262810: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +00261fe0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00261ff0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00262030: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00262040: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00262890: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002628b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00262900: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00262930: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +00262950: 655f 6e66 732d 7365 7276 6572 0a0a 636c  e_nfs-server..cl
│ │ │ +00262960: 6173 7320 6469 7361 626c 655f 6e66 732d  ass disable_nfs-
│ │ │ +00262970: 7365 7276 6572 207b 0a20 2073 6572 7669  server {.  servi
│ │ │ +00262980: 6365 207b 276e 6673 2d73 6572 7665 7227  ce {'nfs-server'
│ │ │ +00262990: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +002629a0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +002629b0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +002629c0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002629e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002629f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00262a00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00262a10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00262a20: 6439 3833 2220 7461 6269 6e64 6578 3d22 d983" tabindex=" │ │ │ +00262a30: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00262a40: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00262a50: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00262a60: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00262a70: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00262a80: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00262a90: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00262aa0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +00262af0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00262b00: 735d 0a6d 6173 6b65 6420 3d20 5b22 6e66 s].masked = ["nf │ │ │ +00262b10: 732d 7365 7276 6572 225d 0a3c 2f63 6f64 s-server"].R │ │ │ -00263970: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00263980: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +002628a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002628c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00262910: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00262920: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00263a20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00263a30: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00263a80: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00263ac0: 6e63 6c75 6465 2072 656d 6f76 655f 6e66  nclude remove_nf
│ │ │ -00263ad0: 732d 6b65 726e 656c 2d73 6572 7665 720a  s-kernel-server.
│ │ │ -00263ae0: 0a63 6c61 7373 2072 656d 6f76 655f 6e66  .class remove_nf
│ │ │ -00263af0: 732d 6b65 726e 656c 2d73 6572 7665 7220  s-kernel-server 
│ │ │ -00263b00: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ -00263b10: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ -00263b20: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00263b30: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00263b40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00263c00: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00263c10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00263ce0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ -00263a10: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00263a40: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00263a50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00263a90: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00263aa0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -00263ca0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00263cc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00263d10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00263d20: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00263d50: 6e73 7461 6c6c 206e 6673 2d6b 6572 6e65  nstall nfs-kerne
│ │ │ -00263d60: 6c2d 7365 7276 6572 2050 6163 6b61 6765  l-server Package
│ │ │ -00263d70: 3a20 456e 7375 7265 206e 6673 2d6b 6572  : Ensure nfs-ker
│ │ │ -00263d80: 6e65 6c2d 7365 7276 6572 2069 7320 7265  nel-server is re
│ │ │ -00263d90: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00263da0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00263db0: 3a0a 2020 2020 6e61 6d65 3a20 6e66 732d  :.    name: nfs-
│ │ │ -00263dc0: 6b65 726e 656c 2d73 6572 7665 720a 2020  kernel-server.  
│ │ │ -00263dd0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00263de0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00263df0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00263e00: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00263e10: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00263e20: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -00263e30: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00263e40: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00263e50: 6b61 6765 5f6e 6673 2d6b 6572 6e65 6c2d  kage_nfs-kernel-
│ │ │ -00263e60: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +00263970: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00263980: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +00263a20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00263ac0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00263ad0: 6c20 6e66 732d 6b65 726e 656c 2d73 6572  l nfs-kernel-ser
│ │ │ +00263ae0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +00263af0: 7572 6520 6e66 732d 6b65 726e 656c 2d73  ure nfs-kernel-s
│ │ │ +00263b00: 6572 7665 7220 6973 2072 656d 6f76 6564  erver is removed
│ │ │ +00263b10: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00263b20: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00263b30: 206e 616d 653a 206e 6673 2d6b 6572 6e65   name: nfs-kerne
│ │ │ +00263b40: 6c2d 7365 7276 6572 0a20 2020 2073 7461  l-server.    sta
│ │ │ +00263b50: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00263b60: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00263b70: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00263b80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00263b90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00263ba0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +00263bb0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00263bc0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00263bd0: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ +00263be0: 725f 7265 6d6f 7665 640a 3c2f 636f 6465  r_removed.
Remedi │ │ │ +00263ca0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00263cb0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00263cc0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00263cf0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +00263a10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00263a40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00263a50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00263a90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00263aa0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00263d60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00263d80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00263db0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00263d40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00263d50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00263d90: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00263da0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00263df0: 6520 7265 6d6f 7665 5f6e 6673 2d6b 6572 e remove_nfs-ker │ │ │ +00263e00: 6e65 6c2d 7365 7276 6572 0a0a 636c 6173 nel-server..clas │ │ │ +00263e10: 7320 7265 6d6f 7665 5f6e 6673 2d6b 6572 s remove_nfs-ker │ │ │ +00263e20: 6e65 6c2d 7365 7276 6572 207b 0a20 2070 nel-server {. p │ │ │ +00263e30: 6163 6b61 6765 207b 2027 6e66 732d 6b65 ackage { 'nfs-ke │ │ │ +00263e40: 726e 656c 2d73 6572 7665 7227 3a0a 2020 rnel-server':. │ │ │ +00263e50: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ +00263e60: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ 00263e70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>

Remediatio │ │ │ -002660a0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -002660b0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -002660c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -00266110: 6e61 6d65 203d 2022 6368 726f 6e79 220a  name = "chrony".
│ │ │ -00266120: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -002661e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002661f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00266200: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -002662a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002662f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00266280: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002662b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002662d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002662e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00266300: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00266310: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00266330: 7564 6520 696e 7374 616c 6c5f 6368 726f  ude install_chro
│ │ │ -00266340: 6e79 0a0a 636c 6173 7320 696e 7374 616c  ny..class instal
│ │ │ -00266350: 6c5f 6368 726f 6e79 207b 0a20 2070 6163  l_chrony {.  pac
│ │ │ -00266360: 6b61 6765 207b 2027 6368 726f 6e79 273a  kage { 'chrony':
│ │ │ -00266370: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00266380: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -00266390: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00266450: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00266460: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -002664f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00266510: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00266520: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00266530: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00266540: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00266560: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -002665a0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -002665b0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -002665c0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -002665d0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -002665e0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -002665f0: 3130 2e34 0a20 202d 2050 4349 2d44 5353  10.4.  - PCI-DSS
│ │ │ -00266600: 7634 2d31 302e 360a 2020 2d20 5043 492d  v4-10.6.  - PCI-
│ │ │ -00266610: 4453 5376 342d 3130 2e36 2e31 0a20 202d  DSSv4-10.6.1.  -
│ │ │ -00266620: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00266630: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00266640: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00266650: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00266660: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00266670: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00266680: 2020 2d20 7061 636b 6167 655f 6368 726f    - package_chro
│ │ │ -00266690: 6e79 5f69 6e73 7461 6c6c 6564 0a0a 2d20  ny_installed..- 
│ │ │ -002666a0: 6e61 6d65 3a20 456e 7375 7265 2063 6872  name: Ensure chr
│ │ │ -002666b0: 6f6e 7920 6973 2069 6e73 7461 6c6c 6564  ony is installed
│ │ │ -002666c0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -002666d0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -002666e0: 6e61 6d65 3a20 6368 726f 6e79 0a20 2020  name: chrony.   
│ │ │ -002666f0: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00266700: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00266710: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00266720: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00266730: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -00266740: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ -00266750: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ -00266760: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00266770: 302e 362e 310a 2020 2d20 656e 6162 6c65  0.6.1.  - enable
│ │ │ -00266780: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00266790: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002667a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002667b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -002667c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -002667d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002667e0: 6b61 6765 5f63 6872 6f6e 795f 696e 7374  kage_chrony_inst
│ │ │ -002667f0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


< │ │ │ +00266130: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00266140: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00266160: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00266170: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00266190: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002661b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +002661e0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002661f0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00266200: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00266210: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00266220: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00266230: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +00266240: 2d31 302e 340a 2020 2d20 5043 492d 4453  -10.4.  - PCI-DS
│ │ │ +00266250: 5376 342d 3130 2e36 0a20 202d 2050 4349  Sv4-10.6.  - PCI
│ │ │ +00266260: 2d44 5353 7634 2d31 302e 362e 310a 2020  -DSSv4-10.6.1.  
│ │ │ +00266270: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00266280: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00266290: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002662a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002662b0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002662c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002662d0: 0a20 202d 2070 6163 6b61 6765 5f63 6872  .  - package_chr
│ │ │ +002662e0: 6f6e 795f 696e 7374 616c 6c65 640a 0a2d  ony_installed..-
│ │ │ +002662f0: 206e 616d 653a 2045 6e73 7572 6520 6368   name: Ensure ch
│ │ │ +00266300: 726f 6e79 2069 7320 696e 7374 616c 6c65  rony is installe
│ │ │ +00266310: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +00266320: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00266330: 206e 616d 653a 2063 6872 6f6e 790a 2020   name: chrony.  
│ │ │ +00266340: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00266350: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00266360: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00266370: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00266380: 270a 2020 7461 6773 3a0a 2020 2d20 5043  '.  tags:.  - PC
│ │ │ +00266390: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +002663a0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +002663b0: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ +002663c0: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ +002663d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002663e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002663f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00266400: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00266410: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00266420: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00266430: 636b 6167 655f 6368 726f 6e79 5f69 6e73  ckage_chrony_ins
│ │ │ +00266440: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediati │ │ │ +00266500: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00266510: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00266590: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002665a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002665c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002665d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002665f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00266610: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00266640: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00266650: 7461 6c6c 5f63 6872 6f6e 790a 0a63 6c61  tall_chrony..cla
│ │ │ +00266660: 7373 2069 6e73 7461 6c6c 5f63 6872 6f6e  ss install_chron
│ │ │ +00266670: 7920 7b0a 2020 7061 636b 6167 6520 7b20  y {.  package { 
│ │ │ +00266680: 2763 6872 6f6e 7927 3a0a 2020 2020 656e  'chrony':.    en
│ │ │ +00266690: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +002666a0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +00266760: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00266770: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00266780: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00266790: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002667a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002667b0: 7365 2220 6964 3d22 6964 3939 3222 3e3c se" id="id992">< │ │ │ +002667c0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +002667d0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +002667e0: 6368 726f 6e79 220a 7665 7273 696f 6e20 chrony".version │ │ │ +002667f0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediatio │ │ │ -00268bd0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00268be0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00268bf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -00268c40: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -00268c50: 626c 6564 203d 205b 2263 6872 6f6e 7922  bled = ["chrony"
│ │ │ -00268c60: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00268c70: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ -00268d20: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00268d30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00268e00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00268e10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00268e60: 696e 636c 7564 6520 656e 6162 6c65 5f63  include enable_c
│ │ │ -00268e70: 6872 6f6e 790a 0a63 6c61 7373 2065 6e61  hrony..class ena
│ │ │ -00268e80: 626c 655f 6368 726f 6e79 207b 0a20 2073  ble_chrony {.  s
│ │ │ -00268e90: 6572 7669 6365 207b 2763 6872 6f6e 7927  ervice {'chrony'
│ │ │ -00268ea0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00268eb0: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -00268ec0: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -00268ed0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Reme │ │ │ -00268f90: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00268fa0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00268fb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -00268de0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00268df0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00268e30: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00268e40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -00269050: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002690a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00269030: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00269060: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00269080: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00269090: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002690b0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -002690c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002690e0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002690f0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00269100: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00269110: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00269120: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -00269130: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00269140: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00269150: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00269160: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00269170: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00269180: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00269190: 6572 7669 6365 5f63 6872 6f6e 7964 5f65  ervice_chronyd_e
│ │ │ -002691a0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -002691b0: 5468 6520 4368 726f 6e79 6420 7365 7276  The Chronyd serv
│ │ │ -002691c0: 6963 6520 6973 2065 6e61 626c 6564 202d  ice is enabled -
│ │ │ -002691d0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -002691e0: 6368 726f 6e79 0a20 2062 6c6f 636b 3a0a  chrony.  block:.
│ │ │ -002691f0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00269200: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00269210: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00269220: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00269230: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00269240: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00269250: 6e61 6d65 3a20 5468 6520 4368 726f 6e79  name: The Chrony
│ │ │ -00269260: 6420 7365 7276 6963 6520 6973 2065 6e61  d service is ena
│ │ │ -00269270: 626c 6564 202d 2045 6e61 626c 6520 5365  bled - Enable Se
│ │ │ -00269280: 7276 6963 6520 6368 726f 6e79 0a20 2020  rvice chrony.   
│ │ │ -00269290: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002692a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002692b0: 6e61 6d65 3a20 6368 726f 6e79 0a20 2020  name: chrony.   
│ │ │ -002692c0: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -002692d0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -002692e0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -002692f0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -00269300: 656e 3a0a 2020 2020 2d20 2722 6368 726f  en:.    - '"chro
│ │ │ -00269310: 6e79 2220 696e 2061 6e73 6962 6c65 5f66  ny" in ansible_f
│ │ │ -00269320: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00269330: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -00269340: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00269350: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00269360: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00269370: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00269380: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00269390: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002693a0: 7276 6963 655f 6368 726f 6e79 645f 656e  rvice_chronyd_en
│ │ │ -002693b0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -002693c0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -002693d0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ -002693e0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002693f0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00269400: 6765 7327 0a20 202d 2027 2263 6872 6f6e  ges'.  - '"chron
│ │ │ -00269410: 7922 2069 6e20 616e 7369 626c 655f 6661  y" in ansible_fa
│ │ │ -00269420: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
< │ │ │ +00268c60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00268c70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00268c90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00268ca0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00268cc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00268ce0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00268d10: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00268d20: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00268d30: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00268d40: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00268d50: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00268d60: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00268d70: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00268d80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00268d90: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00268da0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00268db0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00268dc0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00268dd0: 6368 726f 6e79 645f 656e 6162 6c65 640a  chronyd_enabled.
│ │ │ +00268de0: 0a2d 206e 616d 653a 2054 6865 2043 6872  .- name: The Chr
│ │ │ +00268df0: 6f6e 7964 2073 6572 7669 6365 2069 7320  onyd service is 
│ │ │ +00268e00: 656e 6162 6c65 6420 2d20 456e 6162 6c65  enabled - Enable
│ │ │ +00268e10: 2073 6572 7669 6365 2063 6872 6f6e 790a   service chrony.
│ │ │ +00268e20: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00268e30: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00268e40: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ +00268e50: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00268e60: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ +00268e70: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ +00268e80: 7574 6f0a 0a20 202d 206e 616d 653a 2054  uto..  - name: T
│ │ │ +00268e90: 6865 2043 6872 6f6e 7964 2073 6572 7669  he Chronyd servi
│ │ │ +00268ea0: 6365 2069 7320 656e 6162 6c65 6420 2d20  ce is enabled - 
│ │ │ +00268eb0: 456e 6162 6c65 2053 6572 7669 6365 2063  Enable Service c
│ │ │ +00268ec0: 6872 6f6e 790a 2020 2020 616e 7369 626c  hrony.    ansibl
│ │ │ +00268ed0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00268ee0: 643a 0a20 2020 2020 206e 616d 653a 2063  d:.      name: c
│ │ │ +00268ef0: 6872 6f6e 790a 2020 2020 2020 656e 6162  hrony.      enab
│ │ │ +00268f00: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +00268f10: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +00268f20: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +00268f30: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +00268f40: 202d 2027 2263 6872 6f6e 7922 2069 6e20   - '"chrony" in 
│ │ │ +00268f50: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00268f60: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00268f70: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00268f80: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00268f90: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00268fa0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00268fb0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00268fc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00268fd0: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ +00268fe0: 6872 6f6e 7964 5f65 6e61 626c 6564 0a20  hronyd_enabled. 
│ │ │ +00268ff0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00269000: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00269010: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ +00269020: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00269030: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00269040: 2d20 2722 6368 726f 6e79 2220 696e 2061  - '"chrony" in a
│ │ │ +00269050: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00269060: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +00269120: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00269130: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +002691b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002691c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002691e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002691f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00269210: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00269230: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00269260: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +00269270: 626c 655f 6368 726f 6e79 0a0a 636c 6173  ble_chrony..clas
│ │ │ +00269280: 7320 656e 6162 6c65 5f63 6872 6f6e 7920  s enable_chrony 
│ │ │ +00269290: 7b0a 2020 7365 7276 6963 6520 7b27 6368  {.  service {'ch
│ │ │ +002692a0: 726f 6e79 273a 0a20 2020 2065 6e61 626c  rony':.    enabl
│ │ │ +002692b0: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +002692c0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002692d0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +002692e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +002693a0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002693b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +00269400: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00269410: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +00269420: 203d 205b 2263 6872 6f6e 7922 5d0a 3c2f   = ["chrony"].
Remediation │ │ │ -0026a730: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -0026a740: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -0026a7a0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -0026a7b0: 6c65 6420 3d20 5b22 7379 7374 656d 642d  led = ["systemd-
│ │ │ -0026a7c0: 7469 6d65 7379 6e63 6422 5d0a 3c2f 636f  timesyncd"].
< │ │ │ -0026a7e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0026a7f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0026a800: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0026a810: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0026a820: 6431 3030 3422 2074 6162 696e 6465 783d d1004" tabindex= │ │ │ -0026a830: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0026a840: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0026a850: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0026a860: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0026a870: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0026a880: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0026a890: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0026a8a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0026a940: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0026a990: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0026a920: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0026a950: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0026a970: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0026a980: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0026a9a0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0026a9b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0026a9d0: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ -0026a9e0: 6d64 2d74 696d 6573 796e 6364 0a0a 636c  md-timesyncd..cl
│ │ │ -0026a9f0: 6173 7320 656e 6162 6c65 5f73 7973 7465  ass enable_syste
│ │ │ -0026aa00: 6d64 2d74 696d 6573 796e 6364 207b 0a20  md-timesyncd {. 
│ │ │ -0026aa10: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ -0026aa20: 6d64 2d74 696d 6573 796e 6364 273a 0a20  md-timesyncd':. 
│ │ │ -0026aa30: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0026aa40: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -0026aa50: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -0026aa60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0026aa70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -0026ab20: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0026ab30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0026ab40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0026abe0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0026ac00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0026ac30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0026abc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0026abd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0026abf0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0026ac10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0026ac20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0026ac70: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0026ac80: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0026ac90: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0026aca0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0026acb0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0026acc0: 302d 3533 2d41 552d 3828 3129 2861 290a 0-53-AU-8(1)(a). │ │ │ -0026acd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0026ace0: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -0026acf0: 4453 532d 5265 712d 3130 2e34 0a20 202d DSS-Req-10.4. - │ │ │ -0026ad00: 2050 4349 2d44 5353 7634 2d31 302e 360a PCI-DSSv4-10.6. │ │ │ -0026ad10: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ -0026ad20: 2e36 2e31 0a20 202d 2065 6e61 626c 655f .6.1. - enable_ │ │ │ -0026ad30: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -0026ad40: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -0026ad50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0026ad60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0026ad70: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0026ad80: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -0026ad90: 655f 7469 6d65 7379 6e63 645f 656e 6162 e_timesyncd_enab │ │ │ -0026ada0: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ -0026adb0: 626c 6520 7379 7374 656d 645f 7469 6d65 ble systemd_time │ │ │ -0026adc0: 7379 6e63 6420 5365 7276 6963 6520 2d20 syncd Service - │ │ │ -0026add0: 456e 6162 6c65 2073 6572 7669 6365 2073 Enable service s │ │ │ -0026ade0: 7973 7465 6d64 2d74 696d 6573 796e 6364 ystemd-timesyncd │ │ │ -0026adf0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e . block:.. - n │ │ │ -0026ae00: 616d 653a 2047 6174 6865 7220 7468 6520 ame: Gather the │ │ │ -0026ae10: 7061 636b 6167 6520 6661 6374 730a 2020 package facts. │ │ │ -0026ae20: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0026ae30: 6e2e 7061 636b 6167 655f 6661 6374 733a n.package_facts: │ │ │ -0026ae40: 0a20 2020 2020 206d 616e 6167 6572 3a20 . manager: │ │ │ -0026ae50: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20 auto.. - name: │ │ │ -0026ae60: 456e 6162 6c65 2073 7973 7465 6d64 5f74 Enable systemd_t │ │ │ -0026ae70: 696d 6573 796e 6364 2053 6572 7669 6365 imesyncd Service │ │ │ -0026ae80: 202d 2045 6e61 626c 6520 5365 7276 6963 - Enable Servic │ │ │ -0026ae90: 6520 7379 7374 656d 642d 7469 6d65 7379 e systemd-timesy │ │ │ -0026aea0: 6e63 640a 2020 2020 616e 7369 626c 652e ncd. ansible. │ │ │ -0026aeb0: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -0026aec0: 0a20 2020 2020 206e 616d 653a 2073 7973 . name: sys │ │ │ -0026aed0: 7465 6d64 2d74 696d 6573 796e 6364 0a20 temd-timesyncd. │ │ │ -0026aee0: 2020 2020 2065 6e61 626c 6564 3a20 7472 enabled: tr │ │ │ -0026aef0: 7565 0a20 2020 2020 2073 7461 7465 3a20 ue. state: │ │ │ -0026af00: 7374 6172 7465 640a 2020 2020 2020 6d61 started. ma │ │ │ -0026af10: 736b 6564 3a20 6661 6c73 650a 2020 2020 sked: false. │ │ │ -0026af20: 7768 656e 3a0a 2020 2020 2d20 2722 7379 when:. - '"sy │ │ │ -0026af30: 7374 656d 6422 2069 6e20 616e 7369 626c stemd" in ansibl │ │ │ -0026af40: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -0026af50: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ -0026af60: 5354 2d38 3030 2d35 332d 4155 2d38 2831 ST-800-53-AU-8(1 │ │ │ -0026af70: 2928 6129 0a20 202d 204e 4953 542d 3830 )(a). - NIST-80 │ │ │ -0026af80: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0026af90: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -0026afa0: 340a 2020 2d20 5043 492d 4453 5376 342d 4. - PCI-DSSv4- │ │ │ -0026afb0: 3130 2e36 0a20 202d 2050 4349 2d44 5353 10.6. - PCI-DSS │ │ │ -0026afc0: 7634 2d31 302e 362e 310a 2020 2d20 656e v4-10.6.1. - en │ │ │ -0026afd0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0026afe0: 2d20 6869 6768 5f73 6576 6572 6974 790a - high_severity. │ │ │ -0026aff0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0026b000: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0026b010: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562 ption. - no_reb │ │ │ -0026b020: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ -0026b030: 6572 7669 6365 5f74 696d 6573 796e 6364 ervice_timesyncd │ │ │ -0026b040: 5f65 6e61 626c 6564 0a20 202d 2073 7065 _enabled. - spe │ │ │ -0026b050: 6369 616c 5f73 6572 7669 6365 5f62 6c6f cial_service_blo │ │ │ -0026b060: 636b 0a20 2077 6865 6e3a 0a20 202d 2027 ck. when:. - ' │ │ │ -0026b070: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -0026b080: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0026b090: 636b 6167 6573 270a 2020 2d20 2820 6e6f ckages'. - ( no │ │ │ -0026b0a0: 7420 2820 2263 6872 6f6e 7922 2069 6e20 t ( "chrony" in │ │ │ -0026b0b0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0026b0c0: 636b 6167 6573 2029 2061 6e64 206e 6f74 ckages ) and not │ │ │ -0026b0d0: 2028 2022 6e74 7022 2069 6e20 616e 7369 ( "ntp" in ansi │ │ │ -0026b0e0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -0026b0f0: 6573 0a20 2020 2029 2029 0a3c 2f63 6f64 es. ) ).

Complexity │ │ │ +0026a7d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0026a7f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0026a800: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026a810: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0026a820: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0026a840: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0026a880: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0026a890: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0026a8a0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0026a8b0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0026a8c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0026a8d0: 4155 2d38 2831 2928 6129 0a20 202d 204e  AU-8(1)(a).  - N
│ │ │ +0026a8e0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0026a8f0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0026a900: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ +0026a910: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ +0026a920: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ +0026a930: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0026a940: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +0026a950: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +0026a960: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0026a970: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0026a980: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0026a990: 0a20 202d 2073 6572 7669 6365 5f74 696d  .  - service_tim
│ │ │ +0026a9a0: 6573 796e 6364 5f65 6e61 626c 6564 0a0a  esyncd_enabled..
│ │ │ +0026a9b0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +0026a9c0: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +0026a9d0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +0026a9e0: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ +0026a9f0: 642d 7469 6d65 7379 6e63 640a 2020 626c  d-timesyncd.  bl
│ │ │ +0026aa00: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +0026aa10: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +0026aa20: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +0026aa30: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0026aa40: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +0026aa50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0026aa60: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +0026aa70: 6520 7379 7374 656d 645f 7469 6d65 7379  e systemd_timesy
│ │ │ +0026aa80: 6e63 6420 5365 7276 6963 6520 2d20 456e  ncd Service - En
│ │ │ +0026aa90: 6162 6c65 2053 6572 7669 6365 2073 7973  able Service sys
│ │ │ +0026aaa0: 7465 6d64 2d74 696d 6573 796e 6364 0a20  temd-timesyncd. 
│ │ │ +0026aab0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0026aac0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0026aad0: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ +0026aae0: 7469 6d65 7379 6e63 640a 2020 2020 2020  timesyncd.      
│ │ │ +0026aaf0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +0026ab00: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +0026ab10: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +0026ab20: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +0026ab30: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ +0026ab40: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0026ab50: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +0026ab60: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0026ab70: 302d 3533 2d41 552d 3828 3129 2861 290a  0-53-AU-8(1)(a).
│ │ │ +0026ab80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0026ab90: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +0026aba0: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +0026abb0: 2050 4349 2d44 5353 7634 2d31 302e 360a   PCI-DSSv4-10.6.
│ │ │ +0026abc0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +0026abd0: 2e36 2e31 0a20 202d 2065 6e61 626c 655f  .6.1.  - enable_
│ │ │ +0026abe0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +0026abf0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +0026ac00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0026ac10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0026ac20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0026ac30: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0026ac40: 655f 7469 6d65 7379 6e63 645f 656e 6162  e_timesyncd_enab
│ │ │ +0026ac50: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0026ac60: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0026ac70: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ +0026ac80: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0026ac90: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0026aca0: 7327 0a20 202d 2028 206e 6f74 2028 2022  s'.  - ( not ( "
│ │ │ +0026acb0: 6368 726f 6e79 2220 696e 2061 6e73 6962  chrony" in ansib
│ │ │ +0026acc0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0026acd0: 7320 2920 616e 6420 6e6f 7420 2820 226e  s ) and not ( "n
│ │ │ +0026ace0: 7470 2220 696e 2061 6e73 6962 6c65 5f66  tp" in ansible_f
│ │ │ +0026acf0: 6163 7473 2e70 6163 6b61 6765 730a 2020  acts.packages.  
│ │ │ +0026ad00: 2020 2920 290a 3c2f 636f 6465 3e3c 2f70    ) ).

Remediati │ │ │ +0026adc0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0026add0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0026ae50: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0026ae60: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0026ae70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0026aeb0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0026aec0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0026aee0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0026af00: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +0026af10: 6162 6c65 5f73 7973 7465 6d64 2d74 696d  able_systemd-tim
│ │ │ +0026af20: 6573 796e 6364 0a0a 636c 6173 7320 656e  esyncd..class en
│ │ │ +0026af30: 6162 6c65 5f73 7973 7465 6d64 2d74 696d  able_systemd-tim
│ │ │ +0026af40: 6573 796e 6364 207b 0a20 2073 6572 7669  esyncd {.  servi
│ │ │ +0026af50: 6365 207b 2773 7973 7465 6d64 2d74 696d  ce {'systemd-tim
│ │ │ +0026af60: 6573 796e 6364 273a 0a20 2020 2065 6e61  esyncd':.    ena
│ │ │ +0026af70: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +0026af80: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0026af90: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +0026afa0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0026afb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +0026b060: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0026b070: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0026b080: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +0026b0c0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0026b0d0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +0026b0e0: 6564 203d 205b 2273 7973 7465 6d64 2d74  ed = ["systemd-t
│ │ │ +0026b0f0: 696d 6573 796e 6364 225d 0a3c 2f63 6f64  imesyncd"].
Remed │ │ │ -002764c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002764d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -00276560: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00276570: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00276590: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002765b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002765c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00276600: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00276610: 7564 6520 7265 6d6f 7665 5f78 696e 6574  ude remove_xinet
│ │ │ -00276620: 640a 0a63 6c61 7373 2072 656d 6f76 655f  d..class remove_
│ │ │ -00276630: 7869 6e65 7464 207b 0a20 2070 6163 6b61  xinetd {.  packa
│ │ │ -00276640: 6765 207b 2027 7869 6e65 7464 273a 0a20  ge { 'xinetd':. 
│ │ │ -00276650: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00276660: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00276670: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00276730: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00276740: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002767c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002767e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00276830: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00276860: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00276880: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00276890: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002768a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002768b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002768c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002768d0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002768e0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002768f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00276900: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00276910: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00276920: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00276930: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00276940: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00276950: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00276960: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00276970: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00276980: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00276990: 2070 6163 6b61 6765 5f78 696e 6574 645f   package_xinetd_
│ │ │ -002769a0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -002769b0: 2027 556e 696e 7374 616c 6c20 7869 6e65   'Uninstall xine
│ │ │ -002769c0: 7464 2070 6163 6b61 6765 2069 6620 6e6f  td package if no
│ │ │ -002769d0: 7420 7573 6564 2062 7920 6e65 7477 6f72  t used by networ
│ │ │ -002769e0: 6b20 7365 7276 6963 6573 3a20 456e 7375  k services: Ensu
│ │ │ -002769f0: 7265 2078 696e 6574 6420 6973 0a20 2020  re xinetd is.   
│ │ │ -00276a00: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00276a10: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00276a20: 6167 653a 0a20 2020 206e 616d 653a 2078  age:.    name: x
│ │ │ -00276a30: 696e 6574 640a 2020 2020 7374 6174 653a  inetd.    state:
│ │ │ -00276a40: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -00276a50: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00276a60: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00276a70: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00276a80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00276a90: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00276aa0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -00276ab0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00276ac0: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ -00276ad0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00276ae0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00276af0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00276b00: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00276b10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00276b20: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00276b30: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00276b40: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00276b50: 2020 2d20 7061 636b 6167 655f 7869 6e65    - package_xine
│ │ │ -00276b60: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
low
Disr │ │ │ -002767f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00276800: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00276840: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00276850: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +00276560: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00276590: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002765b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002765c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002765e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002765f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00276610: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00276620: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00276630: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00276640: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00276650: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00276660: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00276670: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00276680: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00276690: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +002766a0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002766b0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +002766c0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +002766d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002766e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002766f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00276700: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +00276710: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00276720: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00276730: 6765 5f78 696e 6574 645f 7265 6d6f 7665  ge_xinetd_remove
│ │ │ +00276740: 640a 0a2d 206e 616d 653a 2027 556e 696e  d..- name: 'Unin
│ │ │ +00276750: 7374 616c 6c20 7869 6e65 7464 2070 6163  stall xinetd pac
│ │ │ +00276760: 6b61 6765 2069 6620 6e6f 7420 7573 6564  kage if not used
│ │ │ +00276770: 2062 7920 6e65 7477 6f72 6b20 7365 7276   by network serv
│ │ │ +00276780: 6963 6573 3a20 456e 7375 7265 2078 696e  ices: Ensure xin
│ │ │ +00276790: 6574 6420 6973 0a20 2020 2072 656d 6f76  etd is.    remov
│ │ │ +002767a0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +002767b0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002767c0: 2020 206e 616d 653a 2078 696e 6574 640a     name: xinetd.
│ │ │ +002767d0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002767e0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +002767f0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00276800: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00276810: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +00276820: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00276830: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00276840: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00276850: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00276860: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +00276870: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00276880: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00276890: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002768a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002768b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002768c0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002768d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002768e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002768f0: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ +00276900: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +002769c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002769d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00276a50: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00276a60: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00276a80: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00276a90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00276ab0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00276ad0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00276b00: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00276b10: 656d 6f76 655f 7869 6e65 7464 0a0a 636c  emove_xinetd..cl
│ │ │ +00276b20: 6173 7320 7265 6d6f 7665 5f78 696e 6574  ass remove_xinet
│ │ │ +00276b30: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +00276b40: 2778 696e 6574 6427 3a0a 2020 2020 656e  'xinetd':.    en
│ │ │ +00276b50: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00276b60: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -002782b0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -002782c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -00278320: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -00278330: 6564 203d 205b 2278 696e 6574 6422 5d0a  ed = ["xinetd"].
│ │ │ -00278340: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -00278400: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00278410: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002784e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002784f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00278540: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00278550: 7869 6e65 7464 0a0a 636c 6173 7320 6469  xinetd..class di
│ │ │ -00278560: 7361 626c 655f 7869 6e65 7464 207b 0a20  sable_xinetd {. 
│ │ │ -00278570: 2073 6572 7669 6365 207b 2778 696e 6574   service {'xinet
│ │ │ -00278580: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -00278590: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -002785a0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002785b0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ -00278670: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00278680: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -002784c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002784d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00278510: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00278520: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00278760: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00278770: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002787c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002787d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002787e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002787f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00278800: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00278810: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ -00278820: 2e37 0a20 202d 204e 4953 542d 3830 302d  .7.  - NIST-800-
│ │ │ -00278830: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00278840: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00278850: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00278860: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00278870: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00278880: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00278890: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002788a0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002788b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002788c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002788d0: 202d 2073 6572 7669 6365 5f78 696e 6574   - service_xinet
│ │ │ -002788e0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ -002788f0: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ -00278900: 7464 2053 6572 7669 6365 202d 2044 6973  td Service - Dis
│ │ │ -00278910: 6162 6c65 2073 6572 7669 6365 2078 696e  able service xin
│ │ │ -00278920: 6574 640a 2020 626c 6f63 6b3a 0a0a 2020  etd.  block:..  
│ │ │ -00278930: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00278940: 7869 6e65 7464 2053 6572 7669 6365 202d  xinetd Service -
│ │ │ -00278950: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -00278960: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -00278970: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -00278980: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00278990: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002789a0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002789b0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -002789c0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -002789d0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -002789e0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002789f0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00278a00: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00278a10: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -00278a20: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00278a30: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00278a40: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00278a50: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ -00278a60: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -00278a70: 7869 6e65 7464 2e73 6572 7669 6365 2069  xinetd.service i
│ │ │ -00278a80: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -00278a90: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00278aa0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00278ab0: 3a20 7869 6e65 7464 2e73 6572 7669 6365  : xinetd.service
│ │ │ -00278ac0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00278ad0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -00278ae0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00278af0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00278b00: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -00278b10: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00278b20: 6e65 7320 6973 2073 6561 7263 6828 2278  nes is search("x
│ │ │ -00278b30: 696e 6574 642e 7365 7276 6963 6522 2c20  inetd.service", 
│ │ │ -00278b40: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00278b50: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -00278b60: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -00278b70: 7869 6e65 7464 2e73 6f63 6b65 740a 2020  xinetd.socket.  
│ │ │ -00278b80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00278b90: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00278ba0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00278bb0: 742d 6669 6c65 7320 7869 6e65 7464 2e73  t-files xinetd.s
│ │ │ -00278bc0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -00278bd0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -00278be0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00278bf0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00278c00: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00278c10: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00278c20: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00278c30: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00278c40: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00278c50: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ -00278c60: 6574 6420 5365 7276 6963 6520 2d20 4469  etd Service - Di
│ │ │ -00278c70: 7361 626c 6520 536f 636b 6574 2078 696e  sable Socket xin
│ │ │ -00278c80: 6574 640a 2020 2020 616e 7369 626c 652e  etd.    ansible.
│ │ │ -00278c90: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00278ca0: 0a20 2020 2020 206e 616d 653a 2078 696e  .      name: xin
│ │ │ -00278cb0: 6574 642e 736f 636b 6574 0a20 2020 2020  etd.socket.     
│ │ │ -00278cc0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00278cd0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00278ce0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -00278cf0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -00278d00: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00278d10: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00278d20: 7320 6973 2073 6561 7263 6828 2278 696e  s is search("xin
│ │ │ -00278d30: 6574 642e 736f 636b 6574 222c 206d 756c  etd.socket", mul
│ │ │ -00278d40: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -00278d50: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00278d60: 302d 3137 312d 332e 342e 370a 2020 2d20  0-171-3.4.7.  - 
│ │ │ -00278d70: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00278d80: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00278d90: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00278da0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00278db0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -00278dc0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00278dd0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00278de0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00278df0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00278e00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00278e10: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00278e20: 6963 655f 7869 6e65 7464 5f64 6973 6162  ice_xinetd_disab
│ │ │ -00278e30: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00278e40: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00278e50: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00278e60: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00278e70: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002782b0: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +002782c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
< │ │ │ +00278380: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278390: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -00278740: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00278750: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00278790: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002787a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00278350: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00278370: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002783a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002783c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002783f0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00278400: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00278410: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00278420: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00278430: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00278440: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00278450: 312d 332e 342e 370a 2020 2d20 4e49 5354  1-3.4.7.  - NIST
│ │ │ +00278460: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00278470: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00278480: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00278490: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +002784a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002784b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002784c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002784d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002784e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002784f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00278500: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00278510: 7869 6e65 7464 5f64 6973 6162 6c65 640a  xinetd_disabled.
│ │ │ +00278520: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00278530: 2078 696e 6574 6420 5365 7276 6963 6520   xinetd Service 
│ │ │ +00278540: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +00278550: 6520 7869 6e65 7464 0a20 2062 6c6f 636b  e xinetd.  block
│ │ │ +00278560: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00278570: 6162 6c65 2078 696e 6574 6420 5365 7276  able xinetd Serv
│ │ │ +00278580: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +00278590: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +002785a0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +002785b0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +002785c0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +002785d0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +002785e0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +002785f0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +00278600: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +00278610: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +00278620: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +00278630: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +00278640: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00278650: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00278660: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00278670: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00278680: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ +00278690: 6574 6420 5365 7276 6963 6520 2d20 456e  etd Service - En
│ │ │ +002786a0: 7375 7265 2078 696e 6574 642e 7365 7276  sure xinetd.serv
│ │ │ +002786b0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +002786c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002786d0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002786e0: 206e 616d 653a 2078 696e 6574 642e 7365   name: xinetd.se
│ │ │ +002786f0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +00278700: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00278710: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00278720: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00278730: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +00278740: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +00278750: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00278760: 6368 2822 7869 6e65 7464 2e73 6572 7669  ch("xinetd.servi
│ │ │ +00278770: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +00278780: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +00278790: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002787a0: 7473 202d 2078 696e 6574 642e 736f 636b  ts - xinetd.sock
│ │ │ +002787b0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +002787c0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002787d0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002787e0: 742d 756e 6974 2d66 696c 6573 2078 696e  t-unit-files xin
│ │ │ +002787f0: 6574 642e 736f 636b 6574 0a20 2020 2072  etd.socket.    r
│ │ │ +00278800: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +00278810: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +00278820: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00278830: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00278840: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00278850: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00278860: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00278870: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00278880: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00278890: 6520 7869 6e65 7464 2053 6572 7669 6365  e xinetd Service
│ │ │ +002788a0: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +002788b0: 7420 7869 6e65 7464 0a20 2020 2061 6e73  t xinetd.    ans
│ │ │ +002788c0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002788d0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002788e0: 3a20 7869 6e65 7464 2e73 6f63 6b65 740a  : xinetd.socket.
│ │ │ +002788f0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00278900: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +00278910: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00278920: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00278930: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +00278940: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +00278950: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00278960: 2822 7869 6e65 7464 2e73 6f63 6b65 7422  ("xinetd.socket"
│ │ │ +00278970: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +00278980: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ +00278990: 5354 2d38 3030 2d31 3731 2d33 2e34 2e37  ST-800-171-3.4.7
│ │ │ +002789a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002789b0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002789c0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002789d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002789e0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +002789f0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00278a00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00278a10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00278a20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00278a30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00278a40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00278a50: 2073 6572 7669 6365 5f78 696e 6574 645f   service_xinetd_
│ │ │ +00278a60: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00278a70: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00278a80: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +00278a90: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00278aa0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00278ab0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00278b70: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00278b80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +00278c10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00278c30: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00278c40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278c50: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00278c60: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00278c80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +00278cc0: 626c 655f 7869 6e65 7464 0a0a 636c 6173  ble_xinetd..clas
│ │ │ +00278cd0: 7320 6469 7361 626c 655f 7869 6e65 7464  s disable_xinetd
│ │ │ +00278ce0: 207b 0a20 2073 6572 7669 6365 207b 2778   {.  service {'x
│ │ │ +00278cf0: 696e 6574 6427 3a0a 2020 2020 656e 6162  inetd':.    enab
│ │ │ +00278d00: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +00278d10: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00278d20: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +00278d30: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00278d40: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +00278df0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00278e00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00278e10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +00278e50: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00278e60: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00278e70: 6420 3d20 5b22 7869 6e65 7464 225d 0a3c  d = ["xinetd"].<
│ │ │  00278e80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -0027aa80: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0027aa90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027aaa0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0027ab30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027ab40: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0027ab90: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0027abd0: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ -0027abe0: 7365 7276 0a0a 636c 6173 7320 7265 6d6f  serv..class remo
│ │ │ -0027abf0: 7665 5f79 7073 6572 7620 7b0a 2020 7061  ve_ypserv {.  pa
│ │ │ -0027ac00: 636b 6167 6520 7b20 2779 7073 6572 7627  ckage { 'ypserv'
│ │ │ -0027ac10: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0027ac20: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0027ac30: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0027ac40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -0027acf0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0027ad00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -0027adc0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027add0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -0027ab20: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0027ab50: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0027ab60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0027aba0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0027abb0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -0027ad90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0027adb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0027ade0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0027ae00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0027ae30: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0027ae40: 696e 7374 616c 6c20 7970 7365 7276 2050  install ypserv P
│ │ │ -0027ae50: 6163 6b61 6765 3a20 456e 7375 7265 2079  ackage: Ensure y
│ │ │ -0027ae60: 7073 6572 7620 6973 2072 656d 6f76 6564  pserv is removed
│ │ │ -0027ae70: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0027ae80: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0027ae90: 206e 616d 653a 2079 7073 6572 760a 2020   name: ypserv.  
│ │ │ -0027aea0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -0027aeb0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0027aec0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0027aed0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0027aee0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -0027aef0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -0027af00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0027af10: 4941 2d35 2831 2928 6329 0a20 202d 2050  IA-5(1)(c).  - P
│ │ │ -0027af20: 4349 2d44 5353 2d52 6571 2d32 2e32 2e32  CI-DSS-Req-2.2.2
│ │ │ -0027af30: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0027af40: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0027af50: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -0027af60: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0027af70: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -0027af80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0027af90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0027afa0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0027afb0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0027afc0: 6b61 6765 5f79 7073 6572 765f 7265 6d6f  kage_ypserv_remo
│ │ │ -0027afd0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +0027ab30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0027abd0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0027abe0: 6c20 7970 7365 7276 2050 6163 6b61 6765  l ypserv Package
│ │ │ +0027abf0: 3a20 456e 7375 7265 2079 7073 6572 7620  : Ensure ypserv 
│ │ │ +0027ac00: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +0027ac10: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0027ac20: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0027ac30: 2079 7073 6572 760a 2020 2020 7374 6174   ypserv.    stat
│ │ │ +0027ac40: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0027ac50: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0027ac60: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0027ac70: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0027ac80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0027ac90: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ +0027aca0: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ +0027acb0: 2928 6329 0a20 202d 2050 4349 2d44 5353  )(c).  - PCI-DSS
│ │ │ +0027acc0: 2d52 6571 2d32 2e32 2e32 0a20 202d 2050  -Req-2.2.2.  - P
│ │ │ +0027acd0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +0027ace0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +0027acf0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0027ad00: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0027ad10: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0027ad20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0027ad30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0027ad40: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0027ad50: 6564 0a20 202d 2070 6163 6b61 6765 5f79  ed.  - package_y
│ │ │ +0027ad60: 7073 6572 765f 7265 6d6f 7665 640a 3c2f  pserv_removed.
R │ │ │ +0027ae20: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0027ae30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0027ab20: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027ab50: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027ab60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027aba0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027abb0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0027aed0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +0027af70: 696e 636c 7564 6520 7265 6d6f 7665 5f79  include remove_y
│ │ │ +0027af80: 7073 6572 760a 0a63 6c61 7373 2072 656d  pserv..class rem
│ │ │ +0027af90: 6f76 655f 7970 7365 7276 207b 0a20 2070  ove_ypserv {.  p
│ │ │ +0027afa0: 6163 6b61 6765 207b 2027 7970 7365 7276  ackage { 'ypserv
│ │ │ +0027afb0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0027afc0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0027afd0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remedi │ │ │ -0027be30: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0027be40: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0027be50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -0027bea0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -0027beb0: 5d0a 6d61 736b 6564 203d 205b 2279 7073  ].masked = ["yps
│ │ │ -0027bec0: 6572 7622 5d0a 3c2f 636f 6465 3e3c 2f70  erv"].

Remediati │ │ │ -0027bf80: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0027bf90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0027c010: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0027c0a0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0027aec0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027aef0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027af00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027af40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027af50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0027c020: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027c030: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0027c070: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027c080: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0027c0c0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -0027c0d0: 7361 626c 655f 7970 7365 7276 0a0a 636c  sable_ypserv..cl
│ │ │ -0027c0e0: 6173 7320 6469 7361 626c 655f 7970 7365  ass disable_ypse
│ │ │ -0027c0f0: 7276 207b 0a20 2073 6572 7669 6365 207b  rv {.  service {
│ │ │ -0027c100: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ -0027c110: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -0027c120: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -0027c130: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -0027c140: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0027c200: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0027c210: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0027c290: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0027c2a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0027c2c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0027c2d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0027c2f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0027c310: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0027c340: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0027c350: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0027c360: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0027c370: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0027c380: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0027c390: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0027c3a0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0027c3b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0027c3c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0027c3d0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0027c3e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0027c3f0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0027c400: 655f 7970 7365 7276 5f64 6973 6162 6c65  e_ypserv_disable
│ │ │ -0027c410: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0027c420: 6c65 2079 7073 6572 7620 5365 7276 6963  le ypserv Servic
│ │ │ -0027c430: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0027c440: 6963 6520 7970 7365 7276 0a20 2062 6c6f  ice ypserv.  blo
│ │ │ -0027c450: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -0027c460: 6973 6162 6c65 2079 7073 6572 7620 5365  isable ypserv Se
│ │ │ -0027c470: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0027c480: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0027c490: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0027c4a0: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0027c4b0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0027c4c0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0027c4d0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0027c4e0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0027c4f0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0027c500: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0027c510: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0027c520: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0027c530: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0027c540: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0027c550: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0027c560: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0027c570: 206e 616d 653a 2044 6973 6162 6c65 2079   name: Disable y
│ │ │ -0027c580: 7073 6572 7620 5365 7276 6963 6520 2d20  pserv Service - 
│ │ │ -0027c590: 456e 7375 7265 2079 7073 6572 762e 7365  Ensure ypserv.se
│ │ │ -0027c5a0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0027c5b0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0027c5c0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0027c5d0: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ -0027c5e0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0027c5f0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027c600: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0027c610: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0027c620: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0027c630: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0027c640: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0027c650: 6172 6368 2822 7970 7365 7276 2e73 6572  arch("ypserv.ser
│ │ │ -0027c660: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0027c670: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0027c680: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0027c690: 6973 7473 202d 2079 7073 6572 762e 736f  ists - ypserv.so
│ │ │ -0027c6a0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0027c6b0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0027c6c0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0027c6d0: 6973 742d 756e 6974 2d66 696c 6573 2079  ist-unit-files y
│ │ │ -0027c6e0: 7073 6572 762e 736f 636b 6574 0a20 2020  pserv.socket.   
│ │ │ -0027c6f0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0027c700: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0027c710: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0027c720: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0027c730: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0027c740: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0027c750: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0027c760: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0027c770: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0027c780: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ -0027c790: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -0027c7a0: 6b65 7420 7970 7365 7276 0a20 2020 2061  ket ypserv.    a
│ │ │ -0027c7b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0027c7c0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0027c7d0: 6d65 3a20 7970 7365 7276 2e73 6f63 6b65  me: ypserv.socke
│ │ │ -0027c7e0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -0027c7f0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -0027c800: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0027c810: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0027c820: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -0027c830: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -0027c840: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0027c850: 6368 2822 7970 7365 7276 2e73 6f63 6b65  ch("ypserv.socke
│ │ │ -0027c860: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -0027c870: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -0027c880: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0027c890: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0027c8a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0027c8b0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0027c8c0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0027c8d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0027c8e0: 2020 2d20 7365 7276 6963 655f 7970 7365    - service_ypse
│ │ │ -0027c8f0: 7276 5f64 6973 6162 6c65 640a 2020 2d20  rv_disabled.  - 
│ │ │ -0027c900: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0027c910: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -0027c920: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0027c930: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0027c940: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Comp │ │ │ +0027bed0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0027bee0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0027bf00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0027bf20: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0027bf30: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0027bf70: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0027bf80: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0027bf90: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0027bfa0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0027bfb0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0027bfc0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +0027bfd0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0027bfe0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0027bff0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0027c000: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0027c010: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0027c020: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0027c030: 6572 7669 6365 5f79 7073 6572 765f 6469  ervice_ypserv_di
│ │ │ +0027c040: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +0027c050: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ +0027c060: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0027c070: 2073 6572 7669 6365 2079 7073 6572 760a   service ypserv.
│ │ │ +0027c080: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0027c090: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ +0027c0a0: 7276 2053 6572 7669 6365 202d 2043 6f6c  rv Service - Col
│ │ │ +0027c0b0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0027c0c0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0027c0d0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0027c0e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027c0f0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0027c100: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0027c110: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0027c120: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0027c130: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0027c140: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0027c150: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0027c160: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0027c170: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0027c180: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0027c190: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0027c1a0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0027c1b0: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ +0027c1c0: 6365 202d 2045 6e73 7572 6520 7970 7365  ce - Ensure ypse
│ │ │ +0027c1d0: 7276 2e73 6572 7669 6365 2069 7320 4d61  rv.service is Ma
│ │ │ +0027c1e0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0027c1f0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0027c200: 3a0a 2020 2020 2020 6e61 6d65 3a20 7970  :.      name: yp
│ │ │ +0027c210: 7365 7276 2e73 6572 7669 6365 0a20 2020  serv.service.   
│ │ │ +0027c220: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0027c230: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +0027c240: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +0027c250: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +0027c260: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +0027c270: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +0027c280: 6973 2073 6561 7263 6828 2279 7073 6572  is search("ypser
│ │ │ +0027c290: 762e 7365 7276 6963 6522 2c20 6d75 6c74  v.service", mult
│ │ │ +0027c2a0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +0027c2b0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +0027c2c0: 6574 2045 7869 7374 7320 2d20 7970 7365  et Exists - ypse
│ │ │ +0027c2d0: 7276 2e73 6f63 6b65 740a 2020 2020 616e  rv.socket.    an
│ │ │ +0027c2e0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0027c2f0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0027c300: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0027c310: 6c65 7320 7970 7365 7276 2e73 6f63 6b65  les ypserv.socke
│ │ │ +0027c320: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +0027c330: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0027c340: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0027c350: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0027c360: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +0027c370: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +0027c380: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0027c390: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0027c3a0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0027c3b0: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ +0027c3c0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +0027c3d0: 6520 536f 636b 6574 2079 7073 6572 760a  e Socket ypserv.
│ │ │ +0027c3e0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0027c3f0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0027c400: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ +0027c410: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0027c420: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027c430: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027c440: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027c450: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0027c460: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027c470: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0027c480: 2073 6561 7263 6828 2279 7073 6572 762e   search("ypserv.
│ │ │ +0027c490: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0027c4a0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0027c4b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0027c4c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0027c4d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0027c4e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0027c4f0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0027c500: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0027c510: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0027c520: 5f79 7073 6572 765f 6469 7361 626c 6564  _ypserv_disabled
│ │ │ +0027c530: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +0027c540: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +0027c550: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +0027c560: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0027c570: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +0027c590: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027c5a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027c5b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027c5c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027c5d0: 6431 3033 3722 2074 6162 696e 6465 783d d1037" tabindex= │ │ │ +0027c5e0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +0027c5f0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +0027c600: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +0027c610: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +0027c620: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +0027c630: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027c640: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027c650: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +0027c6f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0027c740: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0027c6d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0027c700: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0027c720: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0027c730: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0027c750: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0027c760: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0027c780: 7564 6520 6469 7361 626c 655f 7970 7365  ude disable_ypse
│ │ │ +0027c790: 7276 0a0a 636c 6173 7320 6469 7361 626c  rv..class disabl
│ │ │ +0027c7a0: 655f 7970 7365 7276 207b 0a20 2073 6572  e_ypserv {.  ser
│ │ │ +0027c7b0: 7669 6365 207b 2779 7073 6572 7627 3a0a  vice {'ypserv':.
│ │ │ +0027c7c0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0027c7d0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0027c7e0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0027c7f0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +0027c8b0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0027c8c0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0027c8d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +0027c920: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0027c930: 735d 0a6d 6173 6b65 6420 3d20 5b22 7970 s].masked = ["yp │ │ │ +0027c940: 7365 7276 225d 0a3c 2f63 6f64 653e 3c2f serv"].
Remediati │ │ │ -0027ded0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0027dee0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0027df60: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0027df70: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027df80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0027dfc0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027dfd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0027dff0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0027e000: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0027e020: 7265 6d6f 7665 5f72 7368 0a0a 636c 6173  remove_rsh..clas
│ │ │ -0027e030: 7320 7265 6d6f 7665 5f72 7368 207b 0a20  s remove_rsh {. 
│ │ │ -0027e040: 2070 6163 6b61 6765 207b 2027 7273 6827   package { 'rsh'
│ │ │ -0027e050: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0027e060: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0027e070: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0027e080: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -0027e130: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0027e140: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -0027e1d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0027e1f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0027e200: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027e210: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0027e220: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0027e240: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0027e270: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0027e280: 696e 7374 616c 6c20 7273 6820 5061 636b  install rsh Pack
│ │ │ -0027e290: 6167 653a 2045 6e73 7572 6520 7273 6820  age: Ensure rsh 
│ │ │ -0027e2a0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -0027e2b0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0027e2c0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0027e2d0: 2072 7368 0a20 2020 2073 7461 7465 3a20   rsh.    state: 
│ │ │ -0027e2e0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0027e2f0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -0027e300: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ -0027e310: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0027e320: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -0027e330: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0027e340: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0027e350: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0027e360: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0027e370: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0027e380: 2070 6163 6b61 6765 5f72 7368 5f72 656d   package_rsh_rem
│ │ │ -0027e390: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -0027e3a0: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
< │ │ │ +0027df20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0027df30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0027df40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0027df50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0027df60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0027df70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0027df80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0027dfc0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0027dfd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0027dff0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0027e000: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0027e020: 2755 6e69 6e73 7461 6c6c 2072 7368 2050 'Uninstall rsh P │ │ │ +0027e030: 6163 6b61 6765 3a20 456e 7375 7265 2072 ackage: Ensure r │ │ │ +0027e040: 7368 2069 7320 7265 6d6f 7665 6427 0a20 sh is removed'. │ │ │ +0027e050: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +0027e060: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +0027e070: 6d65 3a20 7273 680a 2020 2020 7374 6174 me: rsh. stat │ │ │ +0027e080: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ +0027e090: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ +0027e0a0: 3731 2d33 2e31 2e31 330a 2020 2d20 5043 71-3.1.13. - PC │ │ │ +0027e0b0: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ +0027e0c0: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ +0027e0d0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0027e0e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +0027e0f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0027e100: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +0027e110: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0027e120: 2020 2d20 7061 636b 6167 655f 7273 685f - package_rsh_ │ │ │ +0027e130: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e removed. - unkn │ │ │ +0027e140: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63 own_severity.
│ │ │ +0027e160: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0027e200: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0027e210: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0027e220: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +0027e2b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027e2c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027e310: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0027e350: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +0027e360: 680a 0a63 6c61 7373 2072 656d 6f76 655f  h..class remove_
│ │ │ +0027e370: 7273 6820 7b0a 2020 7061 636b 6167 6520  rsh {.  package 
│ │ │ +0027e380: 7b20 2772 7368 273a 0a20 2020 2065 6e73  { 'rsh':.    ens
│ │ │ +0027e390: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0027e3a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Rem │ │ │ -00280770: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00280780: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00280790: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +0027e2a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027e2d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0027e2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0027e320: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0027e330: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -00280830: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00280880: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002808c0: 636c 7564 6520 7265 6d6f 7665 5f74 616c  clude remove_tal
│ │ │ -002808d0: 6b0a 0a63 6c61 7373 2072 656d 6f76 655f  k..class remove_
│ │ │ -002808e0: 7461 6c6b 207b 0a20 2070 6163 6b61 6765  talk {.  package
│ │ │ -002808f0: 207b 2027 7461 6c6b 273a 0a20 2020 2065   { 'talk':.    e
│ │ │ -00280900: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00280910: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00280930: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00280940: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00280950: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00280960: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00280970: 6431 3034 3722 2074 6162 696e 6465 783d d1047" tabindex= │ │ │ -00280980: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00280990: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002809a0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002809b0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002809c0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002809d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002809e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002809f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ -00280810: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00280840: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00280860: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00280870: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00280890: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002808a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00280a80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00280a90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00280ae0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00280b20: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00280b30: 2074 616c 6b20 5061 636b 6167 653a 2045   talk Package: E
│ │ │ -00280b40: 6e73 7572 6520 7461 6c6b 2069 7320 7265  nsure talk is re
│ │ │ -00280b50: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00280b60: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00280b70: 3a0a 2020 2020 6e61 6d65 3a20 7461 6c6b  :.    name: talk
│ │ │ -00280b80: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00280b90: 6e74 0a20 2074 6167 733a 0a20 202d 2050  nt.  tags:.  - P
│ │ │ -00280ba0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -00280bb0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -00280bc0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00280bd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00280be0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00280bf0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00280c00: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00280c10: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00280c20: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00280c30: 5f74 616c 6b5f 7265 6d6f 7665 640a 3c2f  _talk_removed.
│ │ │ +00280790: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
C │ │ │ -00280a70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00280aa0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00280ab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00280af0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00280b00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00280820: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00280830: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00280880: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002808c0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002808d0: 2074 616c 6b20 5061 636b 6167 653a 2045   talk Package: E
│ │ │ +002808e0: 6e73 7572 6520 7461 6c6b 2069 7320 7265  nsure talk is re
│ │ │ +002808f0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00280900: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00280910: 3a0a 2020 2020 6e61 6d65 3a20 7461 6c6b  :.    name: talk
│ │ │ +00280920: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00280930: 6e74 0a20 2074 6167 733a 0a20 202d 2050  nt.  tags:.  - P
│ │ │ +00280940: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00280950: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +00280960: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00280970: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00280980: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00280990: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002809a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002809b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002809c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002809d0: 5f74 616c 6b5f 7265 6d6f 7665 640a 3c2f  _talk_removed.
R │ │ │ +00280a90: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00280aa0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +00280810: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00280840: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00280850: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00280890: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002808a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00280b40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00280be0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +00280bf0: 616c 6b0a 0a63 6c61 7373 2072 656d 6f76  alk..class remov
│ │ │ +00280c00: 655f 7461 6c6b 207b 0a20 2070 6163 6b61  e_talk {.  packa
│ │ │ +00280c10: 6765 207b 2027 7461 6c6b 273a 0a20 2020  ge { 'talk':.   
│ │ │ +00280c20: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +00280c30: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remed │ │ │ -00281e80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00281e90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00280b30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00280b60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00280b70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00280bb0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00280bc0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00281f20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00281f30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00281f50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00281f70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00281f80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00281fc0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00281fd0: 7564 6520 7265 6d6f 7665 5f69 6e65 7475  ude remove_inetu
│ │ │ -00281fe0: 7469 6c73 2d74 656c 6e65 740a 0a63 6c61  tils-telnet..cla
│ │ │ -00281ff0: 7373 2072 656d 6f76 655f 696e 6574 7574  ss remove_inetut
│ │ │ -00282000: 696c 732d 7465 6c6e 6574 207b 0a20 2070  ils-telnet {.  p
│ │ │ -00282010: 6163 6b61 6765 207b 2027 696e 6574 7574  ackage { 'inetut
│ │ │ -00282020: 696c 732d 7465 6c6e 6574 273a 0a20 2020  ils-telnet':.   
│ │ │ -00282030: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00282040: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -00282100: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00282110: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002821f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00282200: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00282250: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -00282260: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ -00282270: 456e 7375 7265 2069 6e65 7475 7469 6c73  Ensure inetutils
│ │ │ -00282280: 2d74 656c 6e65 7420 6973 2072 656d 6f76  -telnet is remov
│ │ │ -00282290: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002822a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002822b0: 2020 206e 616d 653a 2069 6e65 7475 7469     name: inetuti
│ │ │ -002822c0: 6c73 2d74 656c 6e65 740a 2020 2020 7374  ls-telnet.    st
│ │ │ -002822d0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002822e0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002822f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00282300: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00282310: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00282320: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -00282330: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00282340: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00282350: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -00282360: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.
Complexity:low
Disrup │ │ │ -002821d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002821e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00282220: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00282230: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +00281f20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00281f50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00281f70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00281f80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00281fa0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00281fb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00281fd0: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ +00281fe0: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ +00281ff0: 7265 2069 6e65 7475 7469 6c73 2d74 656c  re inetutils-tel
│ │ │ +00282000: 6e65 7420 6973 2072 656d 6f76 6564 270a  net is removed'.
│ │ │ +00282010: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00282020: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00282030: 616d 653a 2069 6e65 7475 7469 6c73 2d74  ame: inetutils-t
│ │ │ +00282040: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ +00282050: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +00282060: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00282070: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00282080: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00282090: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +002820a0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +002820b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002820c0: 0a20 202d 2070 6163 6b61 6765 5f69 6e65  .  - package_ine
│ │ │ +002820d0: 7475 7469 6c73 2d74 656c 6e65 745f 7265  tutils-telnet_re
│ │ │ +002820e0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediati │ │ │ +002821a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002821b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00282230: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00282240: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00282250: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00282290: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002822a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002822c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002822d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002822f0: 7265 6d6f 7665 5f69 6e65 7475 7469 6c73  remove_inetutils
│ │ │ +00282300: 2d74 656c 6e65 740a 0a63 6c61 7373 2072  -telnet..class r
│ │ │ +00282310: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +00282320: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ +00282330: 6765 207b 2027 696e 6574 7574 696c 732d  ge { 'inetutils-
│ │ │ +00282340: 7465 6c6e 6574 273a 0a20 2020 2065 6e73  telnet':.    ens
│ │ │ +00282350: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00282360: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
│ │ │ -00283540: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00283550: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -00283630: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00283640: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00283690: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002836a0: 7465 6c6e 6574 0a0a 636c 6173 7320 7265  telnet..class re
│ │ │ -002836b0: 6d6f 7665 5f74 656c 6e65 7420 7b0a 2020  move_telnet {.  
│ │ │ -002836c0: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ -002836d0: 7427 3a0a 2020 2020 656e 7375 7265 203d  t':.    ensure =
│ │ │ -002836e0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -002836f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -002837b0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -002837c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -00283840: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002838d0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002838e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -00283610: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00283620: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00283660: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00283670: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -00283850: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00283860: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002838a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002838b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -00283900: 5265 6d6f 7665 2074 656c 6e65 7420 436c  Remove telnet Cl
│ │ │ -00283910: 6965 6e74 733a 2045 6e73 7572 6520 7465  ients: Ensure te
│ │ │ -00283920: 6c6e 6574 2069 7320 7265 6d6f 7665 6427  lnet is removed'
│ │ │ -00283930: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00283940: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00283950: 6e61 6d65 3a20 7465 6c6e 6574 0a20 2020  name: telnet.   
│ │ │ -00283960: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00283970: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00283980: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ -00283990: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002839a0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002839b0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -002839c0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002839d0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002839e0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002839f0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -00283a00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00283a10: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00283a20: 655f 7465 6c6e 6574 5f72 656d 6f76 6564  e_telnet_removed
│ │ │ +00283540: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +00283550: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +00283560: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
Complexity: │ │ │ +00283630: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00283640: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +002836a0: 2074 656c 6e65 7420 436c 6965 6e74 733a   telnet Clients:
│ │ │ +002836b0: 2045 6e73 7572 6520 7465 6c6e 6574 2069   Ensure telnet i
│ │ │ +002836c0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002836d0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002836e0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002836f0: 7465 6c6e 6574 0a20 2020 2073 7461 7465  telnet.    state
│ │ │ +00283700: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00283710: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00283720: 312d 332e 312e 3133 0a20 202d 2050 4349  1-3.1.13.  - PCI
│ │ │ +00283730: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00283740: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +00283750: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00283760: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00283770: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00283780: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00283790: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +002837a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002837b0: 2020 2d20 7061 636b 6167 655f 7465 6c6e    - package_teln
│ │ │ +002837c0: 6574 5f72 656d 6f76 6564 0a3c 2f63 6f64  et_removed.
Reme │ │ │ +00283880: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00283890: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +00283610: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00283620: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00283660: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00283670: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +00283920: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00283950: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00283970: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00283980: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002839a0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002839b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002839d0: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ +002839e0: 6574 0a0a 636c 6173 7320 7265 6d6f 7665  et..class remove
│ │ │ +002839f0: 5f74 656c 6e65 7420 7b0a 2020 7061 636b  _telnet {.  pack
│ │ │ +00283a00: 6167 6520 7b20 2774 656c 6e65 7427 3a0a  age { 'telnet':.
│ │ │ +00283a10: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00283a20: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00283a30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -00285560: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00285570: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00285580: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00285620: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00285640: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00285670: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00285600: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00285610: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00285630: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00285650: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00285660: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002856a0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002856b0: 6465 2072 656d 6f76 655f 7466 7470 642d de remove_tftpd- │ │ │ -002856c0: 6870 610a 0a63 6c61 7373 2072 656d 6f76 hpa..class remov │ │ │ -002856d0: 655f 7466 7470 642d 6870 6120 7b0a 2020 e_tftpd-hpa {. │ │ │ -002856e0: 7061 636b 6167 6520 7b20 2774 6674 7064 package { 'tftpd │ │ │ -002856f0: 2d68 7061 273a 0a20 2020 2065 6e73 7572 -hpa':. ensur │ │ │ -00285700: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ -00285710: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00285720: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ -002857d0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002857e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002857f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00285890: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002858b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002858e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00285870: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00285880: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002858a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002858c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002858d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00285910: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00285920: 3a20 2755 6e69 6e73 7461 6c6c 2074 6674 : 'Uninstall tft │ │ │ -00285930: 7064 2d68 7061 2050 6163 6b61 6765 3a20 pd-hpa Package: │ │ │ -00285940: 456e 7375 7265 2074 6674 7064 2d68 7061 Ensure tftpd-hpa │ │ │ -00285950: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -00285960: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -00285970: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -00285980: 3a20 7466 7470 642d 6870 610a 2020 2020 : tftpd-hpa. │ │ │ -00285990: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -002859a0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002859b0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002859c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002859d0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -002859e0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -002859f0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -00285a00: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -00285a10: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ -00285a20: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -00285a30: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -00285a40: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00285a50: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00285a60: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00285a70: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00285a80: 655f 7466 7470 2d73 6572 7665 725f 7265 e_tftp-server_re │ │ │ -00285a90: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.


Comp │ │ │ +00285600: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00285610: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00285630: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00285650: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00285660: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002856a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002856b0: 653a 2027 556e 696e 7374 616c 6c20 7466  e: 'Uninstall tf
│ │ │ +002856c0: 7470 642d 6870 6120 5061 636b 6167 653a  tpd-hpa Package:
│ │ │ +002856d0: 2045 6e73 7572 6520 7466 7470 642d 6870   Ensure tftpd-hp
│ │ │ +002856e0: 6120 6973 2072 656d 6f76 6564 270a 2020  a is removed'.  
│ │ │ +002856f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00285700: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00285710: 653a 2074 6674 7064 2d68 7061 0a20 2020  e: tftpd-hpa.   
│ │ │ +00285720: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00285730: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00285740: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00285750: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00285760: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00285770: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00285780: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00285790: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002857a0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +002857b0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +002857c0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +002857d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002857e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002857f0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00285800: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00285810: 6765 5f74 6674 702d 7365 7276 6572 5f72  ge_tftp-server_r
│ │ │ +00285820: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediat │ │ │ +002858e0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002858f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00285930: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00285940: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00285950: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00285960: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00285970: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00285980: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00285990: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002859d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002859e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00285a00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00285a10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00285a30: 2072 656d 6f76 655f 7466 7470 642d 6870 remove_tftpd-hp │ │ │ +00285a40: 610a 0a63 6c61 7373 2072 656d 6f76 655f a..class remove_ │ │ │ +00285a50: 7466 7470 642d 6870 6120 7b0a 2020 7061 tftpd-hpa {. pa │ │ │ +00285a60: 636b 6167 6520 7b20 2774 6674 7064 2d68 ckage { 'tftpd-h │ │ │ +00285a70: 7061 273a 0a20 2020 2065 6e73 7572 6520 pa':. ensure │ │ │ +00285a80: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +00285a90: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Re │ │ │ -00286ee0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00286ef0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00286f00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00286f10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00286f20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00286f30: 7365 2220 6964 3d22 6964 3130 3632 223e se" id="id1062"> │ │ │ -00286f40: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00286f50: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00286f60: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00286f70: 2274 6674 7064 2d68 7061 225d 0a3c 2f63  "tftpd-hpa"].
│ │ │ -00286f90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00287030: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00287040: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00287050: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002870e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002870f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00287140: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00287180: 6c75 6465 2064 6973 6162 6c65 5f74 6674  lude disable_tft
│ │ │ -00287190: 7064 2d68 7061 0a0a 636c 6173 7320 6469  pd-hpa..class di
│ │ │ -002871a0: 7361 626c 655f 7466 7470 642d 6870 6120  sable_tftpd-hpa 
│ │ │ -002871b0: 7b0a 2020 7365 7276 6963 6520 7b27 7466  {.  service {'tf
│ │ │ -002871c0: 7470 642d 6870 6127 3a0a 2020 2020 656e  tpd-hpa':.    en
│ │ │ -002871d0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002871e0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002871f0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -00287200: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002872c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002872d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00287350: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00287390: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ -002870d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00287100: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00287110: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00287150: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00287160: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -00287360: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00287380: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002873b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002873d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00287400: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00287410: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00287420: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00287430: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00287440: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00287450: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00287460: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00287470: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00287480: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00287490: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -002874a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002874b0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -002874c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002874d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002874e0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002874f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00287500: 7365 7276 6963 655f 7466 7470 5f64 6973  service_tftp_dis
│ │ │ -00287510: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -00287520: 6973 6162 6c65 2074 6674 7064 2d68 7061  isable tftpd-hpa
│ │ │ -00287530: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -00287540: 6c65 2073 6572 7669 6365 2074 6674 7064  le service tftpd
│ │ │ -00287550: 2d68 7061 0a20 2062 6c6f 636b 3a0a 0a20  -hpa.  block:.. 
│ │ │ -00287560: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00287570: 2074 6674 7064 2d68 7061 2053 6572 7669   tftpd-hpa Servi
│ │ │ -00287580: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -00287590: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -002875a0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -002875b0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -002875c0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002875d0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002875e0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -002875f0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -00287600: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -00287610: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -00287620: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00287630: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -00287640: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -00287650: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00287660: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00287670: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00287680: 6d65 3a20 4469 7361 626c 6520 7466 7470  me: Disable tftp
│ │ │ -00287690: 642d 6870 6120 5365 7276 6963 6520 2d20  d-hpa Service - 
│ │ │ -002876a0: 456e 7375 7265 2074 6674 7064 2d68 7061  Ensure tftpd-hpa
│ │ │ -002876b0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002876c0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002876d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002876e0: 2020 2020 2020 6e61 6d65 3a20 7466 7470        name: tftp
│ │ │ -002876f0: 642d 6870 612e 7365 7276 6963 650a 2020  d-hpa.service.  
│ │ │ -00287700: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00287710: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -00287720: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -00287730: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00287740: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00287750: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00287760: 2069 7320 7365 6172 6368 2822 7466 7470   is search("tftp
│ │ │ -00287770: 642d 6870 612e 7365 7276 6963 6522 2c20  d-hpa.service", 
│ │ │ -00287780: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00287790: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002877a0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002877b0: 7466 7470 642d 6870 612e 736f 636b 6574  tftpd-hpa.socket
│ │ │ -002877c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002877d0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002877e0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002877f0: 756e 6974 2d66 696c 6573 2074 6674 7064  unit-files tftpd
│ │ │ -00287800: 2d68 7061 2e73 6f63 6b65 740a 2020 2020  -hpa.socket.    
│ │ │ -00287810: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -00287820: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -00287830: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00287840: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00287850: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00287860: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00287870: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00287880: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00287890: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002878a0: 6c65 2074 6674 7064 2d68 7061 2053 6572  le tftpd-hpa Ser
│ │ │ -002878b0: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -002878c0: 6f63 6b65 7420 7466 7470 642d 6870 610a  ocket tftpd-hpa.
│ │ │ -002878d0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002878e0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002878f0: 2020 206e 616d 653a 2074 6674 7064 2d68     name: tftpd-h
│ │ │ -00287900: 7061 2e73 6f63 6b65 740a 2020 2020 2020  pa.socket.      
│ │ │ -00287910: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00287920: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00287930: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -00287940: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00287950: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00287960: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00287970: 2069 7320 7365 6172 6368 2822 7466 7470   is search("tftp
│ │ │ -00287980: 642d 6870 612e 736f 636b 6574 222c 206d  d-hpa.socket", m
│ │ │ -00287990: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -002879a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002879b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002879c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002879d0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002879e0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002879f0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00287a00: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -00287a10: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -00287a20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00287a30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00287a40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00287a50: 0a20 202d 2073 6572 7669 6365 5f74 6674  .  - service_tft
│ │ │ -00287a60: 705f 6469 7361 626c 6564 0a20 202d 2073  p_disabled.  - s
│ │ │ -00287a70: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00287a80: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00287a90: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00287aa0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00287ab0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


│ │ │ +00286f90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00287030: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00287040: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00287050: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00287060: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00287070: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00287080: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00287090: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002870a0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002870b0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002870c0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +002870d0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +002870e0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +002870f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00287100: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00287110: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00287120: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00287130: 5f74 6674 705f 6469 7361 626c 6564 0a0a  _tftp_disabled..
│ │ │ +00287140: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00287150: 7466 7470 642d 6870 6120 5365 7276 6963  tftpd-hpa Servic
│ │ │ +00287160: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +00287170: 6963 6520 7466 7470 642d 6870 610a 2020  ice tftpd-hpa.  
│ │ │ +00287180: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00287190: 3a20 4469 7361 626c 6520 7466 7470 642d  : Disable tftpd-
│ │ │ +002871a0: 6870 6120 5365 7276 6963 6520 2d20 436f  hpa Service - Co
│ │ │ +002871b0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +002871c0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +002871d0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +002871e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002871f0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00287200: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00287210: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +00287220: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +00287230: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +00287240: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00287250: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00287260: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +00287270: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +00287280: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00287290: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002872a0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002872b0: 6162 6c65 2074 6674 7064 2d68 7061 2053  able tftpd-hpa S
│ │ │ +002872c0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +002872d0: 7466 7470 642d 6870 612e 7365 7276 6963  tftpd-hpa.servic
│ │ │ +002872e0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +002872f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00287300: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00287310: 616d 653a 2074 6674 7064 2d68 7061 2e73  ame: tftpd-hpa.s
│ │ │ +00287320: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +00287330: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00287340: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00287350: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00287360: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +00287370: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +00287380: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00287390: 7263 6828 2274 6674 7064 2d68 7061 2e73  rch("tftpd-hpa.s
│ │ │ +002873a0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +002873b0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +002873c0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +002873d0: 4578 6973 7473 202d 2074 6674 7064 2d68  Exists - tftpd-h
│ │ │ +002873e0: 7061 2e73 6f63 6b65 740a 2020 2020 616e  pa.socket.    an
│ │ │ +002873f0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00287400: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00287410: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00287420: 6c65 7320 7466 7470 642d 6870 612e 736f  les tftpd-hpa.so
│ │ │ +00287430: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +00287440: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +00287450: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +00287460: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +00287470: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +00287480: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00287490: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002874a0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002874b0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002874c0: 6d65 3a20 4469 7361 626c 6520 7466 7470  me: Disable tftp
│ │ │ +002874d0: 642d 6870 6120 5365 7276 6963 6520 2d20  d-hpa Service - 
│ │ │ +002874e0: 4469 7361 626c 6520 536f 636b 6574 2074  Disable Socket t
│ │ │ +002874f0: 6674 7064 2d68 7061 0a20 2020 2061 6e73  ftpd-hpa.    ans
│ │ │ +00287500: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00287510: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00287520: 3a20 7466 7470 642d 6870 612e 736f 636b  : tftpd-hpa.sock
│ │ │ +00287530: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00287540: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00287550: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00287560: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00287570: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00287580: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00287590: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002875a0: 7263 6828 2274 6674 7064 2d68 7061 2e73  rch("tftpd-hpa.s
│ │ │ +002875b0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +002875c0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +002875d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002875e0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002875f0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00287600: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00287610: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +00287620: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00287630: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +00287640: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00287650: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00287660: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +00287670: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00287680: 7276 6963 655f 7466 7470 5f64 6973 6162  rvice_tftp_disab
│ │ │ +00287690: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002876a0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002876b0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002876c0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002876d0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002876e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00287790: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002877a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00286f80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00286fb0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00286fc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00287000: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00287010: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00287880: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00287890: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +002878e0: 6e63 6c75 6465 2064 6973 6162 6c65 5f74  nclude disable_t
│ │ │ +002878f0: 6674 7064 2d68 7061 0a0a 636c 6173 7320  ftpd-hpa..class 
│ │ │ +00287900: 6469 7361 626c 655f 7466 7470 642d 6870  disable_tftpd-hp
│ │ │ +00287910: 6120 7b0a 2020 7365 7276 6963 6520 7b27  a {.  service {'
│ │ │ +00287920: 7466 7470 642d 6870 6127 3a0a 2020 2020  tftpd-hpa':.    
│ │ │ +00287930: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +00287940: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +00287950: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +00287960: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +00287a20: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00287a30: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00287a40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +00287a90: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00287aa0: 6173 6b65 6420 3d20 5b22 7466 7470 642d  asked = ["tftpd-
│ │ │ +00287ab0: 6870 6122 5d0a 3c2f 636f 6465 3e3c 2f70  hpa"].

Remediat │ │ │ -002888d0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002888e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00288920: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00288930: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00288940: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00288950: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00288960: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002889f0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00288a00: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ +00287860: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00287870: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002878b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +002878c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -00288970: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00288980: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002889c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002889d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -00288a20: 2072 656d 6f76 655f 7273 796e 630a 0a63 remove_rsync..c │ │ │ -00288a30: 6c61 7373 2072 656d 6f76 655f 7273 796e lass remove_rsyn │ │ │ -00288a40: 6320 7b0a 2020 7061 636b 6167 6520 7b20 c {. package { │ │ │ -00288a50: 2772 7379 6e63 273a 0a20 2020 2065 6e73 'rsync':. ens │ │ │ -00288a60: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ -00288a70: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remed │ │ │ -00288b30: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00288b40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -00288bd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00288c00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00288c20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00288c30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00288c50: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00288c60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00288c80: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2072  me: 'Uninstall r
│ │ │ -00288c90: 7379 6e63 2050 6163 6b61 6765 3a20 456e  sync Package: En
│ │ │ -00288ca0: 7375 7265 2072 7379 6e63 2069 7320 7265  sure rsync is re
│ │ │ -00288cb0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00288cc0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00288cd0: 3a0a 2020 2020 6e61 6d65 3a20 7273 796e  :.    name: rsyn
│ │ │ -00288ce0: 630a 2020 2020 7374 6174 653a 2061 6273  c.    state: abs
│ │ │ -00288cf0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -00288d00: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00288d10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00288d20: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00288d30: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00288d40: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00288d50: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00288d60: 2020 2d20 7061 636b 6167 655f 7273 796e    - package_rsyn
│ │ │ -00288d70: 635f 7265 6d6f 7665 640a 3c2f 636f 6465  c_removed.
< │ │ │ +002888f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00288900: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00288910: 7365 2220 6964 3d22 6964 3130 3637 223e se" id="id1067"> │ │ │ +00288920: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00288990: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002889b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002889e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00288970: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00288980: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002889c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002889d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00288a20: 2027 556e 696e 7374 616c 6c20 7273 796e 'Uninstall rsyn │ │ │ +00288a30: 6320 5061 636b 6167 653a 2045 6e73 7572 c Package: Ensur │ │ │ +00288a40: 6520 7273 796e 6320 6973 2072 656d 6f76 e rsync is remov │ │ │ +00288a50: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +00288a60: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +00288a70: 2020 206e 616d 653a 2072 7379 6e63 0a20 name: rsync. │ │ │ +00288a80: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ +00288a90: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ +00288aa0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00288ab0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00288ac0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00288ad0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00288ae0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00288af0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00288b00: 2070 6163 6b61 6765 5f72 7379 6e63 5f72 package_rsync_r │ │ │ +00288b10: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.

Remediat │ │ │ +00288bd0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00288be0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00288c20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00288c30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00288c40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00288c50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00288c60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00288c70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00288c80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00288cc0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00288cd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00288cf0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00288d00: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00288d20: 2072 656d 6f76 655f 7273 796e 630a 0a63 remove_rsync..c │ │ │ +00288d30: 6c61 7373 2072 656d 6f76 655f 7273 796e lass remove_rsyn │ │ │ +00288d40: 6320 7b0a 2020 7061 636b 6167 6520 7b20 c {. package { │ │ │ +00288d50: 2772 7379 6e63 273a 0a20 2020 2065 6e73 'rsync':. ens │ │ │ +00288d60: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ +00288d70: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedia │ │ │ -00289bb0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00289bc0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00289bd0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00289c10: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00289c20: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00289c30: 0a6d 6173 6b65 6420 3d20 5b22 7273 796e  .masked = ["rsyn
│ │ │ -00289c40: 6364 225d 0a3c 2f63 6f64 653e 3c2f 7072  cd"].
Remediatio │ │ │ -00289d00: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00289d10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00289d90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00289da0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00289dc0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00289dd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00289df0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00289e10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00289e40: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00289e50: 6162 6c65 5f72 7379 6e63 640a 0a63 6c61  able_rsyncd..cla
│ │ │ -00289e60: 7373 2064 6973 6162 6c65 5f72 7379 6e63  ss disable_rsync
│ │ │ -00289e70: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -00289e80: 7273 796e 6364 273a 0a20 2020 2065 6e61  rsyncd':.    ena
│ │ │ -00289e90: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -00289ea0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00289eb0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -00289ec0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00289ed0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00289f80: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00289f90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -0028a020: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0028a040: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0028a050: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0028a060: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0028a070: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0028a090: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0028a0c0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0028a0d0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0028a0e0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0028a0f0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0028a100: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0028a110: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0028a120: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0028a130: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -0028a140: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0028a150: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0028a160: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0028a170: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0028a180: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0028a190: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0028a1a0: 6572 7669 6365 5f72 7379 6e63 645f 6469  ervice_rsyncd_di
│ │ │ -0028a1b0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -0028a1c0: 456e 7375 7265 2072 7379 6e63 6420 7365  Ensure rsyncd se
│ │ │ -0028a1d0: 7276 6963 6520 6973 2064 6973 6162 6c65  rvice is disable
│ │ │ -0028a1e0: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ -0028a1f0: 6963 6520 7273 796e 6364 0a20 2062 6c6f  ice rsyncd.  blo
│ │ │ -0028a200: 636b 3a0a 0a20 202d 206e 616d 653a 2045  ck:..  - name: E
│ │ │ -0028a210: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ -0028a220: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ -0028a230: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -0028a240: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -0028a250: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ -0028a260: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -0028a270: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0028a280: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0028a290: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0028a2a0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -0028a2b0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0028a2c0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -0028a2d0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0028a2e0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0028a2f0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -0028a300: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -0028a310: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -0028a320: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -0028a330: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ -0028a340: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ -0028a350: 2064 6973 6162 6c65 6420 2d20 456e 7375   disabled - Ensu
│ │ │ -0028a360: 7265 2072 7379 6e63 642e 7365 7276 6963  re rsyncd.servic
│ │ │ -0028a370: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -0028a380: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0028a390: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -0028a3a0: 616d 653a 2072 7379 6e63 642e 7365 7276  ame: rsyncd.serv
│ │ │ -0028a3b0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -0028a3c0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -0028a3d0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0028a3e0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -0028a3f0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -0028a400: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -0028a410: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -0028a420: 2822 7273 796e 6364 2e73 6572 7669 6365  ("rsyncd.service
│ │ │ -0028a430: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0028a440: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -0028a450: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -0028a460: 202d 2072 7379 6e63 642e 736f 636b 6574   - rsyncd.socket
│ │ │ -0028a470: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0028a480: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0028a490: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0028a4a0: 756e 6974 2d66 696c 6573 2072 7379 6e63  unit-files rsync
│ │ │ -0028a4b0: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ -0028a4c0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -0028a4d0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -0028a4e0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0028a4f0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0028a500: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -0028a510: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -0028a520: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -0028a530: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -0028a540: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ -0028a550: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ -0028a560: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ -0028a570: 626c 6520 536f 636b 6574 2072 7379 6e63  ble Socket rsync
│ │ │ -0028a580: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0028a590: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0028a5a0: 2020 2020 206e 616d 653a 2072 7379 6e63       name: rsync
│ │ │ -0028a5b0: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0028a5c0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0028a5d0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0028a5e0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0028a5f0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0028a600: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0028a610: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0028a620: 6973 2073 6561 7263 6828 2272 7379 6e63  is search("rsync
│ │ │ -0028a630: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ -0028a640: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -0028a650: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ -0028a660: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0028a670: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0028a680: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0028a690: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0028a6a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0028a6b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0028a6c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0028a6d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0028a6e0: 2073 6572 7669 6365 5f72 7379 6e63 645f   service_rsyncd_
│ │ │ -0028a6f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0028a700: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0028a710: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0028a720: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0028a730: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0028a740: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

│ │ │ +00289bd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00289c70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00289c90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00289cc0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00289c50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00289c60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00289c80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00289ca0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00289cb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00289cf0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00289d00: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00289d10: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00289d20: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00289d30: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00289d40: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ +00289d50: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +00289d60: 4453 5376 342d 322e 322e 340a 2020 2d20 DSSv4-2.2.4. - │ │ │ +00289d70: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +00289d80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +00289d90: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +00289da0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +00289db0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +00289dc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00289dd0: 2020 2d20 7365 7276 6963 655f 7273 796e - service_rsyn │ │ │ +00289de0: 6364 5f64 6973 6162 6c65 640a 0a2d 206e cd_disabled..- n │ │ │ +00289df0: 616d 653a 2045 6e73 7572 6520 7273 796e ame: Ensure rsyn │ │ │ +00289e00: 6364 2073 6572 7669 6365 2069 7320 6469 cd service is di │ │ │ +00289e10: 7361 626c 6564 202d 2044 6973 6162 6c65 sabled - Disable │ │ │ +00289e20: 2073 6572 7669 6365 2072 7379 6e63 640a service rsyncd. │ │ │ +00289e30: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ +00289e40: 6d65 3a20 456e 7375 7265 2072 7379 6e63 me: Ensure rsync │ │ │ +00289e50: 6420 7365 7276 6963 6520 6973 2064 6973 d service is dis │ │ │ +00289e60: 6162 6c65 6420 2d20 436f 6c6c 6563 7420 abled - Collect │ │ │ +00289e70: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ +00289e80: 2050 7265 7365 6e74 2069 6e0a 2020 2020 Present in. │ │ │ +00289e90: 2020 7468 6520 5379 7374 656d 0a20 2020 the System. │ │ │ +00289ea0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00289eb0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ +00289ec0: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ +00289ed0: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ +00289ee0: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ +00289ef0: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ +00289f00: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +00289f10: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +00289f20: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ +00289f30: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ +00289f40: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +00289f50: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +00289f60: 650a 0a20 202d 206e 616d 653a 2045 6e73 e.. - name: Ens │ │ │ +00289f70: 7572 6520 7273 796e 6364 2073 6572 7669 ure rsyncd servi │ │ │ +00289f80: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ +00289f90: 2045 6e73 7572 6520 7273 796e 6364 2e73 Ensure rsyncd.s │ │ │ +00289fa0: 6572 7669 6365 2069 7320 4d61 736b 6564 ervice is Masked │ │ │ +00289fb0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +00289fc0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ +00289fd0: 2020 2020 6e61 6d65 3a20 7273 796e 6364 name: rsyncd │ │ │ +00289fe0: 2e73 6572 7669 6365 0a20 2020 2020 2073 .service. s │ │ │ +00289ff0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +0028a000: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +0028a010: 7365 0a20 2020 2020 206d 6173 6b65 643a se. masked: │ │ │ +0028a020: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ +0028a030: 7365 7276 6963 655f 6578 6973 7473 2e73 service_exists.s │ │ │ +0028a040: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ +0028a050: 6561 7263 6828 2272 7379 6e63 642e 7365 earch("rsyncd.se │ │ │ +0028a060: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ +0028a070: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ +0028a080: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ +0028a090: 7869 7374 7320 2d20 7273 796e 6364 2e73 xists - rsyncd.s │ │ │ +0028a0a0: 6f63 6b65 740a 2020 2020 616e 7369 626c ocket. ansibl │ │ │ +0028a0b0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ +0028a0c0: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ +0028a0d0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ +0028a0e0: 7273 796e 6364 2e73 6f63 6b65 740a 2020 rsyncd.socket. │ │ │ +0028a0f0: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ +0028a100: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ +0028a110: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +0028a120: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +0028a130: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ +0028a140: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ +0028a150: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +0028a160: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +0028a170: 650a 0a20 202d 206e 616d 653a 2045 6e73 e.. - name: Ens │ │ │ +0028a180: 7572 6520 7273 796e 6364 2073 6572 7669 ure rsyncd servi │ │ │ +0028a190: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ +0028a1a0: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ +0028a1b0: 7273 796e 6364 0a20 2020 2061 6e73 6962 rsyncd. ansib │ │ │ +0028a1c0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +0028a1d0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +0028a1e0: 7273 796e 6364 2e73 6f63 6b65 740a 2020 rsyncd.socket. │ │ │ +0028a1f0: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +0028a200: 7365 0a20 2020 2020 2073 7461 7465 3a20 se. state: │ │ │ +0028a210: 7374 6f70 7065 640a 2020 2020 2020 6d61 stopped. ma │ │ │ +0028a220: 736b 6564 3a20 7472 7565 0a20 2020 2077 sked: true. w │ │ │ +0028a230: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ +0028a240: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ +0028a250: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ +0028a260: 7273 796e 6364 2e73 6f63 6b65 7422 2c20 rsyncd.socket", │ │ │ +0028a270: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ +0028a280: 2020 7461 6773 3a0a 2020 2d20 5043 492d tags:. - PCI- │ │ │ +0028a290: 4453 5376 342d 322e 320a 2020 2d20 5043 DSSv4-2.2. - PC │ │ │ +0028a2a0: 492d 4453 5376 342d 322e 322e 340a 2020 I-DSSv4-2.2.4. │ │ │ +0028a2b0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +0028a2c0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +0028a2d0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +0028a2e0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +0028a2f0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +0028a300: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +0028a310: 640a 2020 2d20 7365 7276 6963 655f 7273 d. - service_rs │ │ │ +0028a320: 796e 6364 5f64 6973 6162 6c65 640a 2020 yncd_disabled. │ │ │ +0028a330: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +0028a340: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ +0028a350: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +0028a360: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +0028a370: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +0028a380: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +0028a430: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0028a440: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0028a450: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0028a4f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0028a510: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0028a540: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0028a4d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0028a4e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0028a500: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0028a520: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0028a530: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0028a580: 2064 6973 6162 6c65 5f72 7379 6e63 640a disable_rsyncd. │ │ │ +0028a590: 0a63 6c61 7373 2064 6973 6162 6c65 5f72 .class disable_r │ │ │ +0028a5a0: 7379 6e63 6420 7b0a 2020 7365 7276 6963 syncd {. servic │ │ │ +0028a5b0: 6520 7b27 7273 796e 6364 273a 0a20 2020 e {'rsyncd':. │ │ │ +0028a5c0: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ +0028a5d0: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ +0028a5e0: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ +0028a5f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediat │ │ │ +0028a6b0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0028a6c0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0028a6d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ +0028a710: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0028a720: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0028a730: 6d61 736b 6564 203d 205b 2272 7379 6e63  masked = ["rsync
│ │ │ +0028a740: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediat │ │ │ -0028bdc0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0028bdd0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0028be10: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0028be20: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0028be30: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0028be40: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0028be50: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0028be60: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0028be70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0028beb0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0028bec0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0028bee0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0028bef0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0028bf10: 2072 656d 6f76 655f 7371 7569 640a 0a63 remove_squid..c │ │ │ -0028bf20: 6c61 7373 2072 656d 6f76 655f 7371 7569 lass remove_squi │ │ │ -0028bf30: 6420 7b0a 2020 7061 636b 6167 6520 7b20 d {. package { │ │ │ -0028bf40: 2773 7175 6964 273a 0a20 2020 2065 6e73 'squid':. ens │ │ │ -0028bf50: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ -0028bf60: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remed │ │ │ -0028c020: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0028c030: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -0028c0c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0028c0f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0028c110: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0028c120: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0028c140: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0028c150: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0028c170: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2073  me: 'Uninstall s
│ │ │ -0028c180: 7175 6964 2050 6163 6b61 6765 3a20 456e  quid Package: En
│ │ │ -0028c190: 7375 7265 2073 7175 6964 2069 7320 7265  sure squid is re
│ │ │ -0028c1a0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0028c1b0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0028c1c0: 3a0a 2020 2020 6e61 6d65 3a20 7371 7569  :.    name: squi
│ │ │ -0028c1d0: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ -0028c1e0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0028c1f0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0028c200: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0028c210: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0028c220: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0028c230: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0028c240: 7061 636b 6167 655f 7371 7569 645f 7265  package_squid_re
│ │ │ -0028c250: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ -0028c260: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.
< │ │ │ +0028bde0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028bdf0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028be00: 7365 2220 6964 3d22 6964 3130 3736 223e se" id="id1076"> │ │ │ +0028be10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0028be80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0028bea0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0028bed0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0028be60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0028be70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0028beb0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0028bec0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0028bf10: 2027 556e 696e 7374 616c 6c20 7371 7569 'Uninstall squi │ │ │ +0028bf20: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ +0028bf30: 6520 7371 7569 6420 6973 2072 656d 6f76 e squid is remov │ │ │ +0028bf40: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +0028bf50: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +0028bf60: 2020 206e 616d 653a 2073 7175 6964 0a20 name: squid. │ │ │ +0028bf70: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ +0028bf80: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ +0028bf90: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +0028bfa0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +0028bfb0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +0028bfc0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ +0028bfd0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0028bfe0: 6b61 6765 5f73 7175 6964 5f72 656d 6f76 kage_squid_remov │ │ │ +0028bff0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73 ed. - unknown_s │ │ │ +0028c000: 6576 6572 6974 790a 3c2f 636f 6465 3e3c everity.< │ │ │ +0028c010: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +0028c0c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0028c0d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028c0e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028c0f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028c100: 7365 2220 6964 3d22 6964 3130 3737 223e se" id="id1077"> │ │ │ +0028c110: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0028c180: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0028c1a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0028c1d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0028c160: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0028c170: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0028c1b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0028c1c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0028c210: 6520 7265 6d6f 7665 5f73 7175 6964 0a0a e remove_squid.. │ │ │ +0028c220: 636c 6173 7320 7265 6d6f 7665 5f73 7175 class remove_squ │ │ │ +0028c230: 6964 207b 0a20 2070 6163 6b61 6765 207b id {. package { │ │ │ +0028c240: 2027 7371 7569 6427 3a0a 2020 2020 656e 'squid':. en │ │ │ +0028c250: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +0028c260: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Remediation OSB │ │ │ -0028d080: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0028d090: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -0028d0e0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0028d0f0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0028d100: 3d20 5b22 7371 7569 6422 5d0a 3c2f 636f  = ["squid"].
< │ │ │ -0028d120: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0028d130: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0028d140: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0028d150: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0028d160: 6431 3038 3122 2074 6162 696e 6465 783d d1081" tabindex= │ │ │ -0028d170: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0028d180: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0028d190: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0028d1a0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0028d1b0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0028d1c0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0028d1d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0028d1e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0028d280: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0028d2d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0028d260: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0028d290: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0028d2b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0028d2c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0028d2e0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0028d2f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0028d310: 7564 6520 6469 7361 626c 655f 7371 7569  ude disable_squi
│ │ │ -0028d320: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ -0028d330: 5f73 7175 6964 207b 0a20 2073 6572 7669  _squid {.  servi
│ │ │ -0028d340: 6365 207b 2773 7175 6964 273a 0a20 2020  ce {'squid':.   
│ │ │ -0028d350: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ -0028d360: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ -0028d370: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ -0028d380: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -0028d440: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0028d450: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0028d460: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0028d470: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0028d480: 7365 2220 6964 3d22 6964 3130 3832 223e se" id="id1082"> │ │ │ -0028d490: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0028d500: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0028d520: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0028d550: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0028d4e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0028d4f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0028d530: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0028d540: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0028d590: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0028d5a0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0028d5b0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0028d5c0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0028d5d0: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -0028d5e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0028d5f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0028d600: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0028d610: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0028d620: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -0028d630: 5f73 7175 6964 5f64 6973 6162 6c65 640a _squid_disabled. │ │ │ -0028d640: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665 - unknown_seve │ │ │ -0028d650: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469 rity..- name: Di │ │ │ -0028d660: 7361 626c 6520 5371 7569 6420 2d20 4469 sable Squid - Di │ │ │ -0028d670: 7361 626c 6520 7365 7276 6963 6520 7371 sable service sq │ │ │ -0028d680: 7569 640a 2020 626c 6f63 6b3a 0a0a 2020 uid. block:.. │ │ │ -0028d690: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -0028d6a0: 5371 7569 6420 2d20 436f 6c6c 6563 7420 Squid - Collect │ │ │ -0028d6b0: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ -0028d6c0: 2050 7265 7365 6e74 2069 6e20 7468 6520 Present in the │ │ │ -0028d6d0: 5379 7374 656d 0a20 2020 2061 6e73 6962 System. ansib │ │ │ -0028d6e0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -0028d6f0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -0028d700: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -0028d710: 202d 2d74 7970 6520 7365 7276 6963 650a --type service. │ │ │ -0028d720: 2020 2020 7265 6769 7374 6572 3a20 7365 register: se │ │ │ -0028d730: 7276 6963 655f 6578 6973 7473 0a20 2020 rvice_exists. │ │ │ -0028d740: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -0028d750: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -0028d760: 7768 656e 3a20 7365 7276 6963 655f 6578 when: service_ex │ │ │ -0028d770: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ -0028d780: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ -0028d790: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ -0028d7a0: 206e 616d 653a 2044 6973 6162 6c65 2053 name: Disable S │ │ │ -0028d7b0: 7175 6964 202d 2045 6e73 7572 6520 7371 quid - Ensure sq │ │ │ -0028d7c0: 7569 642e 7365 7276 6963 6520 6973 204d uid.service is M │ │ │ -0028d7d0: 6173 6b65 640a 2020 2020 616e 7369 626c asked. ansibl │ │ │ -0028d7e0: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ -0028d7f0: 643a 0a20 2020 2020 206e 616d 653a 2073 d:. name: s │ │ │ -0028d800: 7175 6964 2e73 6572 7669 6365 0a20 2020 quid.service. │ │ │ -0028d810: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ -0028d820: 640a 2020 2020 2020 656e 6162 6c65 643a d. enabled: │ │ │ -0028d830: 2066 616c 7365 0a20 2020 2020 206d 6173 false. mas │ │ │ -0028d840: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ -0028d850: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ -0028d860: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ -0028d870: 6973 2073 6561 7263 6828 2273 7175 6964 is search("squid │ │ │ -0028d880: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ -0028d890: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ -0028d8a0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ -0028d8b0: 7420 4578 6973 7473 202d 2073 7175 6964 t Exists - squid │ │ │ -0028d8c0: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -0028d8d0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -0028d8e0: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -0028d8f0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -0028d900: 7320 7371 7569 642e 736f 636b 6574 0a20 s squid.socket. │ │ │ -0028d910: 2020 2072 6567 6973 7465 723a 2073 6f63 register: soc │ │ │ -0028d920: 6b65 745f 6669 6c65 5f65 7869 7374 730a ket_file_exists. │ │ │ -0028d930: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ -0028d940: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ -0028d950: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f ed_when: socket_ │ │ │ -0028d960: 6669 6c65 5f65 7869 7374 732e 7263 206e file_exists.rc n │ │ │ -0028d970: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ -0028d980: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ -0028d990: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ -0028d9a0: 7361 626c 6520 5371 7569 6420 2d20 4469 sable Squid - Di │ │ │ -0028d9b0: 7361 626c 6520 536f 636b 6574 2073 7175 sable Socket squ │ │ │ -0028d9c0: 6964 0a20 2020 2061 6e73 6962 6c65 2e62 id. ansible.b │ │ │ -0028d9d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -0028d9e0: 2020 2020 2020 6e61 6d65 3a20 7371 7569 name: squi │ │ │ -0028d9f0: 642e 736f 636b 6574 0a20 2020 2020 2065 d.socket. e │ │ │ -0028da00: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ -0028da10: 2020 2020 7374 6174 653a 2073 746f 7070 state: stopp │ │ │ -0028da20: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ -0028da30: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ -0028da40: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -0028da50: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ -0028da60: 6973 2073 6561 7263 6828 2273 7175 6964 is search("squid │ │ │ -0028da70: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c .socket", multil │ │ │ -0028da80: 696e 653d 5472 7565 290a 2020 7461 6773 ine=True). tags │ │ │ -0028da90: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -0028daa0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0028dab0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0028dac0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0028dad0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0028dae0: 640a 2020 2d20 7365 7276 6963 655f 7371 d. - service_sq │ │ │ -0028daf0: 7569 645f 6469 7361 626c 6564 0a20 202d uid_disabled. - │ │ │ -0028db00: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -0028db10: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f _block. - unkno │ │ │ -0028db20: 776e 5f73 6576 6572 6974 790a 2020 7768 wn_severity. wh │ │ │ -0028db30: 656e 3a20 2820 2273 7175 6964 2220 696e en: ( "squid" in │ │ │ -0028db40: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0028db50: 6163 6b61 6765 7320 616e 6420 226c 696e ackages and "lin │ │ │ -0028db60: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ -0028db70: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -0028db80: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e es. ). │ │ │ +0028d070: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +0028d080: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0028d090: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

< │ │ │ +0028d110: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0028d130: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0028d180: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0028d1b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0028d1d0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0028d1e0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0028d1f0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0028d200: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0028d210: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0028d220: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0028d230: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0028d240: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0028d250: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0028d260: 2d20 7365 7276 6963 655f 7371 7569 645f  - service_squid_
│ │ │ +0028d270: 6469 7361 626c 6564 0a20 202d 2075 6e6b  disabled.  - unk
│ │ │ +0028d280: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d  nown_severity..-
│ │ │ +0028d290: 206e 616d 653a 2044 6973 6162 6c65 2053   name: Disable S
│ │ │ +0028d2a0: 7175 6964 202d 2044 6973 6162 6c65 2073  quid - Disable s
│ │ │ +0028d2b0: 6572 7669 6365 2073 7175 6964 0a20 2062  ervice squid.  b
│ │ │ +0028d2c0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0028d2d0: 2044 6973 6162 6c65 2053 7175 6964 202d   Disable Squid -
│ │ │ +0028d2e0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +0028d2f0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +0028d300: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +0028d310: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0028d320: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0028d330: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0028d340: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +0028d350: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +0028d360: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +0028d370: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0028d380: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0028d390: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0028d3a0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +0028d3b0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0028d3c0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0028d3d0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0028d3e0: 4469 7361 626c 6520 5371 7569 6420 2d20  Disable Squid - 
│ │ │ +0028d3f0: 456e 7375 7265 2073 7175 6964 2e73 6572  Ensure squid.ser
│ │ │ +0028d400: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0028d410: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0028d420: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0028d430: 2020 6e61 6d65 3a20 7371 7569 642e 7365    name: squid.se
│ │ │ +0028d440: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +0028d450: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +0028d460: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0028d470: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0028d480: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +0028d490: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +0028d4a0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0028d4b0: 6368 2822 7371 7569 642e 7365 7276 6963  ch("squid.servic
│ │ │ +0028d4c0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +0028d4d0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +0028d4e0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +0028d4f0: 7320 2d20 7371 7569 642e 736f 636b 6574  s - squid.socket
│ │ │ +0028d500: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0028d510: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0028d520: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0028d530: 756e 6974 2d66 696c 6573 2073 7175 6964  unit-files squid
│ │ │ +0028d540: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0028d550: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0028d560: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0028d570: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0028d580: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0028d590: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0028d5a0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0028d5b0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0028d5c0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0028d5d0: 206e 616d 653a 2044 6973 6162 6c65 2053   name: Disable S
│ │ │ +0028d5e0: 7175 6964 202d 2044 6973 6162 6c65 2053  quid - Disable S
│ │ │ +0028d5f0: 6f63 6b65 7420 7371 7569 640a 2020 2020  ocket squid.    
│ │ │ +0028d600: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0028d610: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0028d620: 616d 653a 2073 7175 6964 2e73 6f63 6b65  ame: squid.socke
│ │ │ +0028d630: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +0028d640: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +0028d650: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0028d660: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0028d670: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +0028d680: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +0028d690: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0028d6a0: 6368 2822 7371 7569 642e 736f 636b 6574  ch("squid.socket
│ │ │ +0028d6b0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0028d6c0: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ +0028d6d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0028d6e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0028d6f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0028d700: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0028d710: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0028d720: 6572 7669 6365 5f73 7175 6964 5f64 6973  ervice_squid_dis
│ │ │ +0028d730: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0028d740: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0028d750: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +0028d760: 7269 7479 0a20 2077 6865 6e3a 2028 2022  rity.  when: ( "
│ │ │ +0028d770: 7371 7569 6422 2069 6e20 616e 7369 626c  squid" in ansibl
│ │ │ +0028d780: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0028d790: 2061 6e64 2022 6c69 6e75 782d 6261 7365   and "linux-base
│ │ │ +0028d7a0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0028d7b0: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ +0028d7c0: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ).
< │ │ │ +0028d7d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +0028d880: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0028d890: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +0028d140: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0028d150: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0028d190: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0028d1a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0028d910: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0028d930: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0028d980: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0028d9b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0028d9d0: 655f 7371 7569 640a 0a63 6c61 7373 2064  e_squid..class d
│ │ │ +0028d9e0: 6973 6162 6c65 5f73 7175 6964 207b 0a20  isable_squid {. 
│ │ │ +0028d9f0: 2073 6572 7669 6365 207b 2773 7175 6964   service {'squid
│ │ │ +0028da00: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0028da10: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0028da20: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0028da30: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0028da50: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0028daf0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0028db00: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0028db10: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028db20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028db30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028db40: 7365 2220 6964 3d22 6964 3130 3832 223e se" id="id1082"> │ │ │ +0028db50: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0028db60: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0028db70: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0028db80: 2273 7175 6964 225d 0a3c 2f63 6f64 653e  "squid"].
│ │ │  0028db90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -0028f320: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0028f330: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +0028d920: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0028d940: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0028d990: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0028d9a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0028f3d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0028f470: 696e 636c 7564 6520 7265 6d6f 7665 5f73  include remove_s
│ │ │ -0028f480: 616d 6261 0a0a 636c 6173 7320 7265 6d6f  amba..class remo
│ │ │ -0028f490: 7665 5f73 616d 6261 207b 0a20 2070 6163  ve_samba {.  pac
│ │ │ -0028f4a0: 6b61 6765 207b 2027 7361 6d62 6127 3a0a  kage { 'samba':.
│ │ │ -0028f4b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0028f4c0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -0028f4d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0028f590: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0028f5a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0028f3c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0028f3f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0028f400: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0028f440: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0028f450: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0028f620: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0028f640: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0028f690: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0028f6c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0028f630: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0028f650: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0028f6a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0028f6b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0028f6e0: 7374 616c 6c20 5361 6d62 6120 5061 636b  stall Samba Pack
│ │ │ -0028f6f0: 6167 653a 2045 6e73 7572 6520 7361 6d62  age: Ensure samb
│ │ │ -0028f700: 6120 6973 2072 656d 6f76 6564 270a 2020  a is removed'.  
│ │ │ -0028f710: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0028f720: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0028f730: 653a 2073 616d 6261 0a20 2020 2073 7461  e: samba.    sta
│ │ │ -0028f740: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0028f750: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -0028f760: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0028f770: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0028f780: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0028f790: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0028f7a0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -0028f7b0: 616d 6261 5f72 656d 6f76 6564 0a20 202d  amba_removed.  -
│ │ │ -0028f7c0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -0028f7d0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +0028f320: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +0028f330: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +0028f410: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028f420: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028f470: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0028f480: 6c6c 2053 616d 6261 2050 6163 6b61 6765  ll Samba Package
│ │ │ +0028f490: 3a20 456e 7375 7265 2073 616d 6261 2069  : Ensure samba i
│ │ │ +0028f4a0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0028f4b0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0028f4c0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0028f4d0: 7361 6d62 610a 2020 2020 7374 6174 653a  samba.    state:
│ │ │ +0028f4e0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0028f4f0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0028f500: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0028f510: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0028f520: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0028f530: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0028f540: 2020 2d20 7061 636b 6167 655f 7361 6d62    - package_samb
│ │ │ +0028f550: 615f 7265 6d6f 7665 640a 2020 2d20 756e  a_removed.  - un
│ │ │ +0028f560: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +0028f570: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0028f620: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0028f630: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +0028f3f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028f400: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028f440: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028f450: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0028f710: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028f720: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028f770: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0028f780: 7361 6d62 610a 0a63 6c61 7373 2072 656d  samba..class rem
│ │ │ +0028f790: 6f76 655f 7361 6d62 6120 7b0a 2020 7061  ove_samba {.  pa
│ │ │ +0028f7a0: 636b 6167 6520 7b20 2773 616d 6261 273a  ckage { 'samba':
│ │ │ +0028f7b0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0028f7c0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0028f7d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0028f7e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Rem │ │ │ -00290560: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00290570: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00290580: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002905c0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -002905d0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -002905e0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -002905f0: 736d 6222 5d0a 3c2f 636f 6465 3e3c 2f70 smb"].

Remediati │ │ │ -002906b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002906c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -00290740: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002907d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ +0028f6f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028f700: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028f740: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028f750: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -00290750: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00290760: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002907a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002907b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -002907f0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00290800: 7361 626c 655f 736d 620a 0a63 6c61 7373  sable_smb..class
│ │ │ -00290810: 2064 6973 6162 6c65 5f73 6d62 207b 0a20   disable_smb {. 
│ │ │ -00290820: 2073 6572 7669 6365 207b 2773 6d62 273a   service {'smb':
│ │ │ -00290830: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00290840: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -00290850: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -00290860: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -00290920: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00290930: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00290940: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002909e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00290a30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00290a70: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00290a80: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00290a90: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00290aa0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00290ab0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00290ac0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00290ad0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00290ae0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00290af0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -00290b00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00290b10: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00290b20: 7276 6963 655f 736d 625f 6469 7361 626c  rvice_smb_disabl
│ │ │ -00290b30: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -00290b40: 626c 6520 5361 6d62 6120 2d20 4469 7361  ble Samba - Disa
│ │ │ -00290b50: 626c 6520 7365 7276 6963 6520 736d 620a  ble service smb.
│ │ │ -00290b60: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -00290b70: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ -00290b80: 6120 2d20 436f 6c6c 6563 7420 7379 7374  a - Collect syst
│ │ │ -00290b90: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00290ba0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -00290bb0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -00290bc0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -00290bd0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -00290be0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -00290bf0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -00290c00: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -00290c10: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -00290c20: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00290c30: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00290c40: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00290c50: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00290c60: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00290c70: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00290c80: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ -00290c90: 202d 2045 6e73 7572 6520 736d 622e 7365   - Ensure smb.se
│ │ │ -00290ca0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00290cb0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00290cc0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00290cd0: 2020 206e 616d 653a 2073 6d62 2e73 6572     name: smb.ser
│ │ │ -00290ce0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -00290cf0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00290d00: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00290d10: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00290d20: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -00290d30: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -00290d40: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00290d50: 6828 2273 6d62 2e73 6572 7669 6365 222c  h("smb.service",
│ │ │ -00290d60: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00290d70: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -00290d80: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -00290d90: 2073 6d62 2e73 6f63 6b65 740a 2020 2020   smb.socket.    
│ │ │ -00290da0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00290db0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00290dc0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00290dd0: 6669 6c65 7320 736d 622e 736f 636b 6574  files smb.socket
│ │ │ -00290de0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -00290df0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00290e00: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00290e10: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00290e20: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -00290e30: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -00290e40: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00290e50: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00290e60: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00290e70: 4469 7361 626c 6520 5361 6d62 6120 2d20  Disable Samba - 
│ │ │ -00290e80: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ -00290e90: 6d62 0a20 2020 2061 6e73 6962 6c65 2e62  mb.    ansible.b
│ │ │ -00290ea0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00290eb0: 2020 2020 2020 6e61 6d65 3a20 736d 622e        name: smb.
│ │ │ -00290ec0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -00290ed0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00290ee0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00290ef0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00290f00: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00290f10: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00290f20: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00290f30: 2073 6561 7263 6828 2273 6d62 2e73 6f63   search("smb.soc
│ │ │ -00290f40: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -00290f50: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -00290f60: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00290f70: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00290f80: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00290f90: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -00290fa0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00290fb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00290fc0: 202d 2073 6572 7669 6365 5f73 6d62 5f64   - service_smb_d
│ │ │ -00290fd0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -00290fe0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -00290ff0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -00291000: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00291010: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00291020: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00290560: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +00290570: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00290580: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ -002909c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002909f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00290a10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00290a20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00290a40: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00290a50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00290610: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00290620: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00290670: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002906b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002906c0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002906d0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002906e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002906f0: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +00290700: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00290710: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00290720: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00290730: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +00290740: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00290750: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00290760: 6572 7669 6365 5f73 6d62 5f64 6973 6162  ervice_smb_disab
│ │ │ +00290770: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +00290780: 6162 6c65 2053 616d 6261 202d 2044 6973  able Samba - Dis
│ │ │ +00290790: 6162 6c65 2073 6572 7669 6365 2073 6d62  able service smb
│ │ │ +002907a0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +002907b0: 616d 653a 2044 6973 6162 6c65 2053 616d  ame: Disable Sam
│ │ │ +002907c0: 6261 202d 2043 6f6c 6c65 6374 2073 7973  ba - Collect sys
│ │ │ +002907d0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +002907e0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +002907f0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +00290800: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00290810: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00290820: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +00290830: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +00290840: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +00290850: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +00290860: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00290870: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00290880: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00290890: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002908a0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002908b0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002908c0: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ +002908d0: 6120 2d20 456e 7375 7265 2073 6d62 2e73  a - Ensure smb.s
│ │ │ +002908e0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +002908f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00290900: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00290910: 2020 2020 6e61 6d65 3a20 736d 622e 7365      name: smb.se
│ │ │ +00290920: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +00290930: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00290940: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00290950: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00290960: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +00290970: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +00290980: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00290990: 6368 2822 736d 622e 7365 7276 6963 6522  ch("smb.service"
│ │ │ +002909a0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002909b0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +002909c0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +002909d0: 2d20 736d 622e 736f 636b 6574 0a20 2020  - smb.socket.   
│ │ │ +002909e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002909f0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00290a00: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00290a10: 2d66 696c 6573 2073 6d62 2e73 6f63 6b65  -files smb.socke
│ │ │ +00290a20: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00290a30: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00290a40: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00290a50: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00290a60: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00290a70: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00290a80: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00290a90: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00290aa0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00290ab0: 2044 6973 6162 6c65 2053 616d 6261 202d   Disable Samba -
│ │ │ +00290ac0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +00290ad0: 736d 620a 2020 2020 616e 7369 626c 652e  smb.    ansible.
│ │ │ +00290ae0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00290af0: 0a20 2020 2020 206e 616d 653a 2073 6d62  .      name: smb
│ │ │ +00290b00: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +00290b10: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00290b20: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00290b30: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00290b40: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00290b50: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00290b60: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00290b70: 7320 7365 6172 6368 2822 736d 622e 736f  s search("smb.so
│ │ │ +00290b80: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00290b90: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00290ba0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00290bb0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00290bc0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00290bd0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00290be0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00290bf0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00290c00: 2020 2d20 7365 7276 6963 655f 736d 625f    - service_smb_
│ │ │ +00290c10: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00290c20: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00290c30: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +00290c40: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00290c50: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00290c60: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00290d20: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00290d30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +00290df0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00290e00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +00290600: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00290630: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00290640: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00290680: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00290690: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +00290dc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00290de0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00290e10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00290e30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +00290e70: 626c 655f 736d 620a 0a63 6c61 7373 2064  ble_smb..class d
│ │ │ +00290e80: 6973 6162 6c65 5f73 6d62 207b 0a20 2073  isable_smb {.  s
│ │ │ +00290e90: 6572 7669 6365 207b 2773 6d62 273a 0a20  ervice {'smb':. 
│ │ │ +00290ea0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00290eb0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +00290ec0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +00290ed0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00290ee0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00290f90: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00290fa0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00290fb0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +00291000: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00291010: 5d0a 6d61 736b 6564 203d 205b 2273 6d62  ].masked = ["smb
│ │ │ +00291020: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00291030: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remedia │ │ │ -00292710: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00292720: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00292730: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00292740: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00292750: 7365 2220 6964 3d22 6964 3130 3934 223e se" id="id1094"> │ │ │ -00292760: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002927d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002927f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00292820: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002927b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002927c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00292800: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00292810: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -00292860: 6520 7265 6d6f 7665 5f6e 6574 2d73 6e6d e remove_net-snm │ │ │ -00292870: 700a 0a63 6c61 7373 2072 656d 6f76 655f p..class remove_ │ │ │ -00292880: 6e65 742d 736e 6d70 207b 0a20 2070 6163 net-snmp {. pac │ │ │ -00292890: 6b61 6765 207b 2027 6e65 742d 736e 6d70 kage { 'net-snmp │ │ │ -002928a0: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -002928b0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -002928c0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -00292980: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00292990: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00292a10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00292a20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00292a40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00292a50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00292a70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00292a90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00292ac0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00292ad0: 6e69 6e73 7461 6c6c 206e 6574 2d73 6e6d  ninstall net-snm
│ │ │ -00292ae0: 7020 5061 636b 6167 653a 2045 6e73 7572  p Package: Ensur
│ │ │ -00292af0: 6520 6e65 742d 736e 6d70 2069 7320 7265  e net-snmp is re
│ │ │ -00292b00: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00292b10: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00292b20: 3a0a 2020 2020 6e61 6d65 3a20 6e65 742d  :.    name: net-
│ │ │ -00292b30: 736e 6d70 0a20 2020 2073 7461 7465 3a20  snmp.    state: 
│ │ │ -00292b40: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -00292b50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00292b60: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00292b70: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -00292b80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00292b90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00292ba0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00292bb0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00292bc0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00292bd0: 5f6e 6574 2d73 6e6d 705f 7265 6d6f 7665  _net-snmp_remove
│ │ │ -00292be0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -00292bf0: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.
│ │ │ +00292730: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002927d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002927f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00292820: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002927b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002927c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002927e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00292800: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00292810: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00292850: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00292860: 3a20 2755 6e69 6e73 7461 6c6c 206e 6574 : 'Uninstall net │ │ │ +00292870: 2d73 6e6d 7020 5061 636b 6167 653a 2045 -snmp Package: E │ │ │ +00292880: 6e73 7572 6520 6e65 742d 736e 6d70 2069 nsure net-snmp i │ │ │ +00292890: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ +002928a0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +002928b0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +002928c0: 6e65 742d 736e 6d70 0a20 2020 2073 7461 net-snmp. sta │ │ │ +002928d0: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ +002928e0: 733a 0a20 202d 2050 4349 2d44 5353 7634 s:. - PCI-DSSv4 │ │ │ +002928f0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353 -2.2. - PCI-DSS │ │ │ +00292900: 7634 2d32 2e32 2e34 0a20 202d 2064 6973 v4-2.2.4. - dis │ │ │ +00292910: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00292920: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00292930: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00292940: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ +00292950: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +00292960: 6b61 6765 5f6e 6574 2d73 6e6d 705f 7265 kage_net-snmp_re │ │ │ +00292970: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77 moved. - unknow │ │ │ +00292980: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64 n_severity.
Reme │ │ │ +00292a40: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00292a50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +00292ae0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00292b10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00292b30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00292b40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00292b60: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00292b70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00292b90: 6c75 6465 2072 656d 6f76 655f 6e65 742d  lude remove_net-
│ │ │ +00292ba0: 736e 6d70 0a0a 636c 6173 7320 7265 6d6f  snmp..class remo
│ │ │ +00292bb0: 7665 5f6e 6574 2d73 6e6d 7020 7b0a 2020  ve_net-snmp {.  
│ │ │ +00292bc0: 7061 636b 6167 6520 7b20 276e 6574 2d73  package { 'net-s
│ │ │ +00292bd0: 6e6d 7027 3a0a 2020 2020 656e 7375 7265  nmp':.    ensure
│ │ │ +00292be0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00292bf0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediation O │ │ │ -00293a20: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00293a30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00293a40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -00293a80: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00293a90: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00293aa0: 6420 3d20 5b22 736e 6d70 6422 5d0a 3c2f  d = ["snmpd"].
R │ │ │ -00293b60: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00293b70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -00293c10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00293cb0: 636c 7564 6520 6469 7361 626c 655f 736e  clude disable_sn
│ │ │ -00293cc0: 6d70 640a 0a63 6c61 7373 2064 6973 6162  mpd..class disab
│ │ │ -00293cd0: 6c65 5f73 6e6d 7064 207b 0a20 2073 6572  le_snmpd {.  ser
│ │ │ -00293ce0: 7669 6365 207b 2773 6e6d 7064 273a 0a20  vice {'snmpd':. 
│ │ │ -00293cf0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00293d00: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -00293d10: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -00293d20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00293d30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00293de0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00293df0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00293c00: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00293c30: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00293c40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00293c80: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00293c90: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -00293e80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00293e90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00293eb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00293ed0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00293ee0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00293f20: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00293f30: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00293f40: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00293f50: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00293f60: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00293f70: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00293f80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00293f90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00293fa0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00293fb0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -00293fc0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00293fd0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00293fe0: 6963 655f 736e 6d70 645f 6469 7361 626c  ice_snmpd_disabl
│ │ │ -00293ff0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -00294000: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ -00294010: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -00294020: 6963 6520 736e 6d70 640a 2020 626c 6f63  ice snmpd.  bloc
│ │ │ -00294030: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -00294040: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ -00294050: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -00294060: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00294070: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -00294080: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -00294090: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002940a0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002940b0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002940c0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002940d0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002940e0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002940f0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00294100: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00294110: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00294120: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00294130: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00294140: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00294150: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ -00294160: 7064 2053 6572 7669 6365 202d 2045 6e73  pd Service - Ens
│ │ │ -00294170: 7572 6520 736e 6d70 642e 7365 7276 6963  ure snmpd.servic
│ │ │ -00294180: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -00294190: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002941a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002941b0: 616d 653a 2073 6e6d 7064 2e73 6572 7669  ame: snmpd.servi
│ │ │ -002941c0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -002941d0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -002941e0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002941f0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00294200: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00294210: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00294220: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00294230: 2273 6e6d 7064 2e73 6572 7669 6365 222c  "snmpd.service",
│ │ │ -00294240: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00294250: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -00294260: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -00294270: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ -00294280: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00294290: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002942a0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002942b0: 742d 6669 6c65 7320 736e 6d70 642e 736f  t-files snmpd.so
│ │ │ -002942c0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -002942d0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -002942e0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002942f0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00294300: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00294310: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00294320: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00294330: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00294340: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00294350: 6d65 3a20 4469 7361 626c 6520 736e 6d70  me: Disable snmp
│ │ │ -00294360: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -00294370: 626c 6520 536f 636b 6574 2073 6e6d 7064  ble Socket snmpd
│ │ │ -00294380: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00294390: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002943a0: 2020 2020 6e61 6d65 3a20 736e 6d70 642e      name: snmpd.
│ │ │ -002943b0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002943c0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002943d0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002943e0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002943f0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00294400: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00294410: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00294420: 2073 6561 7263 6828 2273 6e6d 7064 2e73   search("snmpd.s
│ │ │ -00294430: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00294440: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00294450: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00294460: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00294470: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00294480: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00294490: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -002944a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002944b0: 0a20 202d 2073 6572 7669 6365 5f73 6e6d  .  - service_snm
│ │ │ -002944c0: 7064 5f64 6973 6162 6c65 640a 2020 2d20  pd_disabled.  - 
│ │ │ -002944d0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002944e0: 626c 6f63 6b0a 2020 7768 656e 3a20 2820  block.  when: ( 
│ │ │ -002944f0: 2273 6e6d 7064 2220 696e 2061 6e73 6962  "snmpd" in ansib
│ │ │ -00294500: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00294510: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ -00294520: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00294530: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ -00294540: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +00293a10: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +00293a20: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00293a30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +00293ac0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00293ae0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00293b00: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00293b30: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00293b40: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00293b70: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00293b80: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00293b90: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00293ba0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00293bb0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00293bc0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00293bd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00293be0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00293bf0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00293c00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00293c10: 0a20 202d 2073 6572 7669 6365 5f73 6e6d  .  - service_snm
│ │ │ +00293c20: 7064 5f64 6973 6162 6c65 640a 0a2d 206e  pd_disabled..- n
│ │ │ +00293c30: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ +00293c40: 7064 2053 6572 7669 6365 202d 2044 6973  pd Service - Dis
│ │ │ +00293c50: 6162 6c65 2073 6572 7669 6365 2073 6e6d  able service snm
│ │ │ +00293c60: 7064 0a20 2062 6c6f 636b 3a0a 0a20 202d  pd.  block:..  -
│ │ │ +00293c70: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +00293c80: 6e6d 7064 2053 6572 7669 6365 202d 2043  nmpd Service - C
│ │ │ +00293c90: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +00293ca0: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +00293cb0: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +00293cc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00293cd0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00293ce0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00293cf0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00293d00: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00293d10: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00293d20: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00293d30: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00293d40: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +00293d50: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +00293d60: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00293d70: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00293d80: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00293d90: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ +00293da0: 6963 6520 2d20 456e 7375 7265 2073 6e6d  ice - Ensure snm
│ │ │ +00293db0: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ +00293dc0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +00293dd0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00293de0: 3a0a 2020 2020 2020 6e61 6d65 3a20 736e  :.      name: sn
│ │ │ +00293df0: 6d70 642e 7365 7276 6963 650a 2020 2020  mpd.service.    
│ │ │ +00293e00: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00293e10: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00293e20: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +00293e30: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00293e40: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00293e50: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00293e60: 7320 7365 6172 6368 2822 736e 6d70 642e  s search("snmpd.
│ │ │ +00293e70: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +00293e80: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +00293e90: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +00293ea0: 2045 7869 7374 7320 2d20 736e 6d70 642e   Exists - snmpd.
│ │ │ +00293eb0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +00293ec0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00293ed0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00293ee0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00293ef0: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ +00293f00: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +00293f10: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +00293f20: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00293f30: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00293f40: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +00293f50: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +00293f60: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00293f70: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +00293f80: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +00293f90: 6162 6c65 2073 6e6d 7064 2053 6572 7669  able snmpd Servi
│ │ │ +00293fa0: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ +00293fb0: 6b65 7420 736e 6d70 640a 2020 2020 616e  ket snmpd.    an
│ │ │ +00293fc0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00293fd0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00293fe0: 653a 2073 6e6d 7064 2e73 6f63 6b65 740a  e: snmpd.socket.
│ │ │ +00293ff0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00294000: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +00294010: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00294020: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00294030: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +00294040: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +00294050: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00294060: 2822 736e 6d70 642e 736f 636b 6574 222c  ("snmpd.socket",
│ │ │ +00294070: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +00294080: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00294090: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002940a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002940b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002940c0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002940d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002940e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002940f0: 7276 6963 655f 736e 6d70 645f 6469 7361  rvice_snmpd_disa
│ │ │ +00294100: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00294110: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00294120: 2077 6865 6e3a 2028 2022 736e 6d70 6422   when: ( "snmpd"
│ │ │ +00294130: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00294140: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ +00294150: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00294160: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00294170: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
< │ │ │ +00294190: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002941a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002941b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002941c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002941d0: 6431 3039 3922 2074 6162 696e 6465 783d d1099" tabindex= │ │ │ +002941e0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002941f0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00294200: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00294210: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00294220: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00294230: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00294240: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00294250: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002942f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00294340: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +002942d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00294300: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00294320: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00294330: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00294350: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00294360: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00294380: 7564 6520 6469 7361 626c 655f 736e 6d70  ude disable_snmp
│ │ │ +00294390: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +002943a0: 5f73 6e6d 7064 207b 0a20 2073 6572 7669  _snmpd {.  servi
│ │ │ +002943b0: 6365 207b 2773 6e6d 7064 273a 0a20 2020  ce {'snmpd':.   
│ │ │ +002943c0: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +002943d0: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +002943e0: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +002943f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ +002944b0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +002944c0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +002944d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ +00294510: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00294520: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00294530: 6d61 736b 6564 203d 205b 2273 6e6d 7064  masked = ["snmpd
│ │ │ +00294540: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00294550: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -002bd750: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002bd760: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
...include s
│ │ │ -002bd7b0: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ -002bd7c0: 6572 6d73 0a0a 636c 6173 7320 7373 685f  erms..class ssh_
│ │ │ -002bd7d0: 7072 6976 6174 655f 6b65 795f 7065 726d  private_key_perm
│ │ │ -002bd7e0: 7320 7b0a 2020 6578 6563 207b 2027 7373  s {.  exec { 'ss
│ │ │ -002bd7f0: 6864 5f70 7269 765f 6b65 7927 3a0a 2020  hd_priv_key':.  
│ │ │ -002bd800: 2020 636f 6d6d 616e 6420 3d26 6774 3b20    command => 
│ │ │ -002bd810: 2263 686d 6f64 2030 3630 3020 2f65 7463  "chmod 0600 /etc
│ │ │ -002bd820: 2f73 7368 2f2a 5f6b 6579 222c 0a20 2020  /ssh/*_key",.   
│ │ │ -002bd830: 2070 6174 6820 2020 203d 2667 743b 2027   path    => '
│ │ │ -002bd840: 2f62 696e 3a2f 7573 722f 6269 6e27 0a20  /bin:/usr/bin'. 
│ │ │ -002bd850: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -002bd910: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002bd920: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002bd9a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002bd9b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002bd9c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002bda00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002bda10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002bda30: 7464 3e63 6f6e 6669 6775 7265 3c2f 7464 td>configure

- name: │ │ │ -002bda60: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -002bda70: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -002bda80: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002bda90: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002bdaa0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002bdab0: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002bdac0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002bdad0: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002bdae0: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002bdaf0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002bdb00: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002bdb10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002bdb20: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002bdb30: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002bdb40: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002bdb50: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002bdb60: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002bdb70: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002bdb80: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002bdb90: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002bdba0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002bdbb0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002bdbc0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002bdbd0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002bdbe0: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20 needed..- name: │ │ │ -002bdbf0: 4669 6e64 2072 6f6f 743a 726f 6f74 2d6f Find root:root-o │ │ │ -002bdc00: 776e 6564 206b 6579 730a 2020 616e 7369 wned keys. ansi │ │ │ -002bdc10: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -002bdc20: 616e 643a 2066 696e 6420 2d48 202f 6574 and: find -H /et │ │ │ -002bdc30: 632f 7373 682f 202d 6d61 7864 6570 7468 c/ssh/ -maxdepth │ │ │ -002bdc40: 2031 202d 7573 6572 2072 6f6f 7420 2d72 1 -user root -r │ │ │ -002bdc50: 6567 6578 2022 2e2a 5f6b 6579 2422 0a20 egex ".*_key$". │ │ │ -002bdc60: 2020 202d 7479 7065 2066 202d 6772 6f75 -type f -grou │ │ │ -002bdc70: 7020 726f 6f74 202d 7065 726d 202f 752b p root -perm /u+ │ │ │ -002bdc80: 7873 2c67 2b78 7772 732c 6f2b 7877 7274 xs,g+xwrs,o+xwrt │ │ │ -002bdc90: 0a20 2072 6567 6973 7465 723a 2072 6f6f . register: roo │ │ │ -002bdca0: 745f 6f77 6e65 645f 6b65 7973 0a20 2063 t_owned_keys. c │ │ │ -002bdcb0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c hanged_when: fal │ │ │ -002bdcc0: 7365 0a20 2066 6169 6c65 645f 7768 656e se. failed_when │ │ │ -002bdcd0: 3a20 6661 6c73 650a 2020 6368 6563 6b5f : false. check_ │ │ │ -002bdce0: 6d6f 6465 3a20 6661 6c73 650a 2020 7768 mode: false. wh │ │ │ -002bdcf0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002bdd00: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -002bdd10: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -002bdd20: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002bdd30: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002bdd40: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002bdd50: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002bdd60: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002bdd70: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002bdd80: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002bdd90: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002bdda0: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002bddb0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002bddc0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002bddd0: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002bdde0: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002bddf0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002bde00: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002bde10: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002bde20: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002bde30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002bde40: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002bde50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002bde60: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20 needed..- name: │ │ │ -002bde70: 5365 7420 7065 726d 6973 7369 6f6e 7320 Set permissions │ │ │ -002bde80: 666f 7220 726f 6f74 3a72 6f6f 742d 6f77 for root:root-ow │ │ │ -002bde90: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ -002bdea0: 6c65 2e62 7569 6c74 696e 2e66 696c 653a le.builtin.file: │ │ │ -002bdeb0: 0a20 2020 2070 6174 683a 2027 7b7b 2069 . path: '{{ i │ │ │ -002bdec0: 7465 6d20 7d7d 270a 2020 2020 6d6f 6465 tem }}'. mode │ │ │ -002bded0: 3a20 752d 7873 2c67 2d78 7772 732c 6f2d : u-xs,g-xwrs,o- │ │ │ -002bdee0: 7877 7274 0a20 2020 2073 7461 7465 3a20 xwrt. state: │ │ │ -002bdef0: 6669 6c65 0a20 2077 6974 685f 6974 656d file. with_item │ │ │ -002bdf00: 733a 0a20 202d 2027 7b7b 2072 6f6f 745f s:. - '{{ root_ │ │ │ -002bdf10: 6f77 6e65 645f 6b65 7973 2e73 7464 6f75 owned_keys.stdou │ │ │ -002bdf20: 745f 6c69 6e65 7320 7d7d 270a 2020 7768 t_lines }}'. wh │ │ │ -002bdf30: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002bdf40: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -002bdf50: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -002bdf60: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002bdf70: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002bdf80: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002bdf90: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002bdfa0: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002bdfb0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002bdfc0: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002bdfd0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002bdfe0: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002bdff0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002be000: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002be010: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002be020: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002be030: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002be040: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002be050: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002be060: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002be070: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002be080: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002be090: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002be0a0: 6e65 6564 6564 0a3c 2f63 6f64 653e 3c2f needed.Remediation An │ │ │ +002bd750: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002bd760: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

│ │ │ +002bd7e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002bd800: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002bd850: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472
Complexity:< │ │ │ +002bd7f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002bd810: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002bd860: 6174 6567 793a 3c2f 7468 3e3c 7464 3e63 ategy:c │ │ │ +002bd870: 6f6e 6669 6775 7265 3c2f 7464 3e3c 2f74 onfigure
<
│ │ │ +002bd890: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002bd8a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002bd8b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002bd8c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002bd8d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002bd8e0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +002bd8f0: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ +002bd900: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ +002bd910: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +002bd920: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ +002bd930: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ +002bd940: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +002bd950: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +002bd960: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ +002bd970: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002bd980: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +002bd990: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ +002bd9a0: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ +002bd9b0: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ +002bd9c0: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ +002bd9d0: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ +002bd9e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002bd9f0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002bda00: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002bda10: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002bda20: 6564 0a0a 2d20 6e61 6d65 3a20 4669 6e64  ed..- name: Find
│ │ │ +002bda30: 2072 6f6f 743a 726f 6f74 2d6f 776e 6564   root:root-owned
│ │ │ +002bda40: 206b 6579 730a 2020 616e 7369 626c 652e   keys.  ansible.
│ │ │ +002bda50: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002bda60: 2066 696e 6420 2d48 202f 6574 632f 7373   find -H /etc/ss
│ │ │ +002bda70: 682f 202d 6d61 7864 6570 7468 2031 202d  h/ -maxdepth 1 -
│ │ │ +002bda80: 7573 6572 2072 6f6f 7420 2d72 6567 6578  user root -regex
│ │ │ +002bda90: 2022 2e2a 5f6b 6579 2422 0a20 2020 202d   ".*_key$".    -
│ │ │ +002bdaa0: 7479 7065 2066 202d 6772 6f75 7020 726f  type f -group ro
│ │ │ +002bdab0: 6f74 202d 7065 726d 202f 752b 7873 2c67  ot -perm /u+xs,g
│ │ │ +002bdac0: 2b78 7772 732c 6f2b 7877 7274 0a20 2072  +xwrs,o+xwrt.  r
│ │ │ +002bdad0: 6567 6973 7465 723a 2072 6f6f 745f 6f77  egister: root_ow
│ │ │ +002bdae0: 6e65 645f 6b65 7973 0a20 2063 6861 6e67  ned_keys.  chang
│ │ │ +002bdaf0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002bdb00: 2066 6169 6c65 645f 7768 656e 3a20 6661   failed_when: fa
│ │ │ +002bdb10: 6c73 650a 2020 6368 6563 6b5f 6d6f 6465  lse.  check_mode
│ │ │ +002bdb20: 3a20 6661 6c73 650a 2020 7768 656e 3a20  : false.  when: 
│ │ │ +002bdb30: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +002bdb40: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +002bdb50: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +002bdb60: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +002bdb70: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ +002bdb80: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ +002bdb90: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +002bdba0: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ +002bdbb0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ +002bdbc0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +002bdbd0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +002bdbe0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ +002bdbf0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002bdc00: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +002bdc10: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ +002bdc20: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ +002bdc30: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ +002bdc40: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ +002bdc50: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ +002bdc60: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002bdc70: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002bdc80: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002bdc90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002bdca0: 6564 0a0a 2d20 6e61 6d65 3a20 5365 7420  ed..- name: Set 
│ │ │ +002bdcb0: 7065 726d 6973 7369 6f6e 7320 666f 7220  permissions for 
│ │ │ +002bdcc0: 726f 6f74 3a72 6f6f 742d 6f77 6e65 6420  root:root-owned 
│ │ │ +002bdcd0: 6b65 7973 0a20 2061 6e73 6962 6c65 2e62  keys.  ansible.b
│ │ │ +002bdce0: 7569 6c74 696e 2e66 696c 653a 0a20 2020  uiltin.file:.   
│ │ │ +002bdcf0: 2070 6174 683a 2027 7b7b 2069 7465 6d20   path: '{{ item 
│ │ │ +002bdd00: 7d7d 270a 2020 2020 6d6f 6465 3a20 752d  }}'.    mode: u-
│ │ │ +002bdd10: 7873 2c67 2d78 7772 732c 6f2d 7877 7274  xs,g-xwrs,o-xwrt
│ │ │ +002bdd20: 0a20 2020 2073 7461 7465 3a20 6669 6c65  .    state: file
│ │ │ +002bdd30: 0a20 2077 6974 685f 6974 656d 733a 0a20  .  with_items:. 
│ │ │ +002bdd40: 202d 2027 7b7b 2072 6f6f 745f 6f77 6e65   - '{{ root_owne
│ │ │ +002bdd50: 645f 6b65 7973 2e73 7464 6f75 745f 6c69  d_keys.stdout_li
│ │ │ +002bdd60: 6e65 7320 7d7d 270a 2020 7768 656e 3a20  nes }}'.  when: 
│ │ │ +002bdd70: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +002bdd80: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +002bdd90: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +002bdda0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +002bddb0: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ +002bddc0: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ +002bddd0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +002bdde0: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ +002bddf0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ +002bde00: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +002bde10: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +002bde20: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ +002bde30: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002bde40: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +002bde50: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ +002bde60: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ +002bde70: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ +002bde80: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ +002bde90: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ +002bdea0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002bdeb0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002bdec0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002bded0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002bdee0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002bdef0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002bdfa0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002bdfb0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +002bdff0: 3c63 6f64 653e 0a0a 0a69 6e63 6c75 6465  ...include
│ │ │ +002be000: 2073 7368 5f70 7269 7661 7465 5f6b 6579   ssh_private_key
│ │ │ +002be010: 5f70 6572 6d73 0a0a 636c 6173 7320 7373  _perms..class ss
│ │ │ +002be020: 685f 7072 6976 6174 655f 6b65 795f 7065  h_private_key_pe
│ │ │ +002be030: 726d 7320 7b0a 2020 6578 6563 207b 2027  rms {.  exec { '
│ │ │ +002be040: 7373 6864 5f70 7269 765f 6b65 7927 3a0a  sshd_priv_key':.
│ │ │ +002be050: 2020 2020 636f 6d6d 616e 6420 3d26 6774      command =>
│ │ │ +002be060: 3b20 2263 686d 6f64 2030 3630 3020 2f65  ; "chmod 0600 /e
│ │ │ +002be070: 7463 2f73 7368 2f2a 5f6b 6579 222c 0a20  tc/ssh/*_key",. 
│ │ │ +002be080: 2020 2070 6174 6820 2020 203d 2667 743b     path    =>
│ │ │ +002be090: 2027 2f62 696e 3a2f 7573 722f 6269 6e27   '/bin:/usr/bin'
│ │ │ +002be0a0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
│ │ │ -002bf500: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002bf510: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
include ssh_pu
│ │ │ -002bf570: 626c 6963 5f6b 6579 5f70 6572 6d73 0a0a  blic_key_perms..
│ │ │ -002bf580: 636c 6173 7320 7373 685f 7075 626c 6963  class ssh_public
│ │ │ -002bf590: 5f6b 6579 5f70 6572 6d73 207b 0a20 2065  _key_perms {.  e
│ │ │ -002bf5a0: 7865 6320 7b20 2773 7368 645f 7075 625f  xec { 'sshd_pub_
│ │ │ -002bf5b0: 6b65 7927 3a0a 2020 2020 636f 6d6d 616e  key':.    comman
│ │ │ -002bf5c0: 6420 3d26 6774 3b20 2263 686d 6f64 2030  d => "chmod 0
│ │ │ -002bf5d0: 3634 3420 2f65 7463 2f73 7368 2f2a 2e70  644 /etc/ssh/*.p
│ │ │ -002bf5e0: 7562 222c 0a20 2020 2070 6174 6820 2020  ub",.    path   
│ │ │ -002bf5f0: 203d 2667 743b 2027 2f62 696e 3a2f 7573   => '/bin:/us
│ │ │ -002bf600: 722f 6269 6e27 0a20 207d 0a7d 0a3c 2f63  r/bin'.  }.}.
│ │ │ -002bf620: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Re │ │ │ -002bf6c0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -002bf6d0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002bf770: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ -002bf820: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002bf830: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -002bf840: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002bf850: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -002bf860: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -002bf870: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -002bf880: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -002bf890: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -002bf8a0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -002bf8b0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -002bf8c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002bf8d0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -002bf8e0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -002bf8f0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -002bf900: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002bf910: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -002bf920: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -002bf930: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -002bf940: 7368 645f 7075 625f 6b65 790a 2020 2d20  shd_pub_key.  - 
│ │ │ -002bf950: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002bf960: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002bf970: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -002bf980: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002bf990: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61  oot_needed..- na
│ │ │ -002bf9a0: 6d65 3a20 4669 6e64 202f 6574 632f 7373  me: Find /etc/ss
│ │ │ -002bf9b0: 682f 2066 696c 6528 7329 0a20 2061 6e73  h/ file(s).  ans
│ │ │ -002bf9c0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002bf9d0: 6d61 6e64 3a20 6669 6e64 202d 5020 2f65  mand: find -P /e
│ │ │ -002bf9e0: 7463 2f73 7368 2f20 2d6d 6178 6465 7074  tc/ssh/ -maxdept
│ │ │ -002bf9f0: 6820 3120 2d70 6572 6d20 2f75 2b78 732c  h 1 -perm /u+xs,
│ │ │ -002bfa00: 672b 7877 732c 6f2b 7877 7420 202d 7479  g+xws,o+xwt  -ty
│ │ │ -002bfa10: 7065 0a20 2020 2066 202d 7265 6765 7874  pe.    f -regext
│ │ │ -002bfa20: 7970 6520 706f 7369 782d 6578 7465 6e64  ype posix-extend
│ │ │ -002bfa30: 6564 202d 7265 6765 7820 225e 2e2a 5c2e  ed -regex "^.*\.
│ │ │ -002bfa40: 7075 6224 220a 2020 7265 6769 7374 6572  pub$".  register
│ │ │ -002bfa50: 3a20 6669 6c65 735f 666f 756e 640a 2020  : files_found.  
│ │ │ -002bfa60: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -002bfa70: 6c73 650a 2020 6661 696c 6564 5f77 6865  lse.  failed_whe
│ │ │ -002bfa80: 6e3a 2066 616c 7365 0a20 2063 6865 636b  n: false.  check
│ │ │ -002bfa90: 5f6d 6f64 653a 2066 616c 7365 0a20 2077  _mode: false.  w
│ │ │ -002bfaa0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -002bfab0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -002bfac0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -002bfad0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -002bfae0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ -002bfaf0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -002bfb00: 2e31 332e 3130 0a20 202d 204e 4953 542d  .13.10.  - NIST-
│ │ │ -002bfb10: 3830 302d 3533 2d41 432d 3137 2861 290a  800-53-AC-17(a).
│ │ │ -002bfb20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002bfb30: 4143 2d36 2831 290a 2020 2d20 4e49 5354  AC-6(1).  - NIST
│ │ │ -002bfb40: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002bfb50: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -002bfb60: 322e 322e 340a 2020 2d20 5043 492d 4453  2.2.4.  - PCI-DS
│ │ │ -002bfb70: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -002bfb80: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -002bfb90: 636f 6e66 6967 7572 655f 7374 7261 7465  configure_strate
│ │ │ -002bfba0: 6779 0a20 202d 2066 696c 655f 7065 726d  gy.  - file_perm
│ │ │ -002bfbb0: 6973 7369 6f6e 735f 7373 6864 5f70 7562  issions_sshd_pub
│ │ │ -002bfbc0: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ -002bfbd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002bfbe0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002bfbf0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002bfc00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002bfc10: 6465 640a 0a2d 206e 616d 653a 2053 6574  ded..- name: Set
│ │ │ -002bfc20: 2070 6572 6d69 7373 696f 6e73 2066 6f72   permissions for
│ │ │ -002bfc30: 202f 6574 632f 7373 682f 2066 696c 6528   /etc/ssh/ file(
│ │ │ -002bfc40: 7329 0a20 2061 6e73 6962 6c65 2e62 7569  s).  ansible.bui
│ │ │ -002bfc50: 6c74 696e 2e66 696c 653a 0a20 2020 2070  ltin.file:.    p
│ │ │ -002bfc60: 6174 683a 2027 7b7b 2069 7465 6d20 7d7d  ath: '{{ item }}
│ │ │ -002bfc70: 270a 2020 2020 6d6f 6465 3a20 752d 7873  '.    mode: u-xs
│ │ │ -002bfc80: 2c67 2d78 7773 2c6f 2d78 7774 0a20 2020  ,g-xws,o-xwt.   
│ │ │ -002bfc90: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ -002bfca0: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ -002bfcb0: 7b7b 2066 696c 6573 5f66 6f75 6e64 2e73  {{ files_found.s
│ │ │ -002bfcc0: 7464 6f75 745f 6c69 6e65 7320 7d7d 270a  tdout_lines }}'.
│ │ │ -002bfcd0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -002bfce0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -002bfcf0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -002bfd00: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -002bfd10: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ -002bfd20: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002bfd30: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ -002bfd40: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ -002bfd50: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002bfd60: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ -002bfd70: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -002bfd80: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -002bfd90: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ -002bfda0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002bfdb0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -002bfdc0: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ -002bfdd0: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ -002bfde0: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ -002bfdf0: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ -002bfe00: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002bfe10: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002bfe20: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -002bfe30: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002bfe40: 6e65 6564 6564 0a3c 2f63 6f64 653e 3c2f  needed.
│ │ │ -002bf760: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002bf790: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002bf7a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002bf7e0: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ -002bf7f0: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
Complexity: │ │ │ +002bf5f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002bf600: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f │ │ │ +002bf640: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +002bf5d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002bf5e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002bf620: 6567 793a 3c2f 7468 3e3c 7464 3e63 6f6e egy:con │ │ │ +002bf630: 6669 6775 7265 3c2f 7464 3e3c 2f74 723e figure
- name: Gathe
│ │ │ +002bf660: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002bf670: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002bf680: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002bf690: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +002bf6a0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +002bf6b0: 332e 312e 3133 0a20 202d 204e 4953 542d  3.1.13.  - NIST-
│ │ │ +002bf6c0: 3830 302d 3137 312d 332e 3133 2e31 300a  800-171-3.13.10.
│ │ │ +002bf6d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002bf6e0: 4143 2d31 3728 6129 0a20 202d 204e 4953  AC-17(a).  - NIS
│ │ │ +002bf6f0: 542d 3830 302d 3533 2d41 432d 3628 3129  T-800-53-AC-6(1)
│ │ │ +002bf700: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002bf710: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +002bf720: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20  -DSS-Req-2.2.4. 
│ │ │ +002bf730: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002bf740: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002bf750: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775  .2.6.  - configu
│ │ │ +002bf760: 7265 5f73 7472 6174 6567 790a 2020 2d20  re_strategy.  - 
│ │ │ +002bf770: 6669 6c65 5f70 6572 6d69 7373 696f 6e73  file_permissions
│ │ │ +002bf780: 5f73 7368 645f 7075 625f 6b65 790a 2020  _sshd_pub_key.  
│ │ │ +002bf790: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002bf7a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002bf7b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +002bf7c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002bf7d0: 6562 6f6f 745f 6e65 6564 6564 0a0a 2d20  eboot_needed..- 
│ │ │ +002bf7e0: 6e61 6d65 3a20 4669 6e64 202f 6574 632f  name: Find /etc/
│ │ │ +002bf7f0: 7373 682f 2066 696c 6528 7329 0a20 2061  ssh/ file(s).  a
│ │ │ +002bf800: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002bf810: 6f6d 6d61 6e64 3a20 6669 6e64 202d 5020  ommand: find -P 
│ │ │ +002bf820: 2f65 7463 2f73 7368 2f20 2d6d 6178 6465  /etc/ssh/ -maxde
│ │ │ +002bf830: 7074 6820 3120 2d70 6572 6d20 2f75 2b78  pth 1 -perm /u+x
│ │ │ +002bf840: 732c 672b 7877 732c 6f2b 7877 7420 202d  s,g+xws,o+xwt  -
│ │ │ +002bf850: 7479 7065 0a20 2020 2066 202d 7265 6765  type.    f -rege
│ │ │ +002bf860: 7874 7970 6520 706f 7369 782d 6578 7465  xtype posix-exte
│ │ │ +002bf870: 6e64 6564 202d 7265 6765 7820 225e 2e2a  nded -regex "^.*
│ │ │ +002bf880: 5c2e 7075 6224 220a 2020 7265 6769 7374  \.pub$".  regist
│ │ │ +002bf890: 6572 3a20 6669 6c65 735f 666f 756e 640a  er: files_found.
│ │ │ +002bf8a0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002bf8b0: 6661 6c73 650a 2020 6661 696c 6564 5f77  false.  failed_w
│ │ │ +002bf8c0: 6865 6e3a 2066 616c 7365 0a20 2063 6865  hen: false.  che
│ │ │ +002bf8d0: 636b 5f6d 6f64 653a 2066 616c 7365 0a20  ck_mode: false. 
│ │ │ +002bf8e0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002bf8f0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002bf900: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002bf910: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002bf920: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002bf930: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002bf940: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002bf950: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002bf960: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002bf970: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002bf980: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002bf990: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002bf9a0: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002bf9b0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002bf9c0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002bf9d0: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002bf9e0: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002bf9f0: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002bfa00: 7562 5f6b 6579 0a20 202d 206c 6f77 5f63  ub_key.  - low_c
│ │ │ +002bfa10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002bfa20: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002bfa30: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +002bfa40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002bfa50: 6565 6465 640a 0a2d 206e 616d 653a 2053  eeded..- name: S
│ │ │ +002bfa60: 6574 2070 6572 6d69 7373 696f 6e73 2066  et permissions f
│ │ │ +002bfa70: 6f72 202f 6574 632f 7373 682f 2066 696c  or /etc/ssh/ fil
│ │ │ +002bfa80: 6528 7329 0a20 2061 6e73 6962 6c65 2e62  e(s).  ansible.b
│ │ │ +002bfa90: 7569 6c74 696e 2e66 696c 653a 0a20 2020  uiltin.file:.   
│ │ │ +002bfaa0: 2070 6174 683a 2027 7b7b 2069 7465 6d20   path: '{{ item 
│ │ │ +002bfab0: 7d7d 270a 2020 2020 6d6f 6465 3a20 752d  }}'.    mode: u-
│ │ │ +002bfac0: 7873 2c67 2d78 7773 2c6f 2d78 7774 0a20  xs,g-xws,o-xwt. 
│ │ │ +002bfad0: 2020 2073 7461 7465 3a20 6669 6c65 0a20     state: file. 
│ │ │ +002bfae0: 2077 6974 685f 6974 656d 733a 0a20 202d   with_items:.  -
│ │ │ +002bfaf0: 2027 7b7b 2066 696c 6573 5f66 6f75 6e64   '{{ files_found
│ │ │ +002bfb00: 2e73 7464 6f75 745f 6c69 6e65 7320 7d7d  .stdout_lines }}
│ │ │ +002bfb10: 270a 2020 7768 656e 3a20 2722 6c69 6e75  '.  when: '"linu
│ │ │ +002bfb20: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +002bfb30: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002bfb40: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +002bfb50: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ +002bfb60: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ +002bfb70: 3137 312d 332e 3133 2e31 300a 2020 2d20  171-3.13.10.  - 
│ │ │ +002bfb80: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ +002bfb90: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002bfba0: 302d 3533 2d41 432d 3628 3129 0a20 202d  0-53-AC-6(1).  -
│ │ │ +002bfbb0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002bfbc0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +002bfbd0: 2d52 6571 2d32 2e32 2e34 0a20 202d 2050  -Req-2.2.4.  - P
│ │ │ +002bfbe0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +002bfbf0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +002bfc00: 0a20 202d 2063 6f6e 6669 6775 7265 5f73  .  - configure_s
│ │ │ +002bfc10: 7472 6174 6567 790a 2020 2d20 6669 6c65  trategy.  - file
│ │ │ +002bfc20: 5f70 6572 6d69 7373 696f 6e73 5f73 7368  _permissions_ssh
│ │ │ +002bfc30: 645f 7075 625f 6b65 790a 2020 2d20 6c6f  d_pub_key.  - lo
│ │ │ +002bfc40: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002bfc50: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002bfc60: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002bfc70: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002bfc80: 745f 6e65 6564 6564 0a3c 2f63 6f64 653e  t_needed.
│ │ │ +002bfc90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002bfd40: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002bfd50: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002bfd60: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
incl
│ │ │ +002bfda0: 7564 6520 7373 685f 7075 626c 6963 5f6b  ude ssh_public_k
│ │ │ +002bfdb0: 6579 5f70 6572 6d73 0a0a 636c 6173 7320  ey_perms..class 
│ │ │ +002bfdc0: 7373 685f 7075 626c 6963 5f6b 6579 5f70  ssh_public_key_p
│ │ │ +002bfdd0: 6572 6d73 207b 0a20 2065 7865 6320 7b20  erms {.  exec { 
│ │ │ +002bfde0: 2773 7368 645f 7075 625f 6b65 7927 3a0a  'sshd_pub_key':.
│ │ │ +002bfdf0: 2020 2020 636f 6d6d 616e 6420 3d26 6774      command =>
│ │ │ +002bfe00: 3b20 2263 686d 6f64 2030 3634 3420 2f65  ; "chmod 0644 /e
│ │ │ +002bfe10: 7463 2f73 7368 2f2a 2e70 7562 222c 0a20  tc/ssh/*.pub",. 
│ │ │ +002bfe20: 2020 2070 6174 6820 2020 203d 2667 743b     path    =>
│ │ │ +002bfe30: 2027 2f62 696e 3a2f 7573 722f 6269 6e27   '/bin:/usr/bin'
│ │ │ +002bfe40: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -168,14 +151,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -1174,31 +1174,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1225,14 +1208,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -5657,31 +5657,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--mmoodduulleess PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5702,14 +5685,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -5726,31 +5726,14 @@ │ │ │ │ Rationale: Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts │ │ │ │ at guessing and brute-force attacks. "pwquality" enforces complex password construction configuration │ │ │ │ and has the ability to limit brute-force attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -5771,14 +5754,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -5791,31 +5791,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--rruunnttiimmee PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5824,14 +5807,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -8398,31 +8398,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access Control │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -8432,14 +8415,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -8455,31 +8455,14 @@ │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000368-GPOS-00154, SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312- │ │ │ │ References: GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -8489,14 +8472,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -8928,31 +8928,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an attacker gains root │ │ │ │ Rationale: access on the local system, they could tamper with or remove log data that is stored on the local │ │ │ │ system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -8973,14 +8956,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -9005,31 +9005,14 @@ │ │ │ │ intact even if the local system is compromised. Additionally, centralized logs facilitate correlation │ │ │ │ of events across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -9065,14 +9048,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( │ │ │ │ @@ -9097,31 +9097,14 @@ │ │ │ │ Rationale: of failure and any information necessary to return to operations with least disruption to system │ │ │ │ processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -9156,14 +9139,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10131,31 +10131,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10178,14 +10161,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10213,31 +10213,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, A.15.2.1, │ │ │ │ A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10274,14 +10257,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10652,31 +10652,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be installed with the following command: │ │ │ │ $ apt-get install iptables-persistent │ │ │ │ Rationale: A method of configuring and maintaining firewall rules is necessary to configure a Host Based Firewall. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_installed │ │ │ │ References: _c_i_s 4.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables-persistent" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_iptables-persistent │ │ │ │ - │ │ │ │ -class install_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10697,14 +10680,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_iptables-persistent │ │ │ │ + │ │ │ │ +class install_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "iptables-persistent" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'iptables' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10721,31 +10721,14 @@ │ │ │ │ set up firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ References: _p_c_i_d_s_s Req-1.4.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 4.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_iptables │ │ │ │ - │ │ │ │ -class install_iptables { │ │ │ │ - package { 'iptables': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10770,14 +10753,31 @@ │ │ │ │ - PCI-DSS-Req-1.4.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_iptables │ │ │ │ + │ │ │ │ +class install_iptables { │ │ │ │ + package { 'iptables': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "iptables" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( ! (systemctl is-active nftables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -10791,27 +10791,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10832,14 +10819,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -16645,31 +16645,14 @@ │ │ │ │ $ apt-get install nftables │ │ │ │ Rationale: nftables is a subsystem of the Linux kernel that can protect against threats originating from within a │ │ │ │ corporate network to include malicious mobile code and poorly configured software on a host. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nftables_installed │ │ │ │ References: _c_i_s 4.3.1 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "nftables" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_nftables │ │ │ │ - │ │ │ │ -class install_nftables { │ │ │ │ - package { 'nftables': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -16694,14 +16677,31 @@ │ │ │ │ - PCI-DSSv4-1.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nftables_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_nftables │ │ │ │ + │ │ │ │ +class install_nftables { │ │ │ │ + package { 'nftables': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "nftables" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( ! (systemctl is-active iptables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -16717,31 +16717,14 @@ │ │ │ │ The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the /etc/sysconfig/ │ │ │ │ nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.3.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -16775,14 +16758,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep -q '^installed$' && ! │ │ │ │ @@ -16805,31 +16805,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: Running both firewalld and nftables may lead to conflict. nftables is actually one of the backends for │ │ │ │ firewalld management tools. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.4.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -16885,14 +16868,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "firewalld" in ansible_facts.packages and "nftables" in ansible_facts.packages │ │ │ │ and "linux-base" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'firewalld' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -17385,31 +17385,14 @@ │ │ │ │ $ apt-get install ufw │ │ │ │ Rationale: ufw controls the Linux kernel network packet filtering code. ufw allows system operators to set up │ │ │ │ firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ufw" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ufw │ │ │ │ - │ │ │ │ -class install_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17430,14 +17413,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ufw │ │ │ │ + │ │ │ │ +class install_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ufw" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -17450,27 +17450,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee uuffww PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ufw package can be removed with the following command: │ │ │ │ $ apt-get remove ufw │ │ │ │ Rationale: Running iptables.persistent with ufw enabled may lead to conflict and unexpected results. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_removed │ │ │ │ References: _c_i_s 4.3.2, 4.4.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ufw │ │ │ │ - │ │ │ │ -class remove_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17491,14 +17478,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ufw │ │ │ │ + │ │ │ │ +class remove_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -17534,31 +17534,14 @@ │ │ │ │ The ufw service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable ufw.service │ │ │ │ Rationale: The ufw service must be enabled and running in order for ufw to protect the system │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ufw_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ufw"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ufw │ │ │ │ - │ │ │ │ -class enable_ufw { │ │ │ │ - service {'ufw': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17593,14 +17576,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ufw_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( "ufw" in ansible_facts.packages and "linux-base" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ufw │ │ │ │ + │ │ │ │ +class enable_ufw { │ │ │ │ + service {'ufw': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ufw"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( │ │ │ │ @@ -30977,31 +30977,14 @@ │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -31028,14 +31011,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -31062,31 +31062,14 @@ │ │ │ │ References: 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -31121,14 +31104,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -32902,27 +32902,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ Rationale: NIS is the historical SUN service for central account management, more and more replaced by LDAP. NIS │ │ │ │ does not support efficiently security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -32931,14 +32918,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -32992,27 +32992,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33026,14 +33013,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -33064,31 +33064,14 @@ │ │ │ │ can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: 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. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33138,14 +33121,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33186,31 +33186,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33266,14 +33249,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33321,27 +33321,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind │ │ │ │ - │ │ │ │ -class remove_bind { │ │ │ │ - package { 'bind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33353,14 +33340,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind │ │ │ │ + │ │ │ │ +class remove_bind { │ │ │ │ + package { 'bind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind │ │ │ │ @@ -33400,31 +33400,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["named"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_named │ │ │ │ - │ │ │ │ -class disable_named { │ │ │ │ - service {'named': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33480,14 +33463,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_named_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_named │ │ │ │ + │ │ │ │ +class disable_named { │ │ │ │ + service {'named': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["named"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33519,27 +33519,14 @@ │ │ │ │ The dnsmasq package can be removed with the following command: │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33548,14 +33535,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -33585,31 +33585,14 @@ │ │ │ │ The dnsmasq service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33659,14 +33642,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33715,27 +33715,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33751,14 +33738,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -33799,31 +33799,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33879,14 +33862,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33922,27 +33922,14 @@ │ │ │ │ Rationale: be used if file transfer is required. Unless there is a need to run the system as a FTP server (for │ │ │ │ example, to allow anonymous downloads), it is recommended that the package be removed to reduce the │ │ │ │ potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33953,14 +33940,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -33993,27 +33993,14 @@ │ │ │ │ $ apt-get remove ftp │ │ │ │ Unless there is a need to run the system using Internet standard File Transfer Protocol (for example, │ │ │ │ Rationale: to allow anonymous downloads), it is recommended that the package be removed to reduce the potential │ │ │ │ attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tnftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tnftp │ │ │ │ - │ │ │ │ -class remove_tnftp { │ │ │ │ - package { 'tnftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tnftp Package: Ensure tnftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34022,14 +34009,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tnftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tnftp │ │ │ │ + │ │ │ │ +class remove_tnftp { │ │ │ │ + package { 'tnftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tnftp │ │ │ │ @@ -34082,27 +34082,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34114,14 +34101,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -34161,31 +34161,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34241,14 +34224,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34290,27 +34290,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34322,14 +34309,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -34359,31 +34359,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34433,14 +34416,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34476,27 +34476,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a safeguard against │ │ │ │ its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot │ │ │ │ - │ │ │ │ -class remove_dovecot { │ │ │ │ - package { 'dovecot': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34505,14 +34492,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot │ │ │ │ + │ │ │ │ +class remove_dovecot { │ │ │ │ + package { 'dovecot': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot │ │ │ │ @@ -34542,31 +34542,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34616,14 +34599,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34666,27 +34666,14 @@ │ │ │ │ from a central database. The ldap-utils package can be removed with the following command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software is removed to │ │ │ │ reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_openldap-clients │ │ │ │ - │ │ │ │ -class remove_openldap-clients { │ │ │ │ - package { 'openldap-clients': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure openldap-clients is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34695,14 +34682,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_openldap-clients │ │ │ │ + │ │ │ │ +class remove_openldap-clients { │ │ │ │ + package { 'openldap-clients': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove openldap-clients │ │ │ │ @@ -34746,27 +34746,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_openldap-servers │ │ │ │ - │ │ │ │ -class remove_openldap-servers { │ │ │ │ - package { 'openldap-servers': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure openldap-servers is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34778,14 +34765,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_openldap-servers │ │ │ │ + │ │ │ │ +class remove_openldap-servers { │ │ │ │ + package { 'openldap-servers': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove openldap-servers │ │ │ │ @@ -34815,31 +34815,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up information │ │ │ │ from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software be disabled │ │ │ │ to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34889,14 +34872,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34994,27 +34994,14 @@ │ │ │ │ be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35035,14 +35022,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35083,31 +35083,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35161,14 +35144,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35214,31 +35214,14 @@ │ │ │ │ 4.3.3.6.8, 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35295,14 +35278,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35332,27 +35332,14 @@ │ │ │ │ The nfs-kernel-server package can be removed with the following command: │ │ │ │ $ apt-get remove nfs-kernel-server │ │ │ │ Rationale: If the system does not export NFS shares or act as an NFS client, it is recommended that these services │ │ │ │ be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ References: _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35361,14 +35348,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -35446,31 +35446,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35497,14 +35480,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "chrony" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35598,31 +35598,14 @@ │ │ │ │ working properly. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_enabled │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_chrony │ │ │ │ - │ │ │ │ -class enable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35657,14 +35640,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_chrony │ │ │ │ + │ │ │ │ +class enable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["chrony"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -35697,31 +35697,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-timesyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-timesyncd │ │ │ │ - │ │ │ │ -class enable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35767,14 +35750,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( not ( "chrony" in ansible_facts.packages ) and not ( "ntp" in ansible_facts.packages │ │ │ │ ) ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-timesyncd │ │ │ │ + │ │ │ │ +class enable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-timesyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( ! │ │ │ │ @@ -36475,27 +36475,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36527,14 +36514,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36588,31 +36588,14 @@ │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36670,14 +36653,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36732,27 +36732,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36768,14 +36755,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -36806,31 +36806,14 @@ │ │ │ │ ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or NIS+ domain. This │ │ │ │ service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36880,14 +36863,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36927,27 +36927,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36959,14 +36946,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -37031,27 +37031,14 @@ │ │ │ │ client program. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37062,14 +37049,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -37103,27 +37103,14 @@ │ │ │ │ The telnet client allows users to start connections to other systems via the telnet protocol. │ │ │ │ The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could │ │ │ │ Rationale: allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and │ │ │ │ stronger security and is included in Debian 12. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_inetutils-telnet_removed │ │ │ │ References: _c_i_s 2.2.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnet │ │ │ │ - │ │ │ │ -class remove_inetutils-telnet { │ │ │ │ - package { 'inetutils-telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure inetutils-telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37132,14 +37119,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnet │ │ │ │ + │ │ │ │ +class remove_inetutils-telnet { │ │ │ │ + package { 'inetutils-telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnet │ │ │ │ @@ -37176,27 +37176,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37208,14 +37195,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -37270,27 +37270,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37304,14 +37291,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -37354,31 +37354,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37434,14 +37417,31 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37471,27 +37471,14 @@ │ │ │ │ The rsyncd service can be used to synchronize files between systems over network links. The rsync package can be │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37500,14 +37487,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -37537,31 +37537,14 @@ │ │ │ │ The rsyncd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37616,14 +37599,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37662,27 +37662,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a safeguard │ │ │ │ against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37691,14 +37678,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -37729,31 +37729,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be removed if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37804,14 +37787,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -37852,27 +37852,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37881,14 +37868,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -37917,31 +37917,14 @@ │ │ │ │ ****** RRuullee? ?  DDiissaabbllee SSaammbbaa ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smb"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smb │ │ │ │ - │ │ │ │ -class disable_smb { │ │ │ │ - service {'smb': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37991,14 +37974,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smb │ │ │ │ + │ │ │ │ +class disable_smb { │ │ │ │ + service {'smb': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smb"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38036,27 +38036,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_net-snmp │ │ │ │ - │ │ │ │ -class remove_net-snmp { │ │ │ │ - package { 'net-snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure net-snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38067,14 +38054,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_net-snmp │ │ │ │ + │ │ │ │ +class remove_net-snmp { │ │ │ │ + package { 'net-snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove net-snmp │ │ │ │ @@ -38104,31 +38104,14 @@ │ │ │ │ The snmpd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38179,14 +38162,31 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmpd" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmpd' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -40816,26 +40816,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40899,14 +40887,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ if test root:root = "$(stat -c "%U:%G" "$keyfile")"; then │ │ │ │ @@ -40941,23 +40941,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41021,14 +41012,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-cis_level2_server.html │ │ │ @@ -15110,134 +15110,134 @@ │ │ │ 0003b050: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 0003b060: 6964 3135 2220 7461 6269 6e64 6578 3d22 id15" tabindex=" │ │ │ 0003b070: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 0003b080: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 0003b090: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 0003b0a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 0003b0b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0003b0c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0003b0d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0003b0e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ -0003b130: 6573 5d5d 0a6e 616d 6520 3d20 2261 6964  es]].name = "aid
│ │ │ -0003b140: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │ -0003b150: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0003b200: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0003b210: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -0003b2b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0003b2c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0003b310: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0003b350: 6c75 6465 2069 6e73 7461 6c6c 5f61 6964  lude install_aid
│ │ │ -0003b360: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ -0003b370: 5f61 6964 6520 7b0a 2020 7061 636b 6167  _aide {.  packag
│ │ │ -0003b380: 6520 7b20 2761 6964 6527 3a0a 2020 2020  e { 'aide':.    
│ │ │ -0003b390: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -0003b3a0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -0003b3b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0003b460: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0003b470: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -0003b2a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0003b2d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0003b2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0003b320: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0003b330: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0003b510: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0003b520: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0003b570: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0003b5b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0003b5c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0003b5d0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0003b5e0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0003b5f0: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ -0003b600: 532d 352e 3130 2e31 2e33 0a20 202d 204e  S-5.10.1.3.  - N
│ │ │ -0003b610: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0003b620: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -0003b630: 6571 2d31 312e 350a 2020 2d20 5043 492d  eq-11.5.  - PCI-
│ │ │ -0003b640: 4453 5376 342d 3131 2e35 2e32 0a20 202d  DSSv4-11.5.2.  -
│ │ │ -0003b650: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0003b660: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0003b670: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0003b680: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0003b690: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0003b6a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0003b6b0: 2020 2d20 7061 636b 6167 655f 6169 6465    - package_aide
│ │ │ -0003b6c0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -0003b6d0: 6d65 3a20 456e 7375 7265 2061 6964 6520  me: Ensure aide 
│ │ │ -0003b6e0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0003b6f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0003b700: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0003b710: 3a20 6169 6465 0a20 2020 2073 7461 7465  : aide.    state
│ │ │ -0003b720: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -0003b730: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -0003b740: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0003b750: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0003b760: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ -0003b770: 2e31 2e33 0a20 202d 204e 4953 542d 3830  .1.3.  - NIST-80
│ │ │ -0003b780: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0003b790: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ -0003b7a0: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ -0003b7b0: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ -0003b7c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0003b7d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0003b7e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0003b7f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0003b800: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0003b810: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0003b820: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ -0003b830: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.<
│ │ │ +0003b0e0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
C │ │ │ -0003b500: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0003b530: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0003b540: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0003b580: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0003b590: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +0003b160: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0003b170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0003b190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0003b1b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0003b1c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0003b200: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0003b210: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0003b220: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0003b230: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0003b240: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0003b250: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ +0003b260: 2e31 302e 312e 330a 2020 2d20 4e49 5354 .10.1.3. - NIST │ │ │ +0003b270: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0003b280: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +0003b290: 3131 2e35 0a20 202d 2050 4349 2d44 5353 11.5. - PCI-DSS │ │ │ +0003b2a0: 7634 2d31 312e 352e 320a 2020 2d20 656e v4-11.5.2. - en │ │ │ +0003b2b0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +0003b2c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +0003b2d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +0003b2e0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +0003b2f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +0003b300: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +0003b310: 2070 6163 6b61 6765 5f61 6964 655f 696e package_aide_in │ │ │ +0003b320: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +0003b330: 2045 6e73 7572 6520 6169 6465 2069 7320 Ensure aide is │ │ │ +0003b340: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ +0003b350: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +0003b360: 6167 653a 0a20 2020 206e 616d 653a 2061 age:. name: a │ │ │ +0003b370: 6964 650a 2020 2020 7374 6174 653a 2070 ide. state: p │ │ │ +0003b380: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ +0003b390: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +0003b3a0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +0003b3b0: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ +0003b3c0: 2020 2d20 434a 4953 2d35 2e31 302e 312e - CJIS-5.10.1. │ │ │ +0003b3d0: 330a 2020 2d20 4e49 5354 2d38 3030 2d35 3. - NIST-800-5 │ │ │ +0003b3e0: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +0003b3f0: 492d 4453 532d 5265 712d 3131 2e35 0a20 I-DSS-Req-11.5. │ │ │ +0003b400: 202d 2050 4349 2d44 5353 7634 2d31 312e - PCI-DSSv4-11. │ │ │ +0003b410: 352e 320a 2020 2d20 656e 6162 6c65 5f73 5.2. - enable_s │ │ │ +0003b420: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0003b430: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0003b440: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0003b450: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0003b460: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0003b470: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0003b480: 6765 5f61 6964 655f 696e 7374 616c 6c65 ge_aide_installe │ │ │ +0003b490: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0003b4a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +0003b550: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0003b560: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +0003b5f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0003b690: 636c 7564 6520 696e 7374 616c 6c5f 6169  clude install_ai
│ │ │ +0003b6a0: 6465 0a0a 636c 6173 7320 696e 7374 616c  de..class instal
│ │ │ +0003b6b0: 6c5f 6169 6465 207b 0a20 2070 6163 6b61  l_aide {.  packa
│ │ │ +0003b6c0: 6765 207b 2027 6169 6465 273a 0a20 2020  ge { 'aide':.   
│ │ │ +0003b6d0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +0003b6e0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +0003b6f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +0003b7a0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0003b7b0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0003b7c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0003b800: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +0003b810: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +0003b820: 2261 6964 6522 0a76 6572 7369 6f6e 203d  "aide".version =
│ │ │ +0003b830: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remedi │ │ │ -00056150: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00056160: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00056170: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000561a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000561b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000561c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000561d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000561e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00056270: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00056280: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +0003b5e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0003b610: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0003b620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0003b660: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0003b670: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -000561f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00056200: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00056240: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00056250: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -000562a0: 2072 656d 6f76 655f 6764 6d0a 0a63 6c61 remove_gdm..cla │ │ │ -000562b0: 7373 2072 656d 6f76 655f 6764 6d20 7b0a ss remove_gdm {. │ │ │ -000562c0: 2020 7061 636b 6167 6520 7b20 2767 646d package { 'gdm │ │ │ -000562d0: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -000562e0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -000562f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation A │ │ │ -000563b0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000563c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ -00056440: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00056460: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000564b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -000564e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00056500: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00056510: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00056520: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00056530: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00056540: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00056550: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00056560: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00056570: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00056580: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00056590: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000565a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000565b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000565c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000565d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000565e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000565f0: 636b 6167 655f 6764 6d5f 7265 6d6f 7665  ckage_gdm_remove
│ │ │ -00056600: 640a 0a2d 206e 616d 653a 2027 5265 6d6f  d..- name: 'Remo
│ │ │ -00056610: 7665 2074 6865 2047 444d 2050 6163 6b61  ve the GDM Packa
│ │ │ -00056620: 6765 2047 726f 7570 3a20 456e 7375 7265  ge Group: Ensure
│ │ │ -00056630: 2067 646d 2069 7320 7265 6d6f 7665 6427   gdm is removed'
│ │ │ -00056640: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00056650: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00056660: 6e61 6d65 3a20 6764 6d0a 2020 2020 7374  name: gdm.    st
│ │ │ -00056670: 6174 653a 2061 6273 656e 740a 2020 7768  ate: absent.  wh
│ │ │ -00056680: 656e 3a20 2722 6764 6d33 2220 696e 2061  en: '"gdm3" in a
│ │ │ -00056690: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000566a0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000566b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000566c0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -000566d0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -000566e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000566f0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -00056700: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00056710: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00056720: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00056730: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00056740: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00056750: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00056760: 6163 6b61 6765 5f67 646d 5f72 656d 6f76  ackage_gdm_remov
│ │ │ -00056770: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00056150: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +00056160: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000561a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -00056470: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00056480: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000564c0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -000564d0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00056210: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00056230: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00056260: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +000561f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00056200: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00056240: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00056250: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +000562a0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000562b0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000562c0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000562d0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000562e0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000562f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00056300: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +00056310: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +00056320: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +00056330: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +00056340: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +00056350: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +00056360: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +00056370: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +00056380: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00056390: 0a20 202d 2070 6163 6b61 6765 5f67 646d . - package_gdm │ │ │ +000563a0: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65 _removed..- name │ │ │ +000563b0: 3a20 2752 656d 6f76 6520 7468 6520 4744 : 'Remove the GD │ │ │ +000563c0: 4d20 5061 636b 6167 6520 4772 6f75 703a M Package Group: │ │ │ +000563d0: 2045 6e73 7572 6520 6764 6d20 6973 2072 Ensure gdm is r │ │ │ +000563e0: 656d 6f76 6564 270a 2020 616e 7369 626c emoved'. ansibl │ │ │ +000563f0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +00056400: 653a 0a20 2020 206e 616d 653a 2067 646d e:. name: gdm │ │ │ +00056410: 0a20 2020 2073 7461 7465 3a20 6162 7365 . state: abse │ │ │ +00056420: 6e74 0a20 2077 6865 6e3a 2027 2267 646d nt. when: '"gdm │ │ │ +00056430: 3322 2069 6e20 616e 7369 626c 655f 6661 3" in ansible_fa │ │ │ +00056440: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +00056450: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00056460: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00056470: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00056480: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +00056490: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +000564a0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +000564b0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +000564c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +000564d0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +000564e0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +000564f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00056500: 640a 2020 2d20 7061 636b 6167 655f 6764 d. - package_gd │ │ │ +00056510: 6d5f 7265 6d6f 7665 640a 3c2f 636f 6465 m_removed.

Remedia │ │ │ +000565d0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000565e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000565f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00056600: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00056610: 7365 2220 6964 3d22 6964 3532 223e 3c74 se" id="id52"> │ │ │ +00056660: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00056670: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00056680: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000566c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000566d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000566f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00056700: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00056720: 7265 6d6f 7665 5f67 646d 0a0a 636c 6173  remove_gdm..clas
│ │ │ +00056730: 7320 7265 6d6f 7665 5f67 646d 207b 0a20  s remove_gdm {. 
│ │ │ +00056740: 2070 6163 6b61 6765 207b 2027 6764 6d27   package { 'gdm'
│ │ │ +00056750: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00056760: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00056770: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00056780: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation OSB │ │ │ -00057e50: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00057e60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ -00057eb0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -00057ec0: 2022 7375 646f 220a 7665 7273 696f 6e20   "sudo".version 
│ │ │ -00057ed0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -00057f90: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00057fa0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00058020: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00058040: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00058090: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000580c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000580e0: 6c5f 7375 646f 0a0a 636c 6173 7320 696e  l_sudo..class in
│ │ │ -000580f0: 7374 616c 6c5f 7375 646f 207b 0a20 2070  stall_sudo {.  p
│ │ │ -00058100: 6163 6b61 6765 207b 2027 7375 646f 273a  ackage { 'sudo':
│ │ │ -00058110: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00058120: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -00058130: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -000581f0: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -00058200: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity:< │ │ │ -00058030: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00058050: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000580a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000580b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00058280: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000582a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000582f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00058320: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00058340: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00058350: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00058360: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00058370: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00058380: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00058390: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -000583a0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -000583b0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -000583c0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000583d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000583e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000583f0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00058400: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00058410: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00058420: 202d 2070 6163 6b61 6765 5f73 7564 6f5f   - package_sudo_
│ │ │ -00058430: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -00058440: 653a 2045 6e73 7572 6520 7375 646f 2069  e: Ensure sudo i
│ │ │ -00058450: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00058460: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00058470: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00058480: 2073 7564 6f0a 2020 2020 7374 6174 653a   sudo.    state:
│ │ │ -00058490: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000584a0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -000584b0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000584c0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -000584d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000584e0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -000584f0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00058500: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -00058510: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00058520: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00058530: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00058540: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00058550: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00058560: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00058570: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -00058580: 7564 6f5f 696e 7374 616c 6c65 640a 3c2f  udo_installed.Remediation Ans
│ │ │ +00057e50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00057e60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:< │ │ │ -00058290: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000582b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00058300: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00058310: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00057f30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00057f40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +00057f90: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00057fa0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00057fb0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00057fc0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00057fd0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00057fe0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00057ff0: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +00058000: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00058010: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +00058020: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00058030: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00058040: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00058050: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00058060: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00058070: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00058080: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ +00058090: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000580a0: 456e 7375 7265 2073 7564 6f20 6973 2069  Ensure sudo is i
│ │ │ +000580b0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +000580c0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +000580d0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7375  ge:.    name: su
│ │ │ +000580e0: 646f 0a20 2020 2073 7461 7465 3a20 7072  do.    state: pr
│ │ │ +000580f0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00058100: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00058110: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00058120: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00058130: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00058140: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00058150: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00058160: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +00058170: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00058180: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00058190: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000581a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000581b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000581c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000581d0: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ +000581e0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remedi │ │ │ +000582a0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000582b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000582c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +000582f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00058300: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00058310: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00058320: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00058330: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000583c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000583d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +00057f10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00057f20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00057f60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00057f70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +00058340: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00058350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00058390: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000583a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +000583f0: 6e73 7461 6c6c 5f73 7564 6f0a 0a63 6c61  nstall_sudo..cla
│ │ │ +00058400: 7373 2069 6e73 7461 6c6c 5f73 7564 6f20  ss install_sudo 
│ │ │ +00058410: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +00058420: 7564 6f27 3a0a 2020 2020 656e 7375 7265  udo':.    ensure
│ │ │ +00058430: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +00058440: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ +00058500: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00058510: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00058520: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ +00058570: 5d0a 6e61 6d65 203d 2022 7375 646f 220a  ].name = "sudo".
│ │ │ +00058580: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediation OSB │ │ │ -000a5590: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000a55a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -000a55f0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000a5600: 3d20 226c 6962 7061 6d2d 6d6f 6475 6c65  = "libpam-module
│ │ │ -000a5610: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │ -000a5620: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000a56e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000a56f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000a57c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000a57d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000a5820: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ -000a5830: 6962 7061 6d2d 6d6f 6475 6c65 730a 0a63  ibpam-modules..c
│ │ │ -000a5840: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ -000a5850: 7061 6d2d 6d6f 6475 6c65 7320 7b0a 2020  pam-modules {.  
│ │ │ -000a5860: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ -000a5870: 6d2d 6d6f 6475 6c65 7327 3a0a 2020 2020  m-modules':.    
│ │ │ -000a5880: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -000a5890: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -000a58a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000a5950: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000a5960: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000a5970: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -000a57a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000a57b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000a57f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000a5800: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000a5a40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000a5a50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000a5aa0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000a5ab0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000a5ac0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000a5ad0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000a5ae0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -000a5af0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000a5b00: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000a5b10: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000a5b20: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000a5b30: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000a5b40: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000a5b50: 2d20 7061 636b 6167 655f 7061 6d5f 6d6f  - package_pam_mo
│ │ │ -000a5b60: 6475 6c65 735f 696e 7374 616c 6c65 640a  dules_installed.
│ │ │ -000a5b70: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -000a5b80: 6c69 6270 616d 2d6d 6f64 756c 6573 2069  libpam-modules i
│ │ │ -000a5b90: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -000a5ba0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000a5bb0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -000a5bc0: 206c 6962 7061 6d2d 6d6f 6475 6c65 730a   libpam-modules.
│ │ │ -000a5bd0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000a5be0: 6e74 0a20 2077 6865 6e3a 2027 226c 6962  nt.  when: '"lib
│ │ │ -000a5bf0: 7061 6d2d 7275 6e74 696d 6522 2069 6e20  pam-runtime" in 
│ │ │ -000a5c00: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000a5c10: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000a5c20: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000a5c30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000a5c40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000a5c50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000a5c60: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000a5c70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000a5c80: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -000a5c90: 616d 5f6d 6f64 756c 6573 5f69 6e73 7461  am_modules_insta
│ │ │ -000a5ca0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation Ans
│ │ │ +000a5590: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +000a55a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:low
Disrup │ │ │ -000a5a20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000a5a30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000a5a70: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000a5a80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +000a5670: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000a5680: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000a56d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000a56e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000a56f0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000a5700: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000a5710: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000a5720: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000a5730: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000a5740: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000a5750: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000a5760: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000a5770: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000a5780: 202d 2070 6163 6b61 6765 5f70 616d 5f6d   - package_pam_m
│ │ │ +000a5790: 6f64 756c 6573 5f69 6e73 7461 6c6c 6564  odules_installed
│ │ │ +000a57a0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +000a57b0: 206c 6962 7061 6d2d 6d6f 6475 6c65 7320   libpam-modules 
│ │ │ +000a57c0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000a57d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000a57e0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000a57f0: 3a20 6c69 6270 616d 2d6d 6f64 756c 6573  : libpam-modules
│ │ │ +000a5800: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +000a5810: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +000a5820: 6270 616d 2d72 756e 7469 6d65 2220 696e  bpam-runtime" in
│ │ │ +000a5830: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000a5840: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000a5850: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000a5860: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000a5870: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000a5880: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000a5890: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000a58a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000a58b0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000a58c0: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ +000a58d0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediatio │ │ │ +000a5990: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000a59a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000a5a60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000a5a70: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +000a5650: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000a5660: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000a56a0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000a56b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +000a5a30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000a5a50: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000a5a80: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000a5aa0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000a5ae0: 616c 6c5f 6c69 6270 616d 2d6d 6f64 756c  all_libpam-modul
│ │ │ +000a5af0: 6573 0a0a 636c 6173 7320 696e 7374 616c  es..class instal
│ │ │ +000a5b00: 6c5f 6c69 6270 616d 2d6d 6f64 756c 6573  l_libpam-modules
│ │ │ +000a5b10: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000a5b20: 6c69 6270 616d 2d6d 6f64 756c 6573 273a  libpam-modules':
│ │ │ +000a5b30: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000a5b40: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000a5b50: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +000a5c10: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +000a5c20: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +000a5c80: 616d 6520 3d20 226c 6962 7061 6d2d 6d6f  ame = "libpam-mo
│ │ │ +000a5c90: 6475 6c65 7322 0a76 6572 7369 6f6e 203d  dules".version =
│ │ │ +000a5ca0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
│ │ │ -000a69c0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000a69d0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000a69e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000a6a30: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000a6a40: 2022 6c69 6270 616d 2d70 7771 7561 6c69   "libpam-pwquali
│ │ │ -000a6a50: 7479 220a 7665 7273 696f 6e20 3d20 222a  ty".version = "*
│ │ │ -000a6a60: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000a6a70: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000a6b20: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000a6b30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000a6c00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000a6c10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000a6c60: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000a6c70: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -000a6c80: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000a6c90: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -000a6ca0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000a6cb0: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -000a6cc0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -000a6cd0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -000a6ce0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -000a6da0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -000a6db0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -000a6e30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000a6ec0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ -000a6be0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000a6bf0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000a6c30: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000a6c40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -000a6e40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000a6e50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000a6e90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000a6ea0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000a6ee0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000a6ef0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000a6f00: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000a6f10: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000a6f20: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000a6f30: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -000a6f40: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000a6f50: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000a6f60: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000a6f70: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000a6f80: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000a6f90: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000a6fa0: 5f70 616d 5f70 7771 7561 6c69 7479 5f69  _pam_pwquality_i
│ │ │ -000a6fb0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -000a6fc0: 3a20 456e 7375 7265 206c 6962 7061 6d2d  : Ensure libpam-
│ │ │ -000a6fd0: 7077 7175 616c 6974 7920 6973 2069 6e73  pwquality is ins
│ │ │ -000a6fe0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -000a6ff0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000a7000: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270  :.    name: libp
│ │ │ -000a7010: 616d 2d70 7771 7561 6c69 7479 0a20 2020  am-pwquality.   
│ │ │ -000a7020: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -000a7030: 2020 7768 656e 3a20 2722 6c69 6270 616d    when: '"libpam
│ │ │ -000a7040: 2d72 756e 7469 6d65 2220 696e 2061 6e73  -runtime" in ans
│ │ │ -000a7050: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000a7060: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -000a7070: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000a7080: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000a7090: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000a70a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000a70b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000a70c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000a70d0: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ -000a70e0: 7077 7175 616c 6974 795f 696e 7374 616c  pwquality_instal
│ │ │ -000a70f0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

< │ │ │ +000a6ab0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000a6ac0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000a6b10: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000a6b20: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000a6b30: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000a6b40: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000a6b50: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +000a6b60: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000a6b70: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000a6b80: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000a6b90: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000a6ba0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000a6bb0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000a6bc0: 2d20 7061 636b 6167 655f 7061 6d5f 7077  - package_pam_pw
│ │ │ +000a6bd0: 7175 616c 6974 795f 696e 7374 616c 6c65  quality_installe
│ │ │ +000a6be0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +000a6bf0: 6520 6c69 6270 616d 2d70 7771 7561 6c69  e libpam-pwquali
│ │ │ +000a6c00: 7479 2069 7320 696e 7374 616c 6c65 640a  ty is installed.
│ │ │ +000a6c10: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000a6c20: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +000a6c30: 616d 653a 206c 6962 7061 6d2d 7077 7175  ame: libpam-pwqu
│ │ │ +000a6c40: 616c 6974 790a 2020 2020 7374 6174 653a  ality.    state:
│ │ │ +000a6c50: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +000a6c60: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ +000a6c70: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +000a6c80: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +000a6c90: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +000a6ca0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000a6cb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000a6cc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000a6cd0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000a6ce0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000a6cf0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000a6d00: 6b61 6765 5f70 616d 5f70 7771 7561 6c69  kage_pam_pwquali
│ │ │ +000a6d10: 7479 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ty_installed.
│ │ │ +000a6d30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000a6dd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000a6de0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000a6df0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +000a6a90: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000a6aa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000a6ae0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000a6af0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +000a6e70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000a6ea0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000a6ec0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000a6ed0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000a6ef0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000a6f10: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000a6f20: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ +000a6f30: 6d2d 7077 7175 616c 6974 790a 0a63 6c61  m-pwquality..cla
│ │ │ +000a6f40: 7373 2069 6e73 7461 6c6c 5f6c 6962 7061  ss install_libpa
│ │ │ +000a6f50: 6d2d 7077 7175 616c 6974 7920 7b0a 2020  m-pwquality {.  
│ │ │ +000a6f60: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +000a6f70: 6d2d 7077 7175 616c 6974 7927 3a0a 2020  m-pwquality':.  
│ │ │ +000a6f80: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000a6f90: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000a6fa0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000a6fb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000a7060: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000a7070: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000a7080: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000a70c0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +000a70d0: 203d 2022 6c69 6270 616d 2d70 7771 7561   = "libpam-pwqua
│ │ │ +000a70e0: 6c69 7479 220a 7665 7273 696f 6e20 3d20  lity".version = 
│ │ │ +000a70f0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediati │ │ │ -000a7c50: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000a7c60: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000a7c70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000a7cc0: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -000a7cd0: 7275 6e74 696d 6522 0a76 6572 7369 6f6e  runtime".version
│ │ │ -000a7ce0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000a7da0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000a7db0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a7e30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a7e40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a7e60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a7e70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a7e90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a7eb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a7ee0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000a7ef0: 7461 6c6c 5f6c 6962 7061 6d2d 7275 6e74  tall_libpam-runt
│ │ │ -000a7f00: 696d 650a 0a63 6c61 7373 2069 6e73 7461  ime..class insta
│ │ │ -000a7f10: 6c6c 5f6c 6962 7061 6d2d 7275 6e74 696d  ll_libpam-runtim
│ │ │ -000a7f20: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ -000a7f30: 276c 6962 7061 6d2d 7275 6e74 696d 6527  'libpam-runtime'
│ │ │ -000a7f40: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000a7f50: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000a7f60: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000a8020: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000a8030: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a80b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a80c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a80e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a80f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a8110: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a8130: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a8160: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ -000a8170: 7572 6520 6c69 6270 616d 2d72 756e 7469  ure libpam-runti
│ │ │ -000a8180: 6d65 2069 7320 696e 7374 616c 6c65 640a  me is installed.
│ │ │ -000a8190: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000a81a0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000a81b0: 616d 653a 206c 6962 7061 6d2d 7275 6e74  ame: libpam-runt
│ │ │ -000a81c0: 696d 650a 2020 2020 7374 6174 653a 2070  ime.    state: p
│ │ │ -000a81d0: 7265 7365 6e74 0a20 2074 6167 733a 0a20  resent.  tags:. 
│ │ │ -000a81e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000a81f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000a8200: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000a8210: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000a8220: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000a8230: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000a8240: 640a 2020 2d20 7061 636b 6167 655f 7061  d.  - package_pa
│ │ │ -000a8250: 6d5f 7275 6e74 696d 655f 696e 7374 616c  m_runtime_instal
│ │ │ -000a8260: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

│ │ │ +000a7ce0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000a7cf0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000a7d00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000a7d40: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000a7d50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000a7d70: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000a7d90: 3c63 6f64 653e 2d20 6e61 6d65 3a20 456e  - name: En
│ │ │ +000a7da0: 7375 7265 206c 6962 7061 6d2d 7275 6e74  sure libpam-runt
│ │ │ +000a7db0: 696d 6520 6973 2069 6e73 7461 6c6c 6564  ime is installed
│ │ │ +000a7dc0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000a7dd0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000a7de0: 6e61 6d65 3a20 6c69 6270 616d 2d72 756e  name: libpam-run
│ │ │ +000a7df0: 7469 6d65 0a20 2020 2073 7461 7465 3a20  time.    state: 
│ │ │ +000a7e00: 7072 6573 656e 740a 2020 7461 6773 3a0a  present.  tags:.
│ │ │ +000a7e10: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000a7e20: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000a7e30: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000a7e40: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000a7e50: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000a7e60: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000a7e70: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ +000a7e80: 616d 5f72 756e 7469 6d65 5f69 6e73 7461  am_runtime_insta
│ │ │ +000a7e90: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +000a7f50: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000a7f60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000a7ff0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000a8010: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000a8030: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000a8060: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000a8070: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000a8080: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +000a80a0: 6c6c 5f6c 6962 7061 6d2d 7275 6e74 696d  ll_libpam-runtim
│ │ │ +000a80b0: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ +000a80c0: 5f6c 6962 7061 6d2d 7275 6e74 696d 6520  _libpam-runtime 
│ │ │ +000a80d0: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ +000a80e0: 6962 7061 6d2d 7275 6e74 696d 6527 3a0a  ibpam-runtime':.
│ │ │ +000a80f0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000a8100: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000a8110: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000a81d0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000a81e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000a8230: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000a8240: 6d65 203d 2022 6c69 6270 616d 2d72 756e  me = "libpam-run
│ │ │ +000a8250: 7469 6d65 220a 7665 7273 696f 6e20 3d20  time".version = 
│ │ │ +000a8260: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remedi │ │ │ -000e1d20: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000e1d30: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000e1d40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000e1d80: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000e1d90: 735d 5d0a 6e61 6d65 203d 2022 6170 7061  s]].name = "appa
│ │ │ -000e1da0: 726d 6f72 2d75 7469 6c73 220a 7665 7273  rmor-utils".vers
│ │ │ -000e1db0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000e1e70: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000e1e80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000e1e90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000e1ec0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000e1f30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000e1f50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000e1f80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000e1fa0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000e1f10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000e1f20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000e1f60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000e1f70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000e1fc0: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ -000e1fd0: 2d75 7469 6c73 0a0a 636c 6173 7320 696e -utils..class in │ │ │ -000e1fe0: 7374 616c 6c5f 6170 7061 726d 6f72 2d75 stall_apparmor-u │ │ │ -000e1ff0: 7469 6c73 207b 0a20 2070 6163 6b61 6765 tils {. package │ │ │ -000e2000: 207b 2027 6170 7061 726d 6f72 2d75 7469 { 'apparmor-uti │ │ │ -000e2010: 6c73 273a 0a20 2020 2065 6e73 7572 6520 ls':. ensure │ │ │ -000e2020: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ -000e2030: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -000e2040: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -000e20f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000e2100: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000e2110: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000e2140: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000e21b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000e21d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000e2200: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000e2220: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000e2190: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000e21a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000e21e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000e21f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -000e2240: 456e 7375 7265 2061 7070 6172 6d6f 722d Ensure apparmor- │ │ │ -000e2250: 7574 696c 7320 6973 2069 6e73 7461 6c6c utils is install │ │ │ -000e2260: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -000e2270: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -000e2280: 2020 6e61 6d65 3a20 6170 7061 726d 6f72 name: apparmor │ │ │ -000e2290: 2d75 7469 6c73 0a20 2020 2073 7461 7465 -utils. state │ │ │ -000e22a0: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ -000e22b0: 3a20 616e 7369 626c 655f 7669 7274 7561 : ansible_virtua │ │ │ -000e22c0: 6c69 7a61 7469 6f6e 5f74 7970 6520 6e6f lization_type no │ │ │ -000e22d0: 7420 696e 205b 2264 6f63 6b65 7222 2c20 t in ["docker", │ │ │ -000e22e0: 226c 7863 222c 2022 6f70 656e 767a 222c "lxc", "openvz", │ │ │ -000e22f0: 2022 706f 646d 616e 222c 2022 636f 6e74 "podman", "cont │ │ │ -000e2300: 6169 6e65 7222 5d0a 2020 7461 6773 3a0a ainer"]. tags:. │ │ │ -000e2310: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ -000e2320: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -000e2330: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -000e2340: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -000e2350: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -000e2360: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -000e2370: 6564 0a20 202d 2070 6163 6b61 6765 5f61 ed. - package_a │ │ │ -000e2380: 7070 6172 6d6f 722d 7574 696c 735f 696e pparmor-utils_in │ │ │ -000e2390: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000e1d20: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +000e1d30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000e1de0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000e1e00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000e1e30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000e1dc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000e1dd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000e1df0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000e1e10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000e1e20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000e1e70: 2045 6e73 7572 6520 6170 7061 726d 6f72 Ensure apparmor │ │ │ +000e1e80: 2d75 7469 6c73 2069 7320 696e 7374 616c -utils is instal │ │ │ +000e1e90: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +000e1ea0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +000e1eb0: 2020 206e 616d 653a 2061 7070 6172 6d6f name: apparmo │ │ │ +000e1ec0: 722d 7574 696c 730a 2020 2020 7374 6174 r-utils. stat │ │ │ +000e1ed0: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ +000e1ee0: 6e3a 2061 6e73 6962 6c65 5f76 6972 7475 n: ansible_virtu │ │ │ +000e1ef0: 616c 697a 6174 696f 6e5f 7479 7065 206e alization_type n │ │ │ +000e1f00: 6f74 2069 6e20 5b22 646f 636b 6572 222c ot in ["docker", │ │ │ +000e1f10: 2022 6c78 6322 2c20 226f 7065 6e76 7a22 "lxc", "openvz" │ │ │ +000e1f20: 2c20 2270 6f64 6d61 6e22 2c20 2263 6f6e , "podman", "con │ │ │ +000e1f30: 7461 696e 6572 225d 0a20 2074 6167 733a tainer"]. tags: │ │ │ +000e1f40: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000e1f50: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +000e1f60: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +000e1f70: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +000e1f80: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +000e1f90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000e1fa0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +000e1fb0: 6170 7061 726d 6f72 2d75 7469 6c73 5f69 apparmor-utils_i │ │ │ +000e1fc0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e nstalled. │ │ │ +000e1fd0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ +000e2080: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000e2090: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000e20a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e20b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e20c0: 7365 2220 6964 3d22 6964 3238 3122 3e3c se" id="id281">< │ │ │ +000e20d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e20e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e20f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e2100: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e2110: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000e2120: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e2130: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000e2170: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e2180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000e21a0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000e21b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +000e21d0: 6e73 7461 6c6c 5f61 7070 6172 6d6f 722d  nstall_apparmor-
│ │ │ +000e21e0: 7574 696c 730a 0a63 6c61 7373 2069 6e73  utils..class ins
│ │ │ +000e21f0: 7461 6c6c 5f61 7070 6172 6d6f 722d 7574  tall_apparmor-ut
│ │ │ +000e2200: 696c 7320 7b0a 2020 7061 636b 6167 6520  ils {.  package 
│ │ │ +000e2210: 7b20 2761 7070 6172 6d6f 722d 7574 696c  { 'apparmor-util
│ │ │ +000e2220: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +000e2230: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +000e2240: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +000e2250: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +000e2300: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +000e2310: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +000e2320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +000e2370: 5d0a 6e61 6d65 203d 2022 6170 7061 726d  ].name = "apparm
│ │ │ +000e2380: 6f72 2d75 7469 6c73 220a 7665 7273 696f  or-utils".versio
│ │ │ +000e2390: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  000e23a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remed │ │ │ -000e3010: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000e3020: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000e3030: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -000e3080: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ -000e3090: 6172 6d6f 7222 0a76 6572 7369 6f6e 203d  armor".version =
│ │ │ -000e30a0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -000e3160: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000e3170: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000e3200: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000e3220: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000e3240: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000e3270: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000e3280: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000e3290: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -000e32b0: 6c6c 5f61 7070 6172 6d6f 720a 0a63 6c61  ll_apparmor..cla
│ │ │ -000e32c0: 7373 2069 6e73 7461 6c6c 5f61 7070 6172  ss install_appar
│ │ │ -000e32d0: 6d6f 7220 7b0a 2020 7061 636b 6167 6520  mor {.  package 
│ │ │ -000e32e0: 7b20 2761 7070 6172 6d6f 7227 3a0a 2020  { 'apparmor':.  
│ │ │ -000e32f0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000e3300: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -000e3310: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000e3320: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000e33d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000e33e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000e3460: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000e3480: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000e34d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ -000e3520: 6170 7061 726d 6f72 2069 7320 696e 7374  apparmor is inst
│ │ │ -000e3530: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000e3540: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000e3550: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ -000e3560: 6d6f 720a 2020 2020 7374 6174 653a 2070  mor.    state: p
│ │ │ -000e3570: 7265 7365 6e74 0a20 2077 6865 6e3a 2061  resent.  when: a
│ │ │ -000e3580: 6e73 6962 6c65 5f76 6972 7475 616c 697a  nsible_virtualiz
│ │ │ -000e3590: 6174 696f 6e5f 7479 7065 206e 6f74 2069  ation_type not i
│ │ │ -000e35a0: 6e20 5b22 646f 636b 6572 222c 2022 6c78  n ["docker", "lx
│ │ │ -000e35b0: 6322 2c20 226f 7065 6e76 7a22 2c20 2270  c", "openvz", "p
│ │ │ -000e35c0: 6f64 6d61 6e22 2c20 2263 6f6e 7461 696e  odman", "contain
│ │ │ -000e35d0: 6572 225d 0a20 2074 6167 733a 0a20 202d  er"].  tags:.  -
│ │ │ -000e35e0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000e35f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000e3600: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000e3610: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000e3620: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000e3630: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000e3640: 2020 2d20 7061 636b 6167 655f 6170 7061    - package_appa
│ │ │ -000e3650: 726d 6f72 5f69 6e73 7461 6c6c 6564 0a3c  rmor_installed.<
│ │ │ +000e3010: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +000e3020: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -000e3490: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000e34a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000e34e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000e34f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +000e30b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000e30c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000e30e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000e3100: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000e3110: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000e3150: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000e3160: 3a20 456e 7375 7265 2061 7070 6172 6d6f : Ensure apparmo │ │ │ +000e3170: 7220 6973 2069 6e73 7461 6c6c 6564 0a20 r is installed. │ │ │ +000e3180: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +000e3190: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +000e31a0: 6d65 3a20 6170 7061 726d 6f72 0a20 2020 me: apparmor. │ │ │ +000e31b0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ +000e31c0: 2020 7768 656e 3a20 616e 7369 626c 655f when: ansible_ │ │ │ +000e31d0: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74 virtualization_t │ │ │ +000e31e0: 7970 6520 6e6f 7420 696e 205b 2264 6f63 ype not in ["doc │ │ │ +000e31f0: 6b65 7222 2c20 226c 7863 222c 2022 6f70 ker", "lxc", "op │ │ │ +000e3200: 656e 767a 222c 2022 706f 646d 616e 222c envz", "podman", │ │ │ +000e3210: 2022 636f 6e74 6169 6e65 7222 5d0a 2020 "container"]. │ │ │ +000e3220: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +000e3230: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +000e3240: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +000e3250: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +000e3260: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +000e3270: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +000e3280: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +000e3290: 6b61 6765 5f61 7070 6172 6d6f 725f 696e kage_apparmor_in │ │ │ +000e32a0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000e32b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +000e3360: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000e3370: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000e33f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000e3400: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000e3410: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000e3450: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000e3460: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000e3480: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000e34a0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000e34b0: 7374 616c 6c5f 6170 7061 726d 6f72 0a0a  stall_apparmor..
│ │ │ +000e34c0: 636c 6173 7320 696e 7374 616c 6c5f 6170  class install_ap
│ │ │ +000e34d0: 7061 726d 6f72 207b 0a20 2070 6163 6b61  parmor {.  packa
│ │ │ +000e34e0: 6765 207b 2027 6170 7061 726d 6f72 273a  ge { 'apparmor':
│ │ │ +000e34f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000e3500: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000e3510: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +000e35d0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +000e35e0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +000e3640: 616d 6520 3d20 2261 7070 6172 6d6f 7222  ame = "apparmor"
│ │ │ +000e3650: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  000e3660: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000f0d90: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000f0da0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000f0db0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000f0dc0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000f0df0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -000f0e00: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000f0e10: 2273 7973 7465 6d64 2d6a 6f75 726e 616c  "systemd-journal
│ │ │ -000f0e20: 2d72 656d 6f74 6522 0a76 6572 7369 6f6e  -remote".version
│ │ │ -000f0e30: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000f0ef0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000f0f00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f0f80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000f0f90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000f0fb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000f0fc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000f0fe0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000f1000: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000f1030: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000f1040: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ -000f1050: 726e 616c 2d72 656d 6f74 650a 0a63 6c61  rnal-remote..cla
│ │ │ -000f1060: 7373 2069 6e73 7461 6c6c 5f73 7973 7465  ss install_syste
│ │ │ -000f1070: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000f1080: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ -000f1090: 2773 7973 7465 6d64 2d6a 6f75 726e 616c  'systemd-journal
│ │ │ -000f10a0: 2d72 656d 6f74 6527 3a0a 2020 2020 656e  -remote':.    en
│ │ │ -000f10b0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000f10c0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000f1180: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000f1190: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -000f1230: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f1240: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000f1290: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000f12d0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000f12e0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000f12f0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000f1300: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000f1310: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -000f1320: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000f1330: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000f1340: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000f1350: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000f1360: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000f1370: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000f1380: 7061 636b 6167 655f 7379 7374 656d 642d  package_systemd-
│ │ │ -000f1390: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 5f69  journal-remote_i
│ │ │ -000f13a0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -000f13b0: 3a20 456e 7375 7265 2073 7973 7465 6d64  : Ensure systemd
│ │ │ -000f13c0: 2d6a 6f75 726e 616c 2d72 656d 6f74 6520  -journal-remote 
│ │ │ -000f13d0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000f13e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000f13f0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000f1400: 3a20 7379 7374 656d 642d 6a6f 7572 6e61  : systemd-journa
│ │ │ -000f1410: 6c2d 7265 6d6f 7465 0a20 2020 2073 7461  l-remote.    sta
│ │ │ -000f1420: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -000f1430: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -000f1440: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000f1450: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000f1460: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -000f1470: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000f1480: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000f1490: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000f14a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000f14b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000f14c0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000f14d0: 6167 655f 7379 7374 656d 642d 6a6f 7572  age_systemd-jour
│ │ │ -000f14e0: 6e61 6c2d 7265 6d6f 7465 5f69 6e73 7461  nal-remote_insta
│ │ │ -000f14f0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
C │ │ │ -000f1220: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000f1250: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000f1260: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000f12a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000f12b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000f0e40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000f0ee0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000f0ef0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +000f0f00: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +000f0f10: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000f0f20: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ +000f0f30: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000f0f40: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000f0f50: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000f0f60: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000f0f70: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000f0f80: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000f0f90: 2070 6163 6b61 6765 5f73 7973 7465 6d64   package_systemd
│ │ │ +000f0fa0: 2d6a 6f75 726e 616c 2d72 656d 6f74 655f  -journal-remote_
│ │ │ +000f0fb0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +000f0fc0: 653a 2045 6e73 7572 6520 7379 7374 656d  e: Ensure system
│ │ │ +000f0fd0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000f0fe0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000f0ff0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000f1000: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000f1010: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ +000f1020: 616c 2d72 656d 6f74 650a 2020 2020 7374  al-remote.    st
│ │ │ +000f1030: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +000f1040: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +000f1050: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +000f1060: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +000f1070: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +000f1080: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000f1090: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000f10a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000f10b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000f10c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000f10d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000f10e0: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75  kage_systemd-jou
│ │ │ +000f10f0: 726e 616c 2d72 656d 6f74 655f 696e 7374  rnal-remote_inst
│ │ │ +000f1100: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediatio │ │ │ +000f11c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000f11d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000f1290: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f12a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +000f0e30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000f0e60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000f0e70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000f0eb0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000f0ec0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +000f1260: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000f1280: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000f12b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000f12d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000f1310: 616c 6c5f 7379 7374 656d 642d 6a6f 7572  all_systemd-jour
│ │ │ +000f1320: 6e61 6c2d 7265 6d6f 7465 0a0a 636c 6173  nal-remote..clas
│ │ │ +000f1330: 7320 696e 7374 616c 6c5f 7379 7374 656d  s install_system
│ │ │ +000f1340: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000f1350: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000f1360: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000f1370: 7265 6d6f 7465 273a 0a20 2020 2065 6e73  remote':.    ens
│ │ │ +000f1380: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +000f1390: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +000f13b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000f1450: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000f1460: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000f1470: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +000f14c0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2273 ages]].name = "s │ │ │ +000f14d0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72 ystemd-journal-r │ │ │ +000f14e0: 656d 6f74 6522 0a76 6572 7369 6f6e 203d emote".version = │ │ │ +000f14f0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".

Remediati │ │ │ -000f2620: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000f2630: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000f2640: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -000f2690: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -000f26a0: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ -000f26b0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ -000f26c0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -000f26d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -000f2780: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000f2790: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000f2810: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000f2830: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000f2880: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -000f28d0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -000f28e0: 7570 6c6f 6164 0a0a 636c 6173 7320 656e  upload..class en
│ │ │ -000f28f0: 6162 6c65 5f73 7973 7465 6d64 2d6a 6f75  able_systemd-jou
│ │ │ -000f2900: 726e 616c 2d75 706c 6f61 6420 7b0a 2020  rnal-upload {.  
│ │ │ -000f2910: 7365 7276 6963 6520 7b27 7379 7374 656d  service {'system
│ │ │ -000f2920: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ -000f2930: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -000f2940: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -000f2950: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -000f2960: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -000f2980: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000f2990: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000f29a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000f29b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000f29c0: 6433 3133 2220 7461 6269 6e64 6578 3d22 d313" tabindex=" │ │ │ -000f29d0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000f29e0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000f29f0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000f2a00: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000f2a10: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000f2a20: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -000f2a30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f2a40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -000f2840: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000f2850: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000f2890: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000f28a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -000f2ac0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000f2af0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000f2b10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000f2b20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000f2b40: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000f2b60: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000f2b70: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000f2b80: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -000f2b90: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000f2ba0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -000f2bb0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -000f2bc0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000f2bd0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000f2be0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000f2bf0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000f2c00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000f2c10: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -000f2c20: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ -000f2c30: 7572 6e61 6c2d 7570 6c6f 6164 5f65 6e61  urnal-upload_ena
│ │ │ -000f2c40: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -000f2c50: 6162 6c65 2073 7973 7465 6d64 2d6a 6f75  able systemd-jou
│ │ │ -000f2c60: 726e 616c 2d75 706c 6f61 6420 5365 7276  rnal-upload Serv
│ │ │ -000f2c70: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -000f2c80: 7669 6365 2073 7973 7465 6d64 2d6a 6f75  vice systemd-jou
│ │ │ -000f2c90: 726e 616c 2d75 706c 6f61 640a 2020 626c  rnal-upload.  bl
│ │ │ -000f2ca0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -000f2cb0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -000f2cc0: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -000f2cd0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -000f2ce0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -000f2cf0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000f2d00: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -000f2d10: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ -000f2d20: 6c2d 7570 6c6f 6164 2053 6572 7669 6365  l-upload Service
│ │ │ -000f2d30: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -000f2d40: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ -000f2d50: 6c2d 7570 6c6f 6164 0a20 2020 2061 6e73  l-upload.    ans
│ │ │ -000f2d60: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000f2d70: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000f2d80: 3a20 7379 7374 656d 642d 6a6f 7572 6e61  : systemd-journa
│ │ │ -000f2d90: 6c2d 7570 6c6f 6164 0a20 2020 2020 2065  l-upload.      e
│ │ │ -000f2da0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -000f2db0: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -000f2dc0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -000f2dd0: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -000f2de0: 2020 2020 2d20 2722 7379 7374 656d 642d      - '"systemd-
│ │ │ -000f2df0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 2220  journal-remote" 
│ │ │ -000f2e00: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000f2e10: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000f2e20: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000f2e30: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000f2e40: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000f2e50: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000f2e60: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000f2e70: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000f2e80: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -000f2e90: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ -000f2ea0: 6c2d 7570 6c6f 6164 5f65 6e61 626c 6564  l-upload_enabled
│ │ │ -000f2eb0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -000f2ec0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -000f2ed0: 6e3a 0a20 202d 2027 226c 696e 7578 2d62  n:.  - '"linux-b
│ │ │ -000f2ee0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -000f2ef0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -000f2f00: 2020 2d20 2820 616e 7369 626c 655f 7669    - ( ansible_vi
│ │ │ -000f2f10: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ -000f2f20: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ -000f2f30: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ -000f2f40: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ -000f2f50: 636f 6e74 6169 6e65 7222 5d0a 2020 2020  container"].    
│ │ │ -000f2f60: 616e 6420 2273 7973 7465 6d64 2d6a 6f75  and "systemd-jou
│ │ │ -000f2f70: 726e 616c 2d72 656d 6f74 6522 2069 6e20  rnal-remote" in 
│ │ │ -000f2f80: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000f2f90: 636b 6167 6573 2029 0a3c 2f63 6f64 653e  ckages ).
│ │ │ +000f2620: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +000f2630: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +000f26b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000f26c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000f26d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000f2710: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000f2720: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000f2740: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000f2760: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000f2770: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000f2780: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000f2790: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000f27a0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000f27b0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +000f27c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000f27d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000f27e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000f27f0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000f2800: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000f2810: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000f2820: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000f2830: 2d75 706c 6f61 645f 656e 6162 6c65 640a  -upload_enabled.
│ │ │ +000f2840: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +000f2850: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000f2860: 7570 6c6f 6164 2053 6572 7669 6365 202d  upload Service -
│ │ │ +000f2870: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +000f2880: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000f2890: 7570 6c6f 6164 0a20 2062 6c6f 636b 3a0a  upload.  block:.
│ │ │ +000f28a0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +000f28b0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000f28c0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +000f28d0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +000f28e0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +000f28f0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +000f2900: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ +000f2910: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000f2920: 6f61 6420 5365 7276 6963 6520 2d20 456e  oad Service - En
│ │ │ +000f2930: 6162 6c65 2053 6572 7669 6365 2073 7973  able Service sys
│ │ │ +000f2940: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000f2950: 6f61 640a 2020 2020 616e 7369 626c 652e  oad.    ansible.
│ │ │ +000f2960: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +000f2970: 0a20 2020 2020 206e 616d 653a 2073 7973  .      name: sys
│ │ │ +000f2980: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000f2990: 6f61 640a 2020 2020 2020 656e 6162 6c65  oad.      enable
│ │ │ +000f29a0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +000f29b0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +000f29c0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +000f29d0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +000f29e0: 2027 2273 7973 7465 6d64 2d6a 6f75 726e   '"systemd-journ
│ │ │ +000f29f0: 616c 2d72 656d 6f74 6522 2069 6e20 616e  al-remote" in an
│ │ │ +000f2a00: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000f2a10: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000f2a20: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000f2a30: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000f2a40: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000f2a50: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000f2a60: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000f2a70: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000f2a80: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ +000f2a90: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ +000f2aa0: 6f61 645f 656e 6162 6c65 640a 2020 2d20  oad_enabled.  - 
│ │ │ +000f2ab0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +000f2ac0: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ +000f2ad0: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ +000f2ae0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000f2af0: 2e70 6163 6b61 6765 7327 0a20 202d 2028  .packages'.  - (
│ │ │ +000f2b00: 2061 6e73 6962 6c65 5f76 6972 7475 616c   ansible_virtual
│ │ │ +000f2b10: 697a 6174 696f 6e5f 7479 7065 206e 6f74  ization_type not
│ │ │ +000f2b20: 2069 6e20 5b22 646f 636b 6572 222c 2022   in ["docker", "
│ │ │ +000f2b30: 6c78 6322 2c20 226f 7065 6e76 7a22 2c20  lxc", "openvz", 
│ │ │ +000f2b40: 2270 6f64 6d61 6e22 2c20 2263 6f6e 7461  "podman", "conta
│ │ │ +000f2b50: 696e 6572 225d 0a20 2020 2061 6e64 2022  iner"].    and "
│ │ │ +000f2b60: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000f2b70: 7265 6d6f 7465 2220 696e 2061 6e73 6962  remote" in ansib
│ │ │ +000f2b80: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000f2b90: 7320 290a 3c2f 636f 6465 3e3c 2f70 7265  s ).
Remediation │ │ │ +000f2c50: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000f2c60: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +000f2ce0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000f2d00: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000f2d50: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000f2d80: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +000f2da0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000f2db0: 2d75 706c 6f61 640a 0a63 6c61 7373 2065  -upload..class e
│ │ │ +000f2dc0: 6e61 626c 655f 7379 7374 656d 642d 6a6f  nable_systemd-jo
│ │ │ +000f2dd0: 7572 6e61 6c2d 7570 6c6f 6164 207b 0a20  urnal-upload {. 
│ │ │ +000f2de0: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ +000f2df0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +000f2e00: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +000f2e10: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +000f2e20: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +000f2e30: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +000f2e50: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000f2ef0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000f2f00: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000f2f10: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +000f2f60: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +000f2f70: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ +000f2f80: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000f2f90: 7570 6c6f 6164 225d 0a3c 2f63 6f64 653e upload"]. │ │ │ 000f2fa0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remediati │ │ │ -000f3e80: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000f3e90: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000f3ea0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

.[customizati
│ │ │ -000f3ef0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -000f3f00: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ -000f3f10: 642d 6a6f 7572 6e61 6c64 225d 0a3c 2f63  d-journald"].
│ │ │ -000f3f30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000f3fd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000f3fe0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f3ff0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +000f2cf0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000f2d10: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000f2d60: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000f2d70: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -000f4070: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000f40a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000f40c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000f40d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000f40f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000f4110: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000f4120: 6465 2065 6e61 626c 655f 7379 7374 656d  de enable_system
│ │ │ -000f4130: 642d 6a6f 7572 6e61 6c64 0a0a 636c 6173  d-journald..clas
│ │ │ -000f4140: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ -000f4150: 2d6a 6f75 726e 616c 6420 7b0a 2020 7365  -journald {.  se
│ │ │ -000f4160: 7276 6963 6520 7b27 7379 7374 656d 642d  rvice {'systemd-
│ │ │ -000f4170: 6a6f 7572 6e61 6c64 273a 0a20 2020 2065  journald':.    e
│ │ │ -000f4180: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -000f4190: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -000f41a0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -000f41b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -000f4270: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000f4280: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000f4310: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000f4330: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000f4350: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000f4380: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000f4390: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000f43a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -000f43c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000f43d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -000f43e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -000f43f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -000f4400: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -000f4410: 432d 3234 0a20 202d 2065 6e61 626c 655f  C-24.  - enable_
│ │ │ -000f4420: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000f4430: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000f4440: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000f4450: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000f4460: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000f4470: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -000f4480: 6963 655f 7379 7374 656d 642d 6a6f 7572  ice_systemd-jour
│ │ │ -000f4490: 6e61 6c64 5f65 6e61 626c 6564 0a0a 2d20  nald_enabled..- 
│ │ │ -000f44a0: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ -000f44b0: 7465 6d64 2d6a 6f75 726e 616c 6420 5365  temd-journald Se
│ │ │ -000f44c0: 7276 6963 6520 2d20 456e 6162 6c65 2073  rvice - Enable s
│ │ │ -000f44d0: 6572 7669 6365 2073 7973 7465 6d64 2d6a  ervice systemd-j
│ │ │ -000f44e0: 6f75 726e 616c 640a 2020 626c 6f63 6b3a  ournald.  block:
│ │ │ -000f44f0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -000f4500: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000f4510: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -000f4520: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000f4530: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -000f4540: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -000f4550: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ -000f4560: 7374 656d 642d 6a6f 7572 6e61 6c64 2053  stemd-journald S
│ │ │ -000f4570: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000f4580: 5365 7276 6963 6520 7379 7374 656d 642d  Service systemd-
│ │ │ -000f4590: 6a6f 7572 6e61 6c64 0a20 2020 2061 6e73  journald.    ans
│ │ │ -000f45a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000f45b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000f45c0: 3a20 7379 7374 656d 642d 6a6f 7572 6e61  : systemd-journa
│ │ │ -000f45d0: 6c64 0a20 2020 2020 2065 6e61 626c 6564  ld.      enabled
│ │ │ -000f45e0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -000f45f0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -000f4600: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -000f4610: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -000f4620: 2722 7379 7374 656d 6422 2069 6e20 616e  '"systemd" in an
│ │ │ -000f4630: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000f4640: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000f4650: 2d20 4e49 5354 2d38 3030 2d35 332d 5343  - NIST-800-53-SC
│ │ │ -000f4660: 2d32 340a 2020 2d20 656e 6162 6c65 5f73  -24.  - enable_s
│ │ │ -000f4670: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000f4680: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000f4690: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000f46a0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000f46b0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000f46c0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -000f46d0: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ -000f46e0: 616c 645f 656e 6162 6c65 640a 2020 2d20  ald_enabled.  - 
│ │ │ -000f46f0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -000f4700: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -000f4710: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -000f4720: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000f4730: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +000f3f10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000f3f20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000f3f30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000f3f70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000f3f80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000f3fa0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000f3fc0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000f3fd0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000f3fe0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000f3ff0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000f4000: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000f4010: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000f4020: 332d 5343 2d32 340a 2020 2d20 656e 6162  3-SC-24.  - enab
│ │ │ +000f4030: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000f4040: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000f4050: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000f4060: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000f4070: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000f4080: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000f4090: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +000f40a0: 6f75 726e 616c 645f 656e 6162 6c65 640a  ournald_enabled.
│ │ │ +000f40b0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +000f40c0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +000f40d0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +000f40e0: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ +000f40f0: 642d 6a6f 7572 6e61 6c64 0a20 2062 6c6f  d-journald.  blo
│ │ │ +000f4100: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ +000f4110: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000f4120: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ +000f4130: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000f4140: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ +000f4150: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ +000f4160: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ +000f4170: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000f4180: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +000f4190: 6c65 2053 6572 7669 6365 2073 7973 7465  le Service syste
│ │ │ +000f41a0: 6d64 2d6a 6f75 726e 616c 640a 2020 2020  md-journald.    
│ │ │ +000f41b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000f41c0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +000f41d0: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ +000f41e0: 726e 616c 640a 2020 2020 2020 656e 6162  rnald.      enab
│ │ │ +000f41f0: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +000f4200: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +000f4210: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +000f4220: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +000f4230: 202d 2027 2273 7973 7465 6d64 2220 696e   - '"systemd" in
│ │ │ +000f4240: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000f4250: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000f4260: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000f4270: 2d53 432d 3234 0a20 202d 2065 6e61 626c  -SC-24.  - enabl
│ │ │ +000f4280: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000f4290: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000f42a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000f42b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000f42c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000f42d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +000f42e0: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ +000f42f0: 7572 6e61 6c64 5f65 6e61 626c 6564 0a20  urnald_enabled. 
│ │ │ +000f4300: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +000f4310: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +000f4320: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +000f4330: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000f4340: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +000f4400: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000f4410: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000f4420: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000f4450: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000f44c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000f44e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000f4510: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000f4530: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000f44a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000f44b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000f44f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000f4500: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000f4550: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a enable_systemd-j │ │ │ +000f4560: 6f75 726e 616c 640a 0a63 6c61 7373 2065 ournald..class e │ │ │ +000f4570: 6e61 626c 655f 7379 7374 656d 642d 6a6f nable_systemd-jo │ │ │ +000f4580: 7572 6e61 6c64 207b 0a20 2073 6572 7669 urnald {. servi │ │ │ +000f4590: 6365 207b 2773 7973 7465 6d64 2d6a 6f75 ce {'systemd-jou │ │ │ +000f45a0: 726e 616c 6427 3a0a 2020 2020 656e 6162 rnald':. enab │ │ │ +000f45b0: 6c65 203d 2667 743b 2074 7275 652c 0a20 le => true,. │ │ │ +000f45c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +000f45d0: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d 'running',. }.} │ │ │ +000f45e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation OSB │ │ │ +000f46a0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000f46b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +000f4700: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +000f4710: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +000f4720: 3d20 5b22 7379 7374 656d 642d 6a6f 7572  = ["systemd-jour
│ │ │ +000f4730: 6e61 6c64 225d 0a3c 2f63 6f64 653e 3c2f  nald"].
Remediat │ │ │ -001022b0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -001022c0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -001022d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00102320: 5d0a 6e61 6d65 203d 2022 7273 7973 6c6f  ].name = "rsyslo
│ │ │ -00102330: 6722 0a76 6572 7369 6f6e 203d 2022 2a22  g".version = "*"
│ │ │ -00102340: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00102400: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00102410: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001024e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001024f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00102540: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ -00102550: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ -00102560: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ -00102570: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ -00102580: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ -00102590: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -001025a0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00102660: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00102670: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ -001024c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001024d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00102510: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00102520: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00102700: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00102710: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00102730: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00102750: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00102760: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -001027a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001027b0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001027c0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -001027d0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -001027e0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -001027f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00102800: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00102810: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -00102820: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00102830: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00102840: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00102850: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00102860: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00102870: 0a20 202d 2070 6163 6b61 6765 5f72 7379 . - package_rsy │ │ │ -00102880: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a0a slog_installed.. │ │ │ -00102890: 2d20 6e61 6d65 3a20 456e 7375 7265 2072 - name: Ensure r │ │ │ -001028a0: 7379 736c 6f67 2069 7320 696e 7374 616c syslog is instal │ │ │ -001028b0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -001028c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -001028d0: 2020 206e 616d 653a 2072 7379 736c 6f67 name: rsyslog │ │ │ -001028e0: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ -001028f0: 656e 740a 2020 7768 656e 3a20 2722 6c69 ent. when: '"li │ │ │ -00102900: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -00102910: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -00102920: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -00102930: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00102940: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -00102950: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00102960: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00102970: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00102980: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00102990: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001029a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -001029b0: 6167 655f 7273 7973 6c6f 675f 696e 7374 age_rsyslog_inst │ │ │ -001029c0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +001022d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001022e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001022f0: 7365 2220 6964 3d22 6964 3334 3222 3e3c se" id="id342">< │ │ │ +00102300: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00102310: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00102320: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00102330: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00102340: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00102350: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00102360: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001023a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001023b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001023d0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +001023e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00102400: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00102410: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00102420: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00102430: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00102440: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00102450: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +00102460: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00102470: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00102480: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00102490: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +001024a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +001024b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +001024c0: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +001024d0: 675f 696e 7374 616c 6c65 640a 0a2d 206e  g_installed..- n
│ │ │ +001024e0: 616d 653a 2045 6e73 7572 6520 7273 7973  ame: Ensure rsys
│ │ │ +001024f0: 6c6f 6720 6973 2069 6e73 7461 6c6c 6564  log is installed
│ │ │ +00102500: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00102510: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00102520: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ +00102530: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00102540: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00102550: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00102560: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00102570: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +00102580: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00102590: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +001025a0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +001025b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001025c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001025d0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +001025e0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +001025f0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00102600: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ +00102610: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00102620: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +001026d0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +001026e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00102760: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00102780: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +001027d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00102820: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +00102830: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ +00102840: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +00102850: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ +00102860: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00102870: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00102890: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00102930: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00102940: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00102950: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +001029a0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2272 ages]].name = "r │ │ │ +001029b0: 7379 736c 6f67 220a 7665 7273 696f 6e20 syslog".version │ │ │ +001029c0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediat │ │ │ -00103c40: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00103c50: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00103c60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -00103cb0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -00103cc0: 6e61 626c 6564 203d 205b 2272 7379 736c  nabled = ["rsysl
│ │ │ -00103cd0: 6f67 225d 0a3c 2f63 6f64 653e 3c2f 7072  og"].
Remediation │ │ │ -00103d90: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00103da0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00103e70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00103ec0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ +00102790: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +001027a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +001027e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +001027f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00103e30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00103e50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00103ea0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00103eb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ -00103ee0: 655f 7273 7973 6c6f 670a 0a63 6c61 7373  e_rsyslog..class
│ │ │ -00103ef0: 2065 6e61 626c 655f 7273 7973 6c6f 6720   enable_rsyslog 
│ │ │ -00103f00: 7b0a 2020 7365 7276 6963 6520 7b27 7273  {.  service {'rs
│ │ │ -00103f10: 7973 6c6f 6727 3a0a 2020 2020 656e 6162  yslog':.    enab
│ │ │ -00103f20: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -00103f30: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00103f40: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -00103f50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00104010: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00104020: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001040f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00104100: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00104150: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00104160: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00104170: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00104180: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00104190: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -001041a0: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -001041b0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -001041c0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -001041d0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -001041e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -001041f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00104200: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00104210: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00104220: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00104230: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ -00104240: 6f67 5f65 6e61 626c 6564 0a0a 2d20 6e61  og_enabled..- na
│ │ │ -00104250: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ -00104260: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ -00104270: 626c 6520 7365 7276 6963 6520 7273 7973  ble service rsys
│ │ │ -00104280: 6c6f 670a 2020 626c 6f63 6b3a 0a0a 2020  log.  block:..  
│ │ │ -00104290: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -001042a0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -001042b0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -001042c0: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -001042d0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -001042e0: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -001042f0: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ -00104300: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ -00104310: 6c65 2053 6572 7669 6365 2072 7379 736c  le Service rsysl
│ │ │ -00104320: 6f67 0a20 2020 2061 6e73 6962 6c65 2e62  og.    ansible.b
│ │ │ -00104330: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00104340: 2020 2020 2020 6e61 6d65 3a20 7273 7973        name: rsys
│ │ │ -00104350: 6c6f 670a 2020 2020 2020 656e 6162 6c65  log.      enable
│ │ │ -00104360: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ -00104370: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ -00104380: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ -00104390: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ -001043a0: 2027 2272 7379 736c 6f67 2220 696e 2061   '"rsyslog" in a
│ │ │ -001043b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -001043c0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -001043d0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -001043e0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -001043f0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00104400: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00104410: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00104420: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00104430: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00104440: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00104450: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00104460: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -00104470: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ -00104480: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00104490: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -001044a0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -001044b0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001044c0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00103c40: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +00103c50: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +00103c60: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00103c70: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00103c80: 7365 2220 6964 3d22 6964 3334 3722 3e3c se" id="id347">< │ │ │ +00103c90: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00103ca0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00103cb0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00103cc0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00103cd0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00103d60: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00103d70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ -001040d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001040e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00104120: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00104130: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ +00103ce0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00103cf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00103d30: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00103d40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +00103d90: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00103da0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00103db0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00103dc0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00103dd0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00103de0: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ +00103df0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00103e00: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +00103e10: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00103e20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00103e30: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00103e40: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00103e50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00103e60: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00103e70: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ +00103e80: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +00103e90: 6520 7273 7973 6c6f 6720 5365 7276 6963  e rsyslog Servic
│ │ │ +00103ea0: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ +00103eb0: 6365 2072 7379 736c 6f67 0a20 2062 6c6f  ce rsyslog.  blo
│ │ │ +00103ec0: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ +00103ed0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00103ee0: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ +00103ef0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00103f00: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ +00103f10: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ +00103f20: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ +00103f30: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ +00103f40: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +00103f50: 6520 7273 7973 6c6f 670a 2020 2020 616e  e rsyslog.    an
│ │ │ +00103f60: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00103f70: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00103f80: 653a 2072 7379 736c 6f67 0a20 2020 2020  e: rsyslog.     
│ │ │ +00103f90: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +00103fa0: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +00103fb0: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +00103fc0: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +00103fd0: 3a0a 2020 2020 2d20 2722 7273 7973 6c6f  :.    - '"rsyslo
│ │ │ +00103fe0: 6722 2069 6e20 616e 7369 626c 655f 6661  g" in ansible_fa
│ │ │ +00103ff0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00104000: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00104010: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ +00104020: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00104030: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00104040: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00104050: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00104060: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00104070: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00104080: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00104090: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +001040a0: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ +001040b0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +001040c0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +001040d0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +001040e0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +001040f0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00104100: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001041b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +001041c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00104260: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00104300: 636c 7564 6520 656e 6162 6c65 5f72 7379  clude enable_rsy
│ │ │ +00104310: 736c 6f67 0a0a 636c 6173 7320 656e 6162  slog..class enab
│ │ │ +00104320: 6c65 5f72 7379 736c 6f67 207b 0a20 2073  le_rsyslog {.  s
│ │ │ +00104330: 6572 7669 6365 207b 2772 7379 736c 6f67  ervice {'rsyslog
│ │ │ +00104340: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +00104350: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ +00104360: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ +00104370: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ +00104390: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +001043a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +001043b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001043c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +001043d0: 6433 3439 2220 7461 6269 6e64 6578 3d22 d349" tabindex=" │ │ │ +001043e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +001043f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00104400: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00104410: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00104420: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00104430: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00104440: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00104450: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +001044a0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +001044b0: 735d 0a65 6e61 626c 6564 203d 205b 2272 s].enabled = ["r │ │ │ +001044c0: 7379 736c 6f67 225d 0a3c 2f63 6f64 653e syslog"]. │ │ │ 001044d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remediation OS │ │ │ -0010e160: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0010e170: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0010e180: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0010e1c0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -0010e1d0: 203d 2022 6970 7461 626c 6573 2d70 6572   = "iptables-per
│ │ │ -0010e1e0: 7369 7374 656e 7422 0a76 6572 7369 6f6e  sistent".version
│ │ │ -0010e1f0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -0010e2b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0010e2c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0010e340: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0010e380: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ +00104250: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00104280: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00104290: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001042d0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +001042e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -0010e350: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0010e370: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0010e3a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0010e3c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -0010e3f0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -0010e400: 7461 6c6c 5f69 7074 6162 6c65 732d 7065  tall_iptables-pe
│ │ │ -0010e410: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ -0010e420: 696e 7374 616c 6c5f 6970 7461 626c 6573  install_iptables
│ │ │ -0010e430: 2d70 6572 7369 7374 656e 7420 7b0a 2020  -persistent {.  
│ │ │ -0010e440: 7061 636b 6167 6520 7b20 2769 7074 6162  package { 'iptab
│ │ │ -0010e450: 6c65 732d 7065 7273 6973 7465 6e74 273a  les-persistent':
│ │ │ -0010e460: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0010e470: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -0010e480: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0010e540: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0010e550: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0010e5e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0010e600: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0010e610: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0010e620: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0010e630: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0010e650: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -0010e690: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0010e6a0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0010e6b0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0010e6c0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0010e6d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0010e6e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0010e6f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0010e700: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0010e710: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0010e720: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0010e730: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -0010e740: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -0010e750: 6e74 5f69 6e73 7461 6c6c 6564 0a0a 2d20  nt_installed..- 
│ │ │ -0010e760: 6e61 6d65 3a20 456e 7375 7265 2069 7074  name: Ensure ipt
│ │ │ -0010e770: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -0010e780: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -0010e790: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0010e7a0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0010e7b0: 653a 2069 7074 6162 6c65 732d 7065 7273  e: iptables-pers
│ │ │ -0010e7c0: 6973 7465 6e74 0a20 2020 2073 7461 7465  istent.    state
│ │ │ -0010e7d0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -0010e7e0: 3a20 2722 6970 7461 626c 6573 2220 696e  : '"iptables" in
│ │ │ -0010e7f0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0010e800: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0010e810: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0010e820: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0010e830: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0010e840: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0010e850: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0010e860: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0010e870: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0010e880: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -0010e890: 656e 745f 696e 7374 616c 6c65 640a 3c2f  ent_installed.Remediation An
│ │ │ +0010e160: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +0010e170: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +0010e1f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0010e210: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0010e260: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +0010e2b0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0010e2c0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0010e2d0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0010e2e0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0010e2f0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0010e300: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0010e310: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0010e320: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0010e330: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0010e340: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0010e350: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +0010e360: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +0010e370: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +0010e380: 653a 2045 6e73 7572 6520 6970 7461 626c  e: Ensure iptabl
│ │ │ +0010e390: 6573 2d70 6572 7369 7374 656e 7420 6973  es-persistent is
│ │ │ +0010e3a0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +0010e3b0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0010e3c0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0010e3d0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +0010e3e0: 656e 740a 2020 2020 7374 6174 653a 2070  ent.    state: p
│ │ │ +0010e3f0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +0010e400: 2269 7074 6162 6c65 7322 2069 6e20 616e  "iptables" in an
│ │ │ +0010e410: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0010e420: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0010e430: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0010e440: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0010e450: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0010e460: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0010e470: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0010e480: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0010e490: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ +0010e4a0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +0010e4b0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +0010e570: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0010e580: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +0010e220: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0010e230: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0010e270: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0010e280: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0010e630: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0010e650: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0010e680: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0010e610: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0010e620: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0010e640: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0010e660: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0010e670: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0010e6c0: 2069 6e73 7461 6c6c 5f69 7074 6162 6c65 install_iptable │ │ │ +0010e6d0: 732d 7065 7273 6973 7465 6e74 0a0a 636c s-persistent..cl │ │ │ +0010e6e0: 6173 7320 696e 7374 616c 6c5f 6970 7461 ass install_ipta │ │ │ +0010e6f0: 626c 6573 2d70 6572 7369 7374 656e 7420 bles-persistent │ │ │ +0010e700: 7b0a 2020 7061 636b 6167 6520 7b20 2769 {. package { 'i │ │ │ +0010e710: 7074 6162 6c65 732d 7065 7273 6973 7465 ptables-persiste │ │ │ +0010e720: 6e74 273a 0a20 2020 2065 6e73 7572 6520 nt':. ensure │ │ │ +0010e730: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ +0010e740: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +0010e750: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ +0010e800: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0010e810: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0010e820: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0010e860: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +0010e870: 5d5d 0a6e 616d 6520 3d20 2269 7074 6162  ]].name = "iptab
│ │ │ +0010e880: 6c65 732d 7065 7273 6973 7465 6e74 220a  les-persistent".
│ │ │ +0010e890: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remedi │ │ │ -0010f5c0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0010f5d0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0010f5e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0010f620: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -0010f630: 735d 5d0a 6e61 6d65 203d 2022 6970 7461  s]].name = "ipta
│ │ │ -0010f640: 626c 6573 220a 7665 7273 696f 6e20 3d20  bles".version = 
│ │ │ -0010f650: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -0010f710: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0010f720: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0010f7a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0010f7c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0010f810: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0010f840: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -0010f860: 6c5f 6970 7461 626c 6573 0a0a 636c 6173  l_iptables..clas
│ │ │ -0010f870: 7320 696e 7374 616c 6c5f 6970 7461 626c  s install_iptabl
│ │ │ -0010f880: 6573 207b 0a20 2070 6163 6b61 6765 207b  es {.  package {
│ │ │ -0010f890: 2027 6970 7461 626c 6573 273a 0a20 2020   'iptables':.   
│ │ │ -0010f8a0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0010f8b0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0010f8c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0010f980: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0010f990: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -0010f7b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0010f7d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0010f820: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0010f830: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -0010fa60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0010fa70: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0010fac0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0010fad0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0010fae0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0010faf0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0010fb00: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0010fb10: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0010fb20: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -0010fb30: 5265 712d 312e 342e 310a 2020 2d20 656e  Req-1.4.1.  - en
│ │ │ -0010fb40: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0010fb50: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0010fb60: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0010fb70: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0010fb80: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0010fb90: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0010fba0: 2070 6163 6b61 6765 5f69 7074 6162 6c65   package_iptable
│ │ │ -0010fbb0: 735f 696e 7374 616c 6c65 640a 0a2d 206e  s_installed..- n
│ │ │ -0010fbc0: 616d 653a 2045 6e73 7572 6520 6970 7461  ame: Ensure ipta
│ │ │ -0010fbd0: 626c 6573 2069 7320 696e 7374 616c 6c65  bles is installe
│ │ │ -0010fbe0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -0010fbf0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0010fc00: 206e 616d 653a 2069 7074 6162 6c65 730a   name: iptables.
│ │ │ -0010fc10: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -0010fc20: 6e74 0a20 2077 6865 6e3a 2028 2022 6c69  nt.  when: ( "li
│ │ │ -0010fc30: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0010fc40: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0010fc50: 6765 7320 290a 2020 7461 6773 3a0a 2020  ges ).  tags:.  
│ │ │ -0010fc60: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0010fc70: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0010fc80: 532d 5265 712d 312e 342e 310a 2020 2d20  S-Req-1.4.1.  - 
│ │ │ -0010fc90: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0010fca0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0010fcb0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0010fcc0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0010fcd0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0010fce0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0010fcf0: 202d 2070 6163 6b61 6765 5f69 7074 6162   - package_iptab
│ │ │ -0010fd00: 6c65 735f 696e 7374 616c 6c65 640a 3c2f  les_installed.
low
Disru │ │ │ -0010fa40: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0010fa50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0010fa90: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0010faa0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0010f680: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0010f6a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0010f6d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0010f660: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0010f670: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0010f690: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0010f6b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0010f6c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +0010f710: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0010f720: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0010f730: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0010f740: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0010f750: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0010f760: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0010f770: 2050 4349 2d44 5353 2d52 6571 2d31 2e34 PCI-DSS-Req-1.4 │ │ │ +0010f780: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ +0010f790: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +0010f7a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +0010f7b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +0010f7c0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +0010f7d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0010f7e0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +0010f7f0: 655f 6970 7461 626c 6573 5f69 6e73 7461 e_iptables_insta │ │ │ +0010f800: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e lled..- name: En │ │ │ +0010f810: 7375 7265 2069 7074 6162 6c65 7320 6973 sure iptables is │ │ │ +0010f820: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ +0010f830: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +0010f840: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +0010f850: 6970 7461 626c 6573 0a20 2020 2073 7461 iptables. sta │ │ │ +0010f860: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ +0010f870: 656e 3a20 2820 226c 696e 7578 2d62 6173 en: ( "linux-bas │ │ │ +0010f880: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +0010f890: 6374 732e 7061 636b 6167 6573 2029 0a20 cts.packages ). │ │ │ +0010f8a0: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +0010f8b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +0010f8c0: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ +0010f8d0: 2e34 2e31 0a20 202d 2065 6e61 626c 655f .4.1. - enable_ │ │ │ +0010f8e0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0010f8f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0010f900: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0010f910: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +0010f920: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0010f930: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +0010f940: 6167 655f 6970 7461 626c 6573 5f69 6e73 age_iptables_ins │ │ │ +0010f950: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Remediati │ │ │ +0010fa10: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0010fa20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0010faa0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0010fab0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0010fad0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0010fae0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0010fb00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0010fb20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0010fb50: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +0010fb60: 7461 6c6c 5f69 7074 6162 6c65 730a 0a63  tall_iptables..c
│ │ │ +0010fb70: 6c61 7373 2069 6e73 7461 6c6c 5f69 7074  lass install_ipt
│ │ │ +0010fb80: 6162 6c65 7320 7b0a 2020 7061 636b 6167  ables {.  packag
│ │ │ +0010fb90: 6520 7b20 2769 7074 6162 6c65 7327 3a0a  e { 'iptables':.
│ │ │ +0010fba0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0010fbb0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +0010fbc0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0010fc80: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0010fc90: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +0010fce0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +0010fcf0: 6d65 203d 2022 6970 7461 626c 6573 220a  me = "iptables".
│ │ │ +0010fd00: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
│ │ │ -00110920: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00110930: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -001109d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00110a70: 696e 636c 7564 6520 7265 6d6f 7665 5f69  include remove_i
│ │ │ -00110a80: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -00110a90: 6e74 0a0a 636c 6173 7320 7265 6d6f 7665  nt..class remove
│ │ │ -00110aa0: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ -00110ab0: 7465 6e74 207b 0a20 2070 6163 6b61 6765  tent {.  package
│ │ │ -00110ac0: 207b 2027 6970 7461 626c 6573 2d70 6572   { 'iptables-per
│ │ │ -00110ad0: 7369 7374 656e 7427 3a0a 2020 2020 656e  sistent':.    en
│ │ │ -00110ae0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00110af0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00110bb0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00110bc0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -001109c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001109f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00110a00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00110a40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00110a50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00110c50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00110c60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00110c80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00110ca0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00110cb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00110cf0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00110d00: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00110d10: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00110d20: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00110d30: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00110d40: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00110d50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00110d60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00110d70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00110d80: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00110d90: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00110da0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00110db0: 6163 6b61 6765 5f69 7074 6162 6c65 732d  ackage_iptables-
│ │ │ -00110dc0: 7065 7273 6973 7465 6e74 5f72 656d 6f76  persistent_remov
│ │ │ -00110dd0: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ -00110de0: 6f76 6520 6970 7461 626c 6573 2d70 6572  ove iptables-per
│ │ │ -00110df0: 7369 7374 656e 7420 5061 636b 6167 653a  sistent Package:
│ │ │ -00110e00: 2045 6e73 7572 6520 6970 7461 626c 6573   Ensure iptables
│ │ │ -00110e10: 2d70 6572 7369 7374 656e 7420 6973 2072  -persistent is r
│ │ │ -00110e20: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00110e30: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00110e40: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ -00110e50: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -00110e60: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00110e70: 6e74 0a20 2077 6865 6e3a 2027 2275 6677  nt.  when: '"ufw
│ │ │ -00110e80: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00110e90: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00110ea0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -00110eb0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00110ec0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00110ed0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00110ee0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00110ef0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00110f00: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00110f10: 6b61 6765 5f69 7074 6162 6c65 732d 7065  kage_iptables-pe
│ │ │ -00110f20: 7273 6973 7465 6e74 5f72 656d 6f76 6564  rsistent_removed
│ │ │ +00110920: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +00110930: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +00110940: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +00110a10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00110a20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00110a70: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00110a80: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00110a90: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00110aa0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00110ab0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00110ac0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00110ad0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00110ae0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00110af0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00110b00: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00110b10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00110b20: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +00110b30: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +00110b40: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +00110b50: 2027 5265 6d6f 7665 2069 7074 6162 6c65   'Remove iptable
│ │ │ +00110b60: 732d 7065 7273 6973 7465 6e74 2050 6163  s-persistent Pac
│ │ │ +00110b70: 6b61 6765 3a20 456e 7375 7265 2069 7074  kage: Ensure ipt
│ │ │ +00110b80: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +00110b90: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00110ba0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00110bb0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00110bc0: 3a20 6970 7461 626c 6573 2d70 6572 7369  : iptables-persi
│ │ │ +00110bd0: 7374 656e 740a 2020 2020 7374 6174 653a  stent.    state:
│ │ │ +00110be0: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ +00110bf0: 2722 7566 7722 2069 6e20 616e 7369 626c  '"ufw" in ansibl
│ │ │ +00110c00: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00110c10: 270a 2020 7461 6773 3a0a 2020 2d20 6469  '.  tags:.  - di
│ │ │ +00110c20: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00110c30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00110c40: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00110c50: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00110c60: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00110c70: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00110c80: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ +00110c90: 6573 2d70 6572 7369 7374 656e 745f 7265  es-persistent_re
│ │ │ +00110ca0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00110d60: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00110d70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00110e30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00110e40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +001109f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00110a00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00110a40: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00110a50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00110e00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00110e20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00110e50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00110e70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00110ea0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00110eb0: 6d6f 7665 5f69 7074 6162 6c65 732d 7065  move_iptables-pe
│ │ │ +00110ec0: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ +00110ed0: 7265 6d6f 7665 5f69 7074 6162 6c65 732d  remove_iptables-
│ │ │ +00110ee0: 7065 7273 6973 7465 6e74 207b 0a20 2070  persistent {.  p
│ │ │ +00110ef0: 6163 6b61 6765 207b 2027 6970 7461 626c  ackage { 'iptabl
│ │ │ +00110f00: 6573 2d70 6572 7369 7374 656e 7427 3a0a  es-persistent':.
│ │ │ +00110f10: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00110f20: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00110f30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
R │ │ │ -0015c750: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0015c760: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0015c770: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0015c780: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0015c7b0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -0015c7c0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -0015c7d0: 226e 6674 6162 6c65 7322 0a76 6572 7369  "nftables".versi
│ │ │ -0015c7e0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -0015c7f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0015c8a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0015c8b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0015c8c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0015c8d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0015c8e0: 7365 2220 6964 3d22 6964 3434 3822 3e3c se" id="id448">< │ │ │ -0015c8f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0015c900: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0015c910: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0015c920: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0015c930: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0015c940: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0015c950: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0015c990: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0015c9a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0015c9c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0015c9d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -0015c9f0: 6e73 7461 6c6c 5f6e 6674 6162 6c65 730a  nstall_nftables.
│ │ │ -0015ca00: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6e  .class install_n
│ │ │ -0015ca10: 6674 6162 6c65 7320 7b0a 2020 7061 636b  ftables {.  pack
│ │ │ -0015ca20: 6167 6520 7b20 276e 6674 6162 6c65 7327  age { 'nftables'
│ │ │ -0015ca30: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0015ca40: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -0015ca50: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0015cb10: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0015cb20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0015cba0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0015cbb0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0015cbd0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0015cbe0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0015cc00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0015cc20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0015cc50: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0015cc60: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0015cc70: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0015cc80: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0015cc90: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0015cca0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0015ccb0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0015ccc0: 2d31 2e32 2e31 0a20 202d 2065 6e61 626c  -1.2.1.  - enabl
│ │ │ -0015ccd0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0015cce0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0015ccf0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0015cd00: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0015cd10: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0015cd20: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0015cd30: 636b 6167 655f 6e66 7461 626c 6573 5f69  ckage_nftables_i
│ │ │ -0015cd40: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -0015cd50: 3a20 456e 7375 7265 206e 6674 6162 6c65  : Ensure nftable
│ │ │ -0015cd60: 7320 6973 2069 6e73 7461 6c6c 6564 0a20  s is installed. 
│ │ │ -0015cd70: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0015cd80: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0015cd90: 6d65 3a20 6e66 7461 626c 6573 0a20 2020  me: nftables.   
│ │ │ -0015cda0: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -0015cdb0: 2020 7768 656e 3a20 2820 226c 696e 7578    when: ( "linux
│ │ │ -0015cdc0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0015cdd0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0015cde0: 2029 0a20 2074 6167 733a 0a20 202d 2050   ).  tags:.  - P
│ │ │ -0015cdf0: 4349 2d44 5353 7634 2d31 2e32 0a20 202d  CI-DSSv4-1.2.  -
│ │ │ -0015ce00: 2050 4349 2d44 5353 7634 2d31 2e32 2e31   PCI-DSSv4-1.2.1
│ │ │ -0015ce10: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0015ce20: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0015ce30: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0015ce40: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0015ce50: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0015ce60: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0015ce70: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0015ce80: 6e66 7461 626c 6573 5f69 6e73 7461 6c6c  nftables_install
│ │ │ -0015ce90: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0015c750: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +0015c760: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +0015c800: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +0015c8a0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0015c8b0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0015c8c0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0015c8d0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0015c8e0: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ +0015c8f0: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ +0015c900: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ +0015c910: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0015c920: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0015c930: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0015c940: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0015c950: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0015c960: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0015c970: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ +0015c980: 6674 6162 6c65 735f 696e 7374 616c 6c65  ftables_installe
│ │ │ +0015c990: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +0015c9a0: 6520 6e66 7461 626c 6573 2069 7320 696e  e nftables is in
│ │ │ +0015c9b0: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +0015c9c0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0015c9d0: 653a 0a20 2020 206e 616d 653a 206e 6674  e:.    name: nft
│ │ │ +0015c9e0: 6162 6c65 730a 2020 2020 7374 6174 653a  ables.    state:
│ │ │ +0015c9f0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +0015ca00: 2028 2022 6c69 6e75 782d 6261 7365 2220   ( "linux-base" 
│ │ │ +0015ca10: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0015ca20: 2e70 6163 6b61 6765 7320 290a 2020 7461  .packages ).  ta
│ │ │ +0015ca30: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ +0015ca40: 342d 312e 320a 2020 2d20 5043 492d 4453  4-1.2.  - PCI-DS
│ │ │ +0015ca50: 5376 342d 312e 322e 310a 2020 2d20 656e  Sv4-1.2.1.  - en
│ │ │ +0015ca60: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0015ca70: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0015ca80: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0015ca90: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0015caa0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0015cab0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0015cac0: 2070 6163 6b61 6765 5f6e 6674 6162 6c65   package_nftable
│ │ │ +0015cad0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +0015caf0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0015cb00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0015cb10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0015cb20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0015cb30: 6434 3438 2220 7461 6269 6e64 6578 3d22 d448" tabindex=" │ │ │ +0015cb40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0015cb50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0015cb60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0015cb70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0015cb80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0015cb90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0015cba0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0015c7f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0015c820: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0015c830: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0015c870: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0015c880: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +0015cc30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0015cc40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0015cc60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0015cc80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0015cc90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0015ccd0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0015cce0: 6520 696e 7374 616c 6c5f 6e66 7461 626c e install_nftabl │ │ │ +0015ccf0: 6573 0a0a 636c 6173 7320 696e 7374 616c es..class instal │ │ │ +0015cd00: 6c5f 6e66 7461 626c 6573 207b 0a20 2070 l_nftables {. p │ │ │ +0015cd10: 6163 6b61 6765 207b 2027 6e66 7461 626c ackage { 'nftabl │ │ │ +0015cd20: 6573 273a 0a20 2020 2065 6e73 7572 6520 es':. ensure │ │ │ +0015cd30: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ +0015cd40: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +0015cd50: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +0015ce00: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0015ce10: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0015ce20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0015ce60: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +0015ce70: 5d5d 0a6e 616d 6520 3d20 226e 6674 6162  ]].name = "nftab
│ │ │ +0015ce80: 6c65 7322 0a76 6572 7369 6f6e 203d 2022  les".version = "
│ │ │ +0015ce90: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 0015cea0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediatio │ │ │ -0015db20: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0015db30: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0015db40: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -0015db90: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -0015dba0: 626c 6564 203d 205b 226e 6674 6162 6c65  bled = ["nftable
│ │ │ -0015dbb0: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation │ │ │ -0015dc70: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0015dc80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0015dd00: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0015dd20: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0015dd70: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0015dda0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -0015ddc0: 5f6e 6674 6162 6c65 730a 0a63 6c61 7373  _nftables..class
│ │ │ -0015ddd0: 2065 6e61 626c 655f 6e66 7461 626c 6573   enable_nftables
│ │ │ -0015dde0: 207b 0a20 2073 6572 7669 6365 207b 276e   {.  service {'n
│ │ │ -0015ddf0: 6674 6162 6c65 7327 3a0a 2020 2020 656e  ftables':.    en
│ │ │ -0015de00: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ -0015de10: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0015de20: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ -0015de30: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0015de40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -0015def0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0015df00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -0015dd10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0015dd30: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0015dd80: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0015dd90: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0015df80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0015dfa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0015dff0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0015e020: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0015e040: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0015e050: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0015e060: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0015e070: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0015e080: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0015e090: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0015e0a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0015e0b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0015e0c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0015e0d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0015e0e0: 0a20 202d 2073 6572 7669 6365 5f6e 6674  .  - service_nft
│ │ │ -0015e0f0: 6162 6c65 735f 656e 6162 6c65 640a 0a2d  ables_enabled..-
│ │ │ -0015e100: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ -0015e110: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ -0015e120: 7320 456e 6162 6c65 6420 2d20 456e 6162  s Enabled - Enab
│ │ │ -0015e130: 6c65 2073 6572 7669 6365 206e 6674 6162  le service nftab
│ │ │ -0015e140: 6c65 730a 2020 626c 6f63 6b3a 0a0a 2020  les.  block:..  
│ │ │ -0015e150: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0015e160: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0015e170: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0015e180: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -0015e190: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -0015e1a0: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -0015e1b0: 653a 2056 6572 6966 7920 6e66 7461 626c  e: Verify nftabl
│ │ │ -0015e1c0: 6573 2053 6572 7669 6365 2069 7320 456e  es Service is En
│ │ │ -0015e1d0: 6162 6c65 6420 2d20 456e 6162 6c65 2053  abled - Enable S
│ │ │ -0015e1e0: 6572 7669 6365 206e 6674 6162 6c65 730a  ervice nftables.
│ │ │ -0015e1f0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0015e200: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0015e210: 2020 206e 616d 653a 206e 6674 6162 6c65     name: nftable
│ │ │ -0015e220: 730a 2020 2020 2020 656e 6162 6c65 643a  s.      enabled:
│ │ │ -0015e230: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -0015e240: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -0015e250: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -0015e260: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -0015e270: 226e 6674 6162 6c65 7322 2069 6e20 616e  "nftables" in an
│ │ │ -0015e280: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0015e290: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -0015e2a0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0015e2b0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0015e2c0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0015e2d0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0015e2e0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0015e2f0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0015e300: 0a20 202d 2073 6572 7669 6365 5f6e 6674  .  - service_nft
│ │ │ -0015e310: 6162 6c65 735f 656e 6162 6c65 640a 2020  ables_enabled.  
│ │ │ -0015e320: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -0015e330: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -0015e340: 2820 226e 6674 6162 6c65 7322 2069 6e20  ( "nftables" in 
│ │ │ -0015e350: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0015e360: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ -0015e370: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0015e380: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0015e390: 730a 2020 2020 290a 3c2f 636f 6465 3e3c  s.    ).<
│ │ │ +0015db20: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +0015db30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0015dbb0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0015dbf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -0015df90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0015dfb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0015e000: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0015e010: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ +0015dbc0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0015dbe0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0015dc10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0015dc30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +0015dc60: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0015dc70: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0015dc80: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0015dc90: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0015dca0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0015dcb0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0015dcc0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0015dcd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0015dce0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0015dcf0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0015dd00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0015dd10: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0015dd20: 6e66 7461 626c 6573 5f65 6e61 626c 6564  nftables_enabled
│ │ │ +0015dd30: 0a0a 2d20 6e61 6d65 3a20 5665 7269 6679  ..- name: Verify
│ │ │ +0015dd40: 206e 6674 6162 6c65 7320 5365 7276 6963   nftables Servic
│ │ │ +0015dd50: 6520 6973 2045 6e61 626c 6564 202d 2045  e is Enabled - E
│ │ │ +0015dd60: 6e61 626c 6520 7365 7276 6963 6520 6e66  nable service nf
│ │ │ +0015dd70: 7461 626c 6573 0a20 2062 6c6f 636b 3a0a  tables.  block:.
│ │ │ +0015dd80: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +0015dd90: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0015dda0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +0015ddb0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +0015ddc0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +0015ddd0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +0015dde0: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ +0015ddf0: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ +0015de00: 2045 6e61 626c 6564 202d 2045 6e61 626c   Enabled - Enabl
│ │ │ +0015de10: 6520 5365 7276 6963 6520 6e66 7461 626c  e Service nftabl
│ │ │ +0015de20: 6573 0a20 2020 2061 6e73 6962 6c65 2e62  es.    ansible.b
│ │ │ +0015de30: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0015de40: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ +0015de50: 626c 6573 0a20 2020 2020 2065 6e61 626c  bles.      enabl
│ │ │ +0015de60: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +0015de70: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +0015de80: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +0015de90: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +0015dea0: 2d20 2722 6e66 7461 626c 6573 2220 696e  - '"nftables" in
│ │ │ +0015deb0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0015dec0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +0015ded0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0015dee0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0015def0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0015df00: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0015df10: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0015df20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0015df30: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0015df40: 6e66 7461 626c 6573 5f65 6e61 626c 6564  nftables_enabled
│ │ │ +0015df50: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +0015df60: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +0015df70: 6e3a 2028 2022 6e66 7461 626c 6573 2220  n: ( "nftables" 
│ │ │ +0015df80: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0015df90: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ +0015dfa0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0015dfb0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0015dfc0: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
Remed │ │ │ +0015e080: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0015e090: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0015e140: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0015e160: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0015e190: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0015e120: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0015e130: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0015e150: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0015e170: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0015e180: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0015e1d0: 2065 6e61 626c 655f 6e66 7461 626c 6573 enable_nftables │ │ │ +0015e1e0: 0a0a 636c 6173 7320 656e 6162 6c65 5f6e ..class enable_n │ │ │ +0015e1f0: 6674 6162 6c65 7320 7b0a 2020 7365 7276 ftables {. serv │ │ │ +0015e200: 6963 6520 7b27 6e66 7461 626c 6573 273a ice {'nftables': │ │ │ +0015e210: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ +0015e220: 3b20 7472 7565 2c0a 2020 2020 656e 7375 ; true,. ensu │ │ │ +0015e230: 7265 203d 2667 743b 2027 7275 6e6e 696e re => 'runnin │ │ │ +0015e240: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 g',. }.}.

Remedi │ │ │ +0015e300: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0015e310: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0015e320: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0015e360: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0015e370: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0015e380: 0a65 6e61 626c 6564 203d 205b 226e 6674  .enabled = ["nft
│ │ │ +0015e390: 6162 6c65 7322 5d0a 3c2f 636f 6465 3e3c  ables"].<
│ │ │  0015e3a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation OSB │ │ │ -0015f1a0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0015f1b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -0015f200: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -0015f210: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -0015f220: 205b 226e 6674 6162 6c65 7322 5d0a 3c2f   ["nftables"].
Re │ │ │ -0015f2e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0015f2f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0015f300: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0015f3a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0015f3f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0015f380: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0015f3b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0015f3d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0015f3e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0015f400: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0015f410: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0015f430: 7564 6520 6469 7361 626c 655f 6e66 7461  ude disable_nfta
│ │ │ -0015f440: 626c 6573 0a0a 636c 6173 7320 6469 7361  bles..class disa
│ │ │ -0015f450: 626c 655f 6e66 7461 626c 6573 207b 0a20  ble_nftables {. 
│ │ │ -0015f460: 2073 6572 7669 6365 207b 276e 6674 6162   service {'nftab
│ │ │ -0015f470: 6c65 7327 3a0a 2020 2020 656e 6162 6c65  les':.    enable
│ │ │ -0015f480: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -0015f490: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0015f4a0: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -0015f4b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0015f560: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0015f570: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0015f580: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0015f650: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0015f660: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0015f6b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0015f6c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0015f6d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0015f6e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0015f6f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0015f700: 5043 492d 4453 5376 342d 312e 320a 2020  PCI-DSSv4-1.2.  
│ │ │ -0015f710: 2d20 5043 492d 4453 5376 342d 312e 322e  - PCI-DSSv4-1.2.
│ │ │ -0015f720: 310a 2020 2d20 6469 7361 626c 655f 7374  1.  - disable_st
│ │ │ -0015f730: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0015f740: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0015f750: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0015f760: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0015f770: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0015f780: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0015f790: 655f 6e66 7461 626c 6573 5f64 6973 6162  e_nftables_disab
│ │ │ -0015f7a0: 6c65 640a 0a2d 206e 616d 653a 2056 6572  led..- name: Ver
│ │ │ -0015f7b0: 6966 7920 6e66 7461 626c 6573 2053 6572  ify nftables Ser
│ │ │ -0015f7c0: 7669 6365 2069 7320 4469 7361 626c 6564  vice is Disabled
│ │ │ -0015f7d0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0015f7e0: 6365 206e 6674 6162 6c65 730a 2020 626c  ce nftables.  bl
│ │ │ -0015f7f0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -0015f800: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ -0015f810: 5365 7276 6963 6520 6973 2044 6973 6162  Service is Disab
│ │ │ -0015f820: 6c65 6420 2d20 436f 6c6c 6563 7420 7379  led - Collect sy
│ │ │ -0015f830: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -0015f840: 7265 7365 6e74 2069 6e0a 2020 2020 2020  resent in.      
│ │ │ -0015f850: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0015f860: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0015f870: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0015f880: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0015f890: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0015f8a0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0015f8b0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0015f8c0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0015f8d0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0015f8e0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0015f8f0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0015f900: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0015f910: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0015f920: 0a20 202d 206e 616d 653a 2056 6572 6966  .  - name: Verif
│ │ │ -0015f930: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ -0015f940: 6365 2069 7320 4469 7361 626c 6564 202d  ce is Disabled -
│ │ │ -0015f950: 2045 6e73 7572 6520 6e66 7461 626c 6573   Ensure nftables
│ │ │ -0015f960: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -0015f970: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -0015f980: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0015f990: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ -0015f9a0: 626c 6573 2e73 6572 7669 6365 0a20 2020  bles.service.   
│ │ │ -0015f9b0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0015f9c0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -0015f9d0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -0015f9e0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0015f9f0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0015fa00: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0015fa10: 6973 2073 6561 7263 6828 226e 6674 6162  is search("nftab
│ │ │ -0015fa20: 6c65 732e 7365 7276 6963 6522 2c20 6d75  les.service", mu
│ │ │ -0015fa30: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -0015fa40: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -0015fa50: 636b 6574 2045 7869 7374 7320 2d20 6e66  cket Exists - nf
│ │ │ -0015fa60: 7461 626c 6573 2e73 6f63 6b65 740a 2020  tables.socket.  
│ │ │ -0015fa70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0015fa80: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0015fa90: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0015faa0: 742d 6669 6c65 7320 6e66 7461 626c 6573  t-files nftables
│ │ │ -0015fab0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0015fac0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0015fad0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0015fae0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0015faf0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0015fb00: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0015fb10: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0015fb20: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0015fb30: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0015fb40: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ -0015fb50: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ -0015fb60: 7320 4469 7361 626c 6564 202d 2044 6973  s Disabled - Dis
│ │ │ -0015fb70: 6162 6c65 2053 6f63 6b65 7420 6e66 7461  able Socket nfta
│ │ │ -0015fb80: 626c 6573 0a20 2020 2061 6e73 6962 6c65  bles.    ansible
│ │ │ -0015fb90: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0015fba0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e66  :.      name: nf
│ │ │ -0015fbb0: 7461 626c 6573 2e73 6f63 6b65 740a 2020  tables.socket.  
│ │ │ -0015fbc0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0015fbd0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -0015fbe0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -0015fbf0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -0015fc00: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0015fc10: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0015fc20: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0015fc30: 6e66 7461 626c 6573 2e73 6f63 6b65 7422  nftables.socket"
│ │ │ -0015fc40: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -0015fc50: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ -0015fc60: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ -0015fc70: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ -0015fc80: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0015fc90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0015fca0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0015fcb0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0015fcc0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0015fcd0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0015fce0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0015fcf0: 6e66 7461 626c 6573 5f64 6973 6162 6c65  nftables_disable
│ │ │ -0015fd00: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -0015fd10: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -0015fd20: 656e 3a20 2820 2266 6972 6577 616c 6c64  en: ( "firewalld
│ │ │ -0015fd30: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0015fd40: 7473 2e70 6163 6b61 6765 7320 616e 6420  ts.packages and 
│ │ │ -0015fd50: 226e 6674 6162 6c65 7322 2069 6e20 616e  "nftables" in an
│ │ │ -0015fd60: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0015fd70: 6167 6573 0a20 2020 2061 6e64 2022 6c69  ages.    and "li
│ │ │ -0015fd80: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0015fd90: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0015fda0: 6765 7320 290a 3c2f 636f 6465 3e3c 2f70  ges ).

Remediation Ans │ │ │ +0015f1a0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0015f1b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ -0015f630: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0015f640: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0015f680: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0015f690: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +0015f280: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0015f290: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0015f2f0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0015f300: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0015f310: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0015f320: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0015f330: 2050 4349 2d44 5353 7634 2d31 2e32 0a20   PCI-DSSv4-1.2. 
│ │ │ +0015f340: 202d 2050 4349 2d44 5353 7634 2d31 2e32   - PCI-DSSv4-1.2
│ │ │ +0015f350: 2e31 0a20 202d 2064 6973 6162 6c65 5f73  .1.  - disable_s
│ │ │ +0015f360: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0015f370: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0015f380: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0015f390: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0015f3a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0015f3b0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0015f3c0: 6365 5f6e 6674 6162 6c65 735f 6469 7361  ce_nftables_disa
│ │ │ +0015f3d0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 5665  bled..- name: Ve
│ │ │ +0015f3e0: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +0015f3f0: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ +0015f400: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ +0015f410: 6963 6520 6e66 7461 626c 6573 0a20 2062  ice nftables.  b
│ │ │ +0015f420: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0015f430: 2056 6572 6966 7920 6e66 7461 626c 6573   Verify nftables
│ │ │ +0015f440: 2053 6572 7669 6365 2069 7320 4469 7361   Service is Disa
│ │ │ +0015f450: 626c 6564 202d 2043 6f6c 6c65 6374 2073  bled - Collect s
│ │ │ +0015f460: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +0015f470: 5072 6573 656e 7420 696e 0a20 2020 2020  Present in.     
│ │ │ +0015f480: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0015f490: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0015f4a0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0015f4b0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0015f4c0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0015f4d0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0015f4e0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0015f4f0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0015f500: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0015f510: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0015f520: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0015f530: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0015f540: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0015f550: 0a0a 2020 2d20 6e61 6d65 3a20 5665 7269  ..  - name: Veri
│ │ │ +0015f560: 6679 206e 6674 6162 6c65 7320 5365 7276  fy nftables Serv
│ │ │ +0015f570: 6963 6520 6973 2044 6973 6162 6c65 6420  ice is Disabled 
│ │ │ +0015f580: 2d20 456e 7375 7265 206e 6674 6162 6c65  - Ensure nftable
│ │ │ +0015f590: 732e 7365 7276 6963 6520 6973 204d 6173  s.service is Mas
│ │ │ +0015f5a0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +0015f5b0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0015f5c0: 0a20 2020 2020 206e 616d 653a 206e 6674  .      name: nft
│ │ │ +0015f5d0: 6162 6c65 732e 7365 7276 6963 650a 2020  ables.service.  
│ │ │ +0015f5e0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +0015f5f0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +0015f600: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +0015f610: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +0015f620: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +0015f630: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0015f640: 2069 7320 7365 6172 6368 2822 6e66 7461   is search("nfta
│ │ │ +0015f650: 626c 6573 2e73 6572 7669 6365 222c 206d  bles.service", m
│ │ │ +0015f660: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +0015f670: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +0015f680: 6f63 6b65 7420 4578 6973 7473 202d 206e  ocket Exists - n
│ │ │ +0015f690: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ +0015f6a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0015f6b0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0015f6c0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0015f6d0: 6974 2d66 696c 6573 206e 6674 6162 6c65  it-files nftable
│ │ │ +0015f6e0: 732e 736f 636b 6574 0a20 2020 2072 6567  s.socket.    reg
│ │ │ +0015f6f0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +0015f700: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +0015f710: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0015f720: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0015f730: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0015f740: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0015f750: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0015f760: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0015f770: 2d20 6e61 6d65 3a20 5665 7269 6679 206e  - name: Verify n
│ │ │ +0015f780: 6674 6162 6c65 7320 5365 7276 6963 6520  ftables Service 
│ │ │ +0015f790: 6973 2044 6973 6162 6c65 6420 2d20 4469  is Disabled - Di
│ │ │ +0015f7a0: 7361 626c 6520 536f 636b 6574 206e 6674  sable Socket nft
│ │ │ +0015f7b0: 6162 6c65 730a 2020 2020 616e 7369 626c  ables.    ansibl
│ │ │ +0015f7c0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0015f7d0: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ +0015f7e0: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ +0015f7f0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0015f800: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +0015f810: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +0015f820: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0015f830: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0015f840: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0015f850: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0015f860: 226e 6674 6162 6c65 732e 736f 636b 6574  "nftables.socket
│ │ │ +0015f870: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0015f880: 6529 0a20 2074 6167 733a 0a20 202d 2050  e).  tags:.  - P
│ │ │ +0015f890: 4349 2d44 5353 7634 2d31 2e32 0a20 202d  CI-DSSv4-1.2.  -
│ │ │ +0015f8a0: 2050 4349 2d44 5353 7634 2d31 2e32 2e31   PCI-DSSv4-1.2.1
│ │ │ +0015f8b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0015f8c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0015f8d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0015f8e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0015f8f0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0015f900: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0015f910: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0015f920: 5f6e 6674 6162 6c65 735f 6469 7361 626c  _nftables_disabl
│ │ │ +0015f930: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0015f940: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0015f950: 6865 6e3a 2028 2022 6669 7265 7761 6c6c  hen: ( "firewall
│ │ │ +0015f960: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ +0015f970: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ +0015f980: 2022 6e66 7461 626c 6573 2220 696e 2061   "nftables" in a
│ │ │ +0015f990: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0015f9a0: 6b61 6765 730a 2020 2020 616e 6420 226c  kages.    and "l
│ │ │ +0015f9b0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0015f9c0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0015f9d0: 6167 6573 2029 0a3c 2f63 6f64 653e 3c2f  ages ).Remediati
│ │ │ +0015fa90: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0015faa0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0015fb20: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0015fb60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disru │ │ │ +0015f260: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0015f270: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0015f2b0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0015f2c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +0015fb30: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0015fb50: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0015fb80: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0015fba0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +0015fbd0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +0015fbe0: 6162 6c65 5f6e 6674 6162 6c65 730a 0a63  able_nftables..c
│ │ │ +0015fbf0: 6c61 7373 2064 6973 6162 6c65 5f6e 6674  lass disable_nft
│ │ │ +0015fc00: 6162 6c65 7320 7b0a 2020 7365 7276 6963  ables {.  servic
│ │ │ +0015fc10: 6520 7b27 6e66 7461 626c 6573 273a 0a20  e {'nftables':. 
│ │ │ +0015fc20: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +0015fc30: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +0015fc40: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +0015fc50: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0015fc60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0015fd10: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0015fd20: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0015fd30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0015fd70: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0015fd80: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0015fd90: 6d61 736b 6564 203d 205b 226e 6674 6162  masked = ["nftab
│ │ │ +0015fda0: 6c65 7322 5d0a 3c2f 636f 6465 3e3c 2f70  les"].

Remed │ │ │ -00168520: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00168530: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00168540: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -00168590: 6573 5d5d 0a6e 616d 6520 3d20 2275 6677  es]].name = "ufw
│ │ │ -001685a0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -001685b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00168660: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00168670: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00168710: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -001687b0: 636c 7564 6520 696e 7374 616c 6c5f 7566  clude install_uf
│ │ │ -001687c0: 770a 0a63 6c61 7373 2069 6e73 7461 6c6c  w..class install
│ │ │ -001687d0: 5f75 6677 207b 0a20 2070 6163 6b61 6765  _ufw {.  package
│ │ │ -001687e0: 207b 2027 7566 7727 3a0a 2020 2020 656e   { 'ufw':.    en
│ │ │ -001687f0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -00168800: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -001688c0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -001688d0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00168700: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00168730: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00168740: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00168780: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00168790: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00168970: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00168980: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001689d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00168a10: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00168a20: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00168a30: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00168a40: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00168a50: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00168a60: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00168a70: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00168a80: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00168a90: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00168aa0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00168ab0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00168ac0: 7061 636b 6167 655f 7566 775f 696e 7374  package_ufw_inst
│ │ │ -00168ad0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -00168ae0: 6e73 7572 6520 7566 7720 6973 2069 6e73  nsure ufw is ins
│ │ │ -00168af0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -00168b00: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00168b10: 3a0a 2020 2020 6e61 6d65 3a20 7566 770a  :.    name: ufw.
│ │ │ -00168b20: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -00168b30: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00168b40: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00168b50: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00168b60: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00168b70: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00168b80: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00168b90: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00168ba0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00168bb0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00168bc0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00168bd0: 202d 2070 6163 6b61 6765 5f75 6677 5f69   - package_ufw_i
│ │ │ -00168be0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00168520: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00168530: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
C │ │ │ -00168960: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00168990: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001689a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001689e0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -001689f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +001685c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001685d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +001685f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00168610: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00168620: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00168660: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00168670: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00168680: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00168690: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +001686a0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +001686b0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +001686c0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +001686d0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +001686e0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +001686f0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00168700: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00168710: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +00168720: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c kage_ufw_install │ │ │ +00168730: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ +00168740: 7265 2075 6677 2069 7320 696e 7374 616c re ufw is instal │ │ │ +00168750: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +00168760: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +00168770: 2020 206e 616d 653a 2075 6677 0a20 2020 name: ufw. │ │ │ +00168780: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ +00168790: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +001687a0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +001687b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +001687c0: 0a20 2074 6167 733a 0a20 202d 2065 6e61 . tags:. - ena │ │ │ +001687d0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +001687e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +001687f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00168800: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +00168810: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +00168820: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00168830: 7061 636b 6167 655f 7566 775f 696e 7374 package_ufw_inst │ │ │ +00168840: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +00168900: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00168910: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +001689a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +001689c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +001689d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001689e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +001689f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00168a10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +00168a50: 616c 6c5f 7566 770a 0a63 6c61 7373 2069  all_ufw..class i
│ │ │ +00168a60: 6e73 7461 6c6c 5f75 6677 207b 0a20 2070  nstall_ufw {.  p
│ │ │ +00168a70: 6163 6b61 6765 207b 2027 7566 7727 3a0a  ackage { 'ufw':.
│ │ │ +00168a80: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00168a90: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00168aa0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00168b60: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00168b70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00168bc0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +00168bd0: 6d65 203d 2022 7566 7722 0a76 6572 7369  me = "ufw".versi
│ │ │ +00168be0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  00168bf0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -001696f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00169700: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -001697a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001697b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00169800: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00169840: 6e63 6c75 6465 2072 656d 6f76 655f 7566  nclude remove_uf
│ │ │ -00169850: 770a 0a63 6c61 7373 2072 656d 6f76 655f  w..class remove_
│ │ │ -00169860: 7566 7720 7b0a 2020 7061 636b 6167 6520  ufw {.  package 
│ │ │ -00169870: 7b20 2775 6677 273a 0a20 2020 2065 6e73  { 'ufw':.    ens
│ │ │ -00169880: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00169890: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00169950: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00169960: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -00169790: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001697c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001697d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00169810: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00169820: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00169a10: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00169a30: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00169a60: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001699f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00169a00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00169a20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00169a40: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00169a50: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00169a90: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00169aa0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00169ab0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00169ac0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00169ad0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00169ae0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -00169af0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00169b00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00169b10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00169b20: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00169b30: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -00169b40: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -00169b50: 636b 6167 655f 7566 775f 7265 6d6f 7665 ckage_ufw_remove │ │ │ -00169b60: 640a 0a2d 206e 616d 653a 2027 5265 6d6f d..- name: 'Remo │ │ │ -00169b70: 7665 2075 6677 2050 6163 6b61 6765 3a20 ve ufw Package: │ │ │ -00169b80: 456e 7375 7265 2075 6677 2069 7320 7265 Ensure ufw is re │ │ │ -00169b90: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ -00169ba0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -00169bb0: 3a0a 2020 2020 6e61 6d65 3a20 7566 770a :. name: ufw. │ │ │ -00169bc0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -00169bd0: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ -00169be0: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -00169bf0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -00169c00: 7327 0a20 2074 6167 733a 0a20 202d 2064 s'. tags:. - d │ │ │ -00169c10: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -00169c20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -00169c30: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -00169c40: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -00169c50: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00169c60: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00169c70: 202d 2070 6163 6b61 6765 5f75 6677 5f72 - package_ufw_r │ │ │ -00169c80: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.
│ │ │ +001697a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00169840: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00169850: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00169860: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00169870: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00169880: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +00169890: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001698a0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001698b0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001698c0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001698d0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001698e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001698f0: 202d 2070 6163 6b61 6765 5f75 6677 5f72   - package_ufw_r
│ │ │ +00169900: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ +00169910: 2752 656d 6f76 6520 7566 7720 5061 636b  'Remove ufw Pack
│ │ │ +00169920: 6167 653a 2045 6e73 7572 6520 7566 7720  age: Ensure ufw 
│ │ │ +00169930: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00169940: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00169950: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00169960: 2075 6677 0a20 2020 2073 7461 7465 3a20   ufw.    state: 
│ │ │ +00169970: 6162 7365 6e74 0a20 2077 6865 6e3a 2027  absent.  when: '
│ │ │ +00169980: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00169990: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +001699a0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +001699b0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001699c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001699d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001699e0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001699f0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00169a00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00169a10: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00169a20: 7566 775f 7265 6d6f 7665 640a 3c2f 636f  ufw_removed.
< │ │ │ +00169a40: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00169a50: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00169a60: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00169a70: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00169a80: 6434 3739 2220 7461 6269 6e64 6578 3d22 d479" tabindex=" │ │ │ +00169a90: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00169aa0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00169ab0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00169ac0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00169ad0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00169ae0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00169af0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00169790: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001697c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001697d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00169810: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00169820: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00169b80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00169b90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00169bb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00169bd0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00169be0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00169c20: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +00169c30: 7564 6520 7265 6d6f 7665 5f75 6677 0a0a  ude remove_ufw..
│ │ │ +00169c40: 636c 6173 7320 7265 6d6f 7665 5f75 6677  class remove_ufw
│ │ │ +00169c50: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00169c60: 7566 7727 3a0a 2020 2020 656e 7375 7265  ufw':.    ensure
│ │ │ +00169c70: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00169c80: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediation OS │ │ │ -0016ab90: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0016aba0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0016abb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0016abf0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0016ac00: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -0016ac10: 203d 205b 2275 6677 225d 0a3c 2f63 6f64   = ["ufw"].
Remed │ │ │ -0016acd0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0016ace0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0016ad90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0016adb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0016ade0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0016ad70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0016ad80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0016ada0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0016adc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0016add0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0016ae20: 2065 6e61 626c 655f 7566 770a 0a63 6c61 enable_ufw..cla │ │ │ -0016ae30: 7373 2065 6e61 626c 655f 7566 7720 7b0a ss enable_ufw {. │ │ │ -0016ae40: 2020 7365 7276 6963 6520 7b27 7566 7727 service {'ufw' │ │ │ -0016ae50: 3a0a 2020 2020 656e 6162 6c65 203d 2667 :. enable =&g │ │ │ -0016ae60: 743b 2074 7275 652c 0a20 2020 2065 6e73 t; true,. ens │ │ │ -0016ae70: 7572 6520 3d26 6774 3b20 2772 756e 6e69 ure => 'runni │ │ │ -0016ae80: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ng',. }.}.

Remed │ │ │ -0016af40: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0016af50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0016afe0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0016aff0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0016b010: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0016b030: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0016b040: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0016b080: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0016b090: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0016b0a0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0016b0b0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0016b0c0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0016b0d0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -0016b0e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0016b0f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0016b100: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0016b110: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -0016b120: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -0016b130: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ -0016b140: 7669 6365 5f75 6677 5f65 6e61 626c 6564 vice_ufw_enabled │ │ │ -0016b150: 0a0a 2d20 6e61 6d65 3a20 5665 7269 6679 ..- name: Verify │ │ │ -0016b160: 2075 6677 2045 6e61 626c 6564 202d 2045 ufw Enabled - E │ │ │ -0016b170: 6e61 626c 6520 7365 7276 6963 6520 7566 nable service uf │ │ │ -0016b180: 770a 2020 626c 6f63 6b3a 0a0a 2020 2d20 w. block:.. - │ │ │ -0016b190: 6e61 6d65 3a20 4761 7468 6572 2074 6865 name: Gather the │ │ │ -0016b1a0: 2070 6163 6b61 6765 2066 6163 7473 0a20 package facts. │ │ │ -0016b1b0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0016b1c0: 696e 2e70 6163 6b61 6765 5f66 6163 7473 in.package_facts │ │ │ -0016b1d0: 3a0a 2020 2020 2020 6d61 6e61 6765 723a :. manager: │ │ │ -0016b1e0: 2061 7574 6f0a 0a20 202d 206e 616d 653a auto.. - name: │ │ │ -0016b1f0: 2056 6572 6966 7920 7566 7720 456e 6162 Verify ufw Enab │ │ │ -0016b200: 6c65 6420 2d20 456e 6162 6c65 2053 6572 led - Enable Ser │ │ │ -0016b210: 7669 6365 2075 6677 0a20 2020 2061 6e73 vice ufw. ans │ │ │ -0016b220: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -0016b230: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -0016b240: 3a20 7566 770a 2020 2020 2020 656e 6162 : ufw. enab │ │ │ -0016b250: 6c65 643a 2074 7275 650a 2020 2020 2020 led: true. │ │ │ -0016b260: 7374 6174 653a 2073 7461 7274 6564 0a20 state: started. │ │ │ -0016b270: 2020 2020 206d 6173 6b65 643a 2066 616c masked: fal │ │ │ -0016b280: 7365 0a20 2020 2077 6865 6e3a 0a20 2020 se. when:. │ │ │ -0016b290: 202d 2027 2275 6677 2220 696e 2061 6e73 - '"ufw" in ans │ │ │ -0016b2a0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -0016b2b0: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -0016b2c0: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -0016b2d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0016b2e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0016b2f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -0016b300: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -0016b310: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0016b320: 2020 2d20 7365 7276 6963 655f 7566 775f - service_ufw_ │ │ │ -0016b330: 656e 6162 6c65 640a 2020 2d20 7370 6563 enabled. - spec │ │ │ -0016b340: 6961 6c5f 7365 7276 6963 655f 626c 6f63 ial_service_bloc │ │ │ -0016b350: 6b0a 2020 7768 656e 3a0a 2020 2d20 2722 k. when:. - '" │ │ │ -0016b360: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -0016b370: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0016b380: 6b61 6765 7327 0a20 202d 2028 2022 7566 kages'. - ( "uf │ │ │ -0016b390: 7722 2069 6e20 616e 7369 626c 655f 6661 w" in ansible_fa │ │ │ -0016b3a0: 6374 732e 7061 636b 6167 6573 2061 6e64 cts.packages and │ │ │ -0016b3b0: 2022 6c69 6e75 782d 6261 7365 2220 696e "linux-base" in │ │ │ -0016b3c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0016b3d0: 6163 6b61 6765 7320 290a 3c2f 636f 6465 ackages ).Remediation An │ │ │ +0016ab90: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0016aba0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0016ac20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0016ac40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0016ac90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +0016ace0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0016acf0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0016ad00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0016ad10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0016ad20: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0016ad30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0016ad40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0016ad50: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0016ad60: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0016ad70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0016ad80: 2020 2d20 7365 7276 6963 655f 7566 775f    - service_ufw_
│ │ │ +0016ad90: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +0016ada0: 2056 6572 6966 7920 7566 7720 456e 6162   Verify ufw Enab
│ │ │ +0016adb0: 6c65 6420 2d20 456e 6162 6c65 2073 6572  led - Enable ser
│ │ │ +0016adc0: 7669 6365 2075 6677 0a20 2062 6c6f 636b  vice ufw.  block
│ │ │ +0016add0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ +0016ade0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0016adf0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ +0016ae00: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0016ae10: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ +0016ae20: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ +0016ae30: 2d20 6e61 6d65 3a20 5665 7269 6679 2075  - name: Verify u
│ │ │ +0016ae40: 6677 2045 6e61 626c 6564 202d 2045 6e61  fw Enabled - Ena
│ │ │ +0016ae50: 626c 6520 5365 7276 6963 6520 7566 770a  ble Service ufw.
│ │ │ +0016ae60: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0016ae70: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0016ae80: 2020 206e 616d 653a 2075 6677 0a20 2020     name: ufw.   
│ │ │ +0016ae90: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +0016aea0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0016aeb0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +0016aec0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +0016aed0: 656e 3a0a 2020 2020 2d20 2722 7566 7722  en:.    - '"ufw"
│ │ │ +0016aee0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0016aef0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +0016af00: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +0016af10: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0016af20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0016af30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0016af40: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0016af50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0016af60: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0016af70: 6365 5f75 6677 5f65 6e61 626c 6564 0a20  ce_ufw_enabled. 
│ │ │ +0016af80: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +0016af90: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +0016afa0: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ +0016afb0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0016afc0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0016afd0: 2d20 2820 2275 6677 2220 696e 2061 6e73  - ( "ufw" in ans
│ │ │ +0016afe0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0016aff0: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ +0016b000: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0016b010: 6661 6374 732e 7061 636b 6167 6573 2029  facts.packages )
│ │ │ +0016b020: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0016b0e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0016b0f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +0016ac50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0016ac60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0016aca0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0016acb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0016b1c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0016b1d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0016b220: 6e63 6c75 6465 2065 6e61 626c 655f 7566  nclude enable_uf
│ │ │ +0016b230: 770a 0a63 6c61 7373 2065 6e61 626c 655f  w..class enable_
│ │ │ +0016b240: 7566 7720 7b0a 2020 7365 7276 6963 6520  ufw {.  service 
│ │ │ +0016b250: 7b27 7566 7727 3a0a 2020 2020 656e 6162  {'ufw':.    enab
│ │ │ +0016b260: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +0016b270: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0016b280: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +0016b290: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +0016b350: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0016b360: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +0016b3b0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +0016b3c0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +0016b3d0: 3d20 5b22 7566 7722 5d0a 3c2f 636f 6465  = ["ufw"].
Remedia │ │ │ -001758d0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -001758e0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -001758f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -00175930: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00175940: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00175950: 6d61 736b 6564 203d 205b 2262 6c75 6574  masked = ["bluet
│ │ │ -00175960: 6f6f 7468 225d 0a3c 2f63 6f64 653e 3c2f  ooth"].
Remediati │ │ │ -00175a20: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00175a30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00175ab0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00175af0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +0016b1a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0016b1b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0016b1f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0016b200: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -00175ac0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00175ae0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00175b10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00175b30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00175b60: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00175b70: 6162 6c65 5f62 6c75 6574 6f6f 7468 0a0a  able_bluetooth..
│ │ │ -00175b80: 636c 6173 7320 6469 7361 626c 655f 626c  class disable_bl
│ │ │ -00175b90: 7565 746f 6f74 6820 7b0a 2020 7365 7276  uetooth {.  serv
│ │ │ -00175ba0: 6963 6520 7b27 626c 7565 746f 6f74 6827  ice {'bluetooth'
│ │ │ -00175bb0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00175bc0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -00175bd0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -00175be0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -00175c00: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00175c10: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00175c20: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00175c30: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00175c40: 6435 3032 2220 7461 6269 6e64 6578 3d22 d502" tabindex=" │ │ │ -00175c50: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00175c60: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00175c70: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00175c80: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00175c90: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00175ca0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00175cb0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00175cc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00175d40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00175d70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00175d90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00175da0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00175dc0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00175dd0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00175df0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00175e00: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00175e10: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00175e20: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00175e30: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00175e40: 2d38 3030 2d31 3731 2d33 2e31 2e31 360a  -800-171-3.1.16.
│ │ │ -00175e50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00175e60: 4143 2d31 3828 3329 0a20 202d 204e 4953  AC-18(3).  - NIS
│ │ │ -00175e70: 542d 3830 302d 3533 2d41 432d 3138 2861  T-800-53-AC-18(a
│ │ │ -00175e80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00175e90: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00175ea0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00175eb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00175ec0: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ -00175ed0: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ -00175ee0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00175ef0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00175f00: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00175f10: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00175f20: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00175f30: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00175f40: 6564 0a20 202d 2073 6572 7669 6365 5f62  ed.  - service_b
│ │ │ -00175f50: 6c75 6574 6f6f 7468 5f64 6973 6162 6c65  luetooth_disable
│ │ │ -00175f60: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -00175f70: 6c65 2042 6c75 6574 6f6f 7468 2053 6572  le Bluetooth Ser
│ │ │ -00175f80: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -00175f90: 6572 7669 6365 2062 6c75 6574 6f6f 7468  ervice bluetooth
│ │ │ -00175fa0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -00175fb0: 616d 653a 2044 6973 6162 6c65 2042 6c75  ame: Disable Blu
│ │ │ -00175fc0: 6574 6f6f 7468 2053 6572 7669 6365 202d  etooth Service -
│ │ │ -00175fd0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -00175fe0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -00175ff0: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -00176000: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00176010: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -00176020: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -00176030: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -00176040: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -00176050: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -00176060: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00176070: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00176080: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00176090: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -001760a0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -001760b0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -001760c0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -001760d0: 4469 7361 626c 6520 426c 7565 746f 6f74  Disable Bluetoot
│ │ │ -001760e0: 6820 5365 7276 6963 6520 2d20 456e 7375  h Service - Ensu
│ │ │ -001760f0: 7265 2062 6c75 6574 6f6f 7468 2e73 6572  re bluetooth.ser
│ │ │ -00176100: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -00176110: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00176120: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -00176130: 2020 6e61 6d65 3a20 626c 7565 746f 6f74    name: bluetoot
│ │ │ -00176140: 682e 7365 7276 6963 650a 2020 2020 2020  h.service.      
│ │ │ -00176150: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00176160: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00176170: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -00176180: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00176190: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -001761a0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -001761b0: 7365 6172 6368 2822 626c 7565 746f 6f74  search("bluetoot
│ │ │ -001761c0: 682e 7365 7276 6963 6522 2c20 6d75 6c74  h.service", mult
│ │ │ -001761d0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -001761e0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -001761f0: 6574 2045 7869 7374 7320 2d20 626c 7565  et Exists - blue
│ │ │ -00176200: 746f 6f74 682e 736f 636b 6574 0a20 2020  tooth.socket.   
│ │ │ -00176210: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00176220: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00176230: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00176240: 2d66 696c 6573 2062 6c75 6574 6f6f 7468  -files bluetooth
│ │ │ -00176250: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -00176260: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -00176270: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -00176280: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00176290: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -001762a0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -001762b0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -001762c0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -001762d0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -001762e0: 206e 616d 653a 2044 6973 6162 6c65 2042   name: Disable B
│ │ │ -001762f0: 6c75 6574 6f6f 7468 2053 6572 7669 6365  luetooth Service
│ │ │ -00176300: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -00176310: 7420 626c 7565 746f 6f74 680a 2020 2020  t bluetooth.    
│ │ │ -00176320: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00176330: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00176340: 616d 653a 2062 6c75 6574 6f6f 7468 2e73  ame: bluetooth.s
│ │ │ -00176350: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -00176360: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00176370: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -00176380: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00176390: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -001763a0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -001763b0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -001763c0: 7365 6172 6368 2822 626c 7565 746f 6f74  search("bluetoot
│ │ │ -001763d0: 682e 736f 636b 6574 222c 206d 756c 7469  h.socket", multi
│ │ │ -001763e0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -001763f0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00176400: 3137 312d 332e 312e 3136 0a20 202d 204e  171-3.1.16.  - N
│ │ │ -00176410: 4953 542d 3830 302d 3533 2d41 432d 3138  IST-800-53-AC-18
│ │ │ -00176420: 2833 290a 2020 2d20 4e49 5354 2d38 3030  (3).  - NIST-800
│ │ │ -00176430: 2d35 332d 4143 2d31 3828 6129 0a20 202d  -53-AC-18(a).  -
│ │ │ -00176440: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00176450: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00176460: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -00176470: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00176480: 3728 6229 0a20 202d 204e 4953 542d 3830  7(b).  - NIST-80
│ │ │ -00176490: 302d 3533 2d4d 502d 370a 2020 2d20 6469  0-53-MP-7.  - di
│ │ │ -001764a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -001764b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001764c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001764d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -001764e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -001764f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00176500: 2d20 7365 7276 6963 655f 626c 7565 746f  - service_blueto
│ │ │ -00176510: 6f74 685f 6469 7361 626c 6564 0a20 202d  oth_disabled.  -
│ │ │ -00176520: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00176530: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -00176540: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00176550: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00176560: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +001758d0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +001758e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +001758f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00175920: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00175990: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001759b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001759e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00175970: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00175980: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001759c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001759d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00175a20: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00175a30: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00175a40: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00175a50: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00175a60: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00175a70: 302d 3137 312d 332e 312e 3136 0a20 202d 0-171-3.1.16. - │ │ │ +00175a80: 204e 4953 542d 3830 302d 3533 2d41 432d NIST-800-53-AC- │ │ │ +00175a90: 3138 2833 290a 2020 2d20 4e49 5354 2d38 18(3). - NIST-8 │ │ │ +00175aa0: 3030 2d35 332d 4143 2d31 3828 6129 0a20 00-53-AC-18(a). │ │ │ +00175ab0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +00175ac0: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ +00175ad0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ +00175ae0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +00175af0: 4d2d 3728 6229 0a20 202d 204e 4953 542d M-7(b). - NIST- │ │ │ +00175b00: 3830 302d 3533 2d4d 502d 370a 2020 2d20 800-53-MP-7. - │ │ │ +00175b10: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +00175b20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +00175b30: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +00175b40: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +00175b50: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +00175b60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00175b70: 2020 2d20 7365 7276 6963 655f 626c 7565 - service_blue │ │ │ +00175b80: 746f 6f74 685f 6469 7361 626c 6564 0a0a tooth_disabled.. │ │ │ +00175b90: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +00175ba0: 426c 7565 746f 6f74 6820 5365 7276 6963 Bluetooth Servic │ │ │ +00175bb0: 6520 2d20 4469 7361 626c 6520 7365 7276 e - Disable serv │ │ │ +00175bc0: 6963 6520 626c 7565 746f 6f74 680a 2020 ice bluetooth. │ │ │ +00175bd0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +00175be0: 3a20 4469 7361 626c 6520 426c 7565 746f : Disable Blueto │ │ │ +00175bf0: 6f74 6820 5365 7276 6963 6520 2d20 436f oth Service - Co │ │ │ +00175c00: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ +00175c10: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ +00175c20: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ +00175c30: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00175c40: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ +00175c50: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ +00175c60: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ +00175c70: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ +00175c80: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ +00175c90: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +00175ca0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +00175cb0: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ +00175cc0: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ +00175cd0: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +00175ce0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +00175cf0: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ +00175d00: 6162 6c65 2042 6c75 6574 6f6f 7468 2053 able Bluetooth S │ │ │ +00175d10: 6572 7669 6365 202d 2045 6e73 7572 6520 ervice - Ensure │ │ │ +00175d20: 626c 7565 746f 6f74 682e 7365 7276 6963 bluetooth.servic │ │ │ +00175d30: 6520 6973 204d 6173 6b65 640a 2020 2020 e is Masked. │ │ │ +00175d40: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00175d50: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +00175d60: 616d 653a 2062 6c75 6574 6f6f 7468 2e73 ame: bluetooth.s │ │ │ +00175d70: 6572 7669 6365 0a20 2020 2020 2073 7461 ervice. sta │ │ │ +00175d80: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ +00175d90: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +00175da0: 0a20 2020 2020 206d 6173 6b65 643a 2074 . masked: t │ │ │ +00175db0: 7275 650a 2020 2020 7768 656e 3a20 7365 rue. when: se │ │ │ +00175dc0: 7276 6963 655f 6578 6973 7473 2e73 7464 rvice_exists.std │ │ │ +00175dd0: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ +00175de0: 7263 6828 2262 6c75 6574 6f6f 7468 2e73 rch("bluetooth.s │ │ │ +00175df0: 6572 7669 6365 222c 206d 756c 7469 6c69 ervice", multili │ │ │ +00175e00: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61 ne=True).. - na │ │ │ +00175e10: 6d65 3a20 556e 6974 2053 6f63 6b65 7420 me: Unit Socket │ │ │ +00175e20: 4578 6973 7473 202d 2062 6c75 6574 6f6f Exists - bluetoo │ │ │ +00175e30: 7468 2e73 6f63 6b65 740a 2020 2020 616e th.socket. an │ │ │ +00175e40: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ +00175e50: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ +00175e60: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ +00175e70: 6c65 7320 626c 7565 746f 6f74 682e 736f les bluetooth.so │ │ │ +00175e80: 636b 6574 0a20 2020 2072 6567 6973 7465 cket. registe │ │ │ +00175e90: 723a 2073 6f63 6b65 745f 6669 6c65 5f65 r: socket_file_e │ │ │ +00175ea0: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +00175eb0: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +00175ec0: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +00175ed0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +00175ee0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20 s.rc not in [0, │ │ │ +00175ef0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64 1]. check_mod │ │ │ +00175f00: 653a 2066 616c 7365 0a0a 2020 2d20 6e61 e: false.. - na │ │ │ +00175f10: 6d65 3a20 4469 7361 626c 6520 426c 7565 me: Disable Blue │ │ │ +00175f20: 746f 6f74 6820 5365 7276 6963 6520 2d20 tooth Service - │ │ │ +00175f30: 4469 7361 626c 6520 536f 636b 6574 2062 Disable Socket b │ │ │ +00175f40: 6c75 6574 6f6f 7468 0a20 2020 2061 6e73 luetooth. ans │ │ │ +00175f50: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ +00175f60: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ +00175f70: 3a20 626c 7565 746f 6f74 682e 736f 636b : bluetooth.sock │ │ │ +00175f80: 6574 0a20 2020 2020 2065 6e61 626c 6564 et. enabled │ │ │ +00175f90: 3a20 6661 6c73 650a 2020 2020 2020 7374 : false. st │ │ │ +00175fa0: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ +00175fb0: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ +00175fc0: 2020 2020 7768 656e 3a20 736f 636b 6574 when: socket │ │ │ +00175fd0: 5f66 696c 655f 6578 6973 7473 2e73 7464 _file_exists.std │ │ │ +00175fe0: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ +00175ff0: 7263 6828 2262 6c75 6574 6f6f 7468 2e73 rch("bluetooth.s │ │ │ +00176000: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ +00176010: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ +00176020: 2020 2d20 4e49 5354 2d38 3030 2d31 3731 - NIST-800-171 │ │ │ +00176030: 2d33 2e31 2e31 360a 2020 2d20 4e49 5354 -3.1.16. - NIST │ │ │ +00176040: 2d38 3030 2d35 332d 4143 2d31 3828 3329 -800-53-AC-18(3) │ │ │ +00176050: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00176060: 2d41 432d 3138 2861 290a 2020 2d20 4e49 -AC-18(a). - NI │ │ │ +00176070: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +00176080: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00176090: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ +001760a0: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ +001760b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +001760c0: 332d 4d50 2d37 0a20 202d 2064 6973 6162 3-MP-7. - disab │ │ │ +001760d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +001760e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +001760f0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +00176100: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +00176110: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +00176120: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ +00176130: 6572 7669 6365 5f62 6c75 6574 6f6f 7468 ervice_bluetooth │ │ │ +00176140: 5f64 6973 6162 6c65 640a 2020 2d20 7370 _disabled. - sp │ │ │ +00176150: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ +00176160: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69 ock. when: '"li │ │ │ +00176170: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ +00176180: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ +00176190: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072 ges'.

Remediation │ │ │ +00176250: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00176260: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +001762f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00176310: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00176330: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00176360: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00176370: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00176380: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +001763a0: 6c65 5f62 6c75 6574 6f6f 7468 0a0a 636c  le_bluetooth..cl
│ │ │ +001763b0: 6173 7320 6469 7361 626c 655f 626c 7565  ass disable_blue
│ │ │ +001763c0: 746f 6f74 6820 7b0a 2020 7365 7276 6963  tooth {.  servic
│ │ │ +001763d0: 6520 7b27 626c 7565 746f 6f74 6827 3a0a  e {'bluetooth':.
│ │ │ +001763e0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +001763f0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +00176400: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +00176410: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +001764d0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +001764e0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +001764f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00176530: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00176540: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00176550: 0a6d 6173 6b65 6420 3d20 5b22 626c 7565  .masked = ["blue
│ │ │ +00176560: 746f 6f74 6822 5d0a 3c2f 636f 6465 3e3c  tooth"].<
│ │ │  00176570: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation │ │ │ -001df530: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -001df540: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001df5d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001df5f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001df610: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001df640: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001df650: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -001df680: 6f76 655f 6175 746f 6673 0a0a 636c 6173  ove_autofs..clas
│ │ │ -001df690: 7320 7265 6d6f 7665 5f61 7574 6f66 7320  s remove_autofs 
│ │ │ -001df6a0: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ -001df6b0: 7574 6f66 7327 3a0a 2020 2020 656e 7375  utofs':.    ensu
│ │ │ -001df6c0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -001df6d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -001df6e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -001df790: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -001df7a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001df7b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001df7e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -001df850: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001df870: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001df8a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001df830: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001df840: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001df880: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001df890: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -001df8e0: 2027 5265 6d6f 7665 2061 7574 6f66 7320 'Remove autofs │ │ │ -001df8f0: 5061 636b 6167 653a 2045 6e73 7572 6520 Package: Ensure │ │ │ -001df900: 6175 746f 6673 2069 7320 7265 6d6f 7665 autofs is remove │ │ │ -001df910: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -001df920: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -001df930: 2020 6e61 6d65 3a20 6175 746f 6673 0a20 name: autofs. │ │ │ -001df940: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -001df950: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ -001df960: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -001df970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -001df980: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -001df990: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665 ion. - low_seve │ │ │ -001df9a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -001df9b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -001df9c0: 636b 6167 655f 6175 746f 6673 5f72 656d ckage_autofs_rem │ │ │ -001df9d0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072 oved.

Complexity │ │ │ +001df5d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +001df5f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +001df600: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001df610: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +001df620: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +001df640: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +001df670: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ +001df680: 6d6f 7665 2061 7574 6f66 7320 5061 636b  move autofs Pack
│ │ │ +001df690: 6167 653a 2045 6e73 7572 6520 6175 746f  age: Ensure auto
│ │ │ +001df6a0: 6673 2069 7320 7265 6d6f 7665 6427 0a20  fs is removed'. 
│ │ │ +001df6b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001df6c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +001df6d0: 6d65 3a20 6175 746f 6673 0a20 2020 2073  me: autofs.    s
│ │ │ +001df6e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +001df6f0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +001df700: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +001df710: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001df720: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001df730: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +001df740: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +001df750: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +001df760: 655f 6175 746f 6673 5f72 656d 6f76 6564  e_autofs_removed
│ │ │ +001df770: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +001df830: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +001df840: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +001df910: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001df920: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +001df970: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +001df980: 6175 746f 6673 0a0a 636c 6173 7320 7265  autofs..class re
│ │ │ +001df990: 6d6f 7665 5f61 7574 6f66 7320 7b0a 2020  move_autofs {.  
│ │ │ +001df9a0: 7061 636b 6167 6520 7b20 2761 7574 6f66  package { 'autof
│ │ │ +001df9b0: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +001df9c0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +001df9d0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Rem
│ │ │ -001e1200: 6564 6961 7469 6f6e 204f 5342 7569 6c64  ediation OSBuild
│ │ │ -001e1210: 2042 6c75 6570 7269 6e74 2073 6e69 7070   Blueprint snipp
│ │ │ -001e1220: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...

.[custo │ │ │ -001e1270: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -001e1280: 6573 5d0a 6d61 736b 6564 203d 205b 2261 es].masked = ["a │ │ │ -001e1290: 7574 6f66 7322 5d0a 3c2f 636f 6465 3e3c utofs"].< │ │ │ -001e12a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remediat │ │ │ -001e1350: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001e1360: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001e13e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869

< │ │ │ -001e1470: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ +001df8f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001df900: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001df940: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +001df950: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -001e13f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001e1400: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -001e1440: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001e1450: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -001e1490: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -001e14a0: 7361 626c 655f 6175 746f 6673 0a0a 636c  sable_autofs..cl
│ │ │ -001e14b0: 6173 7320 6469 7361 626c 655f 6175 746f  ass disable_auto
│ │ │ -001e14c0: 6673 207b 0a20 2073 6572 7669 6365 207b  fs {.  service {
│ │ │ -001e14d0: 2761 7574 6f66 7327 3a0a 2020 2020 656e  'autofs':.    en
│ │ │ -001e14e0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -001e14f0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -001e1500: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -001e1510: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -001e15d0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -001e15e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001e1670: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001e1690: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001e16b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001e16e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001e16f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -001e1720: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -001e1730: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -001e1740: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -001e1750: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -001e1760: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -001e1770: 2d33 2e34 2e36 0a20 202d 204e 4953 542d  -3.4.6.  - NIST-
│ │ │ -001e1780: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -001e1790: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -001e17a0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -001e17b0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -001e17c0: 202d 204e 4953 542d 3830 302d 3533 2d4d   - NIST-800-53-M
│ │ │ -001e17d0: 502d 370a 2020 2d20 6469 7361 626c 655f  P-7.  - disable_
│ │ │ -001e17e0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -001e17f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -001e1800: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -001e1810: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -001e1820: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -001e1830: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -001e1840: 6963 655f 6175 746f 6673 5f64 6973 6162  ice_autofs_disab
│ │ │ -001e1850: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -001e1860: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ -001e1870: 6e74 6572 202d 2044 6973 6162 6c65 2073  nter - Disable s
│ │ │ -001e1880: 6572 7669 6365 2061 7574 6f66 730a 2020  ervice autofs.  
│ │ │ -001e1890: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -001e18a0: 3a20 4469 7361 626c 6520 7468 6520 4175  : Disable the Au
│ │ │ -001e18b0: 746f 6d6f 756e 7465 7220 2d20 436f 6c6c  tomounter - Coll
│ │ │ -001e18c0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -001e18d0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -001e18e0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -001e18f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -001e1900: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -001e1910: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -001e1920: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -001e1930: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -001e1940: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -001e1950: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -001e1960: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -001e1970: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -001e1980: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -001e1990: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -001e19a0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -001e19b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -001e19c0: 6c65 2074 6865 2041 7574 6f6d 6f75 6e74  le the Automount
│ │ │ -001e19d0: 6572 202d 2045 6e73 7572 6520 6175 746f  er - Ensure auto
│ │ │ -001e19e0: 6673 2e73 6572 7669 6365 2069 7320 4d61  fs.service is Ma
│ │ │ -001e19f0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -001e1a00: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -001e1a10: 3a0a 2020 2020 2020 6e61 6d65 3a20 6175  :.      name: au
│ │ │ -001e1a20: 746f 6673 2e73 6572 7669 6365 0a20 2020  tofs.service.   
│ │ │ -001e1a30: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -001e1a40: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -001e1a50: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -001e1a60: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -001e1a70: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -001e1a80: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -001e1a90: 6973 2073 6561 7263 6828 2261 7574 6f66  is search("autof
│ │ │ -001e1aa0: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ -001e1ab0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -001e1ac0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -001e1ad0: 6574 2045 7869 7374 7320 2d20 6175 746f  et Exists - auto
│ │ │ -001e1ae0: 6673 2e73 6f63 6b65 740a 2020 2020 616e  fs.socket.    an
│ │ │ -001e1af0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -001e1b00: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -001e1b10: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -001e1b20: 6c65 7320 6175 746f 6673 2e73 6f63 6b65  les autofs.socke
│ │ │ -001e1b30: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ -001e1b40: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -001e1b50: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -001e1b60: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -001e1b70: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ -001e1b80: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ -001e1b90: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -001e1ba0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -001e1bb0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -001e1bc0: 2044 6973 6162 6c65 2074 6865 2041 7574   Disable the Aut
│ │ │ -001e1bd0: 6f6d 6f75 6e74 6572 202d 2044 6973 6162  omounter - Disab
│ │ │ -001e1be0: 6c65 2053 6f63 6b65 7420 6175 746f 6673  le Socket autofs
│ │ │ -001e1bf0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -001e1c00: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -001e1c10: 2020 2020 6e61 6d65 3a20 6175 746f 6673      name: autofs
│ │ │ -001e1c20: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -001e1c30: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -001e1c40: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -001e1c50: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -001e1c60: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -001e1c70: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -001e1c80: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -001e1c90: 7320 7365 6172 6368 2822 6175 746f 6673  s search("autofs
│ │ │ -001e1ca0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -001e1cb0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -001e1cc0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -001e1cd0: 3731 2d33 2e34 2e36 0a20 202d 204e 4953  71-3.4.6.  - NIS
│ │ │ -001e1ce0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -001e1cf0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001e1d00: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -001e1d10: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -001e1d20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001e1d30: 2d4d 502d 370a 2020 2d20 6469 7361 626c  -MP-7.  - disabl
│ │ │ -001e1d40: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001e1d50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001e1d60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001e1d70: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -001e1d80: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001e1d90: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -001e1da0: 7276 6963 655f 6175 746f 6673 5f64 6973  rvice_autofs_dis
│ │ │ -001e1db0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -001e1dc0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -001e1dd0: 2020 7768 656e 3a20 2820 2261 7574 6f66    when: ( "autof
│ │ │ -001e1de0: 7322 2069 6e20 616e 7369 626c 655f 6661  s" in ansible_fa
│ │ │ -001e1df0: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ -001e1e00: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ -001e1e10: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001e1e20: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
│ │ │ +001e1220: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +001e12c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001e1310: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +001e1350: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +001e1360: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +001e1370: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +001e1380: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +001e1390: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +001e13a0: 542d 3830 302d 3137 312d 332e 342e 360a  T-800-171-3.4.6.
│ │ │ +001e13b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001e13c0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +001e13d0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +001e13e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001e13f0: 434d 2d37 2862 290a 2020 2d20 4e49 5354  CM-7(b).  - NIST
│ │ │ +001e1400: 2d38 3030 2d35 332d 4d50 2d37 0a20 202d  -800-53-MP-7.  -
│ │ │ +001e1410: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +001e1420: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +001e1430: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +001e1440: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +001e1450: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +001e1460: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001e1470: 0a20 202d 2073 6572 7669 6365 5f61 7574  .  - service_aut
│ │ │ +001e1480: 6f66 735f 6469 7361 626c 6564 0a0a 2d20  ofs_disabled..- 
│ │ │ +001e1490: 6e61 6d65 3a20 4469 7361 626c 6520 7468  name: Disable th
│ │ │ +001e14a0: 6520 4175 746f 6d6f 756e 7465 7220 2d20  e Automounter - 
│ │ │ +001e14b0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +001e14c0: 6175 746f 6673 0a20 2062 6c6f 636b 3a0a  autofs.  block:.
│ │ │ +001e14d0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +001e14e0: 6c65 2074 6865 2041 7574 6f6d 6f75 6e74  le the Automount
│ │ │ +001e14f0: 6572 202d 2043 6f6c 6c65 6374 2073 7973  er - Collect sys
│ │ │ +001e1500: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +001e1510: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +001e1520: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +001e1530: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +001e1540: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +001e1550: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +001e1560: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +001e1570: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +001e1580: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +001e1590: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +001e15a0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +001e15b0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +001e15c0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +001e15d0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +001e15e0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +001e15f0: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ +001e1600: 4175 746f 6d6f 756e 7465 7220 2d20 456e  Automounter - En
│ │ │ +001e1610: 7375 7265 2061 7574 6f66 732e 7365 7276  sure autofs.serv
│ │ │ +001e1620: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +001e1630: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +001e1640: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +001e1650: 206e 616d 653a 2061 7574 6f66 732e 7365   name: autofs.se
│ │ │ +001e1660: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +001e1670: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +001e1680: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +001e1690: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +001e16a0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +001e16b0: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +001e16c0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +001e16d0: 6368 2822 6175 746f 6673 2e73 6572 7669  ch("autofs.servi
│ │ │ +001e16e0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +001e16f0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +001e1700: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +001e1710: 7473 202d 2061 7574 6f66 732e 736f 636b  ts - autofs.sock
│ │ │ +001e1720: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +001e1730: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +001e1740: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +001e1750: 742d 756e 6974 2d66 696c 6573 2061 7574  t-unit-files aut
│ │ │ +001e1760: 6f66 732e 736f 636b 6574 0a20 2020 2072  ofs.socket.    r
│ │ │ +001e1770: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +001e1780: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +001e1790: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +001e17a0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +001e17b0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +001e17c0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +001e17d0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +001e17e0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +001e17f0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +001e1800: 6520 7468 6520 4175 746f 6d6f 756e 7465  e the Automounte
│ │ │ +001e1810: 7220 2d20 4469 7361 626c 6520 536f 636b  r - Disable Sock
│ │ │ +001e1820: 6574 2061 7574 6f66 730a 2020 2020 616e  et autofs.    an
│ │ │ +001e1830: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +001e1840: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +001e1850: 653a 2061 7574 6f66 732e 736f 636b 6574  e: autofs.socket
│ │ │ +001e1860: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +001e1870: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +001e1880: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +001e1890: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +001e18a0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +001e18b0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +001e18c0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +001e18d0: 6828 2261 7574 6f66 732e 736f 636b 6574  h("autofs.socket
│ │ │ +001e18e0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +001e18f0: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ +001e1900: 4953 542d 3830 302d 3137 312d 332e 342e  IST-800-171-3.4.
│ │ │ +001e1910: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ +001e1920: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +001e1930: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +001e1940: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001e1950: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ +001e1960: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ +001e1970: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +001e1980: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +001e1990: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +001e19a0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +001e19b0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +001e19c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001e19d0: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ +001e19e0: 7574 6f66 735f 6469 7361 626c 6564 0a20  utofs_disabled. 
│ │ │ +001e19f0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +001e1a00: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +001e1a10: 2028 2022 6175 746f 6673 2220 696e 2061   ( "autofs" in a
│ │ │ +001e1a20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +001e1a30: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ +001e1a40: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +001e1a50: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +001e1a60: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).Remediati
│ │ │ +001e1b20: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +001e1b30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +001e1bb0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001e1bf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Co │ │ │ +001e12a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001e12d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001e12f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001e1300: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001e1320: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001e1330: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +001e1bc0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001e1be0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001e1c10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001e1c30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +001e1c60: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +001e1c70: 6162 6c65 5f61 7574 6f66 730a 0a63 6c61  able_autofs..cla
│ │ │ +001e1c80: 7373 2064 6973 6162 6c65 5f61 7574 6f66  ss disable_autof
│ │ │ +001e1c90: 7320 7b0a 2020 7365 7276 6963 6520 7b27  s {.  service {'
│ │ │ +001e1ca0: 6175 746f 6673 273a 0a20 2020 2065 6e61  autofs':.    ena
│ │ │ +001e1cb0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +001e1cc0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001e1cd0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +001e1ce0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +001e1cf0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +001e1da0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +001e1db0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001e1dc0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +001e1e00: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +001e1e10: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +001e1e20: 203d 205b 2261 7574 6f66 7322 5d0a 3c2f   = ["autofs"].
Remediation P │ │ │ -00232310: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00232320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -002323a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002323c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00232410: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00232440: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00232460: 655f 6176 6168 690a 0a63 6c61 7373 2072  e_avahi..class r
│ │ │ -00232470: 656d 6f76 655f 6176 6168 6920 7b0a 2020  emove_avahi {.  
│ │ │ -00232480: 7061 636b 6167 6520 7b20 2761 7661 6869  package { 'avahi
│ │ │ -00232490: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002324a0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002324b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00232570: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00232580: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00232650: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ -002323d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002323e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00232420: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00232430: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00232610: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00232630: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00232680: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00232690: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -002326c0: 6e73 7461 6c6c 2061 7661 6869 2053 6572  nstall avahi Ser
│ │ │ -002326d0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -002326e0: 7572 6520 6176 6168 6920 6973 2072 656d  ure avahi is rem
│ │ │ -002326f0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -00232700: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00232710: 0a20 2020 206e 616d 653a 2061 7661 6869  .    name: avahi
│ │ │ -00232720: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00232730: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -00232740: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00232750: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00232760: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -00232770: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00232780: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -00232790: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002327a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002327b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002327c0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -002327d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002327e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002327f0: 6765 5f61 7661 6869 5f72 656d 6f76 6564  ge_avahi_removed
│ │ │ +00232300: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00232310: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00232320: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +002323a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002323c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00232410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00232440: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002323b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002323d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00232420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00232430: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +00232460: 7374 616c 6c20 6176 6168 6920 5365 7276  stall avahi Serv
│ │ │ +00232470: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ +00232480: 7265 2061 7661 6869 2069 7320 7265 6d6f  re avahi is remo
│ │ │ +00232490: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +002324a0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +002324b0: 2020 2020 6e61 6d65 3a20 6176 6168 690a      name: avahi.
│ │ │ +002324c0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002324d0: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +002324e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002324f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00232500: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00232510: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +00232520: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +00232530: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00232540: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00232550: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00232560: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00232570: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00232580: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00232590: 655f 6176 6168 695f 7265 6d6f 7665 640a  e_avahi_removed.
│ │ │ +002325a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00232650: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00232660: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00232700: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002327a0: 696e 636c 7564 6520 7265 6d6f 7665 5f61  include remove_a
│ │ │ +002327b0: 7661 6869 0a0a 636c 6173 7320 7265 6d6f  vahi..class remo
│ │ │ +002327c0: 7665 5f61 7661 6869 207b 0a20 2070 6163  ve_avahi {.  pac
│ │ │ +002327d0: 6b61 6765 207b 2027 6176 6168 6927 3a0a  kage { 'avahi':.
│ │ │ +002327e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002327f0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00232800: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Rem │ │ │ -00233c90: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00233ca0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00233cb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00233d00: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00233d10: 6573 5d0a 6d61 736b 6564 203d 205b 2261 es].masked = ["a │ │ │ -00233d20: 7661 6869 2d64 6165 6d6f 6e22 5d0a 3c2f vahi-daemon"].Re │ │ │ -00233de0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00233df0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00233e00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002326f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00232720: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00232730: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00232770: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00232780: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -00233ea0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00233ef0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00233e80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00233eb0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00233ed0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00233ee0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00233f00: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00233f10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00233f30: 7564 6520 6469 7361 626c 655f 6176 6168  ude disable_avah
│ │ │ -00233f40: 692d 6461 656d 6f6e 0a0a 636c 6173 7320  i-daemon..class 
│ │ │ -00233f50: 6469 7361 626c 655f 6176 6168 692d 6461  disable_avahi-da
│ │ │ -00233f60: 656d 6f6e 207b 0a20 2073 6572 7669 6365  emon {.  service
│ │ │ -00233f70: 207b 2761 7661 6869 2d64 6165 6d6f 6e27   {'avahi-daemon'
│ │ │ -00233f80: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00233f90: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -00233fa0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -00233fb0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -00233fd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00233fe0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00233ff0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00234000: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00234010: 6438 3436 2220 7461 6269 6e64 6578 3d22 d846" tabindex=" │ │ │ -00234020: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00234030: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00234040: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00234050: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00234060: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00234070: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00234080: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00234090: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00234110: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00234140: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00234160: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00234170: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00234190: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002341a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002341c0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002341d0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002341e0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002341f0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00234200: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00234210: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00234220: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00234230: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00234240: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00234250: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00234260: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00234270: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00234280: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00234290: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002342a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002342b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -002342c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002342d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002342e0: 7276 6963 655f 6176 6168 692d 6461 656d  rvice_avahi-daem
│ │ │ -002342f0: 6f6e 5f64 6973 6162 6c65 640a 0a2d 206e  on_disabled..- n
│ │ │ -00234300: 616d 653a 2044 6973 6162 6c65 2041 7661  ame: Disable Ava
│ │ │ -00234310: 6869 2053 6572 7665 7220 536f 6674 7761  hi Server Softwa
│ │ │ -00234320: 7265 202d 2044 6973 6162 6c65 2073 6572  re - Disable ser
│ │ │ -00234330: 7669 6365 2061 7661 6869 2d64 6165 6d6f  vice avahi-daemo
│ │ │ -00234340: 6e0a 2020 626c 6f63 6b3a 0a0a 2020 2d20  n.  block:..  - 
│ │ │ -00234350: 6e61 6d65 3a20 4469 7361 626c 6520 4176  name: Disable Av
│ │ │ -00234360: 6168 6920 5365 7276 6572 2053 6f66 7477  ahi Server Softw
│ │ │ -00234370: 6172 6520 2d20 436f 6c6c 6563 7420 7379  are - Collect sy
│ │ │ -00234380: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00234390: 7265 7365 6e74 2069 6e20 7468 650a 2020  resent in the.  
│ │ │ -002343a0: 2020 2020 5379 7374 656d 0a20 2020 2061      System.    a
│ │ │ -002343b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -002343c0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -002343d0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -002343e0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -002343f0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -00234400: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00234410: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00234420: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00234430: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -00234440: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00234450: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00234460: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00234470: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00234480: 6c65 2041 7661 6869 2053 6572 7665 7220  le Avahi Server 
│ │ │ -00234490: 536f 6674 7761 7265 202d 2045 6e73 7572  Software - Ensur
│ │ │ -002344a0: 6520 6176 6168 692d 6461 656d 6f6e 2e73  e avahi-daemon.s
│ │ │ -002344b0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -002344c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002344d0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002344e0: 2020 2020 6e61 6d65 3a20 6176 6168 692d      name: avahi-
│ │ │ -002344f0: 6461 656d 6f6e 2e73 6572 7669 6365 0a20  daemon.service. 
│ │ │ -00234500: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00234510: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -00234520: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -00234530: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00234540: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00234550: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00234560: 7320 6973 2073 6561 7263 6828 2261 7661  s is search("ava
│ │ │ -00234570: 6869 2d64 6165 6d6f 6e2e 7365 7276 6963  hi-daemon.servic
│ │ │ -00234580: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -00234590: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -002345a0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -002345b0: 7320 2d20 6176 6168 692d 6461 656d 6f6e  s - avahi-daemon
│ │ │ -002345c0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -002345d0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002345e0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002345f0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -00234600: 7320 6176 6168 692d 6461 656d 6f6e 2e73  s avahi-daemon.s
│ │ │ -00234610: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -00234620: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -00234630: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00234640: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00234650: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00234660: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00234670: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00234680: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00234690: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002346a0: 616d 653a 2044 6973 6162 6c65 2041 7661  ame: Disable Ava
│ │ │ -002346b0: 6869 2053 6572 7665 7220 536f 6674 7761  hi Server Softwa
│ │ │ -002346c0: 7265 202d 2044 6973 6162 6c65 2053 6f63  re - Disable Soc
│ │ │ -002346d0: 6b65 7420 6176 6168 692d 6461 656d 6f6e  ket avahi-daemon
│ │ │ -002346e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002346f0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00234700: 2020 2020 6e61 6d65 3a20 6176 6168 692d      name: avahi-
│ │ │ -00234710: 6461 656d 6f6e 2e73 6f63 6b65 740a 2020  daemon.socket.  
│ │ │ -00234720: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00234730: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -00234740: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -00234750: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00234760: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00234770: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00234780: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00234790: 6176 6168 692d 6461 656d 6f6e 2e73 6f63  avahi-daemon.soc
│ │ │ -002347a0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -002347b0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -002347c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002347d0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002347e0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002347f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00234800: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00234810: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00234820: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00234830: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00234840: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00234850: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00234860: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00234870: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00234880: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00234890: 2020 2d20 7365 7276 6963 655f 6176 6168    - service_avah
│ │ │ -002348a0: 692d 6461 656d 6f6e 5f64 6973 6162 6c65  i-daemon_disable
│ │ │ -002348b0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -002348c0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -002348d0: 656e 3a20 2820 2261 7661 6869 2220 696e  en: ( "avahi" in
│ │ │ -002348e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002348f0: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -00234900: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00234910: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00234920: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +00233c90: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00233ca0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00233cb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00233d50: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00233da0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00233de0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00233df0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00233e00: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00233e10: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00233e20: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00233e30: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00233e40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00233e50: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00233e60: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00233e70: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00233e80: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00233e90: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +00233ea0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00233eb0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00233ec0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00233ed0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00233ee0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00233ef0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00233f00: 6572 7669 6365 5f61 7661 6869 2d64 6165  ervice_avahi-dae
│ │ │ +00233f10: 6d6f 6e5f 6469 7361 626c 6564 0a0a 2d20  mon_disabled..- 
│ │ │ +00233f20: 6e61 6d65 3a20 4469 7361 626c 6520 4176  name: Disable Av
│ │ │ +00233f30: 6168 6920 5365 7276 6572 2053 6f66 7477  ahi Server Softw
│ │ │ +00233f40: 6172 6520 2d20 4469 7361 626c 6520 7365  are - Disable se
│ │ │ +00233f50: 7276 6963 6520 6176 6168 692d 6461 656d  rvice avahi-daem
│ │ │ +00233f60: 6f6e 0a20 2062 6c6f 636b 3a0a 0a20 202d  on.  block:..  -
│ │ │ +00233f70: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ +00233f80: 7661 6869 2053 6572 7665 7220 536f 6674  vahi Server Soft
│ │ │ +00233f90: 7761 7265 202d 2043 6f6c 6c65 6374 2073  ware - Collect s
│ │ │ +00233fa0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00233fb0: 5072 6573 656e 7420 696e 2074 6865 0a20  Present in the. 
│ │ │ +00233fc0: 2020 2020 2053 7973 7465 6d0a 2020 2020       System.    
│ │ │ +00233fd0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00233fe0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +00233ff0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00234000: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +00234010: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +00234020: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +00234030: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00234040: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00234050: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +00234060: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00234070: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00234080: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00234090: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002340a0: 626c 6520 4176 6168 6920 5365 7276 6572  ble Avahi Server
│ │ │ +002340b0: 2053 6f66 7477 6172 6520 2d20 456e 7375   Software - Ensu
│ │ │ +002340c0: 7265 2061 7661 6869 2d64 6165 6d6f 6e2e  re avahi-daemon.
│ │ │ +002340d0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +002340e0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002340f0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00234100: 2020 2020 206e 616d 653a 2061 7661 6869       name: avahi
│ │ │ +00234110: 2d64 6165 6d6f 6e2e 7365 7276 6963 650a  -daemon.service.
│ │ │ +00234120: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00234130: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +00234140: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00234150: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00234160: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00234170: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00234180: 6573 2069 7320 7365 6172 6368 2822 6176  es is search("av
│ │ │ +00234190: 6168 692d 6461 656d 6f6e 2e73 6572 7669  ahi-daemon.servi
│ │ │ +002341a0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +002341b0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +002341c0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002341d0: 7473 202d 2061 7661 6869 2d64 6165 6d6f  ts - avahi-daemo
│ │ │ +002341e0: 6e2e 736f 636b 6574 0a20 2020 2061 6e73  n.socket.    ans
│ │ │ +002341f0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00234200: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00234210: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00234220: 6573 2061 7661 6869 2d64 6165 6d6f 6e2e  es avahi-daemon.
│ │ │ +00234230: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +00234240: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +00234250: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00234260: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00234270: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00234280: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00234290: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002342a0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002342b0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002342c0: 6e61 6d65 3a20 4469 7361 626c 6520 4176  name: Disable Av
│ │ │ +002342d0: 6168 6920 5365 7276 6572 2053 6f66 7477  ahi Server Softw
│ │ │ +002342e0: 6172 6520 2d20 4469 7361 626c 6520 536f  are - Disable So
│ │ │ +002342f0: 636b 6574 2061 7661 6869 2d64 6165 6d6f  cket avahi-daemo
│ │ │ +00234300: 6e0a 2020 2020 616e 7369 626c 652e 6275  n.    ansible.bu
│ │ │ +00234310: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00234320: 2020 2020 206e 616d 653a 2061 7661 6869       name: avahi
│ │ │ +00234330: 2d64 6165 6d6f 6e2e 736f 636b 6574 0a20  -daemon.socket. 
│ │ │ +00234340: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00234350: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +00234360: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +00234370: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00234380: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00234390: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002343a0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002343b0: 2261 7661 6869 2d64 6165 6d6f 6e2e 736f  "avahi-daemon.so
│ │ │ +002343c0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +002343d0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +002343e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002343f0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00234400: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00234410: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00234420: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00234430: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00234440: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00234450: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00234460: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00234470: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00234480: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00234490: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002344a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002344b0: 0a20 202d 2073 6572 7669 6365 5f61 7661  .  - service_ava
│ │ │ +002344c0: 6869 2d64 6165 6d6f 6e5f 6469 7361 626c  hi-daemon_disabl
│ │ │ +002344d0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +002344e0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +002344f0: 6865 6e3a 2028 2022 6176 6168 6922 2069  hen: ( "avahi" i
│ │ │ +00234500: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00234510: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +00234520: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00234530: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00234540: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remedi │ │ │ +00234600: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00234610: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00234620: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00234650: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Co │ │ │ +00233d30: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00233d60: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00233d80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00233d90: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00233db0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00233dc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +002346c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002346e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00234710: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00234730: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +002346a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002346b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002346f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00234700: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00234750: 6469 7361 626c 655f 6176 6168 692d 6461 disable_avahi-da │ │ │ +00234760: 656d 6f6e 0a0a 636c 6173 7320 6469 7361 emon..class disa │ │ │ +00234770: 626c 655f 6176 6168 692d 6461 656d 6f6e ble_avahi-daemon │ │ │ +00234780: 207b 0a20 2073 6572 7669 6365 207b 2761 {. service {'a │ │ │ +00234790: 7661 6869 2d64 6165 6d6f 6e27 3a0a 2020 vahi-daemon':. │ │ │ +002347a0: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +002347b0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +002347c0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +002347d0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +002347e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00234890: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +002348a0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +002348b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00234900: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00234910: 6173 6b65 6420 3d20 5b22 6176 6168 692d  asked = ["avahi-
│ │ │ +00234920: 6461 656d 6f6e 225d 0a3c 2f63 6f64 653e  daemon"].
│ │ │  00234930: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation O │ │ │ -00244e80: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00244e90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00244ea0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00244ee0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00244ef0: 6520 3d20 2263 726f 6e22 0a76 6572 7369  e = "cron".versi
│ │ │ -00244f00: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -00244f10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00244fc0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00244fd0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00244fe0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00244ff0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00245000: 7365 2220 6964 3d22 6964 3838 3622 3e3c se" id="id886">< │ │ │ -00245010: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00245020: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00245030: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00245040: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00245050: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00245060: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00245070: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002450b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002450c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002450e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -002450f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -00245110: 6e73 7461 6c6c 5f63 726f 6e0a 0a63 6c61  nstall_cron..cla
│ │ │ -00245120: 7373 2069 6e73 7461 6c6c 5f63 726f 6e20  ss install_cron 
│ │ │ -00245130: 7b0a 2020 7061 636b 6167 6520 7b20 2763  {.  package { 'c
│ │ │ -00245140: 726f 6e27 3a0a 2020 2020 656e 7375 7265  ron':.    ensure
│ │ │ -00245150: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -00245160: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00245220: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00245230: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002452e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00245300: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00245330: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002452c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002452d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002452f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00245310: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00245320: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00245370: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00245380: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00245390: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002453a0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002453b0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002453c0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -002453d0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -002453e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -002453f0: 2e36 0a20 202d 2065 6e61 626c 655f 7374 .6. - enable_st │ │ │ -00245400: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00245410: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00245420: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00245430: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00245440: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00245450: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00245460: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564 e_cron_installed │ │ │ -00245470: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ -00245480: 2063 726f 6e20 6973 2069 6e73 7461 6c6c cron is install │ │ │ -00245490: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -002454a0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -002454b0: 2020 6e61 6d65 3a20 6372 6f6e 0a20 2020 name: cron. │ │ │ -002454c0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -002454d0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -002454e0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -002454f0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00245500: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -00245510: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -00245520: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -00245530: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -00245540: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c -2.2.6. - enabl │ │ │ -00245550: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00245560: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00245570: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00245580: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00245590: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -002455a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -002455b0: 636b 6167 655f 6372 6f6e 5f69 6e73 7461 ckage_cron_insta │ │ │ -002455c0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.Remediation A │ │ │ +00244e80: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00244e90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..

│ │ │ +00244f10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00244f30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00244f80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00244fb0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00244fd0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00244fe0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00244ff0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00245000: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00245010: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00245020: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00245030: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00245040: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +00245050: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00245060: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00245070: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00245080: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00245090: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002450a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002450b0: 202d 2070 6163 6b61 6765 5f63 726f 6e5f   - package_cron_
│ │ │ +002450c0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +002450d0: 653a 2045 6e73 7572 6520 6372 6f6e 2069  e: Ensure cron i
│ │ │ +002450e0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +002450f0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00245100: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00245110: 2063 726f 6e0a 2020 2020 7374 6174 653a   cron.    state:
│ │ │ +00245120: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +00245130: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00245140: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00245150: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00245160: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00245170: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00245180: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00245190: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +002451a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +002451b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002451c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002451d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002451e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002451f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00245200: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ +00245210: 726f 6e5f 696e 7374 616c 6c65 640a 3c2f  ron_installed.
Re │ │ │ +002452d0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002452e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002452f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:< │ │ │ +00244f20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00244f40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00244f90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00244fa0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ +00245390: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002453e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00245370: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002453a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002453c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002453d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002453f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00245400: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00245420: 7564 6520 696e 7374 616c 6c5f 6372 6f6e  ude install_cron
│ │ │ +00245430: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +00245440: 6372 6f6e 207b 0a20 2070 6163 6b61 6765  cron {.  package
│ │ │ +00245450: 207b 2027 6372 6f6e 273a 0a20 2020 2065   { 'cron':.    e
│ │ │ +00245460: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +00245470: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +00245480: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00245530: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00245540: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00245550: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00245560: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00245590: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +002455a0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +002455b0: 2263 726f 6e22 0a76 6572 7369 6f6e 203d  "cron".version =
│ │ │ +002455c0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation O │ │ │ -002467f0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00246800: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00246810: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00246850: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00246860: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -00246870: 6420 3d20 5b22 6372 6f6e 225d 0a3c 2f63  d = ["cron"].
│ │ │ -00246890: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00246930: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00246940: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00246950: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -002469d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00246a00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00246a20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00246a30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00246a50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00246a70: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00246a80: 6465 2065 6e61 626c 655f 6372 6f6e 0a0a  de enable_cron..
│ │ │ -00246a90: 636c 6173 7320 656e 6162 6c65 5f63 726f  class enable_cro
│ │ │ -00246aa0: 6e20 7b0a 2020 7365 7276 6963 6520 7b27  n {.  service {'
│ │ │ -00246ab0: 6372 6f6e 273a 0a20 2020 2065 6e61 626c  cron':.    enabl
│ │ │ -00246ac0: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00246ad0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00246ae0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00246af0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00246ba0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00246bb0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00246bc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00246c90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00246ca0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00246cf0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00246d00: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00246d10: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00246d20: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00246d30: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00246d40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00246d50: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00246d60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00246d70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00246d80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00246d90: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00246da0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00246db0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00246dc0: 655f 6372 6f6e 5f65 6e61 626c 6564 0a0a  e_cron_enabled..
│ │ │ -00246dd0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2063  - name: Enable c
│ │ │ -00246de0: 726f 6e20 5365 7276 6963 6520 2d20 456e  ron Service - En
│ │ │ -00246df0: 6162 6c65 2073 6572 7669 6365 2063 726f  able service cro
│ │ │ -00246e00: 6e0a 2020 626c 6f63 6b3a 0a0a 2020 2d20  n.  block:..  - 
│ │ │ -00246e10: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00246e20: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00246e30: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00246e40: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ -00246e50: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ -00246e60: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ -00246e70: 2045 6e61 626c 6520 6372 6f6e 2053 6572   Enable cron Ser
│ │ │ -00246e80: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ -00246e90: 7276 6963 6520 6372 6f6e 0a20 2020 2061  rvice cron.    a
│ │ │ -00246ea0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00246eb0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00246ec0: 6d65 3a20 6372 6f6e 0a20 2020 2020 2065  me: cron.      e
│ │ │ -00246ed0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -00246ee0: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -00246ef0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00246f00: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00246f10: 2020 2020 2d20 2722 6372 6f6e 2220 696e      - '"cron" in
│ │ │ -00246f20: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00246f30: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00246f40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00246f50: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00246f60: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00246f70: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00246f80: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00246f90: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00246fa0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00246fb0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00246fc0: 7365 7276 6963 655f 6372 6f6e 5f65 6e61  service_cron_ena
│ │ │ -00246fd0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00246fe0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00246ff0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00247000: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00247010: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002467e0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +002467f0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00246800: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity:low
Disrup │ │ │ -00246c70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00246c80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00246cc0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00246cd0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00246880: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002468a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002468f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00246920: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00246940: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00246950: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00246960: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00246970: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00246980: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00246990: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +002469a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002469b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002469c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002469d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002469e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002469f0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00246a00: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ +00246a10: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +00246a20: 6520 6372 6f6e 2053 6572 7669 6365 202d  e cron Service -
│ │ │ +00246a30: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00246a40: 6372 6f6e 0a20 2062 6c6f 636b 3a0a 0a20  cron.  block:.. 
│ │ │ +00246a50: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00246a60: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00246a70: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00246a80: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00246a90: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00246aa0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00246ab0: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ +00246ac0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00246ad0: 2053 6572 7669 6365 2063 726f 6e0a 2020   Service cron.  
│ │ │ +00246ae0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00246af0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00246b00: 206e 616d 653a 2063 726f 6e0a 2020 2020   name: cron.    
│ │ │ +00246b10: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +00246b20: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +00246b30: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +00246b40: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +00246b50: 6e3a 0a20 2020 202d 2027 2263 726f 6e22  n:.    - '"cron"
│ │ │ +00246b60: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00246b70: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00246b80: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00246b90: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00246ba0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00246bb0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00246bc0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00246bd0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00246be0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00246bf0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00246c00: 202d 2073 6572 7669 6365 5f63 726f 6e5f   - service_cron_
│ │ │ +00246c10: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ +00246c20: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +00246c30: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +00246c40: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00246c50: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00246c60: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00246c70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +00246d20: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00246d30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +00246890: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002468b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00246900: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00246910: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00246db0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00246dd0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00246e20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ +00246e70: 6372 6f6e 0a0a 636c 6173 7320 656e 6162  cron..class enab
│ │ │ +00246e80: 6c65 5f63 726f 6e20 7b0a 2020 7365 7276  le_cron {.  serv
│ │ │ +00246e90: 6963 6520 7b27 6372 6f6e 273a 0a20 2020  ice {'cron':.   
│ │ │ +00246ea0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +00246eb0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +00246ec0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +00246ed0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00246f90: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00246fa0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00246fb0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +00246de0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00246df0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00246e30: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00246e40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00263320: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00263340: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00263390: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002633c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002633e0: 655f 6e69 730a 0a63 6c61 7373 2072 656d  e_nis..class rem
│ │ │ -002633f0: 6f76 655f 6e69 7320 7b0a 2020 7061 636b  ove_nis {.  pack
│ │ │ -00263400: 6167 6520 7b20 276e 6973 273a 0a20 2020  age { 'nis':.   
│ │ │ -00263410: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00263420: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -002634e0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -002634f0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -00263350: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00263360: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002633a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002633b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00263590: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002635a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002635f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00263630: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00263640: 2074 6865 206e 6973 2070 6163 6b61 6765   the nis package
│ │ │ -00263650: 3a20 456e 7375 7265 206e 6973 2069 7320  : Ensure nis is 
│ │ │ -00263660: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00263670: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00263680: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e69  ge:.    name: ni
│ │ │ -00263690: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ -002636a0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002636b0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002636c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002636d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002636e0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -002636f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00263700: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00263710: 2070 6163 6b61 6765 5f6e 6973 5f72 656d   package_nis_rem
│ │ │ -00263720: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation A
│ │ │ +00263290: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002632a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ -00263580: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002635b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002635c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00263600: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00263610: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00263320: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00263340: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00263390: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002633c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00263330: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00263350: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002633a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002633b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002633e0: 7374 616c 6c20 7468 6520 6e69 7320 7061  stall the nis pa
│ │ │ +002633f0: 636b 6167 653a 2045 6e73 7572 6520 6e69  ckage: Ensure ni
│ │ │ +00263400: 7320 6973 2072 656d 6f76 6564 270a 2020  s is removed'.  
│ │ │ +00263410: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00263420: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00263430: 653a 206e 6973 0a20 2020 2073 7461 7465  e: nis.    state
│ │ │ +00263440: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00263450: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00263460: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00263470: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00263480: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00263490: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +002634a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002634b0: 640a 2020 2d20 7061 636b 6167 655f 6e69  d.  - package_ni
│ │ │ +002634c0: 735f 7265 6d6f 7665 640a 3c2f 636f 6465  s_removed.
Remedi │ │ │ +00263580: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00263590: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002635a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002635d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00263640: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00263660: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00263690: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00263620: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00263630: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00263670: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00263680: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002636d0: 6520 7265 6d6f 7665 5f6e 6973 0a0a 636c e remove_nis..cl │ │ │ +002636e0: 6173 7320 7265 6d6f 7665 5f6e 6973 207b ass remove_nis { │ │ │ +002636f0: 0a20 2070 6163 6b61 6765 207b 2027 6e69 . package { 'ni │ │ │ +00263700: 7327 3a0a 2020 2020 656e 7375 7265 203d s':. ensure = │ │ │ +00263710: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ +00263720: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediat │ │ │ -002654b0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002654c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00265540: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00265550: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00265560: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002655a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002655b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002655d0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002655e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00265600: 7265 6d6f 7665 5f64 6863 700a 0a63 6c61  remove_dhcp..cla
│ │ │ -00265610: 7373 2072 656d 6f76 655f 6468 6370 207b  ss remove_dhcp {
│ │ │ -00265620: 0a20 2070 6163 6b61 6765 207b 2027 6468  .  package { 'dh
│ │ │ -00265630: 6370 273a 0a20 2020 2065 6e73 7572 6520  cp':.    ensure 
│ │ │ -00265640: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00265650: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00265710: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00265720: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002657a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002657b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002657d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002657e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00265800: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00265820: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00265850: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00265860: 6e69 6e73 7461 6c6c 2044 4843 5020 5365  ninstall DHCP Se
│ │ │ -00265870: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ -00265880: 7375 7265 2064 6863 7020 6973 2072 656d  sure dhcp is rem
│ │ │ -00265890: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002658a0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002658b0: 0a20 2020 206e 616d 653a 2064 6863 700a  .    name: dhcp.
│ │ │ -002658c0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -002658d0: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -002658e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002658f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00265900: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00265910: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00265920: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -00265930: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00265940: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00265950: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00265960: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00265970: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00265980: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00265990: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002659a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002659b0: 7061 636b 6167 655f 6468 6370 5f72 656d  package_dhcp_rem
│ │ │ -002659c0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +002654d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002654e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002654f0: 7365 2220 6964 3d22 6964 3935 3322 3e3c se" id="id953">< │ │ │ +00265500: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00265510: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00265520: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00265530: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00265540: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00265550: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00265560: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002655a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002655b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002655d0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002655e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00265600: 2755 6e69 6e73 7461 6c6c 2044 4843 5020 'Uninstall DHCP │ │ │ +00265610: 5365 7276 6572 2050 6163 6b61 6765 3a20 Server Package: │ │ │ +00265620: 456e 7375 7265 2064 6863 7020 6973 2072 Ensure dhcp is r │ │ │ +00265630: 656d 6f76 6564 270a 2020 616e 7369 626c emoved'. ansibl │ │ │ +00265640: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +00265650: 653a 0a20 2020 206e 616d 653a 2064 6863 e:. name: dhc │ │ │ +00265660: 700a 2020 2020 7374 6174 653a 2061 6273 p. state: abs │ │ │ +00265670: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ +00265680: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +00265690: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +002656a0: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +002656b0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +002656c0: 2862 290a 2020 2d20 5043 492d 4453 5376 (b). - PCI-DSSv │ │ │ +002656d0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002656e0: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ +002656f0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +00265700: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +00265710: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +00265720: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +00265730: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +00265740: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +00265750: 2d20 7061 636b 6167 655f 6468 6370 5f72 - package_dhcp_r │ │ │ +00265760: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.
Remediati │ │ │ +00265820: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00265830: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +002658b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002658c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002658e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002658f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00265910: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00265930: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00265960: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00265970: 656d 6f76 655f 6468 6370 0a0a 636c 6173  emove_dhcp..clas
│ │ │ +00265980: 7320 7265 6d6f 7665 5f64 6863 7020 7b0a  s remove_dhcp {.
│ │ │ +00265990: 2020 7061 636b 6167 6520 7b20 2764 6863    package { 'dhc
│ │ │ +002659a0: 7027 3a0a 2020 2020 656e 7375 7265 203d  p':.    ensure =
│ │ │ +002659b0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002659c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation OSB │ │ │ -00266830: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00266840: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -00266890: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -002668a0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -002668b0: 205b 2264 6863 7064 3622 5d0a 3c2f 636f   ["dhcpd6"].
< │ │ │ -002668d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002668e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002668f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00266900: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00266910: 6439 3538 2220 7461 6269 6e64 6578 3d22 d958" tabindex=" │ │ │ -00266920: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00266930: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00266940: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00266950: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00266960: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00266970: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00266980: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00266a10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00266a20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00266a40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00266a60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00266a70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00266ab0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00266ac0: 6520 6469 7361 626c 655f 6468 6370 6436 e disable_dhcpd6 │ │ │ -00266ad0: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -00266ae0: 6468 6370 6436 207b 0a20 2073 6572 7669 dhcpd6 {. servi │ │ │ -00266af0: 6365 207b 2764 6863 7064 3627 3a0a 2020 ce {'dhcpd6':. │ │ │ -00266b00: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -00266b10: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -00266b20: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -00266b30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00266b40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -00266bf0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00266c00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00266c10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00266c20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00266c30: 7365 2220 6964 3d22 6964 3935 3922 3e3c se" id="id959">< │ │ │ -00266c40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00266c50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00266c60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00266c70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00266c80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00266c90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00266ca0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00266ce0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00266cf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00266d10: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00266d20: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00266d40: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00266d50: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00266d60: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00266d70: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00266d80: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -00266d90: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00266da0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00266db0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00266dc0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00266dd0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00266de0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -00266df0: 6963 655f 6468 6370 6436 5f64 6973 6162 ice_dhcpd6_disab │ │ │ -00266e00: 6c65 640a 0a2d 206e 616d 653a 2044 6973 led..- name: Dis │ │ │ -00266e10: 6162 6c65 2044 4843 5044 3620 5365 7276 able DHCPD6 Serv │ │ │ -00266e20: 6963 6520 2d20 4469 7361 626c 6520 7365 ice - Disable se │ │ │ -00266e30: 7276 6963 6520 6468 6370 6436 0a20 2062 rvice dhcpd6. b │ │ │ -00266e40: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ -00266e50: 2044 6973 6162 6c65 2044 4843 5044 3620 Disable DHCPD6 │ │ │ -00266e60: 5365 7276 6963 6520 2d20 436f 6c6c 6563 Service - Collec │ │ │ -00266e70: 7420 7379 7374 656d 6420 5365 7276 6963 t systemd Servic │ │ │ -00266e80: 6573 2050 7265 7365 6e74 2069 6e20 7468 es Present in th │ │ │ -00266e90: 6520 5379 7374 656d 0a20 2020 2061 6e73 e System. ans │ │ │ -00266ea0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -00266eb0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -00266ec0: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -00266ed0: 6573 202d 2d74 7970 6520 7365 7276 6963 es --type servic │ │ │ -00266ee0: 650a 2020 2020 7265 6769 7374 6572 3a20 e. register: │ │ │ -00266ef0: 7365 7276 6963 655f 6578 6973 7473 0a20 service_exists. │ │ │ -00266f00: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -00266f10: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -00266f20: 645f 7768 656e 3a20 7365 7276 6963 655f d_when: service_ │ │ │ -00266f30: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ -00266f40: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ -00266f50: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ -00266f60: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ -00266f70: 2044 4843 5044 3620 5365 7276 6963 6520 DHCPD6 Service │ │ │ -00266f80: 2d20 456e 7375 7265 2064 6863 7064 362e - Ensure dhcpd6. │ │ │ -00266f90: 7365 7276 6963 6520 6973 204d 6173 6b65 service is Maske │ │ │ -00266fa0: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ -00266fb0: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ -00266fc0: 2020 2020 206e 616d 653a 2064 6863 7064 name: dhcpd │ │ │ -00266fd0: 362e 7365 7276 6963 650a 2020 2020 2020 6.service. │ │ │ -00266fe0: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -00266ff0: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ -00267000: 6c73 650a 2020 2020 2020 6d61 736b 6564 lse. masked │ │ │ -00267010: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -00267020: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ -00267030: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -00267040: 7365 6172 6368 2822 6468 6370 6436 2e73 search("dhcpd6.s │ │ │ -00267050: 6572 7669 6365 222c 206d 756c 7469 6c69 ervice", multili │ │ │ -00267060: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61 ne=True).. - na │ │ │ -00267070: 6d65 3a20 556e 6974 2053 6f63 6b65 7420 me: Unit Socket │ │ │ -00267080: 4578 6973 7473 202d 2064 6863 7064 362e Exists - dhcpd6. │ │ │ -00267090: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ -002670a0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -002670b0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -002670c0: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -002670d0: 2064 6863 7064 362e 736f 636b 6574 0a20 dhcpd6.socket. │ │ │ -002670e0: 2020 2072 6567 6973 7465 723a 2073 6f63 register: soc │ │ │ -002670f0: 6b65 745f 6669 6c65 5f65 7869 7374 730a ket_file_exists. │ │ │ -00267100: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ -00267110: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ -00267120: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f ed_when: socket_ │ │ │ -00267130: 6669 6c65 5f65 7869 7374 732e 7263 206e file_exists.rc n │ │ │ -00267140: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ -00267150: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ -00267160: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ -00267170: 7361 626c 6520 4448 4350 4436 2053 6572 sable DHCPD6 Ser │ │ │ -00267180: 7669 6365 202d 2044 6973 6162 6c65 2053 vice - Disable S │ │ │ -00267190: 6f63 6b65 7420 6468 6370 6436 0a20 2020 ocket dhcpd6. │ │ │ -002671a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -002671b0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -002671c0: 6e61 6d65 3a20 6468 6370 6436 2e73 6f63 name: dhcpd6.soc │ │ │ -002671d0: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ -002671e0: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ -002671f0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -00267200: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -00267210: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ -00267220: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ -00267230: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ -00267240: 6172 6368 2822 6468 6370 6436 2e73 6f63 arch("dhcpd6.soc │ │ │ -00267250: 6b65 7422 2c20 6d75 6c74 696c 696e 653d ket", multiline= │ │ │ -00267260: 5472 7565 290a 2020 7461 6773 3a0a 2020 True). tags:. │ │ │ -00267270: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00267280: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00267290: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002672a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002672b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002672c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -002672d0: 640a 2020 2d20 7365 7276 6963 655f 6468 d. - service_dh │ │ │ -002672e0: 6370 6436 5f64 6973 6162 6c65 640a 2020 cpd6_disabled. │ │ │ -002672f0: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -00267300: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ -00267310: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -00267320: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00267330: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00266820: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00266830: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00266840: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00266910: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00266920: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +00266980: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00266990: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002669a0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002669b0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002669c0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002669d0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002669e0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002669f0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00266a00: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00266a10: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00266a20: 0a20 202d 2073 6572 7669 6365 5f64 6863  .  - service_dhc
│ │ │ +00266a30: 7064 365f 6469 7361 626c 6564 0a0a 2d20  pd6_disabled..- 
│ │ │ +00266a40: 6e61 6d65 3a20 4469 7361 626c 6520 4448  name: Disable DH
│ │ │ +00266a50: 4350 4436 2053 6572 7669 6365 202d 2044  CPD6 Service - D
│ │ │ +00266a60: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ +00266a70: 6863 7064 360a 2020 626c 6f63 6b3a 0a0a  hcpd6.  block:..
│ │ │ +00266a80: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00266a90: 6520 4448 4350 4436 2053 6572 7669 6365  e DHCPD6 Service
│ │ │ +00266aa0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +00266ab0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +00266ac0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +00266ad0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00266ae0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00266af0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00266b00: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00266b10: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00266b20: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00266b30: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00266b40: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00266b50: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00266b60: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00266b70: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00266b80: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00266b90: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00266ba0: 3a20 4469 7361 626c 6520 4448 4350 4436  : Disable DHCPD6
│ │ │ +00266bb0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +00266bc0: 6520 6468 6370 6436 2e73 6572 7669 6365  e dhcpd6.service
│ │ │ +00266bd0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00266be0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00266bf0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00266c00: 6d65 3a20 6468 6370 6436 2e73 6572 7669  me: dhcpd6.servi
│ │ │ +00266c10: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +00266c20: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +00266c30: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00266c40: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00266c50: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +00266c60: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00266c70: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00266c80: 2264 6863 7064 362e 7365 7276 6963 6522  "dhcpd6.service"
│ │ │ +00266c90: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +00266ca0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +00266cb0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +00266cc0: 2d20 6468 6370 6436 2e73 6f63 6b65 740a  - dhcpd6.socket.
│ │ │ +00266cd0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00266ce0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00266cf0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00266d00: 6e69 742d 6669 6c65 7320 6468 6370 6436  nit-files dhcpd6
│ │ │ +00266d10: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +00266d20: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +00266d30: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00266d40: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00266d50: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00266d60: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00266d70: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00266d80: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00266d90: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00266da0: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +00266db0: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ +00266dc0: 4469 7361 626c 6520 536f 636b 6574 2064  Disable Socket d
│ │ │ +00266dd0: 6863 7064 360a 2020 2020 616e 7369 626c  hcpd6.    ansibl
│ │ │ +00266de0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00266df0: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ +00266e00: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ +00266e10: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00266e20: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00266e30: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +00266e40: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +00266e50: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +00266e60: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00266e70: 6e65 7320 6973 2073 6561 7263 6828 2264  nes is search("d
│ │ │ +00266e80: 6863 7064 362e 736f 636b 6574 222c 206d  hcpd6.socket", m
│ │ │ +00266e90: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00266ea0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00266eb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00266ec0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00266ed0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00266ee0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00266ef0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00266f00: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00266f10: 6572 7669 6365 5f64 6863 7064 365f 6469  ervice_dhcpd6_di
│ │ │ +00266f20: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +00266f30: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00266f40: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00266f50: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00266f60: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00266f70: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00266f80: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00267030: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00267040: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +002668f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00266900: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00266940: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00266950: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +00267110: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00267120: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00267170: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00267180: 6468 6370 6436 0a0a 636c 6173 7320 6469  dhcpd6..class di
│ │ │ +00267190: 7361 626c 655f 6468 6370 6436 207b 0a20  sable_dhcpd6 {. 
│ │ │ +002671a0: 2073 6572 7669 6365 207b 2764 6863 7064   service {'dhcpd
│ │ │ +002671b0: 3627 3a0a 2020 2020 656e 6162 6c65 203d  6':.    enable =
│ │ │ +002671c0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +002671d0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +002671e0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +002672a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +002672b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +002672c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002672d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002672e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002672f0: 7365 2220 6964 3d22 6964 3935 3922 3e3c se" id="id959">< │ │ │ +00267300: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00267310: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00267320: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +00267330: 6468 6370 6436 225d 0a3c 2f63 6f64 653e dhcpd6"]. │ │ │ 00267340: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remed │ │ │ -00268730: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00268740: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00268750: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -002687a0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002687b0: 5d0a 6d61 736b 6564 203d 205b 2264 6863  ].masked = ["dhc
│ │ │ -002687c0: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remediation │ │ │ -00268880: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00268890: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00268960: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002689b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +002670f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00267100: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00267140: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00267150: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00268920: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00268940: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00268990: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002689a0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -002689d0: 6c65 5f64 6863 7064 0a0a 636c 6173 7320  le_dhcpd..class 
│ │ │ -002689e0: 6469 7361 626c 655f 6468 6370 6420 7b0a  disable_dhcpd {.
│ │ │ -002689f0: 2020 7365 7276 6963 6520 7b27 6468 6370    service {'dhcp
│ │ │ -00268a00: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -00268a10: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -00268a20: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -00268a30: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -00268af0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00268b00: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00268ba0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00268bb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00268c00: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00268c40: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00268c50: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00268c60: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00268c70: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00268c80: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00268c90: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00268ca0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00268cb0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00268cc0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00268cd0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00268ce0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00268cf0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00268d00: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00268d10: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00268d20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00268d30: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00268d40: 655f 6468 6370 645f 6469 7361 626c 6564  e_dhcpd_disabled
│ │ │ -00268d50: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -00268d60: 6520 4448 4350 2053 6572 7669 6365 202d  e DHCP Service -
│ │ │ -00268d70: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -00268d80: 2064 6863 7064 0a20 2062 6c6f 636b 3a0a   dhcpd.  block:.
│ │ │ -00268d90: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00268da0: 6c65 2044 4843 5020 5365 7276 6963 6520  le DHCP Service 
│ │ │ -00268db0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -00268dc0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -00268dd0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -00268de0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00268df0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00268e00: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00268e10: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00268e20: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00268e30: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00268e40: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00268e50: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00268e60: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00268e70: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00268e80: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00268e90: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00268ea0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00268eb0: 2044 6973 6162 6c65 2044 4843 5020 5365   Disable DHCP Se
│ │ │ -00268ec0: 7276 6963 6520 2d20 456e 7375 7265 2064  rvice - Ensure d
│ │ │ -00268ed0: 6863 7064 2e73 6572 7669 6365 2069 7320  hcpd.service is 
│ │ │ -00268ee0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -00268ef0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00268f00: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00268f10: 6468 6370 642e 7365 7276 6963 650a 2020  dhcpd.service.  
│ │ │ -00268f20: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00268f30: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -00268f40: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -00268f50: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00268f60: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00268f70: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00268f80: 2069 7320 7365 6172 6368 2822 6468 6370   is search("dhcp
│ │ │ -00268f90: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ -00268fa0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -00268fb0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -00268fc0: 6574 2045 7869 7374 7320 2d20 6468 6370  et Exists - dhcp
│ │ │ -00268fd0: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -00268fe0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00268ff0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00269000: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00269010: 6573 2064 6863 7064 2e73 6f63 6b65 740a  es dhcpd.socket.
│ │ │ -00269020: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -00269030: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00269040: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00269050: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00269060: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -00269070: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -00269080: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -00269090: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -002690a0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -002690b0: 6973 6162 6c65 2044 4843 5020 5365 7276  isable DHCP Serv
│ │ │ -002690c0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -002690d0: 636b 6574 2064 6863 7064 0a20 2020 2061  cket dhcpd.    a
│ │ │ -002690e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002690f0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00269100: 6d65 3a20 6468 6370 642e 736f 636b 6574  me: dhcpd.socket
│ │ │ -00269110: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00269120: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -00269130: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00269140: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00269150: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -00269160: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -00269170: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00269180: 6828 2264 6863 7064 2e73 6f63 6b65 7422  h("dhcpd.socket"
│ │ │ -00269190: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -002691a0: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ -002691b0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002691c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002691d0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002691e0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002691f0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00269200: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00269210: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00269220: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00269230: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00269240: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00269250: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00269260: 655f 6468 6370 645f 6469 7361 626c 6564  e_dhcpd_disabled
│ │ │ -00269270: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00269280: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00269290: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002692a0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002692b0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
C │ │ │ -00268b90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00268bc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00268bd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00268c10: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00268c20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +002687d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002687e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00268800: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00268820: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00268830: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00268870: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00268880: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00268890: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002688a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002688b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002688c0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002688d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +002688e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002688f0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00268900: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00268910: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00268920: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00268930: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00268940: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00268950: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00268960: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00268970: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +00268980: 6863 7064 5f64 6973 6162 6c65 640a 0a2d  hcpd_disabled..-
│ │ │ +00268990: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +002689a0: 4843 5020 5365 7276 6963 6520 2d20 4469  HCP Service - Di
│ │ │ +002689b0: 7361 626c 6520 7365 7276 6963 6520 6468  sable service dh
│ │ │ +002689c0: 6370 640a 2020 626c 6f63 6b3a 0a0a 2020  cpd.  block:..  
│ │ │ +002689d0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002689e0: 4448 4350 2053 6572 7669 6365 202d 2043  DHCP Service - C
│ │ │ +002689f0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +00268a00: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +00268a10: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +00268a20: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00268a30: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00268a40: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00268a50: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00268a60: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00268a70: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00268a80: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00268a90: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00268aa0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +00268ab0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +00268ac0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00268ad0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00268ae0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00268af0: 7361 626c 6520 4448 4350 2053 6572 7669  sable DHCP Servi
│ │ │ +00268b00: 6365 202d 2045 6e73 7572 6520 6468 6370  ce - Ensure dhcp
│ │ │ +00268b10: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ +00268b20: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +00268b30: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00268b40: 0a20 2020 2020 206e 616d 653a 2064 6863  .      name: dhc
│ │ │ +00268b50: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ +00268b60: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00268b70: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00268b80: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +00268b90: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00268ba0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00268bb0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00268bc0: 2073 6561 7263 6828 2264 6863 7064 2e73   search("dhcpd.s
│ │ │ +00268bd0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +00268be0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +00268bf0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +00268c00: 4578 6973 7473 202d 2064 6863 7064 2e73  Exists - dhcpd.s
│ │ │ +00268c10: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00268c20: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00268c30: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00268c40: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00268c50: 6468 6370 642e 736f 636b 6574 0a20 2020  dhcpd.socket.   
│ │ │ +00268c60: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +00268c70: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +00268c80: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00268c90: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00268ca0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +00268cb0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00268cc0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00268cd0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00268ce0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00268cf0: 626c 6520 4448 4350 2053 6572 7669 6365  ble DHCP Service
│ │ │ +00268d00: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +00268d10: 7420 6468 6370 640a 2020 2020 616e 7369  t dhcpd.    ansi
│ │ │ +00268d20: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00268d30: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00268d40: 2064 6863 7064 2e73 6f63 6b65 740a 2020   dhcpd.socket.  
│ │ │ +00268d50: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00268d60: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +00268d70: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +00268d80: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00268d90: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00268da0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00268db0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00268dc0: 6468 6370 642e 736f 636b 6574 222c 206d  dhcpd.socket", m
│ │ │ +00268dd0: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00268de0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00268df0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00268e00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00268e10: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00268e20: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00268e30: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00268e40: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00268e50: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00268e60: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00268e70: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00268e80: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00268e90: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +00268ea0: 6863 7064 5f64 6973 6162 6c65 640a 2020  hcpd_disabled.  
│ │ │ +00268eb0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +00268ec0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +00268ed0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00268ee0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00268ef0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00268f00: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00268fb0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00268fc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00268fd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00268fe0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00268ff0: 7365 2220 6964 3d22 6964 3936 3322 3e3c se" id="id963">< │ │ │ +00269000: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00269010: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00269020: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00269030: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00269040: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00269050: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00269060: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002690a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002690b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002690d0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +002690e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +00269100: 6973 6162 6c65 5f64 6863 7064 0a0a 636c  isable_dhcpd..cl
│ │ │ +00269110: 6173 7320 6469 7361 626c 655f 6468 6370  ass disable_dhcp
│ │ │ +00269120: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ +00269130: 6468 6370 6427 3a0a 2020 2020 656e 6162  dhcpd':.    enab
│ │ │ +00269140: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +00269150: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00269160: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +00269170: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00269180: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00269230: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00269240: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00269250: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00269290: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +002692a0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +002692b0: 3d20 5b22 6468 6370 6422 5d0a 3c2f 636f  = ["dhcpd"].
< │ │ │ 002692d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002692e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002692f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00269300: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00269310: 6439 3635 2220 7461 6269 6e64 6578 3d22 d965" tabindex=" │ │ │ 00269320: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -158431,93 +158431,93 @@ │ │ │ 0026ade0: 7461 7267 6574 3d22 2369 6439 3637 2220 target="#id967" │ │ │ 0026adf0: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 0026ae00: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 0026ae10: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 0026ae20: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 0026ae30: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 0026ae40: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -0026ae50: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0026ae60: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0026aef0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0026af10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0026af20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0026af30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0026af40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0026af60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0026af90: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -0026afa0: 6d6f 7665 5f62 696e 640a 0a63 6c61 7373  move_bind..class
│ │ │ -0026afb0: 2072 656d 6f76 655f 6269 6e64 207b 0a20   remove_bind {. 
│ │ │ -0026afc0: 2070 6163 6b61 6765 207b 2027 6269 6e64   package { 'bind
│ │ │ -0026afd0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0026afe0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0026aff0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0026b0b0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0026b0c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0026b150: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0026b170: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0026b190: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0026b1c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0026b1d0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0026b200: 6e73 7461 6c6c 2062 696e 6420 5061 636b  nstall bind Pack
│ │ │ -0026b210: 6167 653a 2045 6e73 7572 6520 6269 6e64  age: Ensure bind
│ │ │ -0026b220: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0026b230: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0026b240: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0026b250: 3a20 6269 6e64 0a20 2020 2073 7461 7465  : bind.    state
│ │ │ -0026b260: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -0026b270: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0026b280: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -0026b290: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -0026b2a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0026b2b0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -0026b2c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0026b2d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0026b2e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0026b2f0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0026b300: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0026b310: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0026b320: 636b 6167 655f 6269 6e64 5f72 656d 6f76  ckage_bind_remov
│ │ │ -0026b330: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0026ae50: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +0026ae60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0026aee0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0026aef0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0026af10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0026af20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0026af40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0026af60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0026af90: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +0026afa0: 6e69 6e73 7461 6c6c 2062 696e 6420 5061  ninstall bind Pa
│ │ │ +0026afb0: 636b 6167 653a 2045 6e73 7572 6520 6269  ckage: Ensure bi
│ │ │ +0026afc0: 6e64 2069 7320 7265 6d6f 7665 6427 0a20  nd is removed'. 
│ │ │ +0026afd0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0026afe0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0026aff0: 6d65 3a20 6269 6e64 0a20 2020 2073 7461  me: bind.    sta
│ │ │ +0026b000: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +0026b010: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0026b020: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0026b030: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0026b040: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0026b050: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0026b060: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0026b070: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0026b080: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0026b090: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0026b0a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0026b0b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0026b0c0: 7061 636b 6167 655f 6269 6e64 5f72 656d  package_bind_rem
│ │ │ +0026b0d0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +0026b190: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0026b1a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0026b230: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0026b250: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0026b270: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0026b2a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026b2b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0026b2e0: 6f76 655f 6269 6e64 0a0a 636c 6173 7320  ove_bind..class 
│ │ │ +0026b2f0: 7265 6d6f 7665 5f62 696e 6420 7b0a 2020  remove_bind {.  
│ │ │ +0026b300: 7061 636b 6167 6520 7b20 2762 696e 6427  package { 'bind'
│ │ │ +0026b310: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0026b320: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0026b330: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0026b340: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
R │ │ │ -0026c650: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0026c660: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0026c670: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0026c680: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0026c6b0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0026c6c0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0026c6d0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0026c6e0: 226e 616d 6564 225d 0a3c 2f63 6f64 653e  "named"].
│ │ │ -0026c6f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0026c7a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0026c7b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026c7c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026c7d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026c7e0: 7365 2220 6964 3d22 6964 3937 3222 3e3c se" id="id972">< │ │ │ -0026c7f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026c800: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026c810: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026c820: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026c830: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0026c840: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026c850: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0026c890: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026c8a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0026c8c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0026c8d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0026c8f0: 6973 6162 6c65 5f6e 616d 6564 0a0a 636c  isable_named..cl
│ │ │ -0026c900: 6173 7320 6469 7361 626c 655f 6e61 6d65  ass disable_name
│ │ │ -0026c910: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -0026c920: 6e61 6d65 6427 3a0a 2020 2020 656e 6162  named':.    enab
│ │ │ -0026c930: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -0026c940: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0026c950: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -0026c960: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0026c970: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0026ca20: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0026ca30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0026cab0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0026cad0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0026cb20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0026cb50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0026cb70: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0026cb80: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0026cb90: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0026cba0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0026cbb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026cbc0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0026cbd0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0026cbe0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026cbf0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0026cc00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0026cc10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0026cc20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0026cc30: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0026cc40: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0026cc50: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0026cc60: 7276 6963 655f 6e61 6d65 645f 6469 7361  rvice_named_disa
│ │ │ -0026cc70: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -0026cc80: 7361 626c 6520 6e61 6d65 6420 5365 7276  sable named Serv
│ │ │ -0026cc90: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -0026cca0: 7276 6963 6520 6e61 6d65 640a 2020 626c  rvice named.  bl
│ │ │ -0026ccb0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -0026ccc0: 4469 7361 626c 6520 6e61 6d65 6420 5365  Disable named Se
│ │ │ -0026ccd0: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0026cce0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0026ccf0: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0026cd00: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0026cd10: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0026cd20: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0026cd30: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0026cd40: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0026cd50: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0026cd60: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0026cd70: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0026cd80: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0026cd90: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0026cda0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0026cdb0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0026cdc0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0026cdd0: 206e 616d 653a 2044 6973 6162 6c65 206e   name: Disable n
│ │ │ -0026cde0: 616d 6564 2053 6572 7669 6365 202d 2045  amed Service - E
│ │ │ -0026cdf0: 6e73 7572 6520 6e61 6d65 642e 7365 7276  nsure named.serv
│ │ │ -0026ce00: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -0026ce10: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0026ce20: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0026ce30: 206e 616d 653a 206e 616d 6564 2e73 6572   name: named.ser
│ │ │ -0026ce40: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -0026ce50: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0026ce60: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0026ce70: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -0026ce80: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -0026ce90: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -0026cea0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0026ceb0: 6828 226e 616d 6564 2e73 6572 7669 6365  h("named.service
│ │ │ -0026cec0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0026ced0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -0026cee0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -0026cef0: 202d 206e 616d 6564 2e73 6f63 6b65 740a   - named.socket.
│ │ │ -0026cf00: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0026cf10: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -0026cf20: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -0026cf30: 6e69 742d 6669 6c65 7320 6e61 6d65 642e  nit-files named.
│ │ │ -0026cf40: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -0026cf50: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -0026cf60: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0026cf70: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0026cf80: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0026cf90: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0026cfa0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0026cfb0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0026cfc0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0026cfd0: 6e61 6d65 3a20 4469 7361 626c 6520 6e61  name: Disable na
│ │ │ -0026cfe0: 6d65 6420 5365 7276 6963 6520 2d20 4469  med Service - Di
│ │ │ -0026cff0: 7361 626c 6520 536f 636b 6574 206e 616d  sable Socket nam
│ │ │ -0026d000: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -0026d010: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0026d020: 2020 2020 2020 6e61 6d65 3a20 6e61 6d65        name: name
│ │ │ -0026d030: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0026d040: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0026d050: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0026d060: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0026d070: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0026d080: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0026d090: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0026d0a0: 6973 2073 6561 7263 6828 226e 616d 6564  is search("named
│ │ │ -0026d0b0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0026d0c0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0026d0d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0026d0e0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0026d0f0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0026d100: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0026d110: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0026d120: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0026d130: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0026d140: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0026d150: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0026d160: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0026d170: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0026d180: 2d20 7365 7276 6963 655f 6e61 6d65 645f  - service_named_
│ │ │ -0026d190: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0026d1a0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0026d1b0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0026d1c0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0026d1d0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0026d1e0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

low
Disr │ │ │ -0026cae0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0026caf0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0026cb30: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0026cb40: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0026c700: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0026c7a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0026c7b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0026c7c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0026c7d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0026c7e0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0026c7f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0026c800: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0026c810: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0026c820: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0026c830: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0026c840: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0026c850: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0026c860: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0026c870: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0026c880: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0026c890: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0026c8a0: 6365 5f6e 616d 6564 5f64 6973 6162 6c65  ce_named_disable
│ │ │ +0026c8b0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +0026c8c0: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ +0026c8d0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +0026c8e0: 6365 206e 616d 6564 0a20 2062 6c6f 636b  ce named.  block
│ │ │ +0026c8f0: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +0026c900: 6162 6c65 206e 616d 6564 2053 6572 7669  able named Servi
│ │ │ +0026c910: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0026c920: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0026c930: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0026c940: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0026c950: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0026c960: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0026c970: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0026c980: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0026c990: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0026c9a0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0026c9b0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0026c9c0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0026c9d0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0026c9e0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0026c9f0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0026ca00: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0026ca10: 6d65 3a20 4469 7361 626c 6520 6e61 6d65  me: Disable name
│ │ │ +0026ca20: 6420 5365 7276 6963 6520 2d20 456e 7375  d Service - Ensu
│ │ │ +0026ca30: 7265 206e 616d 6564 2e73 6572 7669 6365  re named.service
│ │ │ +0026ca40: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +0026ca50: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0026ca60: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0026ca70: 6d65 3a20 6e61 6d65 642e 7365 7276 6963  me: named.servic
│ │ │ +0026ca80: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0026ca90: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +0026caa0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0026cab0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0026cac0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +0026cad0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0026cae0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0026caf0: 6e61 6d65 642e 7365 7276 6963 6522 2c20  named.service", 
│ │ │ +0026cb00: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0026cb10: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0026cb20: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0026cb30: 6e61 6d65 642e 736f 636b 6574 0a20 2020  named.socket.   
│ │ │ +0026cb40: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0026cb50: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0026cb60: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0026cb70: 2d66 696c 6573 206e 616d 6564 2e73 6f63  -files named.soc
│ │ │ +0026cb80: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +0026cb90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0026cba0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0026cbb0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0026cbc0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +0026cbd0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0026cbe0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0026cbf0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0026cc00: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0026cc10: 653a 2044 6973 6162 6c65 206e 616d 6564  e: Disable named
│ │ │ +0026cc20: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +0026cc30: 6c65 2053 6f63 6b65 7420 6e61 6d65 640a  le Socket named.
│ │ │ +0026cc40: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0026cc50: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0026cc60: 2020 206e 616d 653a 206e 616d 6564 2e73     name: named.s
│ │ │ +0026cc70: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +0026cc80: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0026cc90: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0026cca0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0026ccb0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +0026ccc0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0026ccd0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0026cce0: 7365 6172 6368 2822 6e61 6d65 642e 736f  search("named.so
│ │ │ +0026ccf0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0026cd00: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0026cd10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026cd20: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0026cd30: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0026cd40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026cd50: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0026cd60: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0026cd70: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0026cd80: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0026cd90: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0026cda0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0026cdb0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0026cdc0: 6572 7669 6365 5f6e 616d 6564 5f64 6973  ervice_named_dis
│ │ │ +0026cdd0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0026cde0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0026cdf0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +0026ce00: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0026ce10: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0026ce20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0026cee0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0026cef0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +0026c6f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0026c720: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0026c730: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0026c770: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0026c780: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0026cfc0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026cfd0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0026d020: 6e63 6c75 6465 2064 6973 6162 6c65 5f6e  nclude disable_n
│ │ │ +0026d030: 616d 6564 0a0a 636c 6173 7320 6469 7361  amed..class disa
│ │ │ +0026d040: 626c 655f 6e61 6d65 6420 7b0a 2020 7365  ble_named {.  se
│ │ │ +0026d050: 7276 6963 6520 7b27 6e61 6d65 6427 3a0a  rvice {'named':.
│ │ │ +0026d060: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0026d070: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0026d080: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0026d090: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +0026d150: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0026d160: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0026d170: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0026d1b0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0026d1c0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0026d1d0: 0a6d 6173 6b65 6420 3d20 5b22 6e61 6d65  .masked = ["name
│ │ │ +0026d1e0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediat │ │ │ -0026e070: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0026e080: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0026e100: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -0026e190: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0026e1a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0026cfa0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026cfb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026cff0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0026d000: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0026e110: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0026e120: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0026e160: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0026e170: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -0026e1c0: 7265 6d6f 7665 5f64 6e73 6d61 7371 0a0a  remove_dnsmasq..
│ │ │ -0026e1d0: 636c 6173 7320 7265 6d6f 7665 5f64 6e73  class remove_dns
│ │ │ -0026e1e0: 6d61 7371 207b 0a20 2070 6163 6b61 6765  masq {.  package
│ │ │ -0026e1f0: 207b 2027 646e 736d 6173 7127 3a0a 2020   { 'dnsmasq':.  
│ │ │ -0026e200: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0026e210: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0026e220: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0026e2d0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0026e2e0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0026e380: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0026e420: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -0026e430: 6c20 646e 736d 6173 7120 5061 636b 6167  l dnsmasq Packag
│ │ │ -0026e440: 653a 2045 6e73 7572 6520 646e 736d 6173  e: Ensure dnsmas
│ │ │ -0026e450: 7120 6973 2072 656d 6f76 6564 270a 2020  q is removed'.  
│ │ │ -0026e460: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0026e470: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0026e480: 653a 2064 6e73 6d61 7371 0a20 2020 2073  e: dnsmasq.    s
│ │ │ -0026e490: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0026e4a0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0026e4b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0026e4c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0026e4d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0026e4e0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -0026e4f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0026e500: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0026e510: 655f 646e 736d 6173 715f 7265 6d6f 7665  e_dnsmasq_remove
│ │ │ -0026e520: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0026e070: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0026e080: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0026e090: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0026e0a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0026e0b0: 7365 2220 6964 3d22 6964 3937 3622 3e3c se" id="id976">< │ │ │ +0026e0c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0026e0d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0026e0e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0026e0f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0026e100: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0026e190: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0026e1a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0026e370: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0026e3a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0026e3b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0026e3f0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0026e400: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0026e110: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0026e120: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0026e160: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0026e170: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0026e1c0: 2755 6e69 6e73 7461 6c6c 2064 6e73 6d61 'Uninstall dnsma │ │ │ +0026e1d0: 7371 2050 6163 6b61 6765 3a20 456e 7375 sq Package: Ensu │ │ │ +0026e1e0: 7265 2064 6e73 6d61 7371 2069 7320 7265 re dnsmasq is re │ │ │ +0026e1f0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ +0026e200: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +0026e210: 3a0a 2020 2020 6e61 6d65 3a20 646e 736d :. name: dnsm │ │ │ +0026e220: 6173 710a 2020 2020 7374 6174 653a 2061 asq. state: a │ │ │ +0026e230: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ +0026e240: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +0026e250: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +0026e260: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +0026e270: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ +0026e280: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0026e290: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0026e2a0: 202d 2070 6163 6b61 6765 5f64 6e73 6d61 - package_dnsma │ │ │ +0026e2b0: 7371 5f72 656d 6f76 6564 0a3c 2f63 6f64 sq_removed.
Remed │ │ │ +0026e370: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0026e380: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0026e430: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0026e450: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0026e480: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0026e410: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0026e420: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0026e440: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0026e460: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0026e470: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0026e4b0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0026e4c0: 6465 2072 656d 6f76 655f 646e 736d 6173 de remove_dnsmas │ │ │ +0026e4d0: 710a 0a63 6c61 7373 2072 656d 6f76 655f q..class remove_ │ │ │ +0026e4e0: 646e 736d 6173 7120 7b0a 2020 7061 636b dnsmasq {. pack │ │ │ +0026e4f0: 6167 6520 7b20 2764 6e73 6d61 7371 273a age { 'dnsmasq': │ │ │ +0026e500: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +0026e510: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ +0026e520: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.
< │ │ │ 0026e530: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -0026f330: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0026f340: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0026f3a0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -0026f3b0: 6564 203d 205b 2264 6e73 6d61 7371 225d  ed = ["dnsmasq"]
│ │ │ -0026f3c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0026f480: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0026f490: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0026f560: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0026f570: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0026f5c0: 6e63 6c75 6465 2064 6973 6162 6c65 5f64  nclude disable_d
│ │ │ -0026f5d0: 6e73 6d61 7371 0a0a 636c 6173 7320 6469  nsmasq..class di
│ │ │ -0026f5e0: 7361 626c 655f 646e 736d 6173 7120 7b0a  sable_dnsmasq {.
│ │ │ -0026f5f0: 2020 7365 7276 6963 6520 7b27 646e 736d    service {'dnsm
│ │ │ -0026f600: 6173 7127 3a0a 2020 2020 656e 6162 6c65  asq':.    enable
│ │ │ -0026f610: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -0026f620: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0026f630: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -0026f640: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0026f6f0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0026f700: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0026f710: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -0026f540: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026f550: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026f590: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0026f5a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0026f7e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0026f7f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0026f840: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0026f850: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0026f860: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0026f870: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0026f880: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0026f890: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0026f8a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0026f8b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0026f8c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0026f8d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0026f8e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0026f8f0: 2020 2d20 7365 7276 6963 655f 646e 736d    - service_dnsm
│ │ │ -0026f900: 6173 715f 6469 7361 626c 6564 0a0a 2d20  asq_disabled..- 
│ │ │ -0026f910: 6e61 6d65 3a20 4469 7361 626c 6520 646e  name: Disable dn
│ │ │ -0026f920: 736d 6173 7120 5365 7276 6963 6520 2d20  smasq Service - 
│ │ │ -0026f930: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -0026f940: 646e 736d 6173 710a 2020 626c 6f63 6b3a  dnsmasq.  block:
│ │ │ -0026f950: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0026f960: 626c 6520 646e 736d 6173 7120 5365 7276  ble dnsmasq Serv
│ │ │ -0026f970: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -0026f980: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -0026f990: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -0026f9a0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -0026f9b0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0026f9c0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0026f9d0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -0026f9e0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -0026f9f0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -0026fa00: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -0026fa10: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0026fa20: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0026fa30: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0026fa40: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0026fa50: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0026fa60: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0026fa70: 616d 653a 2044 6973 6162 6c65 2064 6e73  ame: Disable dns
│ │ │ -0026fa80: 6d61 7371 2053 6572 7669 6365 202d 2045  masq Service - E
│ │ │ -0026fa90: 6e73 7572 6520 646e 736d 6173 712e 7365  nsure dnsmasq.se
│ │ │ -0026faa0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0026fab0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0026fac0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0026fad0: 2020 206e 616d 653a 2064 6e73 6d61 7371     name: dnsmasq
│ │ │ -0026fae0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -0026faf0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0026fb00: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0026fb10: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -0026fb20: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0026fb30: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -0026fb40: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0026fb50: 6561 7263 6828 2264 6e73 6d61 7371 2e73  earch("dnsmasq.s
│ │ │ -0026fb60: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0026fb70: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0026fb80: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0026fb90: 4578 6973 7473 202d 2064 6e73 6d61 7371  Exists - dnsmasq
│ │ │ -0026fba0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -0026fbb0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0026fbc0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0026fbd0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0026fbe0: 7320 646e 736d 6173 712e 736f 636b 6574  s dnsmasq.socket
│ │ │ -0026fbf0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0026fc00: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0026fc10: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0026fc20: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0026fc30: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -0026fc40: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -0026fc50: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0026fc60: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0026fc70: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0026fc80: 4469 7361 626c 6520 646e 736d 6173 7120  Disable dnsmasq 
│ │ │ -0026fc90: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0026fca0: 6520 536f 636b 6574 2064 6e73 6d61 7371  e Socket dnsmasq
│ │ │ -0026fcb0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0026fcc0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0026fcd0: 2020 2020 6e61 6d65 3a20 646e 736d 6173      name: dnsmas
│ │ │ -0026fce0: 712e 736f 636b 6574 0a20 2020 2020 2065  q.socket.      e
│ │ │ -0026fcf0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0026fd00: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0026fd10: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0026fd20: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0026fd30: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0026fd40: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0026fd50: 6973 2073 6561 7263 6828 2264 6e73 6d61  is search("dnsma
│ │ │ -0026fd60: 7371 2e73 6f63 6b65 7422 2c20 6d75 6c74  sq.socket", mult
│ │ │ -0026fd70: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -0026fd80: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0026fd90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0026fda0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0026fdb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0026fdc0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0026fdd0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0026fde0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0026fdf0: 6963 655f 646e 736d 6173 715f 6469 7361  ice_dnsmasq_disa
│ │ │ -0026fe00: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -0026fe10: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -0026fe20: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0026fe30: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0026fe40: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0026f330: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +0026f340: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +0026f400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026f410: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -0026f7c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026f7d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026f810: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0026f820: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +0026f3d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0026f3f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0026f420: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0026f440: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0026f470: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0026f480: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0026f490: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0026f4a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0026f4b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0026f4c0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0026f4d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0026f4e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0026f4f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0026f500: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0026f510: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0026f520: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0026f530: 5f64 6e73 6d61 7371 5f64 6973 6162 6c65  _dnsmasq_disable
│ │ │ +0026f540: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +0026f550: 6c65 2064 6e73 6d61 7371 2053 6572 7669  le dnsmasq Servi
│ │ │ +0026f560: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +0026f570: 7669 6365 2064 6e73 6d61 7371 0a20 2062  vice dnsmasq.  b
│ │ │ +0026f580: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0026f590: 2044 6973 6162 6c65 2064 6e73 6d61 7371   Disable dnsmasq
│ │ │ +0026f5a0: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +0026f5b0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +0026f5c0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +0026f5d0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +0026f5e0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0026f5f0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0026f600: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0026f610: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +0026f620: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +0026f630: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +0026f640: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0026f650: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0026f660: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +0026f670: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +0026f680: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +0026f690: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +0026f6a0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0026f6b0: 6520 646e 736d 6173 7120 5365 7276 6963  e dnsmasq Servic
│ │ │ +0026f6c0: 6520 2d20 456e 7375 7265 2064 6e73 6d61  e - Ensure dnsma
│ │ │ +0026f6d0: 7371 2e73 6572 7669 6365 2069 7320 4d61  sq.service is Ma
│ │ │ +0026f6e0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0026f6f0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0026f700: 3a0a 2020 2020 2020 6e61 6d65 3a20 646e  :.      name: dn
│ │ │ +0026f710: 736d 6173 712e 7365 7276 6963 650a 2020  smasq.service.  
│ │ │ +0026f720: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +0026f730: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +0026f740: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +0026f750: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +0026f760: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +0026f770: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0026f780: 2069 7320 7365 6172 6368 2822 646e 736d   is search("dnsm
│ │ │ +0026f790: 6173 712e 7365 7276 6963 6522 2c20 6d75  asq.service", mu
│ │ │ +0026f7a0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0026f7b0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0026f7c0: 636b 6574 2045 7869 7374 7320 2d20 646e  cket Exists - dn
│ │ │ +0026f7d0: 736d 6173 712e 736f 636b 6574 0a20 2020  smasq.socket.   
│ │ │ +0026f7e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0026f7f0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0026f800: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0026f810: 2d66 696c 6573 2064 6e73 6d61 7371 2e73  -files dnsmasq.s
│ │ │ +0026f820: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0026f830: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0026f840: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0026f850: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0026f860: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0026f870: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0026f880: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0026f890: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0026f8a0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0026f8b0: 616d 653a 2044 6973 6162 6c65 2064 6e73  ame: Disable dns
│ │ │ +0026f8c0: 6d61 7371 2053 6572 7669 6365 202d 2044  masq Service - D
│ │ │ +0026f8d0: 6973 6162 6c65 2053 6f63 6b65 7420 646e  isable Socket dn
│ │ │ +0026f8e0: 736d 6173 710a 2020 2020 616e 7369 626c  smasq.    ansibl
│ │ │ +0026f8f0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0026f900: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ +0026f910: 6e73 6d61 7371 2e73 6f63 6b65 740a 2020  nsmasq.socket.  
│ │ │ +0026f920: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0026f930: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +0026f940: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +0026f950: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +0026f960: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +0026f970: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0026f980: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0026f990: 646e 736d 6173 712e 736f 636b 6574 222c  dnsmasq.socket",
│ │ │ +0026f9a0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0026f9b0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0026f9c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0026f9d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0026f9e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0026f9f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0026fa00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0026fa10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0026fa20: 2073 6572 7669 6365 5f64 6e73 6d61 7371   service_dnsmasq
│ │ │ +0026fa30: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +0026fa40: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +0026fa50: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +0026fa60: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0026fa70: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0026fa80: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediation │ │ │ +0026fb40: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0026fb50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0026fbe0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0026fc00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0026fc20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0026fc50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026fc60: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0026fc70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +0026fc90: 6c65 5f64 6e73 6d61 7371 0a0a 636c 6173  le_dnsmasq..clas
│ │ │ +0026fca0: 7320 6469 7361 626c 655f 646e 736d 6173  s disable_dnsmas
│ │ │ +0026fcb0: 7120 7b0a 2020 7365 7276 6963 6520 7b27  q {.  service {'
│ │ │ +0026fcc0: 646e 736d 6173 7127 3a0a 2020 2020 656e  dnsmasq':.    en
│ │ │ +0026fcd0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +0026fce0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +0026fcf0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +0026fd00: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0026fdc0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0026fdd0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +0026fe20: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0026fe30: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +0026fe40: 6420 3d20 5b22 646e 736d 6173 7122 5d0a  d = ["dnsmasq"].
│ │ │  0026fe50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00271af0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00271b00: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00271ba0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00271c40: 696e 636c 7564 6520 7265 6d6f 7665 5f76  include remove_v
│ │ │ -00271c50: 7366 7470 640a 0a63 6c61 7373 2072 656d  sftpd..class rem
│ │ │ -00271c60: 6f76 655f 7673 6674 7064 207b 0a20 2070  ove_vsftpd {.  p
│ │ │ -00271c70: 6163 6b61 6765 207b 2027 7673 6674 7064  ackage { 'vsftpd
│ │ │ -00271c80: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00271c90: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00271ca0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00271d60: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00271d70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00271e40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -00271b90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00271bc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00271bd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00271c10: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00271c20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -00271e00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00271e20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00271e70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00271e80: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00271eb0: 6e73 7461 6c6c 2076 7366 7470 6420 5061  nstall vsftpd Pa
│ │ │ -00271ec0: 636b 6167 653a 2045 6e73 7572 6520 7673  ckage: Ensure vs
│ │ │ -00271ed0: 6674 7064 2069 7320 7265 6d6f 7665 6427  ftpd is removed'
│ │ │ -00271ee0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00271ef0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00271f00: 6e61 6d65 3a20 7673 6674 7064 0a20 2020  name: vsftpd.   
│ │ │ -00271f10: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00271f20: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00271f30: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00271f40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00271f50: 4d2d 370a 2020 2d20 4e49 5354 2d38 3030  M-7.  - NIST-800
│ │ │ -00271f60: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00271f70: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00271f80: 2862 290a 2020 2d20 4e49 5354 2d38 3030  (b).  - NIST-800
│ │ │ -00271f90: 2d35 332d 434d 2d37 2e31 2869 6929 0a20  -53-CM-7.1(ii). 
│ │ │ -00271fa0: 202d 204e 4953 542d 3830 302d 3533 2d49   - NIST-800-53-I
│ │ │ -00271fb0: 412d 3528 3129 2863 290a 2020 2d20 4e49  A-5(1)(c).  - NI
│ │ │ -00271fc0: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ -00271fd0: 292e 3128 7629 0a20 202d 2064 6973 6162  ).1(v).  - disab
│ │ │ -00271fe0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00271ff0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -00272000: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00272010: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00272020: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00272030: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00272040: 6b61 6765 5f76 7366 7470 645f 7265 6d6f  kage_vsftpd_remo
│ │ │ -00272050: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

< │ │ │ +00271be0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00271bf0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00271c40: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +00271c50: 6c6c 2076 7366 7470 6420 5061 636b 6167  ll vsftpd Packag
│ │ │ +00271c60: 653a 2045 6e73 7572 6520 7673 6674 7064  e: Ensure vsftpd
│ │ │ +00271c70: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00271c80: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00271c90: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00271ca0: 3a20 7673 6674 7064 0a20 2020 2073 7461  : vsftpd.    sta
│ │ │ +00271cb0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00271cc0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00271cd0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00271ce0: 4953 542d 3830 302d 3533 2d43 4d2d 370a  IST-800-53-CM-7.
│ │ │ +00271cf0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00271d00: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00271d10: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00271d20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00271d30: 434d 2d37 2e31 2869 6929 0a20 202d 204e  CM-7.1(ii).  - N
│ │ │ +00271d40: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ +00271d50: 3129 2863 290a 2020 2d20 4e49 5354 2d38  1)(c).  - NIST-8
│ │ │ +00271d60: 3030 2d35 332d 4941 2d35 2831 292e 3128  00-53-IA-5(1).1(
│ │ │ +00271d70: 7629 0a20 202d 2064 6973 6162 6c65 5f73  v).  - disable_s
│ │ │ +00271d80: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +00271d90: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +00271da0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00271db0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00271dc0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00271dd0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00271de0: 5f76 7366 7470 645f 7265 6d6f 7665 640a  _vsftpd_removed.
│ │ │ +00271df0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00271ea0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00271eb0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +00271bc0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00271bd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00271c10: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00271c20: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00271f50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00271ff0: 696e 636c 7564 6520 7265 6d6f 7665 5f76  include remove_v
│ │ │ +00272000: 7366 7470 640a 0a63 6c61 7373 2072 656d  sftpd..class rem
│ │ │ +00272010: 6f76 655f 7673 6674 7064 207b 0a20 2070  ove_vsftpd {.  p
│ │ │ +00272020: 6163 6b61 6765 207b 2027 7673 6674 7064  ackage { 'vsftpd
│ │ │ +00272030: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00272040: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00272050: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -002733e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002733f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00273400: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00273410: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00273440: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00273450: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00273460: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00273470: 2276 7366 7470 6422 5d0a 3c2f 636f 6465  "vsftpd"].
Remedi │ │ │ -00273530: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00273540: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00273550: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00273580: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +00271f40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00271f70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00271f80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00271fc0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00271fd0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -002735f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00273610: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00273640: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00273660: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -002735d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002735e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00273620: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00273630: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00273680: 6469 7361 626c 655f 7673 6674 7064 0a0a disable_vsftpd.. │ │ │ -00273690: 636c 6173 7320 6469 7361 626c 655f 7673 class disable_vs │ │ │ -002736a0: 6674 7064 207b 0a20 2073 6572 7669 6365 ftpd {. service │ │ │ -002736b0: 207b 2776 7366 7470 6427 3a0a 2020 2020 {'vsftpd':. │ │ │ -002736c0: 656e 6162 6c65 203d 2667 743b 2066 616c enable => fal │ │ │ -002736d0: 7365 2c0a 2020 2020 656e 7375 7265 203d se,. ensure = │ │ │ -002736e0: 2667 743b 2027 7374 6f70 7065 6427 2c0a > 'stopped',. │ │ │ -002736f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -002737b0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002737c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00273840: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00273850: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00273870: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00273880: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002738a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002738c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002738f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00273900: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00273910: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00273920: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00273930: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00273940: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00273950: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00273960: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00273970: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00273980: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -00273990: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002739a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002739b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002739c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002739d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002739e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002739f0: 2d20 7365 7276 6963 655f 7673 6674 7064  - service_vsftpd
│ │ │ -00273a00: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -00273a10: 653a 2044 6973 6162 6c65 2076 7366 7470  e: Disable vsftp
│ │ │ -00273a20: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -00273a30: 626c 6520 7365 7276 6963 6520 7673 6674  ble service vsft
│ │ │ -00273a40: 7064 0a20 2062 6c6f 636b 3a0a 0a20 202d  pd.  block:..  -
│ │ │ -00273a50: 206e 616d 653a 2044 6973 6162 6c65 2076   name: Disable v
│ │ │ -00273a60: 7366 7470 6420 5365 7276 6963 6520 2d20  sftpd Service - 
│ │ │ -00273a70: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -00273a80: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -00273a90: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -00273aa0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00273ab0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -00273ac0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00273ad0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -00273ae0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -00273af0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -00273b00: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00273b10: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00273b20: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -00273b30: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -00273b40: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -00273b50: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00273b60: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -00273b70: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ -00273b80: 7276 6963 6520 2d20 456e 7375 7265 2076  rvice - Ensure v
│ │ │ -00273b90: 7366 7470 642e 7365 7276 6963 6520 6973  sftpd.service is
│ │ │ -00273ba0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -00273bb0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00273bc0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00273bd0: 2076 7366 7470 642e 7365 7276 6963 650a   vsftpd.service.
│ │ │ -00273be0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00273bf0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -00273c00: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00273c10: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00273c20: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -00273c30: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -00273c40: 6573 2069 7320 7365 6172 6368 2822 7673  es is search("vs
│ │ │ -00273c50: 6674 7064 2e73 6572 7669 6365 222c 206d  ftpd.service", m
│ │ │ -00273c60: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00273c70: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00273c80: 6f63 6b65 7420 4578 6973 7473 202d 2076  ocket Exists - v
│ │ │ -00273c90: 7366 7470 642e 736f 636b 6574 0a20 2020  sftpd.socket.   
│ │ │ -00273ca0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00273cb0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00273cc0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00273cd0: 2d66 696c 6573 2076 7366 7470 642e 736f  -files vsftpd.so
│ │ │ -00273ce0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00273cf0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00273d00: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00273d10: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00273d20: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00273d30: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00273d40: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00273d50: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00273d60: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00273d70: 6d65 3a20 4469 7361 626c 6520 7673 6674  me: Disable vsft
│ │ │ -00273d80: 7064 2053 6572 7669 6365 202d 2044 6973  pd Service - Dis
│ │ │ -00273d90: 6162 6c65 2053 6f63 6b65 7420 7673 6674  able Socket vsft
│ │ │ -00273da0: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ -00273db0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00273dc0: 2020 2020 2020 6e61 6d65 3a20 7673 6674        name: vsft
│ │ │ -00273dd0: 7064 2e73 6f63 6b65 740a 2020 2020 2020  pd.socket.      
│ │ │ -00273de0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00273df0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00273e00: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -00273e10: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00273e20: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00273e30: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00273e40: 2069 7320 7365 6172 6368 2822 7673 6674   is search("vsft
│ │ │ -00273e50: 7064 2e73 6f63 6b65 7422 2c20 6d75 6c74  pd.socket", mult
│ │ │ -00273e60: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00273e70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00273e80: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00273e90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00273ea0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00273eb0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00273ec0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00273ed0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00273ee0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00273ef0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00273f00: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00273f10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00273f20: 2020 2d20 7365 7276 6963 655f 7673 6674    - service_vsft
│ │ │ -00273f30: 7064 5f64 6973 6162 6c65 640a 2020 2d20  pd_disabled.  - 
│ │ │ -00273f40: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -00273f50: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -00273f60: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00273f70: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00273f80: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +00273490: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00273530: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00273540: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00273550: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00273560: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00273570: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00273580: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00273590: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002735a0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002735b0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002735c0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +002735d0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002735e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002735f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00273600: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00273610: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00273620: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00273630: 6365 5f76 7366 7470 645f 6469 7361 626c  ce_vsftpd_disabl
│ │ │ +00273640: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +00273650: 626c 6520 7673 6674 7064 2053 6572 7669  ble vsftpd Servi
│ │ │ +00273660: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +00273670: 7669 6365 2076 7366 7470 640a 2020 626c  vice vsftpd.  bl
│ │ │ +00273680: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00273690: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ +002736a0: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +002736b0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +002736c0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +002736d0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +002736e0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002736f0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00273700: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00273710: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00273720: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00273730: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00273740: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00273750: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00273760: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00273770: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00273780: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00273790: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002737a0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002737b0: 7673 6674 7064 2053 6572 7669 6365 202d  vsftpd Service -
│ │ │ +002737c0: 2045 6e73 7572 6520 7673 6674 7064 2e73   Ensure vsftpd.s
│ │ │ +002737d0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +002737e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002737f0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00273800: 2020 2020 6e61 6d65 3a20 7673 6674 7064      name: vsftpd
│ │ │ +00273810: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +00273820: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00273830: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00273840: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +00273850: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00273860: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +00273870: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00273880: 6561 7263 6828 2276 7366 7470 642e 7365  earch("vsftpd.se
│ │ │ +00273890: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +002738a0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +002738b0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +002738c0: 7869 7374 7320 2d20 7673 6674 7064 2e73  xists - vsftpd.s
│ │ │ +002738d0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +002738e0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002738f0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00273900: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00273910: 7673 6674 7064 2e73 6f63 6b65 740a 2020  vsftpd.socket.  
│ │ │ +00273920: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +00273930: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +00273940: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00273950: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00273960: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +00273970: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +00273980: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00273990: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002739a0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002739b0: 6162 6c65 2076 7366 7470 6420 5365 7276  able vsftpd Serv
│ │ │ +002739c0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +002739d0: 636b 6574 2076 7366 7470 640a 2020 2020  cket vsftpd.    
│ │ │ +002739e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002739f0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00273a00: 616d 653a 2076 7366 7470 642e 736f 636b  ame: vsftpd.sock
│ │ │ +00273a10: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00273a20: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00273a30: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00273a40: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00273a50: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00273a60: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00273a70: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00273a80: 7263 6828 2276 7366 7470 642e 736f 636b  rch("vsftpd.sock
│ │ │ +00273a90: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +00273aa0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +00273ab0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00273ac0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00273ad0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00273ae0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00273af0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +00273b00: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00273b10: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00273b20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00273b30: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00273b40: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00273b50: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00273b60: 7669 6365 5f76 7366 7470 645f 6469 7361  vice_vsftpd_disa
│ │ │ +00273b70: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00273b80: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00273b90: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +00273ba0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +00273bb0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00273bc0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00273c70: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00273c80: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00273480: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002734b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002734c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00273500: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00273510: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00273d20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00273dc0: 636c 7564 6520 6469 7361 626c 655f 7673  clude disable_vs
│ │ │ +00273dd0: 6674 7064 0a0a 636c 6173 7320 6469 7361  ftpd..class disa
│ │ │ +00273de0: 626c 655f 7673 6674 7064 207b 0a20 2073  ble_vsftpd {.  s
│ │ │ +00273df0: 6572 7669 6365 207b 2776 7366 7470 6427  ervice {'vsftpd'
│ │ │ +00273e00: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +00273e10: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +00273e20: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +00273e30: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +00273e50: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00273e60: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00273e70: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00273e80: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00273e90: 6439 3931 2220 7461 6269 6e64 6578 3d22 d991" tabindex=" │ │ │ +00273ea0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00273eb0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00273ec0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00273ed0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00273ee0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00273ef0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00273f00: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00273f10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +00273f60: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00273f70: 735d 0a6d 6173 6b65 6420 3d20 5b22 7673 s].masked = ["vs │ │ │ +00273f80: 6674 7064 225d 0a3c 2f63 6f64 653e 3c2f ftpd"].Remediation │ │ │ -00274f80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00274f90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00273d10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00273d40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00273d50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00273d90: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00273da0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00275010: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00275030: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00275080: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002750b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00275020: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00275040: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00275090: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002750a0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -002750d0: 7665 5f66 7470 0a0a 636c 6173 7320 7265  ve_ftp..class re
│ │ │ -002750e0: 6d6f 7665 5f66 7470 207b 0a20 2070 6163  move_ftp {.  pac
│ │ │ -002750f0: 6b61 6765 207b 2027 6674 7027 3a0a 2020  kage { 'ftp':.  
│ │ │ -00275100: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00275110: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00275120: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -002751d0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002751e0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00275280: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00275320: 206e 616d 653a 2027 5265 6d6f 7665 2066   name: 'Remove f
│ │ │ -00275330: 7470 2050 6163 6b61 6765 3a20 456e 7375  tp Package: Ensu
│ │ │ -00275340: 7265 2066 7470 2069 7320 7265 6d6f 7665  re ftp is remove
│ │ │ -00275350: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00275360: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00275370: 2020 6e61 6d65 3a20 6674 700a 2020 2020    name: ftp.    
│ │ │ -00275380: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00275390: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -002753a0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -002753b0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -002753c0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002753d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002753e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002753f0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00275400: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00275410: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00275420: 2070 6163 6b61 6765 5f66 7470 5f72 656d   package_ftp_rem
│ │ │ -00275430: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
low< │ │ │ +00275060: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -00275270: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002752a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002752b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002752f0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00275300: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00275020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00275040: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00275090: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002750a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Rem
│ │ │ +002750d0: 6f76 6520 6674 7020 5061 636b 6167 653a  ove ftp Package:
│ │ │ +002750e0: 2045 6e73 7572 6520 6674 7020 6973 2072   Ensure ftp is r
│ │ │ +002750f0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00275100: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00275110: 653a 0a20 2020 206e 616d 653a 2066 7470  e:.    name: ftp
│ │ │ +00275120: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00275130: 6e74 0a20 2074 6167 733a 0a20 202d 2050  nt.  tags:.  - P
│ │ │ +00275140: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00275150: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +00275160: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00275170: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00275180: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00275190: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002751a0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +002751b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002751c0: 640a 2020 2d20 7061 636b 6167 655f 6674  d.  - package_ft
│ │ │ +002751d0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +00275290: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002752a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002752b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002752e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00275350: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00275370: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002753a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00275330: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00275340: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00275380: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00275390: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002753e0: 6520 7265 6d6f 7665 5f66 7470 0a0a 636c e remove_ftp..cl │ │ │ +002753f0: 6173 7320 7265 6d6f 7665 5f66 7470 207b ass remove_ftp { │ │ │ +00275400: 0a20 2070 6163 6b61 6765 207b 2027 6674 . package { 'ft │ │ │ +00275410: 7027 3a0a 2020 2020 656e 7375 7265 203d p':. ensure = │ │ │ +00275420: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ +00275430: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation Pup │ │ │ -002762d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002762e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -002763b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002763c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00276410: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00276420: 746e 6674 700a 0a63 6c61 7373 2072 656d  tnftp..class rem
│ │ │ -00276430: 6f76 655f 746e 6674 7020 7b0a 2020 7061  ove_tnftp {.  pa
│ │ │ -00276440: 636b 6167 6520 7b20 2774 6e66 7470 273a  ckage { 'tnftp':
│ │ │ -00276450: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00276460: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00276470: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00276480: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00276530: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00276540: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ -00276390: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002763a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002763e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002763f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002765c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002765e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00276630: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00276660: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ -00276680: 6520 746e 6674 7020 5061 636b 6167 653a  e tnftp Package:
│ │ │ -00276690: 2045 6e73 7572 6520 746e 6674 7020 6973   Ensure tnftp is
│ │ │ -002766a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -002766b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -002766c0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -002766d0: 6e66 7470 0a20 2020 2073 7461 7465 3a20  nftp.    state: 
│ │ │ -002766e0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -002766f0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00276700: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00276710: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00276720: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00276730: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00276740: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00276750: 2020 2d20 7061 636b 6167 655f 746e 6674    - package_tnft
│ │ │ -00276760: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.Remediation Ans
│ │ │ +002762d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002762e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disr │ │ │ -002765f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00276600: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00276640: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00276650: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +002763b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002763c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +00276420: 2074 6e66 7470 2050 6163 6b61 6765 3a20   tnftp Package: 
│ │ │ +00276430: 456e 7375 7265 2074 6e66 7470 2069 7320  Ensure tnftp is 
│ │ │ +00276440: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00276450: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00276460: 6765 3a0a 2020 2020 6e61 6d65 3a20 746e  ge:.    name: tn
│ │ │ +00276470: 6674 700a 2020 2020 7374 6174 653a 2061  ftp.    state: a
│ │ │ +00276480: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00276490: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002764a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002764b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002764c0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +002764d0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002764e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002764f0: 202d 2070 6163 6b61 6765 5f74 6e66 7470   - package_tnftp
│ │ │ +00276500: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00276510: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002765c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002765d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002765e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002765f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00276600: 7365 2220 6964 3d22 6964 3939 3922 3e3c se" id="id999">< │ │ │ +00276610: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00276620: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00276630: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00276640: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00276650: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +002766e0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +002766f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disru │ │ │ +00276390: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002763a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002763e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002763f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +00276660: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00276670: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +002766b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002766c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +00276710: 2072 656d 6f76 655f 746e 6674 700a 0a63 remove_tnftp..c │ │ │ +00276720: 6c61 7373 2072 656d 6f76 655f 746e 6674 lass remove_tnft │ │ │ +00276730: 7020 7b0a 2020 7061 636b 6167 6520 7b20 p {. package { │ │ │ +00276740: 2774 6e66 7470 273a 0a20 2020 2065 6e73 'tnftp':. ens │ │ │ +00276750: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ +00276760: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
R │ │ │ -00278350: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00278360: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -00278400: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002784a0: 696e 636c 7564 6520 7265 6d6f 7665 5f61  include remove_a
│ │ │ -002784b0: 7061 6368 6532 0a0a 636c 6173 7320 7265  pache2..class re
│ │ │ -002784c0: 6d6f 7665 5f61 7061 6368 6532 207b 0a20  move_apache2 {. 
│ │ │ -002784d0: 2070 6163 6b61 6765 207b 2027 6170 6163   package { 'apac
│ │ │ -002784e0: 6865 3227 3a0a 2020 2020 656e 7375 7265  he2':.    ensure
│ │ │ -002784f0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00278500: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ -002785c0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -002785d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -002785e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002785f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00278600: 7365 2220 6964 3d22 6964 3130 3033 223e se" id="id1003"> │ │ │ -00278610: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -002783f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00278420: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00278430: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00278470: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00278480: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00278680: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002786a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002786d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00278660: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00278670: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002786b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002786c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00278710: 2027 556e 696e 7374 616c 6c20 6170 6163 'Uninstall apac │ │ │ -00278720: 6865 3220 5061 636b 6167 653a 2045 6e73 he2 Package: Ens │ │ │ -00278730: 7572 6520 6170 6163 6865 3220 6973 2072 ure apache2 is r │ │ │ -00278740: 656d 6f76 6564 270a 2020 616e 7369 626c emoved'. ansibl │ │ │ -00278750: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -00278760: 653a 0a20 2020 206e 616d 653a 2061 7061 e:. name: apa │ │ │ -00278770: 6368 6532 0a20 2020 2073 7461 7465 3a20 che2. state: │ │ │ -00278780: 6162 7365 6e74 0a20 2074 6167 733a 0a20 absent. tags:. │ │ │ -00278790: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -002787a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ -002787b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ -002787c0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -002787d0: 4d2d 3728 6229 0a20 202d 2064 6973 6162 M-7(b). - disab │ │ │ -002787e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -002787f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00278800: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00278810: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f n. - no_reboot_ │ │ │ -00278820: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00278830: 6765 5f68 7474 7064 5f72 656d 6f76 6564 ge_httpd_removed │ │ │ -00278840: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ -00278850: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70 erity.


< │ │ │ +00278440: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00278450: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002784a0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +002784b0: 6c6c 2061 7061 6368 6532 2050 6163 6b61  ll apache2 Packa
│ │ │ +002784c0: 6765 3a20 456e 7375 7265 2061 7061 6368  ge: Ensure apach
│ │ │ +002784d0: 6532 2069 7320 7265 6d6f 7665 6427 0a20  e2 is removed'. 
│ │ │ +002784e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002784f0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00278500: 6d65 3a20 6170 6163 6865 320a 2020 2020  me: apache2.    
│ │ │ +00278510: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00278520: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00278530: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00278540: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00278550: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00278560: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00278570: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00278580: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00278590: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002785a0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +002785b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002785c0: 2d20 7061 636b 6167 655f 6874 7470 645f  - package_httpd_
│ │ │ +002785d0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +002785e0: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +00278600: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002786a0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002786b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002786c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +00278420: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00278430: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00278470: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00278480: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00278750: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278760: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002787b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002787f0: 6e63 6c75 6465 2072 656d 6f76 655f 6170  nclude remove_ap
│ │ │ +00278800: 6163 6865 320a 0a63 6c61 7373 2072 656d  ache2..class rem
│ │ │ +00278810: 6f76 655f 6170 6163 6865 3220 7b0a 2020  ove_apache2 {.  
│ │ │ +00278820: 7061 636b 6167 6520 7b20 2761 7061 6368  package { 'apach
│ │ │ +00278830: 6532 273a 0a20 2020 2065 6e73 7572 6520  e2':.    ensure 
│ │ │ +00278840: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +00278850: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation O │ │ │ -00279b90: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00279ba0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00279bb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -00279bf0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00279c00: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00279c10: 6420 3d20 5b22 6170 6163 6865 3222 5d0a  d = ["apache2"].
│ │ │ -00279c20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -00279ce0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00279cf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +00278740: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00278770: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00278780: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002787c0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002787d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -00279dc0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00279dd0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00279e20: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00279e30: 6170 6163 6865 320a 0a63 6c61 7373 2064  apache2..class d
│ │ │ -00279e40: 6973 6162 6c65 5f61 7061 6368 6532 207b  isable_apache2 {
│ │ │ -00279e50: 0a20 2073 6572 7669 6365 207b 2761 7061  .  service {'apa
│ │ │ -00279e60: 6368 6532 273a 0a20 2020 2065 6e61 626c  che2':.    enabl
│ │ │ -00279e70: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00279e80: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00279e90: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00279ea0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -00279f60: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00279f70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -00279da0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00279db0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00279df0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00279e00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00279ff0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0027a010: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0027a060: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0027a090: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0027a000: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0027a020: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0027a070: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0027a080: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0027a0b0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0027a0c0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0027a0d0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0027a0e0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0027a0f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0027a100: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0027a110: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0027a120: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0027a130: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0027a140: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0027a150: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0027a160: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0027a170: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0027a180: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0027a190: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ -0027a1a0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -0027a1b0: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ -0027a1c0: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ -0027a1d0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0027a1e0: 6520 7365 7276 6963 6520 6170 6163 6865  e service apache
│ │ │ -0027a1f0: 320a 2020 626c 6f63 6b3a 0a0a 2020 2d20  2.  block:..  - 
│ │ │ -0027a200: 6e61 6d65 3a20 4469 7361 626c 6520 6170  name: Disable ap
│ │ │ -0027a210: 6163 6865 3220 5365 7276 6963 6520 2d20  ache2 Service - 
│ │ │ -0027a220: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -0027a230: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -0027a240: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -0027a250: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0027a260: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0027a270: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0027a280: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -0027a290: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -0027a2a0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -0027a2b0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0027a2c0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0027a2d0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -0027a2e0: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -0027a2f0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0027a300: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0027a310: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0027a320: 6973 6162 6c65 2061 7061 6368 6532 2053  isable apache2 S
│ │ │ -0027a330: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -0027a340: 6170 6163 6865 322e 7365 7276 6963 6520  apache2.service 
│ │ │ -0027a350: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -0027a360: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0027a370: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0027a380: 653a 2061 7061 6368 6532 2e73 6572 7669  e: apache2.servi
│ │ │ -0027a390: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -0027a3a0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -0027a3b0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0027a3c0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0027a3d0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -0027a3e0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0027a3f0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0027a400: 2261 7061 6368 6532 2e73 6572 7669 6365  "apache2.service
│ │ │ -0027a410: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0027a420: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -0027a430: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -0027a440: 202d 2061 7061 6368 6532 2e73 6f63 6b65   - apache2.socke
│ │ │ -0027a450: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -0027a460: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0027a470: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0027a480: 2d75 6e69 742d 6669 6c65 7320 6170 6163  -unit-files apac
│ │ │ -0027a490: 6865 322e 736f 636b 6574 0a20 2020 2072  he2.socket.    r
│ │ │ -0027a4a0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -0027a4b0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -0027a4c0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0027a4d0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0027a4e0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0027a4f0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0027a500: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0027a510: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0027a520: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0027a530: 6520 6170 6163 6865 3220 5365 7276 6963  e apache2 Servic
│ │ │ -0027a540: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ -0027a550: 6574 2061 7061 6368 6532 0a20 2020 2061  et apache2.    a
│ │ │ -0027a560: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0027a570: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0027a580: 6d65 3a20 6170 6163 6865 322e 736f 636b  me: apache2.sock
│ │ │ -0027a590: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -0027a5a0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -0027a5b0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027a5c0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0027a5d0: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -0027a5e0: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -0027a5f0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0027a600: 7263 6828 2261 7061 6368 6532 2e73 6f63  rch("apache2.soc
│ │ │ -0027a610: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -0027a620: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -0027a630: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027a640: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0027a650: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0027a660: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027a670: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0027a680: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0027a690: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0027a6a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0027a6b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0027a6c0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0027a6d0: 655f 6874 7470 645f 6469 7361 626c 6564  e_httpd_disabled
│ │ │ -0027a6e0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0027a6f0: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ -0027a700: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -0027a710: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0027a720: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0027a730: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00279b80: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00279b90: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00279ba0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +00279c30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00279c50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00279c70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00279ca0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00279cb0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00279ce0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00279cf0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00279d00: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00279d10: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00279d20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00279d30: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00279d40: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00279d50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00279d60: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +00279d70: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00279d80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00279d90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00279da0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +00279db0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00279dc0: 6963 655f 6874 7470 645f 6469 7361 626c  ice_httpd_disabl
│ │ │ +00279dd0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +00279de0: 6576 6572 6974 790a 0a2d 206e 616d 653a  everity..- name:
│ │ │ +00279df0: 2044 6973 6162 6c65 2061 7061 6368 6532   Disable apache2
│ │ │ +00279e00: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00279e10: 6c65 2073 6572 7669 6365 2061 7061 6368  le service apach
│ │ │ +00279e20: 6532 0a20 2062 6c6f 636b 3a0a 0a20 202d  e2.  block:..  -
│ │ │ +00279e30: 206e 616d 653a 2044 6973 6162 6c65 2061   name: Disable a
│ │ │ +00279e40: 7061 6368 6532 2053 6572 7669 6365 202d  pache2 Service -
│ │ │ +00279e50: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +00279e60: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +00279e70: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +00279e80: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00279e90: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00279ea0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00279eb0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +00279ec0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +00279ed0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +00279ee0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +00279ef0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +00279f00: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +00279f10: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +00279f20: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00279f30: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00279f40: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00279f50: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ +00279f60: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ +00279f70: 2061 7061 6368 6532 2e73 6572 7669 6365   apache2.service
│ │ │ +00279f80: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00279f90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00279fa0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00279fb0: 6d65 3a20 6170 6163 6865 322e 7365 7276  me: apache2.serv
│ │ │ +00279fc0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +00279fd0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +00279fe0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +00279ff0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0027a000: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +0027a010: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +0027a020: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0027a030: 2822 6170 6163 6865 322e 7365 7276 6963  ("apache2.servic
│ │ │ +0027a040: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +0027a050: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +0027a060: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +0027a070: 7320 2d20 6170 6163 6865 322e 736f 636b  s - apache2.sock
│ │ │ +0027a080: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +0027a090: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0027a0a0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0027a0b0: 742d 756e 6974 2d66 696c 6573 2061 7061  t-unit-files apa
│ │ │ +0027a0c0: 6368 6532 2e73 6f63 6b65 740a 2020 2020  che2.socket.    
│ │ │ +0027a0d0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +0027a0e0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +0027a0f0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +0027a100: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +0027a110: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0027a120: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +0027a130: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +0027a140: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +0027a150: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0027a160: 6c65 2061 7061 6368 6532 2053 6572 7669  le apache2 Servi
│ │ │ +0027a170: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ +0027a180: 6b65 7420 6170 6163 6865 320a 2020 2020  ket apache2.    
│ │ │ +0027a190: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027a1a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0027a1b0: 616d 653a 2061 7061 6368 6532 2e73 6f63  ame: apache2.soc
│ │ │ +0027a1c0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0027a1d0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0027a1e0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0027a1f0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0027a200: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0027a210: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0027a220: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0027a230: 6172 6368 2822 6170 6163 6865 322e 736f  arch("apache2.so
│ │ │ +0027a240: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0027a250: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0027a260: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0027a270: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0027a280: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0027a290: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0027a2a0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0027a2b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0027a2c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0027a2d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0027a2e0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0027a2f0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0027a300: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ +0027a310: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0027a320: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ +0027a330: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0027a340: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +0027a350: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0027a360: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0027a370: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +0027a380: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +0027a430: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0027a440: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0027a4c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0027a4e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0027a530: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0027a560: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0027a580: 655f 6170 6163 6865 320a 0a63 6c61 7373  e_apache2..class
│ │ │ +0027a590: 2064 6973 6162 6c65 5f61 7061 6368 6532   disable_apache2
│ │ │ +0027a5a0: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ +0027a5b0: 7061 6368 6532 273a 0a20 2020 2065 6e61  pache2':.    ena
│ │ │ +0027a5c0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +0027a5d0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0027a5e0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +0027a5f0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0027a600: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +0027a6b0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0027a6c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ +0027a720: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +0027a730: 6564 203d 205b 2261 7061 6368 6532 225d  ed = ["apache2"]
│ │ │  0027a740: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Rem │ │ │ -0027bdd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0027bde0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027bdf0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +0027a4d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0027a4f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0027a540: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0027a550: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -0027be90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0027bee0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0027bf20: 636c 7564 6520 7265 6d6f 7665 5f6e 6769  clude remove_ngi
│ │ │ -0027bf30: 6e78 0a0a 636c 6173 7320 7265 6d6f 7665  nx..class remove
│ │ │ -0027bf40: 5f6e 6769 6e78 207b 0a20 2070 6163 6b61  _nginx {.  packa
│ │ │ -0027bf50: 6765 207b 2027 6e67 696e 7827 3a0a 2020  ge { 'nginx':.  
│ │ │ -0027bf60: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0027bf70: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0027bf80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -0027c030: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0027c040: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0027c050: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ -0027be70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0027bea0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0027bec0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0027bed0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0027bef0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0027bf00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -0027c120: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0027c130: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -0027c190: 616c 6c20 6e67 696e 7820 5061 636b 6167  all nginx Packag
│ │ │ -0027c1a0: 653a 2045 6e73 7572 6520 6e67 696e 7820  e: Ensure nginx 
│ │ │ -0027c1b0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -0027c1c0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0027c1d0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0027c1e0: 206e 6769 6e78 0a20 2020 2073 7461 7465   nginx.    state
│ │ │ -0027c1f0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -0027c200: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0027c210: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -0027c220: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -0027c230: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0027c240: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -0027c250: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0027c260: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0027c270: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0027c280: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0027c290: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0027c2a0: 6b61 6765 5f6e 6769 6e78 5f72 656d 6f76  kage_nginx_remov
│ │ │ -0027c2b0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ -0027c2c0: 6576 6572 6974 790a 3c2f 636f 6465 3e3c  everity.<
│ │ │ +0027bdd0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +0027bde0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +0027bdf0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -0027c100: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0027c110: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0027c150: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0027c160: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0027be80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027be90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027bee0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0027bf20: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0027bf30: 206e 6769 6e78 2050 6163 6b61 6765 3a20   nginx Package: 
│ │ │ +0027bf40: 456e 7375 7265 206e 6769 6e78 2069 7320  Ensure nginx is 
│ │ │ +0027bf50: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +0027bf60: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0027bf70: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e67  ge:.    name: ng
│ │ │ +0027bf80: 696e 780a 2020 2020 7374 6174 653a 2061  inx.    state: a
│ │ │ +0027bf90: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +0027bfa0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0027bfb0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +0027bfc0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +0027bfd0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0027bfe0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +0027bff0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0027c000: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0027c010: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0027c020: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0027c030: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0027c040: 655f 6e67 696e 785f 7265 6d6f 7665 640a  e_nginx_removed.
│ │ │ +0027c050: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +0027c060: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediatio
│ │ │ +0027c120: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +0027c130: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +0027c1b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0027c1f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ +0027be70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027bea0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0027beb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0027bef0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0027bf00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ +0027c1c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0027c1e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0027c210: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0027c230: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0027c260: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0027c270: 656d 6f76 655f 6e67 696e 780a 0a63 6c61  emove_nginx..cla
│ │ │ +0027c280: 7373 2072 656d 6f76 655f 6e67 696e 7820  ss remove_nginx 
│ │ │ +0027c290: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ +0027c2a0: 6769 6e78 273a 0a20 2020 2065 6e73 7572  ginx':.    ensur
│ │ │ +0027c2b0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +0027c2c0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  0027c2d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation OS │ │ │ -0027d080: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0027d090: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027d0a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -0027d0e0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -0027d0f0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -0027d100: 203d 205b 226e 6769 6e78 225d 0a3c 2f63   = ["nginx"].
│ │ │ -0027d120: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -0027d1c0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0027d1d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027d1e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0027d270: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027d280: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0027d2d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0027d310: 6c75 6465 2064 6973 6162 6c65 5f6e 6769  lude disable_ngi
│ │ │ -0027d320: 6e78 0a0a 636c 6173 7320 6469 7361 626c  nx..class disabl
│ │ │ -0027d330: 655f 6e67 696e 7820 7b0a 2020 7365 7276  e_nginx {.  serv
│ │ │ -0027d340: 6963 6520 7b27 6e67 696e 7827 3a0a 2020  ice {'nginx':.  
│ │ │ -0027d350: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -0027d360: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -0027d370: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -0027d380: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0027d390: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -0027d440: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ -0027d450: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -0027d460: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ -0027d260: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0027d290: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0027d2a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0027d2e0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0027d2f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0027d500: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0027d520: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0027d550: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0027d4e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0027d4f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0027d510: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0027d530: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0027d540: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0027d580: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0027d590: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0027d5a0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0027d5b0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0027d5c0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0027d5d0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -0027d5e0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -0027d5f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0027d600: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0027d610: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0027d620: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -0027d630: 655f 6e67 696e 785f 6469 7361 626c 6564 e_nginx_disabled │ │ │ -0027d640: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ -0027d650: 6572 6974 790a 0a2d 206e 616d 653a 2044 erity..- name: D │ │ │ -0027d660: 6973 6162 6c65 206e 6769 6e78 2053 6572 isable nginx Ser │ │ │ -0027d670: 7669 6365 202d 2044 6973 6162 6c65 2073 vice - Disable s │ │ │ -0027d680: 6572 7669 6365 206e 6769 6e78 0a20 2062 ervice nginx. b │ │ │ -0027d690: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ -0027d6a0: 2044 6973 6162 6c65 206e 6769 6e78 2053 Disable nginx S │ │ │ -0027d6b0: 6572 7669 6365 202d 2043 6f6c 6c65 6374 ervice - Collect │ │ │ -0027d6c0: 2073 7973 7465 6d64 2053 6572 7669 6365 systemd Service │ │ │ -0027d6d0: 7320 5072 6573 656e 7420 696e 2074 6865 s Present in the │ │ │ -0027d6e0: 2053 7973 7465 6d0a 2020 2020 616e 7369 System. ansi │ │ │ -0027d6f0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -0027d700: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -0027d710: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -0027d720: 7320 2d2d 7479 7065 2073 6572 7669 6365 s --type service │ │ │ -0027d730: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -0027d740: 6572 7669 6365 5f65 7869 7374 730a 2020 ervice_exists. │ │ │ -0027d750: 2020 6368 616e 6765 645f 7768 656e 3a20 changed_when: │ │ │ -0027d760: 6661 6c73 650a 2020 2020 6661 696c 6564 false. failed │ │ │ -0027d770: 5f77 6865 6e3a 2073 6572 7669 6365 5f65 _when: service_e │ │ │ -0027d780: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ -0027d790: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ -0027d7a0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ -0027d7b0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -0027d7c0: 6e67 696e 7820 5365 7276 6963 6520 2d20 nginx Service - │ │ │ -0027d7d0: 456e 7375 7265 206e 6769 6e78 2e73 6572 Ensure nginx.ser │ │ │ -0027d7e0: 7669 6365 2069 7320 4d61 736b 6564 0a20 vice is Masked. │ │ │ -0027d7f0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0027d800: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -0027d810: 2020 6e61 6d65 3a20 6e67 696e 782e 7365 name: nginx.se │ │ │ -0027d820: 7276 6963 650a 2020 2020 2020 7374 6174 rvice. stat │ │ │ -0027d830: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ -0027d840: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ -0027d850: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ -0027d860: 7565 0a20 2020 2077 6865 6e3a 2073 6572 ue. when: ser │ │ │ -0027d870: 7669 6365 5f65 7869 7374 732e 7374 646f vice_exists.stdo │ │ │ -0027d880: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ -0027d890: 6368 2822 6e67 696e 782e 7365 7276 6963 ch("nginx.servic │ │ │ -0027d8a0: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ -0027d8b0: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ -0027d8c0: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ -0027d8d0: 7320 2d20 6e67 696e 782e 736f 636b 6574 s - nginx.socket │ │ │ -0027d8e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -0027d8f0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ -0027d900: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ -0027d910: 756e 6974 2d66 696c 6573 206e 6769 6e78 unit-files nginx │ │ │ -0027d920: 2e73 6f63 6b65 740a 2020 2020 7265 6769 .socket. regi │ │ │ -0027d930: 7374 6572 3a20 736f 636b 6574 5f66 696c ster: socket_fil │ │ │ -0027d940: 655f 6578 6973 7473 0a20 2020 2063 6861 e_exists. cha │ │ │ -0027d950: 6e67 6564 5f77 6865 6e3a 2066 616c 7365 nged_when: false │ │ │ -0027d960: 0a20 2020 2066 6169 6c65 645f 7768 656e . failed_when │ │ │ -0027d970: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -0027d980: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ -0027d990: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ -0027d9a0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ -0027d9b0: 206e 616d 653a 2044 6973 6162 6c65 206e name: Disable n │ │ │ -0027d9c0: 6769 6e78 2053 6572 7669 6365 202d 2044 ginx Service - D │ │ │ -0027d9d0: 6973 6162 6c65 2053 6f63 6b65 7420 6e67 isable Socket ng │ │ │ -0027d9e0: 696e 780a 2020 2020 616e 7369 626c 652e inx. ansible. │ │ │ -0027d9f0: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -0027da00: 0a20 2020 2020 206e 616d 653a 206e 6769 . name: ngi │ │ │ -0027da10: 6e78 2e73 6f63 6b65 740a 2020 2020 2020 nx.socket. │ │ │ -0027da20: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -0027da30: 2020 2020 2073 7461 7465 3a20 7374 6f70 state: stop │ │ │ -0027da40: 7065 640a 2020 2020 2020 6d61 736b 6564 ped. masked │ │ │ -0027da50: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -0027da60: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -0027da70: 7374 732e 7374 646f 7574 5f6c 696e 6573 sts.stdout_lines │ │ │ -0027da80: 2069 7320 7365 6172 6368 2822 6e67 696e is search("ngin │ │ │ -0027da90: 782e 736f 636b 6574 222c 206d 756c 7469 x.socket", multi │ │ │ -0027daa0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167 line=True). tag │ │ │ -0027dab0: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ -0027dac0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -0027dad0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0027dae0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0027daf0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0027db00: 6564 0a20 202d 2073 6572 7669 6365 5f6e ed. - service_n │ │ │ -0027db10: 6769 6e78 5f64 6973 6162 6c65 640a 2020 ginx_disabled. │ │ │ -0027db20: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -0027db30: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e e_block. - unkn │ │ │ -0027db40: 6f77 6e5f 7365 7665 7269 7479 0a20 2077 own_severity. w │ │ │ -0027db50: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -0027db60: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -0027db70: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.Remediation An │ │ │ +0027d080: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0027d090: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0027d110: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0027d130: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0027d180: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0027d1b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0027d120: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0027d140: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0027d190: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0027d1a0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +0027d1d0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0027d1e0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0027d1f0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0027d200: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0027d210: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0027d220: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0027d230: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0027d240: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0027d250: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0027d260: 202d 2073 6572 7669 6365 5f6e 6769 6e78   - service_nginx
│ │ │ +0027d270: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +0027d280: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +0027d290: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0027d2a0: 6e67 696e 7820 5365 7276 6963 6520 2d20  nginx Service - 
│ │ │ +0027d2b0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +0027d2c0: 6e67 696e 780a 2020 626c 6f63 6b3a 0a0a  nginx.  block:..
│ │ │ +0027d2d0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0027d2e0: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ +0027d2f0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0027d300: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0027d310: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +0027d320: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0027d330: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0027d340: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0027d350: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +0027d360: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +0027d370: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +0027d380: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0027d390: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0027d3a0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0027d3b0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +0027d3c0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0027d3d0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0027d3e0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0027d3f0: 2044 6973 6162 6c65 206e 6769 6e78 2053   Disable nginx S
│ │ │ +0027d400: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +0027d410: 6e67 696e 782e 7365 7276 6963 6520 6973  nginx.service is
│ │ │ +0027d420: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +0027d430: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0027d440: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0027d450: 206e 6769 6e78 2e73 6572 7669 6365 0a20   nginx.service. 
│ │ │ +0027d460: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0027d470: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0027d480: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0027d490: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0027d4a0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0027d4b0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0027d4c0: 7320 6973 2073 6561 7263 6828 226e 6769  s is search("ngi
│ │ │ +0027d4d0: 6e78 2e73 6572 7669 6365 222c 206d 756c  nx.service", mul
│ │ │ +0027d4e0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +0027d4f0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +0027d500: 6b65 7420 4578 6973 7473 202d 206e 6769  ket Exists - ngi
│ │ │ +0027d510: 6e78 2e73 6f63 6b65 740a 2020 2020 616e  nx.socket.    an
│ │ │ +0027d520: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0027d530: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0027d540: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0027d550: 6c65 7320 6e67 696e 782e 736f 636b 6574  les nginx.socket
│ │ │ +0027d560: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0027d570: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0027d580: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0027d590: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0027d5a0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +0027d5b0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +0027d5c0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0027d5d0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0027d5e0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0027d5f0: 4469 7361 626c 6520 6e67 696e 7820 5365  Disable nginx Se
│ │ │ +0027d600: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0027d610: 536f 636b 6574 206e 6769 6e78 0a20 2020  Socket nginx.   
│ │ │ +0027d620: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0027d630: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0027d640: 6e61 6d65 3a20 6e67 696e 782e 736f 636b  name: nginx.sock
│ │ │ +0027d650: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +0027d660: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +0027d670: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0027d680: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0027d690: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +0027d6a0: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +0027d6b0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0027d6c0: 7263 6828 226e 6769 6e78 2e73 6f63 6b65  rch("nginx.socke
│ │ │ +0027d6d0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +0027d6e0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +0027d6f0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0027d700: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0027d710: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0027d720: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +0027d730: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0027d740: 7365 7276 6963 655f 6e67 696e 785f 6469  service_nginx_di
│ │ │ +0027d750: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +0027d760: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +0027d770: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +0027d780: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ +0027d790: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0027d7a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0027d7b0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediat │ │ │ +0027d870: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0027d880: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +0027d8c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0027d8d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0027d8e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0027d8f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0027d900: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0027d910: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0027d920: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0027d960: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0027d970: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0027d990: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0027d9a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +0027d9c0: 6973 6162 6c65 5f6e 6769 6e78 0a0a 636c  isable_nginx..cl
│ │ │ +0027d9d0: 6173 7320 6469 7361 626c 655f 6e67 696e  ass disable_ngin
│ │ │ +0027d9e0: 7820 7b0a 2020 7365 7276 6963 6520 7b27  x {.  service {'
│ │ │ +0027d9f0: 6e67 696e 7827 3a0a 2020 2020 656e 6162  nginx':.    enab
│ │ │ +0027da00: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +0027da10: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0027da20: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +0027da30: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0027da40: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +0027daf0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0027db00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0027db10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +0027db50: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0027db60: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +0027db70: 6420 3d20 5b22 6e67 696e 7822 5d0a 3c2f  d = ["nginx"].
Remediation │ │ │ -0027f0e0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0027f0f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0027f180: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0027f1a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0027f1c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0027f1f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0027f200: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0027f230: 6f76 655f 646f 7665 636f 740a 0a63 6c61  ove_dovecot..cla
│ │ │ -0027f240: 7373 2072 656d 6f76 655f 646f 7665 636f  ss remove_doveco
│ │ │ -0027f250: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -0027f260: 2764 6f76 6563 6f74 273a 0a20 2020 2065  'dovecot':.    e
│ │ │ -0027f270: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0027f280: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0027f2a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0027f2b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0027f2c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0027f2d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0027f2e0: 6431 3032 3122 2074 6162 696e 6465 783d d1021" tabindex= │ │ │ -0027f2f0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0027f300: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0027f310: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0027f320: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0027f330: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0027f340: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0027f350: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027f360: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0027f3f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027f400: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0027f450: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0027f490: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0027f4a0: 2064 6f76 6563 6f74 2050 6163 6b61 6765   dovecot Package
│ │ │ -0027f4b0: 3a20 456e 7375 7265 2064 6f76 6563 6f74  : Ensure dovecot
│ │ │ -0027f4c0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0027f4d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0027f4e0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0027f4f0: 3a20 646f 7665 636f 740a 2020 2020 7374  : dovecot.    st
│ │ │ -0027f500: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0027f510: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0027f520: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0027f530: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0027f540: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0027f550: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0027f560: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0027f570: 646f 7665 636f 745f 7265 6d6f 7665 640a  dovecot_removed.
│ │ │ -0027f580: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -0027f590: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.
< │ │ │ +0027f1b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027f1c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -0027f3e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0027f410: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0027f420: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0027f460: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0027f470: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +0027f180: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0027f1a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0027f1d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0027f1f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0027f220: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0027f230: 696e 7374 616c 6c20 646f 7665 636f 7420  install dovecot 
│ │ │ +0027f240: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +0027f250: 646f 7665 636f 7420 6973 2072 656d 6f76  dovecot is remov
│ │ │ +0027f260: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0027f270: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0027f280: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ +0027f290: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0027f2a0: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +0027f2b0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0027f2c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0027f2d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0027f2e0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0027f2f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0027f300: 6163 6b61 6765 5f64 6f76 6563 6f74 5f72  ackage_dovecot_r
│ │ │ +0027f310: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ +0027f320: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +0027f340: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027f350: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027f360: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027f370: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027f380: 6431 3032 3122 2074 6162 696e 6465 783d d1021" tabindex= │ │ │ +0027f390: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +0027f3a0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +0027f3b0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +0027f3c0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +0027f3d0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +0027f3e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027f3f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027f400: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +0027f4a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0027f4f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0027f530: 636c 7564 6520 7265 6d6f 7665 5f64 6f76  clude remove_dov
│ │ │ +0027f540: 6563 6f74 0a0a 636c 6173 7320 7265 6d6f  ecot..class remo
│ │ │ +0027f550: 7665 5f64 6f76 6563 6f74 207b 0a20 2070  ve_dovecot {.  p
│ │ │ +0027f560: 6163 6b61 6765 207b 2027 646f 7665 636f  ackage { 'doveco
│ │ │ +0027f570: 7427 3a0a 2020 2020 656e 7375 7265 203d  t':.    ensure =
│ │ │ +0027f580: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0027f590: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.R
│ │ │ -00280360: 656d 6564 6961 7469 6f6e 204f 5342 7569  emediation OSBui
│ │ │ -00280370: 6c64 2042 6c75 6570 7269 6e74 2073 6e69  ld Blueprint sni
│ │ │ -00280380: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -00280390: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -002803d0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002803e0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -002803f0: 5b22 646f 7665 636f 7422 5d0a 3c2f 636f  ["dovecot"].
< │ │ │ -00280410: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00280420: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00280430: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00280440: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00280450: 6431 3032 3522 2074 6162 696e 6465 783d d1025" tabindex= │ │ │ -00280460: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00280470: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -00280480: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -00280490: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002804a0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002804b0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002804c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002804d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +0027f480: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0027f4b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0027f4d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0027f4e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0027f500: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0027f510: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -00280570: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002805c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00280550: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00280580: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002805a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002805b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002805d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -002805e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00280600: 7564 6520 6469 7361 626c 655f 646f 7665  ude disable_dove
│ │ │ -00280610: 636f 740a 0a63 6c61 7373 2064 6973 6162  cot..class disab
│ │ │ -00280620: 6c65 5f64 6f76 6563 6f74 207b 0a20 2073  le_dovecot {.  s
│ │ │ -00280630: 6572 7669 6365 207b 2764 6f76 6563 6f74  ervice {'dovecot
│ │ │ -00280640: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00280650: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -00280660: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -00280670: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -00280690: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00280730: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00280740: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002807e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00280880: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00280890: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -002808a0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -002808b0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -002808c0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -002808d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002808e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002808f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00280900: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00280910: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00280920: 6572 7669 6365 5f64 6f76 6563 6f74 5f64  ervice_dovecot_d
│ │ │ -00280930: 6973 6162 6c65 640a 2020 2d20 756e 6b6e  isabled.  - unkn
│ │ │ -00280940: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20  own_severity..- 
│ │ │ -00280950: 6e61 6d65 3a20 4469 7361 626c 6520 446f  name: Disable Do
│ │ │ -00280960: 7665 636f 7420 5365 7276 6963 6520 2d20  vecot Service - 
│ │ │ -00280970: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -00280980: 646f 7665 636f 740a 2020 626c 6f63 6b3a  dovecot.  block:
│ │ │ -00280990: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002809a0: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ -002809b0: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -002809c0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002809d0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002809e0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002809f0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00280a00: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00280a10: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00280a20: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00280a30: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -00280a40: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -00280a50: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00280a60: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00280a70: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00280a80: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00280a90: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00280aa0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00280ab0: 616d 653a 2044 6973 6162 6c65 2044 6f76  ame: Disable Dov
│ │ │ -00280ac0: 6563 6f74 2053 6572 7669 6365 202d 2045  ecot Service - E
│ │ │ -00280ad0: 6e73 7572 6520 646f 7665 636f 742e 7365  nsure dovecot.se
│ │ │ -00280ae0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00280af0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00280b00: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00280b10: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ -00280b20: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -00280b30: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00280b40: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00280b50: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -00280b60: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00280b70: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -00280b80: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00280b90: 6561 7263 6828 2264 6f76 6563 6f74 2e73  earch("dovecot.s
│ │ │ -00280ba0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -00280bb0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -00280bc0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -00280bd0: 4578 6973 7473 202d 2064 6f76 6563 6f74  Exists - dovecot
│ │ │ -00280be0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -00280bf0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -00280c00: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -00280c10: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -00280c20: 7320 646f 7665 636f 742e 736f 636b 6574  s dovecot.socket
│ │ │ -00280c30: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -00280c40: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00280c50: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00280c60: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00280c70: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -00280c80: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -00280c90: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00280ca0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00280cb0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00280cc0: 4469 7361 626c 6520 446f 7665 636f 7420  Disable Dovecot 
│ │ │ -00280cd0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -00280ce0: 6520 536f 636b 6574 2064 6f76 6563 6f74  e Socket dovecot
│ │ │ -00280cf0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00280d00: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00280d10: 2020 2020 6e61 6d65 3a20 646f 7665 636f      name: doveco
│ │ │ -00280d20: 742e 736f 636b 6574 0a20 2020 2020 2065  t.socket.      e
│ │ │ -00280d30: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00280d40: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00280d50: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -00280d60: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00280d70: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00280d80: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -00280d90: 6973 2073 6561 7263 6828 2264 6f76 6563  is search("dovec
│ │ │ -00280da0: 6f74 2e73 6f63 6b65 7422 2c20 6d75 6c74  ot.socket", mult
│ │ │ -00280db0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00280dc0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00280dd0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00280de0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00280df0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00280e00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00280e10: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00280e20: 646f 7665 636f 745f 6469 7361 626c 6564  dovecot_disabled
│ │ │ -00280e30: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00280e40: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ -00280e50: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -00280e60: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00280e70: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00280e80: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00280360: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00280370: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ -002807d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00280800: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00280810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00280850: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00280860: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00280450: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00280460: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002804b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002804c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002804d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002804e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002804f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00280500: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00280510: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00280520: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00280530: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00280540: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00280550: 7365 7276 6963 655f 646f 7665 636f 745f  service_dovecot_
│ │ │ +00280560: 6469 7361 626c 6564 0a20 202d 2075 6e6b  disabled.  - unk
│ │ │ +00280570: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d  nown_severity..-
│ │ │ +00280580: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +00280590: 6f76 6563 6f74 2053 6572 7669 6365 202d  ovecot Service -
│ │ │ +002805a0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +002805b0: 2064 6f76 6563 6f74 0a20 2062 6c6f 636b   dovecot.  block
│ │ │ +002805c0: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +002805d0: 6162 6c65 2044 6f76 6563 6f74 2053 6572  able Dovecot Ser
│ │ │ +002805e0: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +002805f0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00280600: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +00280610: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +00280620: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00280630: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00280640: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00280650: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +00280660: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +00280670: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +00280680: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00280690: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002806a0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +002806b0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002806c0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002806d0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002806e0: 6e61 6d65 3a20 4469 7361 626c 6520 446f  name: Disable Do
│ │ │ +002806f0: 7665 636f 7420 5365 7276 6963 6520 2d20  vecot Service - 
│ │ │ +00280700: 456e 7375 7265 2064 6f76 6563 6f74 2e73  Ensure dovecot.s
│ │ │ +00280710: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +00280720: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00280730: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00280740: 2020 2020 6e61 6d65 3a20 646f 7665 636f      name: doveco
│ │ │ +00280750: 742e 7365 7276 6963 650a 2020 2020 2020  t.service.      
│ │ │ +00280760: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00280770: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00280780: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +00280790: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002807a0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002807b0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002807c0: 7365 6172 6368 2822 646f 7665 636f 742e  search("dovecot.
│ │ │ +002807d0: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +002807e0: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +002807f0: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +00280800: 2045 7869 7374 7320 2d20 646f 7665 636f   Exists - doveco
│ │ │ +00280810: 742e 736f 636b 6574 0a20 2020 2061 6e73  t.socket.    ans
│ │ │ +00280820: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00280830: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00280840: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00280850: 6573 2064 6f76 6563 6f74 2e73 6f63 6b65  es dovecot.socke
│ │ │ +00280860: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00280870: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00280880: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00280890: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002808a0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +002808b0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +002808c0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002808d0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002808e0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002808f0: 2044 6973 6162 6c65 2044 6f76 6563 6f74   Disable Dovecot
│ │ │ +00280900: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00280910: 6c65 2053 6f63 6b65 7420 646f 7665 636f  le Socket doveco
│ │ │ +00280920: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00280930: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00280940: 2020 2020 206e 616d 653a 2064 6f76 6563       name: dovec
│ │ │ +00280950: 6f74 2e73 6f63 6b65 740a 2020 2020 2020  ot.socket.      
│ │ │ +00280960: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00280970: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00280980: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +00280990: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002809a0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +002809b0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +002809c0: 2069 7320 7365 6172 6368 2822 646f 7665   is search("dove
│ │ │ +002809d0: 636f 742e 736f 636b 6574 222c 206d 756c  cot.socket", mul
│ │ │ +002809e0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002809f0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00280a00: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00280a10: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00280a20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00280a30: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00280a40: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00280a50: 5f64 6f76 6563 6f74 5f64 6973 6162 6c65  _dovecot_disable
│ │ │ +00280a60: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00280a70: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ +00280a80: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +00280a90: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00280aa0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00280ab0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00280ac0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00280ad0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +00280b80: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00280b90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +00280430: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00280440: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00280480: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00280490: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00280c10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00280c30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00280c80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00280cb0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +00280cd0: 655f 646f 7665 636f 740a 0a63 6c61 7373  e_dovecot..class
│ │ │ +00280ce0: 2064 6973 6162 6c65 5f64 6f76 6563 6f74   disable_dovecot
│ │ │ +00280cf0: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ +00280d00: 6f76 6563 6f74 273a 0a20 2020 2065 6e61  ovecot':.    ena
│ │ │ +00280d10: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +00280d20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00280d30: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +00280d40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00280d50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +00280e00: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00280e10: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ +00280e70: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +00280e80: 6564 203d 205b 2264 6f76 6563 6f74 225d  ed = ["dovecot"]
│ │ │  00280e90: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediati │ │ │ -002827e0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002827f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -00282870: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00282900: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00282910: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:< │ │ │ +00280c20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00280c40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00280c90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00280ca0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexi │ │ │ -00282880: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00282890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002828d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002828e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -00282930: 7265 6d6f 7665 5f6f 7065 6e6c 6461 702d  remove_openldap-
│ │ │ -00282940: 636c 6965 6e74 730a 0a63 6c61 7373 2072  clients..class r
│ │ │ -00282950: 656d 6f76 655f 6f70 656e 6c64 6170 2d63  emove_openldap-c
│ │ │ -00282960: 6c69 656e 7473 207b 0a20 2070 6163 6b61  lients {.  packa
│ │ │ -00282970: 6765 207b 2027 6f70 656e 6c64 6170 2d63  ge { 'openldap-c
│ │ │ -00282980: 6c69 656e 7473 273a 0a20 2020 2065 6e73  lients':.    ens
│ │ │ -00282990: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -002829a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -00282a60: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00282a70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -00282b00: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00282b30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00282b50: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00282b60: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00282b80: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00282b90: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00282bb0: 6d65 3a20 2745 6e73 7572 6520 4c44 4150  me: 'Ensure LDAP
│ │ │ -00282bc0: 2063 6c69 656e 7420 6973 206e 6f74 2069   client is not i
│ │ │ -00282bd0: 6e73 7461 6c6c 6564 3a20 456e 7375 7265  nstalled: Ensure
│ │ │ -00282be0: 206f 7065 6e6c 6461 702d 636c 6965 6e74   openldap-client
│ │ │ -00282bf0: 7320 6973 2072 656d 6f76 6564 270a 2020  s is removed'.  
│ │ │ -00282c00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00282c10: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00282c20: 653a 206f 7065 6e6c 6461 702d 636c 6965  e: openldap-clie
│ │ │ -00282c30: 6e74 730a 2020 2020 7374 6174 653a 2061  nts.    state: a
│ │ │ -00282c40: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00282c50: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00282c60: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00282c70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00282c80: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -00282c90: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00282ca0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00282cb0: 202d 2070 6163 6b61 6765 5f6f 7065 6e6c   - package_openl
│ │ │ -00282cc0: 6461 702d 636c 6965 6e74 735f 7265 6d6f  dap-clients_remo
│ │ │ -00282cd0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

< │ │ │ +00282830: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00282840: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00282850: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00282860: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00282870: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00282880: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00282890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002828d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002828e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00282900: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00282910: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00282930: 2745 6e73 7572 6520 4c44 4150 2063 6c69 'Ensure LDAP cli │ │ │ +00282940: 656e 7420 6973 206e 6f74 2069 6e73 7461 ent is not insta │ │ │ +00282950: 6c6c 6564 3a20 456e 7375 7265 206f 7065 lled: Ensure ope │ │ │ +00282960: 6e6c 6461 702d 636c 6965 6e74 7320 6973 nldap-clients is │ │ │ +00282970: 2072 656d 6f76 6564 270a 2020 616e 7369 removed'. ansi │ │ │ +00282980: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +00282990: 6167 653a 0a20 2020 206e 616d 653a 206f age:. name: o │ │ │ +002829a0: 7065 6e6c 6461 702d 636c 6965 6e74 730a penldap-clients. │ │ │ +002829b0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +002829c0: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ +002829d0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +002829e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +002829f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +00282a00: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ +00282a10: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +00282a20: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +00282a30: 6163 6b61 6765 5f6f 7065 6e6c 6461 702d ackage_openldap- │ │ │ +00282a40: 636c 6965 6e74 735f 7265 6d6f 7665 640a clients_removed. │ │ │ +00282a50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediation Pup │ │ │ +00282b10: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00282b20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +00282bf0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00282c00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00282c60: 5f6f 7065 6e6c 6461 702d 636c 6965 6e74  _openldap-client
│ │ │ +00282c70: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ +00282c80: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ +00282c90: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00282ca0: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ +00282cb0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00282cc0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00282cd0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remedi │ │ │ -002844b0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002844c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002844d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ +00282bd0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00282be0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00282c20: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00282c30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00284570: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00284590: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002845c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00284550: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00284560: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00284580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002845a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002845b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002845f0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00284600: 6465 2072 656d 6f76 655f 6f70 656e 6c64 de remove_openld │ │ │ -00284610: 6170 2d73 6572 7665 7273 0a0a 636c 6173 ap-servers..clas │ │ │ -00284620: 7320 7265 6d6f 7665 5f6f 7065 6e6c 6461 s remove_openlda │ │ │ -00284630: 702d 7365 7276 6572 7320 7b0a 2020 7061 p-servers {. pa │ │ │ -00284640: 636b 6167 6520 7b20 276f 7065 6e6c 6461 ckage { 'openlda │ │ │ -00284650: 702d 7365 7276 6572 7327 3a0a 2020 2020 p-servers':. │ │ │ -00284660: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ -00284670: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ -00284690: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00284730: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00284740: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002847e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00284880: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00284890: 6c20 736c 6170 6420 5061 636b 6167 653a  l slapd Package:
│ │ │ -002848a0: 2045 6e73 7572 6520 6f70 656e 6c64 6170   Ensure openldap
│ │ │ -002848b0: 2d73 6572 7665 7273 2069 7320 7265 6d6f  -servers is remo
│ │ │ -002848c0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -002848d0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -002848e0: 2020 2020 6e61 6d65 3a20 6f70 656e 6c64      name: openld
│ │ │ -002848f0: 6170 2d73 6572 7665 7273 0a20 2020 2073  ap-servers.    s
│ │ │ -00284900: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00284910: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00284920: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00284930: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00284940: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00284950: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -00284960: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00284970: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00284980: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00284990: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002849a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002849b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002849c0: 2d20 7061 636b 6167 655f 6f70 656e 6c64  - package_openld
│ │ │ -002849d0: 6170 2d73 6572 7665 7273 5f72 656d 6f76  ap-servers_remov
│ │ │ -002849e0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002844b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +002844c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002847d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00284800: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00284810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00284850: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00284860: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00284550: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00284560: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00284580: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002845a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002845b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002845f0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00284600: 653a 2027 556e 696e 7374 616c 6c20 736c  e: 'Uninstall sl
│ │ │ +00284610: 6170 6420 5061 636b 6167 653a 2045 6e73  apd Package: Ens
│ │ │ +00284620: 7572 6520 6f70 656e 6c64 6170 2d73 6572  ure openldap-ser
│ │ │ +00284630: 7665 7273 2069 7320 7265 6d6f 7665 6427  vers is removed'
│ │ │ +00284640: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00284650: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00284660: 6e61 6d65 3a20 6f70 656e 6c64 6170 2d73  name: openldap-s
│ │ │ +00284670: 6572 7665 7273 0a20 2020 2073 7461 7465  ervers.    state
│ │ │ +00284680: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00284690: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002846a0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002846b0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002846c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002846d0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +002846e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002846f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00284700: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00284710: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +00284720: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00284730: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00284740: 636b 6167 655f 6f70 656e 6c64 6170 2d73  ckage_openldap-s
│ │ │ +00284750: 6572 7665 7273 5f72 656d 6f76 6564 0a3c  ervers_removed.<
│ │ │ +00284760: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00284810: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00284820: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00284900: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00284910: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00284960: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00284970: 6f70 656e 6c64 6170 2d73 6572 7665 7273  openldap-servers
│ │ │ +00284980: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6f  ..class remove_o
│ │ │ +00284990: 7065 6e6c 6461 702d 7365 7276 6572 7320  penldap-servers 
│ │ │ +002849a0: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ +002849b0: 7065 6e6c 6461 702d 7365 7276 6572 7327  penldap-servers'
│ │ │ +002849c0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +002849d0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +002849e0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 002849f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -00285800: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00285810: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -00285870: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -00285880: 6564 203d 205b 2273 6c61 7064 225d 0a3c  ed = ["slapd"].<
│ │ │ -00285890: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -00285940: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00285950: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +002848e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002848f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00284930: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00284940: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00285a30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00285a40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00285a90: 6e63 6c75 6465 2064 6973 6162 6c65 5f73  nclude disable_s
│ │ │ -00285aa0: 6c61 7064 0a0a 636c 6173 7320 6469 7361  lapd..class disa
│ │ │ -00285ab0: 626c 655f 736c 6170 6420 7b0a 2020 7365  ble_slapd {.  se
│ │ │ -00285ac0: 7276 6963 6520 7b27 736c 6170 6427 3a0a  rvice {'slapd':.
│ │ │ -00285ad0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -00285ae0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -00285af0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -00285b00: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -00285bc0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00285bd0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ -00285a10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00285a20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00285a60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00285a70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -00285c60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00285c90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00285cb0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00285cc0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00285ce0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00285cf0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00285d10: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00285d20: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00285d30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00285d40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00285d50: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00285d60: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00285d70: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00285d80: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00285d90: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00285da0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00285db0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00285dc0: 7365 7276 6963 655f 736c 6170 645f 6469  service_slapd_di
│ │ │ -00285dd0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -00285de0: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ -00285df0: 7665 7220 2873 6c61 7064 2920 2d20 4469  ver (slapd) - Di
│ │ │ -00285e00: 7361 626c 6520 7365 7276 6963 6520 736c  sable service sl
│ │ │ -00285e10: 6170 640a 2020 626c 6f63 6b3a 0a0a 2020  apd.  block:..  
│ │ │ -00285e20: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00285e30: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ -00285e40: 7064 2920 2d20 436f 6c6c 6563 7420 7379  pd) - Collect sy
│ │ │ -00285e50: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00285e60: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -00285e70: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -00285e80: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00285e90: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00285ea0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00285eb0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00285ec0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -00285ed0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -00285ee0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00285ef0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00285f00: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00285f10: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00285f20: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00285f30: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00285f40: 616d 653a 2044 6973 6162 6c65 204c 4441  ame: Disable LDA
│ │ │ -00285f50: 5020 5365 7276 6572 2028 736c 6170 6429  P Server (slapd)
│ │ │ -00285f60: 202d 2045 6e73 7572 6520 736c 6170 642e   - Ensure slapd.
│ │ │ -00285f70: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -00285f80: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -00285f90: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00285fa0: 2020 2020 206e 616d 653a 2073 6c61 7064       name: slapd
│ │ │ -00285fb0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -00285fc0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00285fd0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00285fe0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -00285ff0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00286000: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -00286010: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00286020: 6561 7263 6828 2273 6c61 7064 2e73 6572  earch("slapd.ser
│ │ │ -00286030: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00286040: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00286050: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00286060: 6973 7473 202d 2073 6c61 7064 2e73 6f63  ists - slapd.soc
│ │ │ -00286070: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -00286080: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00286090: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002860a0: 7374 2d75 6e69 742d 6669 6c65 7320 736c  st-unit-files sl
│ │ │ -002860b0: 6170 642e 736f 636b 6574 0a20 2020 2072  apd.socket.    r
│ │ │ -002860c0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -002860d0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -002860e0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -002860f0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -00286100: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00286110: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -00286120: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -00286130: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -00286140: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00286150: 6520 4c44 4150 2053 6572 7665 7220 2873  e LDAP Server (s
│ │ │ -00286160: 6c61 7064 2920 2d20 4469 7361 626c 6520  lapd) - Disable 
│ │ │ -00286170: 536f 636b 6574 2073 6c61 7064 0a20 2020  Socket slapd.   
│ │ │ -00286180: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00286190: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002861a0: 6e61 6d65 3a20 736c 6170 642e 736f 636b  name: slapd.sock
│ │ │ -002861b0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -002861c0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -002861d0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002861e0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -002861f0: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -00286200: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -00286210: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -00286220: 7263 6828 2273 6c61 7064 2e73 6f63 6b65  rch("slapd.socke
│ │ │ -00286230: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -00286240: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -00286250: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00286260: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00286270: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00286280: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00286290: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002862a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002862b0: 2020 2d20 7365 7276 6963 655f 736c 6170    - service_slap
│ │ │ -002862c0: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -002862d0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -002862e0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -002862f0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00286300: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00286310: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


Complexity │ │ │ +002858a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002858c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002858d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002858e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002858f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00285910: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00285940: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00285950: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00285960: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00285970: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00285980: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00285990: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002859a0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002859b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002859c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002859d0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002859e0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002859f0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00285a00: 5f73 6c61 7064 5f64 6973 6162 6c65 640a  _slapd_disabled.
│ │ │ +00285a10: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00285a20: 204c 4441 5020 5365 7276 6572 2028 736c   LDAP Server (sl
│ │ │ +00285a30: 6170 6429 202d 2044 6973 6162 6c65 2073  apd) - Disable s
│ │ │ +00285a40: 6572 7669 6365 2073 6c61 7064 0a20 2062  ervice slapd.  b
│ │ │ +00285a50: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +00285a60: 2044 6973 6162 6c65 204c 4441 5020 5365   Disable LDAP Se
│ │ │ +00285a70: 7276 6572 2028 736c 6170 6429 202d 2043  rver (slapd) - C
│ │ │ +00285a80: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +00285a90: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +00285aa0: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +00285ab0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00285ac0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00285ad0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00285ae0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00285af0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00285b00: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00285b10: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00285b20: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00285b30: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +00285b40: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +00285b50: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00285b60: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00285b70: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00285b80: 7361 626c 6520 4c44 4150 2053 6572 7665  sable LDAP Serve
│ │ │ +00285b90: 7220 2873 6c61 7064 2920 2d20 456e 7375  r (slapd) - Ensu
│ │ │ +00285ba0: 7265 2073 6c61 7064 2e73 6572 7669 6365  re slapd.service
│ │ │ +00285bb0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00285bc0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00285bd0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00285be0: 6d65 3a20 736c 6170 642e 7365 7276 6963  me: slapd.servic
│ │ │ +00285bf0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00285c00: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +00285c10: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00285c20: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00285c30: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00285c40: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00285c50: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00285c60: 736c 6170 642e 7365 7276 6963 6522 2c20  slapd.service", 
│ │ │ +00285c70: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00285c80: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00285c90: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00285ca0: 736c 6170 642e 736f 636b 6574 0a20 2020  slapd.socket.   
│ │ │ +00285cb0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00285cc0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00285cd0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00285ce0: 2d66 696c 6573 2073 6c61 7064 2e73 6f63  -files slapd.soc
│ │ │ +00285cf0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00285d00: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00285d10: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00285d20: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00285d30: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00285d40: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00285d50: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00285d60: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00285d70: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00285d80: 653a 2044 6973 6162 6c65 204c 4441 5020  e: Disable LDAP 
│ │ │ +00285d90: 5365 7276 6572 2028 736c 6170 6429 202d  Server (slapd) -
│ │ │ +00285da0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +00285db0: 736c 6170 640a 2020 2020 616e 7369 626c  slapd.    ansibl
│ │ │ +00285dc0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00285dd0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +00285de0: 6c61 7064 2e73 6f63 6b65 740a 2020 2020  lapd.socket.    
│ │ │ +00285df0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00285e00: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00285e10: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +00285e20: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00285e30: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +00285e40: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00285e50: 6573 2069 7320 7365 6172 6368 2822 736c  es is search("sl
│ │ │ +00285e60: 6170 642e 736f 636b 6574 222c 206d 756c  apd.socket", mul
│ │ │ +00285e70: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +00285e80: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00285e90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00285ea0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00285eb0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00285ec0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00285ed0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00285ee0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00285ef0: 7669 6365 5f73 6c61 7064 5f64 6973 6162  vice_slapd_disab
│ │ │ +00285f00: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00285f10: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00285f20: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00285f30: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00285f40: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00285f50: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00286000: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00286010: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +002860f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00286100: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00286150: 6e63 6c75 6465 2064 6973 6162 6c65 5f73  nclude disable_s
│ │ │ +00286160: 6c61 7064 0a0a 636c 6173 7320 6469 7361  lapd..class disa
│ │ │ +00286170: 626c 655f 736c 6170 6420 7b0a 2020 7365  ble_slapd {.  se
│ │ │ +00286180: 7276 6963 6520 7b27 736c 6170 6427 3a0a  rvice {'slapd':.
│ │ │ +00286190: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +002861a0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +002861b0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +002861c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +00286280: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00286290: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +002862a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +002862f0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00286300: 735d 0a6d 6173 6b65 6420 3d20 5b22 736c s].masked = ["sl │ │ │ +00286310: 6170 6422 5d0a 3c2f 636f 6465 3e3c 2f70 apd"].

│ │ │ -0028a480: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0028a490: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +002860d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002860e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00286120: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00286130: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0028a570: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0028a580: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0028a5d0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0028a5e0: 7270 6362 696e 640a 0a63 6c61 7373 2072  rpcbind..class r
│ │ │ -0028a5f0: 656d 6f76 655f 7270 6362 696e 6420 7b0a  emove_rpcbind {.
│ │ │ -0028a600: 2020 7061 636b 6167 6520 7b20 2772 7063    package { 'rpc
│ │ │ -0028a610: 6269 6e64 273a 0a20 2020 2065 6e73 7572  bind':.    ensur
│ │ │ -0028a620: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0028a630: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0028a640: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -0028a6f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ -0028a700: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -0028a710: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ -0028a550: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0028a560: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0028a5a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0028a5b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -0028a7b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0028a7d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0028a800: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0028a790: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0028a7a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0028a7c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0028a7e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0028a7f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0028a830: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0028a840: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0028a850: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0028a860: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0028a870: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0028a880: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -0028a890: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -0028a8a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0028a8b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0028a8c0: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ -0028a8d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -0028a8e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0028a8f0: 6765 5f72 7063 6269 6e64 5f72 656d 6f76 ge_rpcbind_remov │ │ │ -0028a900: 6564 0a0a 2d20 6e61 6d65 3a20 2755 6e69 ed..- name: 'Uni │ │ │ -0028a910: 6e73 7461 6c6c 2072 7063 6269 6e64 2050 nstall rpcbind P │ │ │ -0028a920: 6163 6b61 6765 3a20 456e 7375 7265 2072 ackage: Ensure r │ │ │ -0028a930: 7063 6269 6e64 2069 7320 7265 6d6f 7665 pcbind is remove │ │ │ -0028a940: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -0028a950: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -0028a960: 2020 6e61 6d65 3a20 7270 6362 696e 640a name: rpcbind. │ │ │ -0028a970: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -0028a980: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ -0028a990: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -0028a9a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -0028a9b0: 7327 0a20 2074 6167 733a 0a20 202d 2064 s'. tags:. - d │ │ │ -0028a9c0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -0028a9d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0028a9e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0028a9f0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365 ption. - low_se │ │ │ -0028aa00: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -0028aa10: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0028aa20: 7061 636b 6167 655f 7270 6362 696e 645f package_rpcbind_ │ │ │ -0028aa30: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +0028a480: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +0028a490: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +0028a4a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +0028a570: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0028a580: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0028a5e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0028a5f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0028a600: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0028a610: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0028a620: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0028a630: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0028a640: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0028a650: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +0028a660: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0028a670: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0028a680: 2d20 7061 636b 6167 655f 7270 6362 696e  - package_rpcbin
│ │ │ +0028a690: 645f 7265 6d6f 7665 640a 0a2d 206e 616d  d_removed..- nam
│ │ │ +0028a6a0: 653a 2027 556e 696e 7374 616c 6c20 7270  e: 'Uninstall rp
│ │ │ +0028a6b0: 6362 696e 6420 5061 636b 6167 653a 2045  cbind Package: E
│ │ │ +0028a6c0: 6e73 7572 6520 7270 6362 696e 6420 6973  nsure rpcbind is
│ │ │ +0028a6d0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0028a6e0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0028a6f0: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +0028a700: 7063 6269 6e64 0a20 2020 2073 7461 7465  pcbind.    state
│ │ │ +0028a710: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ +0028a720: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0028a730: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0028a740: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0028a750: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0028a760: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0028a770: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0028a780: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0028a790: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +0028a7a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0028a7b0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ +0028a7c0: 7063 6269 6e64 5f72 656d 6f76 6564 0a3c  pcbind_removed.<
│ │ │ +0028a7d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0028a880: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0028a890: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +0028a550: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0028a560: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0028a5a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0028a5b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0028a970: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028a980: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028a9d0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0028a9e0: 7270 6362 696e 640a 0a63 6c61 7373 2072  rpcbind..class r
│ │ │ +0028a9f0: 656d 6f76 655f 7270 6362 696e 6420 7b0a  emove_rpcbind {.
│ │ │ +0028aa00: 2020 7061 636b 6167 6520 7b20 2772 7063    package { 'rpc
│ │ │ +0028aa10: 6269 6e64 273a 0a20 2020 2065 6e73 7572  bind':.    ensur
│ │ │ +0028aa20: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +0028aa30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  0028aa40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Rem
│ │ │ -0028bb40: 6564 6961 7469 6f6e 204f 5342 7569 6c64  ediation OSBuild
│ │ │ -0028bb50: 2042 6c75 6570 7269 6e74 2073 6e69 7070   Blueprint snipp
│ │ │ -0028bb60: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ -0028bba0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0028bbb0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0028bbc0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0028bbd0: 7270 6362 696e 6422 5d0a 3c2f 636f 6465 rpcbind"].
Remed │ │ │ -0028bc90: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0028bca0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +0028a950: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028a960: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028a9a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028a9b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -0028bd30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0028bd40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0028bd60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0028bd80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0028bd90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0028bdd0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0028bde0: 6520 6469 7361 626c 655f 7270 6362 696e e disable_rpcbin │ │ │ -0028bdf0: 640a 0a63 6c61 7373 2064 6973 6162 6c65 d..class disable │ │ │ -0028be00: 5f72 7063 6269 6e64 207b 0a20 2073 6572 _rpcbind {. ser │ │ │ -0028be10: 7669 6365 207b 2772 7063 6269 6e64 273a vice {'rpcbind': │ │ │ -0028be20: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ -0028be30: 3b20 6661 6c73 652c 0a20 2020 2065 6e73 ; false,. ens │ │ │ -0028be40: 7572 6520 3d26 6774 3b20 2773 746f 7070 ure => 'stopp │ │ │ -0028be50: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Reme │ │ │ -0028bf10: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0028bf20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0028bf30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0028bfd0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0028c020: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0028c060: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0028c070: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0028c080: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0028c090: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0028c0a0: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0028c0b0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0028c0c0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0028c0d0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0028c0e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0028c0f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0028c100: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0028c110: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0028c120: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0028c130: 2020 2d20 7365 7276 6963 655f 7270 6362    - service_rpcb
│ │ │ -0028c140: 696e 645f 6469 7361 626c 6564 0a0a 2d20  ind_disabled..- 
│ │ │ -0028c150: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ -0028c160: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ -0028c170: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -0028c180: 7270 6362 696e 640a 2020 626c 6f63 6b3a  rpcbind.  block:
│ │ │ -0028c190: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0028c1a0: 626c 6520 7270 6362 696e 6420 5365 7276  ble rpcbind Serv
│ │ │ -0028c1b0: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -0028c1c0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -0028c1d0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -0028c1e0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -0028c1f0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0028c200: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0028c210: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -0028c220: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -0028c230: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -0028c240: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -0028c250: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0028c260: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0028c270: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0028c280: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0028c290: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0028c2a0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0028c2b0: 616d 653a 2044 6973 6162 6c65 2072 7063  ame: Disable rpc
│ │ │ -0028c2c0: 6269 6e64 2053 6572 7669 6365 202d 2045  bind Service - E
│ │ │ -0028c2d0: 6e73 7572 6520 7270 6362 696e 642e 7365  nsure rpcbind.se
│ │ │ -0028c2e0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0028c2f0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0028c300: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0028c310: 2020 206e 616d 653a 2072 7063 6269 6e64     name: rpcbind
│ │ │ -0028c320: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -0028c330: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0028c340: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0028c350: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -0028c360: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0028c370: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -0028c380: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0028c390: 6561 7263 6828 2272 7063 6269 6e64 2e73  earch("rpcbind.s
│ │ │ -0028c3a0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0028c3b0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0028c3c0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0028c3d0: 4578 6973 7473 202d 2072 7063 6269 6e64  Exists - rpcbind
│ │ │ -0028c3e0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -0028c3f0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0028c400: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0028c410: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0028c420: 7320 7270 6362 696e 642e 736f 636b 6574  s rpcbind.socket
│ │ │ -0028c430: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0028c440: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0028c450: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0028c460: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0028c470: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -0028c480: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -0028c490: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0028c4a0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0028c4b0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0028c4c0: 4469 7361 626c 6520 7270 6362 696e 6420  Disable rpcbind 
│ │ │ -0028c4d0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0028c4e0: 6520 536f 636b 6574 2072 7063 6269 6e64  e Socket rpcbind
│ │ │ -0028c4f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0028c500: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0028c510: 2020 2020 6e61 6d65 3a20 7270 6362 696e      name: rpcbin
│ │ │ -0028c520: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0028c530: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0028c540: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0028c550: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0028c560: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0028c570: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0028c580: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0028c590: 6973 2073 6561 7263 6828 2272 7063 6269  is search("rpcbi
│ │ │ -0028c5a0: 6e64 2e73 6f63 6b65 7422 2c20 6d75 6c74  nd.socket", mult
│ │ │ -0028c5b0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -0028c5c0: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -0028c5d0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -0028c5e0: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -0028c5f0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0028c600: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0028c610: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0028c620: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0028c630: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0028c640: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0028c650: 6572 7669 6365 5f72 7063 6269 6e64 5f64  ervice_rpcbind_d
│ │ │ -0028c660: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -0028c670: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -0028c680: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -0028c690: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0028c6a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0028c6b0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +0028bb40: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +0028bb50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0028bb60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ -0028bfb0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0028bfe0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0028c000: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0028c010: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0028c030: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0028c040: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0028bbf0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028bc00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0028bc50: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0028bc90: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0028bca0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0028bcb0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0028bcc0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0028bcd0: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ +0028bce0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0028bcf0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +0028bd00: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0028bd10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0028bd20: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0028bd30: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +0028bd40: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +0028bd50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0028bd60: 0a20 202d 2073 6572 7669 6365 5f72 7063  .  - service_rpc
│ │ │ +0028bd70: 6269 6e64 5f64 6973 6162 6c65 640a 0a2d  bind_disabled..-
│ │ │ +0028bd80: 206e 616d 653a 2044 6973 6162 6c65 2072   name: Disable r
│ │ │ +0028bd90: 7063 6269 6e64 2053 6572 7669 6365 202d  pcbind Service -
│ │ │ +0028bda0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0028bdb0: 2072 7063 6269 6e64 0a20 2062 6c6f 636b   rpcbind.  block
│ │ │ +0028bdc0: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +0028bdd0: 6162 6c65 2072 7063 6269 6e64 2053 6572  able rpcbind Ser
│ │ │ +0028bde0: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +0028bdf0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +0028be00: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +0028be10: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +0028be20: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +0028be30: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +0028be40: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +0028be50: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +0028be60: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +0028be70: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +0028be80: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +0028be90: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +0028bea0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +0028beb0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +0028bec0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +0028bed0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +0028bee0: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ +0028bef0: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ +0028bf00: 456e 7375 7265 2072 7063 6269 6e64 2e73  Ensure rpcbind.s
│ │ │ +0028bf10: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +0028bf20: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0028bf30: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +0028bf40: 2020 2020 6e61 6d65 3a20 7270 6362 696e      name: rpcbin
│ │ │ +0028bf50: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ +0028bf60: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0028bf70: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0028bf80: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +0028bf90: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +0028bfa0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0028bfb0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0028bfc0: 7365 6172 6368 2822 7270 6362 696e 642e  search("rpcbind.
│ │ │ +0028bfd0: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +0028bfe0: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +0028bff0: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +0028c000: 2045 7869 7374 7320 2d20 7270 6362 696e   Exists - rpcbin
│ │ │ +0028c010: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ +0028c020: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +0028c030: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +0028c040: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +0028c050: 6573 2072 7063 6269 6e64 2e73 6f63 6b65  es rpcbind.socke
│ │ │ +0028c060: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +0028c070: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0028c080: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0028c090: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0028c0a0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +0028c0b0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +0028c0c0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0028c0d0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0028c0e0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0028c0f0: 2044 6973 6162 6c65 2072 7063 6269 6e64   Disable rpcbind
│ │ │ +0028c100: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +0028c110: 6c65 2053 6f63 6b65 7420 7270 6362 696e  le Socket rpcbin
│ │ │ +0028c120: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +0028c130: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0028c140: 2020 2020 206e 616d 653a 2072 7063 6269       name: rpcbi
│ │ │ +0028c150: 6e64 2e73 6f63 6b65 740a 2020 2020 2020  nd.socket.      
│ │ │ +0028c160: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0028c170: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0028c180: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +0028c190: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +0028c1a0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0028c1b0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0028c1c0: 2069 7320 7365 6172 6368 2822 7270 6362   is search("rpcb
│ │ │ +0028c1d0: 696e 642e 736f 636b 6574 222c 206d 756c  ind.socket", mul
│ │ │ +0028c1e0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +0028c1f0: 6167 733a 0a20 202d 2050 4349 2d44 5353  ags:.  - PCI-DSS
│ │ │ +0028c200: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +0028c210: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +0028c220: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0028c230: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0028c240: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0028c250: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0028c260: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0028c270: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0028c280: 7365 7276 6963 655f 7270 6362 696e 645f  service_rpcbind_
│ │ │ +0028c290: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +0028c2a0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +0028c2b0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +0028c2c0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0028c2d0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0028c2e0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +0028c3a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0028c3b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +0028c470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028c480: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +0028bbe0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0028bc10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0028bc20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0028bc60: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0028bc70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +0028c440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0028c460: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0028c490: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0028c4b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0028c4f0: 626c 655f 7270 6362 696e 640a 0a63 6c61  ble_rpcbind..cla
│ │ │ +0028c500: 7373 2064 6973 6162 6c65 5f72 7063 6269  ss disable_rpcbi
│ │ │ +0028c510: 6e64 207b 0a20 2073 6572 7669 6365 207b  nd {.  service {
│ │ │ +0028c520: 2772 7063 6269 6e64 273a 0a20 2020 2065  'rpcbind':.    e
│ │ │ +0028c530: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +0028c540: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +0028c550: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +0028c560: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ +0028c620: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0028c630: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0028c640: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +0028c690: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +0028c6a0: 736b 6564 203d 205b 2272 7063 6269 6e64  sked = ["rpcbind
│ │ │ +0028c6b0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 0028c6c0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
│ │ │ -0028e2b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0028e2c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0028e2d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ -0028e320: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -0028e330: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -0028e340: 205b 226e 6673 2d73 6572 7665 7222 5d0a   ["nfs-server"].
│ │ │ -0028e350: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -0028e410: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0028e420: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -0028e4f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0028e500: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0028e550: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -0028e560: 6e66 732d 7365 7276 6572 0a0a 636c 6173  nfs-server..clas
│ │ │ -0028e570: 7320 6469 7361 626c 655f 6e66 732d 7365  s disable_nfs-se
│ │ │ -0028e580: 7276 6572 207b 0a20 2073 6572 7669 6365  rver {.  service
│ │ │ -0028e590: 207b 276e 6673 2d73 6572 7665 7227 3a0a   {'nfs-server':.
│ │ │ -0028e5a0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -0028e5b0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -0028e5c0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -0028e5d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -0028e690: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0028e6a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ -0028e4d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0028e4e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0028e520: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0028e530: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0028e730: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0028e760: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0028e780: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0028e790: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0028e7b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0028e7c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0028e7e0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0028e7f0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0028e800: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0028e810: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0028e820: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0028e830: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0028e840: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0028e850: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -0028e860: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -0028e870: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0028e880: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0028e890: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0028e8a0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -0028e8b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0028e8c0: 2020 2d20 7365 7276 6963 655f 6e66 735f    - service_nfs_
│ │ │ -0028e8d0: 6469 7361 626c 6564 0a20 202d 2075 6e6b  disabled.  - unk
│ │ │ -0028e8e0: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d  nown_severity..-
│ │ │ -0028e8f0: 206e 616d 653a 2044 6973 6162 6c65 204e   name: Disable N
│ │ │ -0028e900: 6574 776f 726b 2046 696c 6520 5379 7374  etwork File Syst
│ │ │ -0028e910: 656d 2028 6e66 7329 202d 2044 6973 6162  em (nfs) - Disab
│ │ │ -0028e920: 6c65 2073 6572 7669 6365 206e 6673 2d73  le service nfs-s
│ │ │ -0028e930: 6572 7665 720a 2020 626c 6f63 6b3a 0a0a  erver.  block:..
│ │ │ -0028e940: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0028e950: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ -0028e960: 7973 7465 6d20 286e 6673 2920 2d20 436f  ystem (nfs) - Co
│ │ │ -0028e970: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -0028e980: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -0028e990: 6e0a 2020 2020 2020 7468 6520 5379 7374  n.      the Syst
│ │ │ -0028e9a0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -0028e9b0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -0028e9c0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -0028e9d0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -0028e9e0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -0028e9f0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -0028ea00: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0028ea10: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0028ea20: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0028ea30: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0028ea40: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -0028ea50: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -0028ea60: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -0028ea70: 653a 2044 6973 6162 6c65 204e 6574 776f  e: Disable Netwo
│ │ │ -0028ea80: 726b 2046 696c 6520 5379 7374 656d 2028  rk File System (
│ │ │ -0028ea90: 6e66 7329 202d 2045 6e73 7572 6520 6e66  nfs) - Ensure nf
│ │ │ -0028eaa0: 732d 7365 7276 6572 2e73 6572 7669 6365  s-server.service
│ │ │ -0028eab0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -0028eac0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0028ead0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0028eae0: 6d65 3a20 6e66 732d 7365 7276 6572 2e73  me: nfs-server.s
│ │ │ -0028eaf0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -0028eb00: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0028eb10: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0028eb20: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0028eb30: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -0028eb40: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -0028eb50: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0028eb60: 7263 6828 226e 6673 2d73 6572 7665 722e  rch("nfs-server.
│ │ │ -0028eb70: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -0028eb80: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -0028eb90: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -0028eba0: 2045 7869 7374 7320 2d20 6e66 732d 7365   Exists - nfs-se
│ │ │ -0028ebb0: 7276 6572 2e73 6f63 6b65 740a 2020 2020  rver.socket.    
│ │ │ -0028ebc0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0028ebd0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0028ebe0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0028ebf0: 6669 6c65 7320 6e66 732d 7365 7276 6572  files nfs-server
│ │ │ -0028ec00: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0028ec10: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0028ec20: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0028ec30: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0028ec40: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0028ec50: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0028ec60: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0028ec70: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0028ec80: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0028ec90: 206e 616d 653a 2044 6973 6162 6c65 204e   name: Disable N
│ │ │ -0028eca0: 6574 776f 726b 2046 696c 6520 5379 7374  etwork File Syst
│ │ │ -0028ecb0: 656d 2028 6e66 7329 202d 2044 6973 6162  em (nfs) - Disab
│ │ │ -0028ecc0: 6c65 2053 6f63 6b65 7420 6e66 732d 7365  le Socket nfs-se
│ │ │ -0028ecd0: 7276 6572 0a20 2020 2061 6e73 6962 6c65  rver.    ansible
│ │ │ -0028ece0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0028ecf0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e66  :.      name: nf
│ │ │ -0028ed00: 732d 7365 7276 6572 2e73 6f63 6b65 740a  s-server.socket.
│ │ │ -0028ed10: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0028ed20: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -0028ed30: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0028ed40: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0028ed50: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -0028ed60: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -0028ed70: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -0028ed80: 2822 6e66 732d 7365 7276 6572 2e73 6f63  ("nfs-server.soc
│ │ │ -0028ed90: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -0028eda0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -0028edb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0028edc0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0028edd0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0028ede0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0028edf0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0028ee00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0028ee10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0028ee20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0028ee30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0028ee40: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0028ee50: 655f 6e66 735f 6469 7361 626c 6564 0a20  e_nfs_disabled. 
│ │ │ -0028ee60: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0028ee70: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ -0028ee80: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ -0028ee90: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0028eea0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0028eeb0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0028e2b0: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +0028e2c0: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +0028e2d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
Complexity: │ │ │ +0028e3a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0028e3b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0028e410: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0028e420: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0028e430: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0028e440: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0028e450: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0028e460: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0028e470: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0028e480: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0028e490: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0028e4a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0028e4b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0028e4c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0028e4d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0028e4e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0028e4f0: 5f6e 6673 5f64 6973 6162 6c65 640a 2020  _nfs_disabled.  
│ │ │ +0028e500: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0028e510: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ +0028e520: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ +0028e530: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ +0028e540: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +0028e550: 6e66 732d 7365 7276 6572 0a20 2062 6c6f  nfs-server.  blo
│ │ │ +0028e560: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +0028e570: 6973 6162 6c65 204e 6574 776f 726b 2046  isable Network F
│ │ │ +0028e580: 696c 6520 5379 7374 656d 2028 6e66 7329  ile System (nfs)
│ │ │ +0028e590: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +0028e5a0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +0028e5b0: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ +0028e5c0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +0028e5d0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +0028e5e0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +0028e5f0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +0028e600: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +0028e610: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0028e620: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +0028e630: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0028e640: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0028e650: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +0028e660: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0028e670: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0028e680: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0028e690: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0028e6a0: 4e65 7477 6f72 6b20 4669 6c65 2053 7973  Network File Sys
│ │ │ +0028e6b0: 7465 6d20 286e 6673 2920 2d20 456e 7375  tem (nfs) - Ensu
│ │ │ +0028e6c0: 7265 206e 6673 2d73 6572 7665 722e 7365  re nfs-server.se
│ │ │ +0028e6d0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +0028e6e0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0028e6f0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0028e700: 2020 206e 616d 653a 206e 6673 2d73 6572     name: nfs-ser
│ │ │ +0028e710: 7665 722e 7365 7276 6963 650a 2020 2020  ver.service.    
│ │ │ +0028e720: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0028e730: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0028e740: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +0028e750: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0028e760: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0028e770: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0028e780: 7320 7365 6172 6368 2822 6e66 732d 7365  s search("nfs-se
│ │ │ +0028e790: 7276 6572 2e73 6572 7669 6365 222c 206d  rver.service", m
│ │ │ +0028e7a0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +0028e7b0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +0028e7c0: 6f63 6b65 7420 4578 6973 7473 202d 206e  ocket Exists - n
│ │ │ +0028e7d0: 6673 2d73 6572 7665 722e 736f 636b 6574  fs-server.socket
│ │ │ +0028e7e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0028e7f0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0028e800: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0028e810: 756e 6974 2d66 696c 6573 206e 6673 2d73  unit-files nfs-s
│ │ │ +0028e820: 6572 7665 722e 736f 636b 6574 0a20 2020  erver.socket.   
│ │ │ +0028e830: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +0028e840: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +0028e850: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0028e860: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0028e870: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +0028e880: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +0028e890: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0028e8a0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0028e8b0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0028e8c0: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ +0028e8d0: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ +0028e8e0: 4469 7361 626c 6520 536f 636b 6574 206e  Disable Socket n
│ │ │ +0028e8f0: 6673 2d73 6572 7665 720a 2020 2020 616e  fs-server.    an
│ │ │ +0028e900: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0028e910: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0028e920: 653a 206e 6673 2d73 6572 7665 722e 736f  e: nfs-server.so
│ │ │ +0028e930: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +0028e940: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0028e950: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0028e960: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0028e970: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +0028e980: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +0028e990: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0028e9a0: 6561 7263 6828 226e 6673 2d73 6572 7665  earch("nfs-serve
│ │ │ +0028e9b0: 722e 736f 636b 6574 222c 206d 756c 7469  r.socket", multi
│ │ │ +0028e9c0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +0028e9d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0028e9e0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0028e9f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0028ea00: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0028ea10: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0028ea20: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0028ea30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0028ea40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0028ea50: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0028ea60: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0028ea70: 6572 7669 6365 5f6e 6673 5f64 6973 6162  ervice_nfs_disab
│ │ │ +0028ea80: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0028ea90: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0028eaa0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0028eab0: 7479 0a20 2077 6865 6e3a 2027 226c 696e  ty.  when: '"lin
│ │ │ +0028eac0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0028ead0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0028eae0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +0028eba0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0028ebb0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +0028ec70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028ec80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +0028e380: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0028e390: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0028e3d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0028e3e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +0028ec40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0028ec60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0028ec90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0028ecb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0028ecf0: 626c 655f 6e66 732d 7365 7276 6572 0a0a  ble_nfs-server..
│ │ │ +0028ed00: 636c 6173 7320 6469 7361 626c 655f 6e66  class disable_nf
│ │ │ +0028ed10: 732d 7365 7276 6572 207b 0a20 2073 6572  s-server {.  ser
│ │ │ +0028ed20: 7669 6365 207b 276e 6673 2d73 6572 7665  vice {'nfs-serve
│ │ │ +0028ed30: 7227 3a0a 2020 2020 656e 6162 6c65 203d  r':.    enable =
│ │ │ +0028ed40: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +0028ed50: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +0028ed60: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +0028ee20: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0028ee30: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0028ee40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0028ee50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +0028ee90: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +0028eea0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +0028eeb0: 5b22 6e66 732d 7365 7276 6572 225d 0a3c  ["nfs-server"].<
│ │ │  0028eec0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediati │ │ │ -0028fd20: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0028fd30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0028fdb0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0028fdc0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0028fdd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0028fe10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0028fe20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0028fe40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0028fe50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0028fe70: 7265 6d6f 7665 5f6e 6673 2d6b 6572 6e65  remove_nfs-kerne
│ │ │ -0028fe80: 6c2d 7365 7276 6572 0a0a 636c 6173 7320  l-server..class 
│ │ │ -0028fe90: 7265 6d6f 7665 5f6e 6673 2d6b 6572 6e65  remove_nfs-kerne
│ │ │ -0028fea0: 6c2d 7365 7276 6572 207b 0a20 2070 6163  l-server {.  pac
│ │ │ -0028feb0: 6b61 6765 207b 2027 6e66 732d 6b65 726e  kage { 'nfs-kern
│ │ │ -0028fec0: 656c 2d73 6572 7665 7227 3a0a 2020 2020  el-server':.    
│ │ │ -0028fed0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -0028fee0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -0028ff00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -0028ffa0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0028ffb0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00290050: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002900f0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00290100: 6c20 6e66 732d 6b65 726e 656c 2d73 6572  l nfs-kernel-ser
│ │ │ -00290110: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -00290120: 7572 6520 6e66 732d 6b65 726e 656c 2d73  ure nfs-kernel-s
│ │ │ -00290130: 6572 7665 7220 6973 2072 656d 6f76 6564  erver is removed
│ │ │ -00290140: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00290150: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00290160: 206e 616d 653a 206e 6673 2d6b 6572 6e65   name: nfs-kerne
│ │ │ -00290170: 6c2d 7365 7276 6572 0a20 2020 2073 7461  l-server.    sta
│ │ │ -00290180: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00290190: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002901a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002901b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002901c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002901d0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -002901e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002901f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00290200: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ -00290210: 725f 7265 6d6f 7665 640a 3c2f 636f 6465  r_removed.
< │ │ │ +0028fd70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0028fd80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0028fd90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0028fda0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0028fdb0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0028fe40: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0028fe50: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -00290040: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00290070: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00290080: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002900c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002900d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0028fdc0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0028fdd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0028fe10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0028fe20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0028fe70: 2755 6e69 6e73 7461 6c6c 206e 6673 2d6b 'Uninstall nfs-k │ │ │ +0028fe80: 6572 6e65 6c2d 7365 7276 6572 2050 6163 ernel-server Pac │ │ │ +0028fe90: 6b61 6765 3a20 456e 7375 7265 206e 6673 kage: Ensure nfs │ │ │ +0028fea0: 2d6b 6572 6e65 6c2d 7365 7276 6572 2069 -kernel-server i │ │ │ +0028feb0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ +0028fec0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +0028fed0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +0028fee0: 6e66 732d 6b65 726e 656c 2d73 6572 7665 nfs-kernel-serve │ │ │ +0028fef0: 720a 2020 2020 7374 6174 653a 2061 6273 r. state: abs │ │ │ +0028ff00: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ +0028ff10: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +0028ff20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0028ff30: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0028ff40: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73 uption. - low_s │ │ │ +0028ff50: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +0028ff60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +0028ff70: 2070 6163 6b61 6765 5f6e 6673 2d6b 6572 package_nfs-ker │ │ │ +0028ff80: 6e65 6c2d 7365 7276 6572 5f72 656d 6f76 nel-server_remov │ │ │ +0028ff90: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed.
│ │ │ +0028ffa0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +00290050: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00290060: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +002900f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00290110: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00290130: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00290160: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00290170: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +002901a0: 6f76 655f 6e66 732d 6b65 726e 656c 2d73  ove_nfs-kernel-s
│ │ │ +002901b0: 6572 7665 720a 0a63 6c61 7373 2072 656d  erver..class rem
│ │ │ +002901c0: 6f76 655f 6e66 732d 6b65 726e 656c 2d73  ove_nfs-kernel-s
│ │ │ +002901d0: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ +002901e0: 6520 7b20 276e 6673 2d6b 6572 6e65 6c2d  e { 'nfs-kernel-
│ │ │ +002901f0: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ +00290200: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00290210: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation │ │ │ -00292450: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00292460: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].
│ │ │ -002924c0: 6e61 6d65 203d 2022 6368 726f 6e79 220a  name = "chrony".
│ │ │ -002924d0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
R │ │ │ -00292590: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002925a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -00292640: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -002926e0: 636c 7564 6520 696e 7374 616c 6c5f 6368  clude install_ch
│ │ │ -002926f0: 726f 6e79 0a0a 636c 6173 7320 696e 7374  rony..class inst
│ │ │ -00292700: 616c 6c5f 6368 726f 6e79 207b 0a20 2070  all_chrony {.  p
│ │ │ -00292710: 6163 6b61 6765 207b 2027 6368 726f 6e79  ackage { 'chrony
│ │ │ -00292720: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00292730: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -00292740: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ -00292800: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00292810: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00292820: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00292830: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00292840: 7365 2220 6964 3d22 6964 3130 3634 223e se" id="id1064"> │ │ │ -00292850: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -00292630: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00292660: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00292670: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002926b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -002926c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002928c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002928e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00292910: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00292930: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -002928a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002928b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002928f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00292900: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00292950: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00292960: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00292970: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00292980: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00292990: 6773 3a0a 2020 2d20 5043 492d 4453 532d gs:. - PCI-DSS- │ │ │ -002929a0: 5265 712d 3130 2e34 0a20 202d 2050 4349 Req-10.4. - PCI │ │ │ -002929b0: 2d44 5353 7634 2d31 302e 360a 2020 2d20 -DSSv4-10.6. - │ │ │ -002929c0: 5043 492d 4453 5376 342d 3130 2e36 2e31 PCI-DSSv4-10.6.1 │ │ │ -002929d0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ -002929e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -002929f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00292a00: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00292a10: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00292a20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00292a30: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -00292a40: 6368 726f 6e79 5f69 6e73 7461 6c6c 6564 chrony_installed │ │ │ -00292a50: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ -00292a60: 2063 6872 6f6e 7920 6973 2069 6e73 7461 chrony is insta │ │ │ -00292a70: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62 lled. ansible.b │ │ │ -00292a80: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00292a90: 2020 2020 6e61 6d65 3a20 6368 726f 6e79 name: chrony │ │ │ -00292aa0: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ -00292ab0: 656e 740a 2020 7768 656e 3a20 2722 6c69 ent. when: '"li │ │ │ -00292ac0: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -00292ad0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -00292ae0: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -00292af0: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -00292b00: 340a 2020 2d20 5043 492d 4453 5376 342d 4. - PCI-DSSv4- │ │ │ -00292b10: 3130 2e36 0a20 202d 2050 4349 2d44 5353 10.6. - PCI-DSS │ │ │ -00292b20: 7634 2d31 302e 362e 310a 2020 2d20 656e v4-10.6.1. - en │ │ │ -00292b30: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -00292b40: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -00292b50: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -00292b60: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -00292b70: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -00292b80: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -00292b90: 2070 6163 6b61 6765 5f63 6872 6f6e 795f package_chrony_ │ │ │ -00292ba0: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
< │ │ │ +002924e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002924f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00292510: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00292520: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00292540: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00292560: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00292590: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002925a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002925b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002925c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002925d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002925e0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +002925f0: 2d31 302e 340a 2020 2d20 5043 492d 4453  -10.4.  - PCI-DS
│ │ │ +00292600: 5376 342d 3130 2e36 0a20 202d 2050 4349  Sv4-10.6.  - PCI
│ │ │ +00292610: 2d44 5353 7634 2d31 302e 362e 310a 2020  -DSSv4-10.6.1.  
│ │ │ +00292620: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00292630: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00292640: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00292650: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00292660: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00292670: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00292680: 0a20 202d 2070 6163 6b61 6765 5f63 6872  .  - package_chr
│ │ │ +00292690: 6f6e 795f 696e 7374 616c 6c65 640a 0a2d  ony_installed..-
│ │ │ +002926a0: 206e 616d 653a 2045 6e73 7572 6520 6368   name: Ensure ch
│ │ │ +002926b0: 726f 6e79 2069 7320 696e 7374 616c 6c65  rony is installe
│ │ │ +002926c0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +002926d0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002926e0: 206e 616d 653a 2063 6872 6f6e 790a 2020   name: chrony.  
│ │ │ +002926f0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00292700: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00292710: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00292720: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00292730: 270a 2020 7461 6773 3a0a 2020 2d20 5043  '.  tags:.  - PC
│ │ │ +00292740: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +00292750: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00292760: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ +00292770: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ +00292780: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00292790: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002927a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002927b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002927c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002927d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002927e0: 636b 6167 655f 6368 726f 6e79 5f69 6e73  ckage_chrony_ins
│ │ │ +002927f0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediat │ │ │ +002928b0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002928c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00292900: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00292910: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00292920: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00292930: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00292940: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00292950: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00292960: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002929a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002929b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002929d0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +002929e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +00292a00: 6e73 7461 6c6c 5f63 6872 6f6e 790a 0a63  nstall_chrony..c
│ │ │ +00292a10: 6c61 7373 2069 6e73 7461 6c6c 5f63 6872  lass install_chr
│ │ │ +00292a20: 6f6e 7920 7b0a 2020 7061 636b 6167 6520  ony {.  package 
│ │ │ +00292a30: 7b20 2763 6872 6f6e 7927 3a0a 2020 2020  { 'chrony':.    
│ │ │ +00292a40: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +00292a50: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +00292a60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +00292b20: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00292b30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +00292b80: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00292b90: 203d 2022 6368 726f 6e79 220a 7665 7273   = "chrony".vers
│ │ │ +00292ba0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remediation O │ │ │ -00294f90: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00294fa0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00294fb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -00294ff0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00295000: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -00295010: 6564 203d 205b 2263 6872 6f6e 7922 5d0a  ed = ["chrony"].
│ │ │ -00295020: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -002950e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002950f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002951c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002951d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00295220: 696e 636c 7564 6520 656e 6162 6c65 5f63  include enable_c
│ │ │ -00295230: 6872 6f6e 790a 0a63 6c61 7373 2065 6e61  hrony..class ena
│ │ │ -00295240: 626c 655f 6368 726f 6e79 207b 0a20 2073  ble_chrony {.  s
│ │ │ -00295250: 6572 7669 6365 207b 2763 6872 6f6e 7927  ervice {'chrony'
│ │ │ -00295260: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00295270: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -00295280: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -00295290: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Reme │ │ │ -00295350: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00295360: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00295370: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -002951a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002951b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002951f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00295200: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -00295410: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00295460: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -002953f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00295420: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00295440: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00295450: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00295470: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00295480: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002954a0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002954b0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002954c0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002954d0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002954e0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -002954f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00295500: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00295510: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00295520: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00295530: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00295540: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00295550: 6572 7669 6365 5f63 6872 6f6e 7964 5f65  ervice_chronyd_e
│ │ │ -00295560: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -00295570: 5468 6520 4368 726f 6e79 6420 7365 7276  The Chronyd serv
│ │ │ -00295580: 6963 6520 6973 2065 6e61 626c 6564 202d  ice is enabled -
│ │ │ -00295590: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -002955a0: 6368 726f 6e79 0a20 2062 6c6f 636b 3a0a  chrony.  block:.
│ │ │ -002955b0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -002955c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -002955d0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -002955e0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -002955f0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00295600: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00295610: 6e61 6d65 3a20 5468 6520 4368 726f 6e79  name: The Chrony
│ │ │ -00295620: 6420 7365 7276 6963 6520 6973 2065 6e61  d service is ena
│ │ │ -00295630: 626c 6564 202d 2045 6e61 626c 6520 5365  bled - Enable Se
│ │ │ -00295640: 7276 6963 6520 6368 726f 6e79 0a20 2020  rvice chrony.   
│ │ │ -00295650: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00295660: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00295670: 6e61 6d65 3a20 6368 726f 6e79 0a20 2020  name: chrony.   
│ │ │ -00295680: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -00295690: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -002956a0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -002956b0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -002956c0: 656e 3a0a 2020 2020 2d20 2722 6368 726f  en:.    - '"chro
│ │ │ -002956d0: 6e79 2220 696e 2061 6e73 6962 6c65 5f66  ny" in ansible_f
│ │ │ -002956e0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -002956f0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -00295700: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00295710: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00295720: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00295730: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00295740: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00295750: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00295760: 7276 6963 655f 6368 726f 6e79 645f 656e  rvice_chronyd_en
│ │ │ -00295770: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00295780: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -00295790: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ -002957a0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002957b0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002957c0: 6765 7327 0a20 202d 2027 2263 6872 6f6e  ges'.  - '"chron
│ │ │ -002957d0: 7922 2069 6e20 616e 7369 626c 655f 6661  y" in ansible_fa
│ │ │ -002957e0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation A
│ │ │ +00294f90: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00294fa0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +00295030: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00295050: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00295070: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002950a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002950b0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +002950c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +002950e0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002950f0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00295100: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00295110: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00295120: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00295130: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00295140: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00295150: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00295160: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00295170: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00295180: 640a 2020 2d20 7365 7276 6963 655f 6368  d.  - service_ch
│ │ │ +00295190: 726f 6e79 645f 656e 6162 6c65 640a 0a2d  ronyd_enabled..-
│ │ │ +002951a0: 206e 616d 653a 2054 6865 2043 6872 6f6e   name: The Chron
│ │ │ +002951b0: 7964 2073 6572 7669 6365 2069 7320 656e  yd service is en
│ │ │ +002951c0: 6162 6c65 6420 2d20 456e 6162 6c65 2073  abled - Enable s
│ │ │ +002951d0: 6572 7669 6365 2063 6872 6f6e 790a 2020  ervice chrony.  
│ │ │ +002951e0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002951f0: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +00295200: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +00295210: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00295220: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00295230: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00295240: 6f0a 0a20 202d 206e 616d 653a 2054 6865  o..  - name: The
│ │ │ +00295250: 2043 6872 6f6e 7964 2073 6572 7669 6365   Chronyd service
│ │ │ +00295260: 2069 7320 656e 6162 6c65 6420 2d20 456e   is enabled - En
│ │ │ +00295270: 6162 6c65 2053 6572 7669 6365 2063 6872  able Service chr
│ │ │ +00295280: 6f6e 790a 2020 2020 616e 7369 626c 652e  ony.    ansible.
│ │ │ +00295290: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002952a0: 0a20 2020 2020 206e 616d 653a 2063 6872  .      name: chr
│ │ │ +002952b0: 6f6e 790a 2020 2020 2020 656e 6162 6c65  ony.      enable
│ │ │ +002952c0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +002952d0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +002952e0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +002952f0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +00295300: 2027 2263 6872 6f6e 7922 2069 6e20 616e   '"chrony" in an
│ │ │ +00295310: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00295320: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00295330: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00295340: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00295350: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00295360: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00295370: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00295380: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00295390: 0a20 202d 2073 6572 7669 6365 5f63 6872  .  - service_chr
│ │ │ +002953a0: 6f6e 7964 5f65 6e61 626c 6564 0a20 202d  onyd_enabled.  -
│ │ │ +002953b0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +002953c0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ +002953d0: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ +002953e0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002953f0: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ +00295400: 2722 6368 726f 6e79 2220 696e 2061 6e73  '"chrony" in ans
│ │ │ +00295410: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00295420: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediatio │ │ │ +002954e0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002954f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00295570: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00295580: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002955a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002955b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002955d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002955f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00295620: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +00295630: 626c 655f 6368 726f 6e79 0a0a 636c 6173  ble_chrony..clas
│ │ │ +00295640: 7320 656e 6162 6c65 5f63 6872 6f6e 7920  s enable_chrony 
│ │ │ +00295650: 7b0a 2020 7365 7276 6963 6520 7b27 6368  {.  service {'ch
│ │ │ +00295660: 726f 6e79 273a 0a20 2020 2065 6e61 626c  rony':.    enabl
│ │ │ +00295670: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00295680: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00295690: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +002956a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +00295760: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00295770: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +002957c0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +002957d0: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +002957e0: 203d 205b 2263 6872 6f6e 7922 5d0a 3c2f   = ["chrony"].
Remediation │ │ │ -00296af0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00296b00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -00296b60: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -00296b70: 6c65 6420 3d20 5b22 7379 7374 656d 642d  led = ["systemd-
│ │ │ -00296b80: 7469 6d65 7379 6e63 6422 5d0a 3c2f 636f  timesyncd"].
< │ │ │ -00296ba0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00296bb0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00296bc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00296bd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00296be0: 6431 3037 3622 2074 6162 696e 6465 783d d1076" tabindex= │ │ │ -00296bf0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00296c00: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -00296c10: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -00296c20: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -00296c30: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00296c40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00296c50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00296c60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00296d00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00296d50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00296ce0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00296d10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00296d30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00296d40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00296d60: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00296d70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00296d90: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ -00296da0: 6d64 2d74 696d 6573 796e 6364 0a0a 636c  md-timesyncd..cl
│ │ │ -00296db0: 6173 7320 656e 6162 6c65 5f73 7973 7465  ass enable_syste
│ │ │ -00296dc0: 6d64 2d74 696d 6573 796e 6364 207b 0a20  md-timesyncd {. 
│ │ │ -00296dd0: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ -00296de0: 6d64 2d74 696d 6573 796e 6364 273a 0a20  md-timesyncd':. 
│ │ │ -00296df0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00296e00: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -00296e10: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -00296e20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00296e30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00296ee0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00296ef0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00296f00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00296fa0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00296fc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00296ff0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00296f80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00296f90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00296fb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00296fd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00296fe0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00297030: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00297040: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00297050: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00297060: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00297070: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00297080: 302d 3533 2d41 552d 3828 3129 2861 290a 0-53-AU-8(1)(a). │ │ │ -00297090: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -002970a0: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -002970b0: 4453 532d 5265 712d 3130 2e34 0a20 202d DSS-Req-10.4. - │ │ │ -002970c0: 2050 4349 2d44 5353 7634 2d31 302e 360a PCI-DSSv4-10.6. │ │ │ -002970d0: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ -002970e0: 2e36 2e31 0a20 202d 2065 6e61 626c 655f .6.1. - enable_ │ │ │ -002970f0: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -00297100: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -00297110: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00297120: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00297130: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00297140: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -00297150: 655f 7469 6d65 7379 6e63 645f 656e 6162 e_timesyncd_enab │ │ │ -00297160: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ -00297170: 626c 6520 7379 7374 656d 645f 7469 6d65 ble systemd_time │ │ │ -00297180: 7379 6e63 6420 5365 7276 6963 6520 2d20 syncd Service - │ │ │ -00297190: 456e 6162 6c65 2073 6572 7669 6365 2073 Enable service s │ │ │ -002971a0: 7973 7465 6d64 2d74 696d 6573 796e 6364 ystemd-timesyncd │ │ │ -002971b0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e . block:.. - n │ │ │ -002971c0: 616d 653a 2047 6174 6865 7220 7468 6520 ame: Gather the │ │ │ -002971d0: 7061 636b 6167 6520 6661 6374 730a 2020 package facts. │ │ │ -002971e0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -002971f0: 6e2e 7061 636b 6167 655f 6661 6374 733a n.package_facts: │ │ │ -00297200: 0a20 2020 2020 206d 616e 6167 6572 3a20 . manager: │ │ │ -00297210: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20 auto.. - name: │ │ │ -00297220: 456e 6162 6c65 2073 7973 7465 6d64 5f74 Enable systemd_t │ │ │ -00297230: 696d 6573 796e 6364 2053 6572 7669 6365 imesyncd Service │ │ │ -00297240: 202d 2045 6e61 626c 6520 5365 7276 6963 - Enable Servic │ │ │ -00297250: 6520 7379 7374 656d 642d 7469 6d65 7379 e systemd-timesy │ │ │ -00297260: 6e63 640a 2020 2020 616e 7369 626c 652e ncd. ansible. │ │ │ -00297270: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -00297280: 0a20 2020 2020 206e 616d 653a 2073 7973 . name: sys │ │ │ -00297290: 7465 6d64 2d74 696d 6573 796e 6364 0a20 temd-timesyncd. │ │ │ -002972a0: 2020 2020 2065 6e61 626c 6564 3a20 7472 enabled: tr │ │ │ -002972b0: 7565 0a20 2020 2020 2073 7461 7465 3a20 ue. state: │ │ │ -002972c0: 7374 6172 7465 640a 2020 2020 2020 6d61 started. ma │ │ │ -002972d0: 736b 6564 3a20 6661 6c73 650a 2020 2020 sked: false. │ │ │ -002972e0: 7768 656e 3a0a 2020 2020 2d20 2722 7379 when:. - '"sy │ │ │ -002972f0: 7374 656d 6422 2069 6e20 616e 7369 626c stemd" in ansibl │ │ │ -00297300: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -00297310: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ -00297320: 5354 2d38 3030 2d35 332d 4155 2d38 2831 ST-800-53-AU-8(1 │ │ │ -00297330: 2928 6129 0a20 202d 204e 4953 542d 3830 )(a). - NIST-80 │ │ │ -00297340: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00297350: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -00297360: 340a 2020 2d20 5043 492d 4453 5376 342d 4. - PCI-DSSv4- │ │ │ -00297370: 3130 2e36 0a20 202d 2050 4349 2d44 5353 10.6. - PCI-DSS │ │ │ -00297380: 7634 2d31 302e 362e 310a 2020 2d20 656e v4-10.6.1. - en │ │ │ -00297390: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -002973a0: 2d20 6869 6768 5f73 6576 6572 6974 790a - high_severity. │ │ │ -002973b0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -002973c0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -002973d0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562 ption. - no_reb │ │ │ -002973e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ -002973f0: 6572 7669 6365 5f74 696d 6573 796e 6364 ervice_timesyncd │ │ │ -00297400: 5f65 6e61 626c 6564 0a20 202d 2073 7065 _enabled. - spe │ │ │ -00297410: 6369 616c 5f73 6572 7669 6365 5f62 6c6f cial_service_blo │ │ │ -00297420: 636b 0a20 2077 6865 6e3a 0a20 202d 2027 ck. when:. - ' │ │ │ -00297430: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -00297440: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00297450: 636b 6167 6573 270a 2020 2d20 2820 6e6f ckages'. - ( no │ │ │ -00297460: 7420 2820 2263 6872 6f6e 7922 2069 6e20 t ( "chrony" in │ │ │ -00297470: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00297480: 636b 6167 6573 2029 2061 6e64 206e 6f74 ckages ) and not │ │ │ -00297490: 2028 2022 6e74 7022 2069 6e20 616e 7369 ( "ntp" in ansi │ │ │ -002974a0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -002974b0: 6573 0a20 2020 2029 2029 0a3c 2f63 6f64 es. ) ).

Complexity │ │ │ +00296b90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00296bb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00296bc0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00296bd0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00296be0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00296c00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00296c40: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00296c50: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00296c60: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00296c70: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00296c80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00296c90: 4155 2d38 2831 2928 6129 0a20 202d 204e  AU-8(1)(a).  - N
│ │ │ +00296ca0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00296cb0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00296cc0: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ +00296cd0: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ +00296ce0: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ +00296cf0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00296d00: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +00296d10: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +00296d20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00296d30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00296d40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00296d50: 0a20 202d 2073 6572 7669 6365 5f74 696d  .  - service_tim
│ │ │ +00296d60: 6573 796e 6364 5f65 6e61 626c 6564 0a0a  esyncd_enabled..
│ │ │ +00296d70: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +00296d80: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +00296d90: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00296da0: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ +00296db0: 642d 7469 6d65 7379 6e63 640a 2020 626c  d-timesyncd.  bl
│ │ │ +00296dc0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00296dd0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00296de0: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00296df0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00296e00: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00296e10: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00296e20: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +00296e30: 6520 7379 7374 656d 645f 7469 6d65 7379  e systemd_timesy
│ │ │ +00296e40: 6e63 6420 5365 7276 6963 6520 2d20 456e  ncd Service - En
│ │ │ +00296e50: 6162 6c65 2053 6572 7669 6365 2073 7973  able Service sys
│ │ │ +00296e60: 7465 6d64 2d74 696d 6573 796e 6364 0a20  temd-timesyncd. 
│ │ │ +00296e70: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00296e80: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00296e90: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ +00296ea0: 7469 6d65 7379 6e63 640a 2020 2020 2020  timesyncd.      
│ │ │ +00296eb0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +00296ec0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +00296ed0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +00296ee0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +00296ef0: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ +00296f00: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00296f10: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00296f20: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00296f30: 302d 3533 2d41 552d 3828 3129 2861 290a  0-53-AU-8(1)(a).
│ │ │ +00296f40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00296f50: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00296f60: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +00296f70: 2050 4349 2d44 5353 7634 2d31 302e 360a   PCI-DSSv4-10.6.
│ │ │ +00296f80: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +00296f90: 2e36 2e31 0a20 202d 2065 6e61 626c 655f  .6.1.  - enable_
│ │ │ +00296fa0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +00296fb0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +00296fc0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00296fd0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00296fe0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00296ff0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00297000: 655f 7469 6d65 7379 6e63 645f 656e 6162  e_timesyncd_enab
│ │ │ +00297010: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00297020: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00297030: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ +00297040: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00297050: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00297060: 7327 0a20 202d 2028 206e 6f74 2028 2022  s'.  - ( not ( "
│ │ │ +00297070: 6368 726f 6e79 2220 696e 2061 6e73 6962  chrony" in ansib
│ │ │ +00297080: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00297090: 7320 2920 616e 6420 6e6f 7420 2820 226e  s ) and not ( "n
│ │ │ +002970a0: 7470 2220 696e 2061 6e73 6962 6c65 5f66  tp" in ansible_f
│ │ │ +002970b0: 6163 7473 2e70 6163 6b61 6765 730a 2020  acts.packages.  
│ │ │ +002970c0: 2020 2920 290a 3c2f 636f 6465 3e3c 2f70    ) ).

Remediati │ │ │ +00297180: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00297190: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00297210: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00297220: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00297230: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00297270: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00297280: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002972a0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +002972c0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +002972d0: 6162 6c65 5f73 7973 7465 6d64 2d74 696d  able_systemd-tim
│ │ │ +002972e0: 6573 796e 6364 0a0a 636c 6173 7320 656e  esyncd..class en
│ │ │ +002972f0: 6162 6c65 5f73 7973 7465 6d64 2d74 696d  able_systemd-tim
│ │ │ +00297300: 6573 796e 6364 207b 0a20 2073 6572 7669  esyncd {.  servi
│ │ │ +00297310: 6365 207b 2773 7973 7465 6d64 2d74 696d  ce {'systemd-tim
│ │ │ +00297320: 6573 796e 6364 273a 0a20 2020 2065 6e61  esyncd':.    ena
│ │ │ +00297330: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00297340: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00297350: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00297360: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00297370: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +00297420: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00297430: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00297440: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +00297480: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00297490: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +002974a0: 6564 203d 205b 2273 7973 7465 6d64 2d74  ed = ["systemd-t
│ │ │ +002974b0: 696d 6573 796e 6364 225d 0a3c 2f63 6f64  imesyncd"].
Remed │ │ │ -002a2880: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002a2890: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002a2920: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002a2930: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002a2950: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002a2970: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002a2980: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002a29c0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -002a29d0: 7564 6520 7265 6d6f 7665 5f78 696e 6574  ude remove_xinet
│ │ │ -002a29e0: 640a 0a63 6c61 7373 2072 656d 6f76 655f  d..class remove_
│ │ │ -002a29f0: 7869 6e65 7464 207b 0a20 2070 6163 6b61  xinetd {.  packa
│ │ │ -002a2a00: 6765 207b 2027 7869 6e65 7464 273a 0a20  ge { 'xinetd':. 
│ │ │ -002a2a10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -002a2a20: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002a2a30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002a2af0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002a2b00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002a2b80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002a2ba0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002a2bf0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002a2c20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -002a2c40: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -002a2c50: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002a2c60: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002a2c70: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002a2c80: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002a2c90: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002a2ca0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002a2cb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002a2cc0: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -002a2cd0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -002a2ce0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -002a2cf0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002a2d00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002a2d10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002a2d20: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -002a2d30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -002a2d40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002a2d50: 2070 6163 6b61 6765 5f78 696e 6574 645f   package_xinetd_
│ │ │ -002a2d60: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -002a2d70: 2027 556e 696e 7374 616c 6c20 7869 6e65   'Uninstall xine
│ │ │ -002a2d80: 7464 2070 6163 6b61 6765 2069 6620 6e6f  td package if no
│ │ │ -002a2d90: 7420 7573 6564 2062 7920 6e65 7477 6f72  t used by networ
│ │ │ -002a2da0: 6b20 7365 7276 6963 6573 3a20 456e 7375  k services: Ensu
│ │ │ -002a2db0: 7265 2078 696e 6574 6420 6973 0a20 2020  re xinetd is.   
│ │ │ -002a2dc0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -002a2dd0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -002a2de0: 6167 653a 0a20 2020 206e 616d 653a 2078  age:.    name: x
│ │ │ -002a2df0: 696e 6574 640a 2020 2020 7374 6174 653a  inetd.    state:
│ │ │ -002a2e00: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -002a2e10: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -002a2e20: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002a2e30: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -002a2e40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002a2e50: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002a2e60: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002a2e70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002a2e80: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ -002a2e90: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002a2ea0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -002a2eb0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002a2ec0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002a2ed0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002a2ee0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -002a2ef0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -002a2f00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002a2f10: 2020 2d20 7061 636b 6167 655f 7869 6e65    - package_xine
│ │ │ -002a2f20: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
low
Disr │ │ │ -002a2bb0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002a2bc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002a2c00: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002a2c10: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +002a2920: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002a2950: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002a2970: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002a2980: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002a29a0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002a29b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002a29d0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002a29e0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002a29f0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002a2a00: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002a2a10: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002a2a20: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +002a2a30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002a2a40: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +002a2a50: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +002a2a60: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002a2a70: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +002a2a80: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +002a2a90: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002a2aa0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002a2ab0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002a2ac0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002a2ad0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002a2ae0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002a2af0: 6765 5f78 696e 6574 645f 7265 6d6f 7665  ge_xinetd_remove
│ │ │ +002a2b00: 640a 0a2d 206e 616d 653a 2027 556e 696e  d..- name: 'Unin
│ │ │ +002a2b10: 7374 616c 6c20 7869 6e65 7464 2070 6163  stall xinetd pac
│ │ │ +002a2b20: 6b61 6765 2069 6620 6e6f 7420 7573 6564  kage if not used
│ │ │ +002a2b30: 2062 7920 6e65 7477 6f72 6b20 7365 7276   by network serv
│ │ │ +002a2b40: 6963 6573 3a20 456e 7375 7265 2078 696e  ices: Ensure xin
│ │ │ +002a2b50: 6574 6420 6973 0a20 2020 2072 656d 6f76  etd is.    remov
│ │ │ +002a2b60: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +002a2b70: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002a2b80: 2020 206e 616d 653a 2078 696e 6574 640a     name: xinetd.
│ │ │ +002a2b90: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002a2ba0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +002a2bb0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +002a2bc0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002a2bd0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +002a2be0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002a2bf0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002a2c00: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002a2c10: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002a2c20: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +002a2c30: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002a2c40: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +002a2c50: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002a2c60: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002a2c70: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002a2c80: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002a2c90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002a2ca0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002a2cb0: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ +002a2cc0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +002a2d80: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002a2d90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002a2e10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002a2e20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002a2e40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002a2e50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002a2e70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002a2e90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002a2ec0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +002a2ed0: 656d 6f76 655f 7869 6e65 7464 0a0a 636c  emove_xinetd..cl
│ │ │ +002a2ee0: 6173 7320 7265 6d6f 7665 5f78 696e 6574  ass remove_xinet
│ │ │ +002a2ef0: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +002a2f00: 2778 696e 6574 6427 3a0a 2020 2020 656e  'xinetd':.    en
│ │ │ +002a2f10: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +002a2f20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -002a4670: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -002a4680: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -002a46e0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002a46f0: 6564 203d 205b 2278 696e 6574 6422 5d0a  ed = ["xinetd"].
│ │ │ -002a4700: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -002a47c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002a47d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002a48a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002a48b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -002a4900: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -002a4910: 7869 6e65 7464 0a0a 636c 6173 7320 6469  xinetd..class di
│ │ │ -002a4920: 7361 626c 655f 7869 6e65 7464 207b 0a20  sable_xinetd {. 
│ │ │ -002a4930: 2073 6572 7669 6365 207b 2778 696e 6574   service {'xinet
│ │ │ -002a4940: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -002a4950: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -002a4960: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002a4970: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ -002a4a30: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002a4a40: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -002a4880: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002a4890: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002a48d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -002a48e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002a4b20: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002a4b30: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002a4b80: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002a4b90: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002a4ba0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002a4bb0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002a4bc0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002a4bd0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ -002a4be0: 2e37 0a20 202d 204e 4953 542d 3830 302d  .7.  - NIST-800-
│ │ │ -002a4bf0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002a4c00: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002a4c10: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002a4c20: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002a4c30: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002a4c40: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002a4c50: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002a4c60: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002a4c70: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002a4c80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002a4c90: 202d 2073 6572 7669 6365 5f78 696e 6574   - service_xinet
│ │ │ -002a4ca0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ -002a4cb0: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ -002a4cc0: 7464 2053 6572 7669 6365 202d 2044 6973  td Service - Dis
│ │ │ -002a4cd0: 6162 6c65 2073 6572 7669 6365 2078 696e  able service xin
│ │ │ -002a4ce0: 6574 640a 2020 626c 6f63 6b3a 0a0a 2020  etd.  block:..  
│ │ │ -002a4cf0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002a4d00: 7869 6e65 7464 2053 6572 7669 6365 202d  xinetd Service -
│ │ │ -002a4d10: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -002a4d20: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -002a4d30: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -002a4d40: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002a4d50: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002a4d60: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002a4d70: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -002a4d80: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -002a4d90: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -002a4da0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002a4db0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -002a4dc0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -002a4dd0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -002a4de0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002a4df0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002a4e00: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002a4e10: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ -002a4e20: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -002a4e30: 7869 6e65 7464 2e73 6572 7669 6365 2069  xinetd.service i
│ │ │ -002a4e40: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -002a4e50: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -002a4e60: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -002a4e70: 3a20 7869 6e65 7464 2e73 6572 7669 6365  : xinetd.service
│ │ │ -002a4e80: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -002a4e90: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -002a4ea0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002a4eb0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -002a4ec0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -002a4ed0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -002a4ee0: 6e65 7320 6973 2073 6561 7263 6828 2278  nes is search("x
│ │ │ -002a4ef0: 696e 6574 642e 7365 7276 6963 6522 2c20  inetd.service", 
│ │ │ -002a4f00: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002a4f10: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002a4f20: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002a4f30: 7869 6e65 7464 2e73 6f63 6b65 740a 2020  xinetd.socket.  
│ │ │ -002a4f40: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002a4f50: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002a4f60: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002a4f70: 742d 6669 6c65 7320 7869 6e65 7464 2e73  t-files xinetd.s
│ │ │ -002a4f80: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -002a4f90: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -002a4fa0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002a4fb0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002a4fc0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002a4fd0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002a4fe0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002a4ff0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002a5000: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002a5010: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ -002a5020: 6574 6420 5365 7276 6963 6520 2d20 4469  etd Service - Di
│ │ │ -002a5030: 7361 626c 6520 536f 636b 6574 2078 696e  sable Socket xin
│ │ │ -002a5040: 6574 640a 2020 2020 616e 7369 626c 652e  etd.    ansible.
│ │ │ -002a5050: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002a5060: 0a20 2020 2020 206e 616d 653a 2078 696e  .      name: xin
│ │ │ -002a5070: 6574 642e 736f 636b 6574 0a20 2020 2020  etd.socket.     
│ │ │ -002a5080: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002a5090: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002a50a0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -002a50b0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002a50c0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002a50d0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002a50e0: 7320 6973 2073 6561 7263 6828 2278 696e  s is search("xin
│ │ │ -002a50f0: 6574 642e 736f 636b 6574 222c 206d 756c  etd.socket", mul
│ │ │ -002a5100: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -002a5110: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -002a5120: 302d 3137 312d 332e 342e 370a 2020 2d20  0-171-3.4.7.  - 
│ │ │ -002a5130: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002a5140: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002a5150: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -002a5160: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002a5170: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -002a5180: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002a5190: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002a51a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002a51b0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002a51c0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002a51d0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002a51e0: 6963 655f 7869 6e65 7464 5f64 6973 6162  ice_xinetd_disab
│ │ │ -002a51f0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -002a5200: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -002a5210: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -002a5220: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -002a5230: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002a4670: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +002a4680: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
< │ │ │ +002a4740: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002a4750: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -002a4b00: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002a4b10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002a4b50: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002a4b60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +002a4710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002a4730: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002a4760: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002a4780: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002a47b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002a47c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002a47d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002a47e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002a47f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002a4800: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +002a4810: 312d 332e 342e 370a 2020 2d20 4e49 5354  1-3.4.7.  - NIST
│ │ │ +002a4820: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +002a4830: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002a4840: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +002a4850: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +002a4860: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002a4870: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002a4880: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002a4890: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002a48a0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002a48b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002a48c0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +002a48d0: 7869 6e65 7464 5f64 6973 6162 6c65 640a  xinetd_disabled.
│ │ │ +002a48e0: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +002a48f0: 2078 696e 6574 6420 5365 7276 6963 6520   xinetd Service 
│ │ │ +002a4900: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +002a4910: 6520 7869 6e65 7464 0a20 2062 6c6f 636b  e xinetd.  block
│ │ │ +002a4920: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +002a4930: 6162 6c65 2078 696e 6574 6420 5365 7276  able xinetd Serv
│ │ │ +002a4940: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +002a4950: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +002a4960: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +002a4970: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +002a4980: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +002a4990: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +002a49a0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +002a49b0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +002a49c0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +002a49d0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +002a49e0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002a49f0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002a4a00: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002a4a10: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002a4a20: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002a4a30: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002a4a40: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ +002a4a50: 6574 6420 5365 7276 6963 6520 2d20 456e  etd Service - En
│ │ │ +002a4a60: 7375 7265 2078 696e 6574 642e 7365 7276  sure xinetd.serv
│ │ │ +002a4a70: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +002a4a80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002a4a90: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002a4aa0: 206e 616d 653a 2078 696e 6574 642e 7365   name: xinetd.se
│ │ │ +002a4ab0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +002a4ac0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +002a4ad0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002a4ae0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002a4af0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +002a4b00: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +002a4b10: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +002a4b20: 6368 2822 7869 6e65 7464 2e73 6572 7669  ch("xinetd.servi
│ │ │ +002a4b30: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +002a4b40: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +002a4b50: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002a4b60: 7473 202d 2078 696e 6574 642e 736f 636b  ts - xinetd.sock
│ │ │ +002a4b70: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +002a4b80: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002a4b90: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002a4ba0: 742d 756e 6974 2d66 696c 6573 2078 696e  t-unit-files xin
│ │ │ +002a4bb0: 6574 642e 736f 636b 6574 0a20 2020 2072  etd.socket.    r
│ │ │ +002a4bc0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +002a4bd0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +002a4be0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002a4bf0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002a4c00: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002a4c10: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002a4c20: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002a4c30: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002a4c40: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002a4c50: 6520 7869 6e65 7464 2053 6572 7669 6365  e xinetd Service
│ │ │ +002a4c60: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +002a4c70: 7420 7869 6e65 7464 0a20 2020 2061 6e73  t xinetd.    ans
│ │ │ +002a4c80: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002a4c90: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002a4ca0: 3a20 7869 6e65 7464 2e73 6f63 6b65 740a  : xinetd.socket.
│ │ │ +002a4cb0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002a4cc0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +002a4cd0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002a4ce0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002a4cf0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +002a4d00: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +002a4d10: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002a4d20: 2822 7869 6e65 7464 2e73 6f63 6b65 7422  ("xinetd.socket"
│ │ │ +002a4d30: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002a4d40: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ +002a4d50: 5354 2d38 3030 2d31 3731 2d33 2e34 2e37  ST-800-171-3.4.7
│ │ │ +002a4d60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002a4d70: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002a4d80: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002a4d90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002a4da0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +002a4db0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002a4dc0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002a4dd0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002a4de0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +002a4df0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002a4e00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002a4e10: 2073 6572 7669 6365 5f78 696e 6574 645f   service_xinetd_
│ │ │ +002a4e20: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +002a4e30: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +002a4e40: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +002a4e50: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +002a4e60: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +002a4e70: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +002a4f30: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002a4f40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +002a4fd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002a4ff0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002a5000: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002a5010: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002a5020: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002a5040: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +002a5080: 626c 655f 7869 6e65 7464 0a0a 636c 6173  ble_xinetd..clas
│ │ │ +002a5090: 7320 6469 7361 626c 655f 7869 6e65 7464  s disable_xinetd
│ │ │ +002a50a0: 207b 0a20 2073 6572 7669 6365 207b 2778   {.  service {'x
│ │ │ +002a50b0: 696e 6574 6427 3a0a 2020 2020 656e 6162  inetd':.    enab
│ │ │ +002a50c0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002a50d0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002a50e0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002a50f0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002a5100: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +002a51b0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002a51c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002a51d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002a5210: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +002a5220: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +002a5230: 6420 3d20 5b22 7869 6e65 7464 225d 0a3c  d = ["xinetd"].<
│ │ │  002a5240: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -002a6e40: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002a6e50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002a6e60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002a6ef0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002a6f00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002a6f50: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002a6f90: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ -002a6fa0: 7365 7276 0a0a 636c 6173 7320 7265 6d6f  serv..class remo
│ │ │ -002a6fb0: 7665 5f79 7073 6572 7620 7b0a 2020 7061  ve_ypserv {.  pa
│ │ │ -002a6fc0: 636b 6167 6520 7b20 2779 7073 6572 7627  ckage { 'ypserv'
│ │ │ -002a6fd0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -002a6fe0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -002a6ff0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002a7000: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -002a70b0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002a70c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -002a7180: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002a7190: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -002a6ee0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002a6f10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002a6f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002a6f60: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002a6f70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -002a7150: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002a7170: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -002a71a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -002a71c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002a71f0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -002a7200: 696e 7374 616c 6c20 7970 7365 7276 2050  install ypserv P
│ │ │ -002a7210: 6163 6b61 6765 3a20 456e 7375 7265 2079  ackage: Ensure y
│ │ │ -002a7220: 7073 6572 7620 6973 2072 656d 6f76 6564  pserv is removed
│ │ │ -002a7230: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -002a7240: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -002a7250: 206e 616d 653a 2079 7073 6572 760a 2020   name: ypserv.  
│ │ │ -002a7260: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -002a7270: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002a7280: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002a7290: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002a72a0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -002a72b0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002a72c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002a72d0: 4941 2d35 2831 2928 6329 0a20 202d 2050  IA-5(1)(c).  - P
│ │ │ -002a72e0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e32  CI-DSS-Req-2.2.2
│ │ │ -002a72f0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002a7300: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002a7310: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -002a7320: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002a7330: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -002a7340: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002a7350: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002a7360: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002a7370: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002a7380: 6b61 6765 5f79 7073 6572 765f 7265 6d6f  kage_ypserv_remo
│ │ │ -002a7390: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +002a6ef0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002a6f90: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002a6fa0: 6c20 7970 7365 7276 2050 6163 6b61 6765  l ypserv Package
│ │ │ +002a6fb0: 3a20 456e 7375 7265 2079 7073 6572 7620  : Ensure ypserv 
│ │ │ +002a6fc0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002a6fd0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002a6fe0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002a6ff0: 2079 7073 6572 760a 2020 2020 7374 6174   ypserv.    stat
│ │ │ +002a7000: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +002a7010: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002a7020: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +002a7030: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002a7040: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002a7050: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ +002a7060: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ +002a7070: 2928 6329 0a20 202d 2050 4349 2d44 5353  )(c).  - PCI-DSS
│ │ │ +002a7080: 2d52 6571 2d32 2e32 2e32 0a20 202d 2050  -Req-2.2.2.  - P
│ │ │ +002a7090: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +002a70a0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +002a70b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002a70c0: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +002a70d0: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +002a70e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002a70f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002a7100: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002a7110: 6564 0a20 202d 2070 6163 6b61 6765 5f79  ed.  - package_y
│ │ │ +002a7120: 7073 6572 765f 7265 6d6f 7665 640a 3c2f  pserv_removed.
R │ │ │ +002a71e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002a71f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002a6ee0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002a6f10: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002a6f20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002a6f60: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002a6f70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002a7290: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002a7330: 696e 636c 7564 6520 7265 6d6f 7665 5f79  include remove_y
│ │ │ +002a7340: 7073 6572 760a 0a63 6c61 7373 2072 656d  pserv..class rem
│ │ │ +002a7350: 6f76 655f 7970 7365 7276 207b 0a20 2070  ove_ypserv {.  p
│ │ │ +002a7360: 6163 6b61 6765 207b 2027 7970 7365 7276  ackage { 'ypserv
│ │ │ +002a7370: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002a7380: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002a7390: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remedi │ │ │ -002a81f0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002a8200: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002a8210: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -002a8260: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002a8270: 5d0a 6d61 736b 6564 203d 205b 2279 7073  ].masked = ["yps
│ │ │ -002a8280: 6572 7622 5d0a 3c2f 636f 6465 3e3c 2f70  erv"].

Remediati │ │ │ -002a8340: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002a8350: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002a83d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002a8460: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +002a7280: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002a72b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002a72c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002a7300: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002a7310: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -002a83e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002a83f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002a8430: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002a8440: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -002a8480: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -002a8490: 7361 626c 655f 7970 7365 7276 0a0a 636c  sable_ypserv..cl
│ │ │ -002a84a0: 6173 7320 6469 7361 626c 655f 7970 7365  ass disable_ypse
│ │ │ -002a84b0: 7276 207b 0a20 2073 6572 7669 6365 207b  rv {.  service {
│ │ │ -002a84c0: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ -002a84d0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002a84e0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002a84f0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002a8500: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002a85c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002a85d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002a8650: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002a8660: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002a8680: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002a8690: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002a86b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002a86d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002a8700: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002a8710: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002a8720: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002a8730: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002a8740: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002a8750: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002a8760: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002a8770: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002a8780: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002a8790: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002a87a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002a87b0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002a87c0: 655f 7970 7365 7276 5f64 6973 6162 6c65  e_ypserv_disable
│ │ │ -002a87d0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -002a87e0: 6c65 2079 7073 6572 7620 5365 7276 6963  le ypserv Servic
│ │ │ -002a87f0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -002a8800: 6963 6520 7970 7365 7276 0a20 2062 6c6f  ice ypserv.  blo
│ │ │ -002a8810: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -002a8820: 6973 6162 6c65 2079 7073 6572 7620 5365  isable ypserv Se
│ │ │ -002a8830: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -002a8840: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -002a8850: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -002a8860: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -002a8870: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -002a8880: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -002a8890: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -002a88a0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -002a88b0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -002a88c0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -002a88d0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002a88e0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002a88f0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002a8900: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -002a8910: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -002a8920: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -002a8930: 206e 616d 653a 2044 6973 6162 6c65 2079   name: Disable y
│ │ │ -002a8940: 7073 6572 7620 5365 7276 6963 6520 2d20  pserv Service - 
│ │ │ -002a8950: 456e 7375 7265 2079 7073 6572 762e 7365  Ensure ypserv.se
│ │ │ -002a8960: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -002a8970: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002a8980: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002a8990: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ -002a89a0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -002a89b0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002a89c0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002a89d0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -002a89e0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -002a89f0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -002a8a00: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -002a8a10: 6172 6368 2822 7970 7365 7276 2e73 6572  arch("ypserv.ser
│ │ │ -002a8a20: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -002a8a30: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -002a8a40: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -002a8a50: 6973 7473 202d 2079 7073 6572 762e 736f  ists - ypserv.so
│ │ │ -002a8a60: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002a8a70: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002a8a80: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002a8a90: 6973 742d 756e 6974 2d66 696c 6573 2079  ist-unit-files y
│ │ │ -002a8aa0: 7073 6572 762e 736f 636b 6574 0a20 2020  pserv.socket.   
│ │ │ -002a8ab0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002a8ac0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002a8ad0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002a8ae0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002a8af0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002a8b00: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002a8b10: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002a8b20: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002a8b30: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002a8b40: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ -002a8b50: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -002a8b60: 6b65 7420 7970 7365 7276 0a20 2020 2061  ket ypserv.    a
│ │ │ -002a8b70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002a8b80: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002a8b90: 6d65 3a20 7970 7365 7276 2e73 6f63 6b65  me: ypserv.socke
│ │ │ -002a8ba0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002a8bb0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002a8bc0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002a8bd0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002a8be0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002a8bf0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002a8c00: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002a8c10: 6368 2822 7970 7365 7276 2e73 6f63 6b65  ch("ypserv.socke
│ │ │ -002a8c20: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -002a8c30: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -002a8c40: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002a8c50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002a8c60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002a8c70: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002a8c80: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002a8c90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002a8ca0: 2020 2d20 7365 7276 6963 655f 7970 7365    - service_ypse
│ │ │ -002a8cb0: 7276 5f64 6973 6162 6c65 640a 2020 2d20  rv_disabled.  - 
│ │ │ -002a8cc0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002a8cd0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -002a8ce0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -002a8cf0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -002a8d00: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Comp │ │ │ +002a8290: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a82a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a82c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a82e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a82f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a8330: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002a8340: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +002a8350: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002a8360: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002a8370: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002a8380: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002a8390: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002a83a0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002a83b0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002a83c0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002a83d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002a83e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002a83f0: 6572 7669 6365 5f79 7073 6572 765f 6469  ervice_ypserv_di
│ │ │ +002a8400: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +002a8410: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ +002a8420: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002a8430: 2073 6572 7669 6365 2079 7073 6572 760a   service ypserv.
│ │ │ +002a8440: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002a8450: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ +002a8460: 7276 2053 6572 7669 6365 202d 2043 6f6c  rv Service - Col
│ │ │ +002a8470: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +002a8480: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +002a8490: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +002a84a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002a84b0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002a84c0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002a84d0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002a84e0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002a84f0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002a8500: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002a8510: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002a8520: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +002a8530: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +002a8540: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002a8550: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002a8560: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002a8570: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ +002a8580: 6365 202d 2045 6e73 7572 6520 7970 7365  ce - Ensure ypse
│ │ │ +002a8590: 7276 2e73 6572 7669 6365 2069 7320 4d61  rv.service is Ma
│ │ │ +002a85a0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002a85b0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002a85c0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7970  :.      name: yp
│ │ │ +002a85d0: 7365 7276 2e73 6572 7669 6365 0a20 2020  serv.service.   
│ │ │ +002a85e0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002a85f0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +002a8600: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002a8610: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002a8620: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002a8630: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002a8640: 6973 2073 6561 7263 6828 2279 7073 6572  is search("ypser
│ │ │ +002a8650: 762e 7365 7276 6963 6522 2c20 6d75 6c74  v.service", mult
│ │ │ +002a8660: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +002a8670: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +002a8680: 6574 2045 7869 7374 7320 2d20 7970 7365  et Exists - ypse
│ │ │ +002a8690: 7276 2e73 6f63 6b65 740a 2020 2020 616e  rv.socket.    an
│ │ │ +002a86a0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002a86b0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002a86c0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002a86d0: 6c65 7320 7970 7365 7276 2e73 6f63 6b65  les ypserv.socke
│ │ │ +002a86e0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +002a86f0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002a8700: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002a8710: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002a8720: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +002a8730: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +002a8740: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002a8750: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002a8760: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002a8770: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ +002a8780: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +002a8790: 6520 536f 636b 6574 2079 7073 6572 760a  e Socket ypserv.
│ │ │ +002a87a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002a87b0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002a87c0: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ +002a87d0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002a87e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002a87f0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002a8800: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002a8810: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +002a8820: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002a8830: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002a8840: 2073 6561 7263 6828 2279 7073 6572 762e   search("ypserv.
│ │ │ +002a8850: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +002a8860: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +002a8870: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002a8880: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002a8890: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002a88a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002a88b0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002a88c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002a88d0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002a88e0: 5f79 7073 6572 765f 6469 7361 626c 6564  _ypserv_disabled
│ │ │ +002a88f0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +002a8900: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +002a8910: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +002a8920: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002a8930: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +002a8950: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002a8960: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002a8970: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002a8980: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002a8990: 6431 3130 3922 2074 6162 696e 6465 783d d1109" tabindex= │ │ │ +002a89a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002a89b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002a89c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002a89d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002a89e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002a89f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002a8a00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002a8a10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002a8ab0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002a8b00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +002a8a90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002a8ac0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002a8ae0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002a8af0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002a8b10: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +002a8b20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +002a8b40: 7564 6520 6469 7361 626c 655f 7970 7365  ude disable_ypse
│ │ │ +002a8b50: 7276 0a0a 636c 6173 7320 6469 7361 626c  rv..class disabl
│ │ │ +002a8b60: 655f 7970 7365 7276 207b 0a20 2073 6572  e_ypserv {.  ser
│ │ │ +002a8b70: 7669 6365 207b 2779 7073 6572 7627 3a0a  vice {'ypserv':.
│ │ │ +002a8b80: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +002a8b90: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +002a8ba0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +002a8bb0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +002a8c70: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +002a8c80: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +002a8c90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +002a8ce0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +002a8cf0: 735d 0a6d 6173 6b65 6420 3d20 5b22 7970 s].masked = ["yp │ │ │ +002a8d00: 7365 7276 225d 0a3c 2f63 6f64 653e 3c2f serv"].
Remediati │ │ │ -002aa290: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002aa2a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002aa320: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002aa330: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002aa340: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002aa380: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002aa390: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002aa3b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002aa3c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -002aa3e0: 7265 6d6f 7665 5f72 7368 0a0a 636c 6173  remove_rsh..clas
│ │ │ -002aa3f0: 7320 7265 6d6f 7665 5f72 7368 207b 0a20  s remove_rsh {. 
│ │ │ -002aa400: 2070 6163 6b61 6765 207b 2027 7273 6827   package { 'rsh'
│ │ │ -002aa410: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -002aa420: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -002aa430: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002aa440: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002aa4f0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002aa500: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002aa590: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002aa5b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002aa5c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002aa5d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002aa5e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002aa600: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002aa630: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -002aa640: 696e 7374 616c 6c20 7273 6820 5061 636b  install rsh Pack
│ │ │ -002aa650: 6167 653a 2045 6e73 7572 6520 7273 6820  age: Ensure rsh 
│ │ │ -002aa660: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002aa670: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002aa680: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002aa690: 2072 7368 0a20 2020 2073 7461 7465 3a20   rsh.    state: 
│ │ │ -002aa6a0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -002aa6b0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -002aa6c0: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ -002aa6d0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -002aa6e0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -002aa6f0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002aa700: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002aa710: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002aa720: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -002aa730: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002aa740: 2070 6163 6b61 6765 5f72 7368 5f72 656d   package_rsh_rem
│ │ │ -002aa750: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -002aa760: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
< │ │ │ +002aa2e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002aa2f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002aa300: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002aa310: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002aa320: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002aa330: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002aa340: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002aa380: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002aa390: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002aa3b0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002aa3c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002aa3e0: 2755 6e69 6e73 7461 6c6c 2072 7368 2050 'Uninstall rsh P │ │ │ +002aa3f0: 6163 6b61 6765 3a20 456e 7375 7265 2072 ackage: Ensure r │ │ │ +002aa400: 7368 2069 7320 7265 6d6f 7665 6427 0a20 sh is removed'. │ │ │ +002aa410: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +002aa420: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +002aa430: 6d65 3a20 7273 680a 2020 2020 7374 6174 me: rsh. stat │ │ │ +002aa440: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ +002aa450: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ +002aa460: 3731 2d33 2e31 2e31 330a 2020 2d20 5043 71-3.1.13. - PC │ │ │ +002aa470: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ +002aa480: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ +002aa490: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +002aa4a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +002aa4b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +002aa4c0: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +002aa4d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +002aa4e0: 2020 2d20 7061 636b 6167 655f 7273 685f - package_rsh_ │ │ │ +002aa4f0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e removed. - unkn │ │ │ +002aa500: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63 own_severity.
│ │ │ +002aa520: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002aa5c0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002aa5d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002aa5e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +002aa670: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002aa680: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002aa6d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002aa710: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +002aa720: 680a 0a63 6c61 7373 2072 656d 6f76 655f  h..class remove_
│ │ │ +002aa730: 7273 6820 7b0a 2020 7061 636b 6167 6520  rsh {.  package 
│ │ │ +002aa740: 7b20 2772 7368 273a 0a20 2020 2065 6e73  { 'rsh':.    ens
│ │ │ +002aa750: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +002aa760: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Rem │ │ │ -002acb30: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002acb40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002acb50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +002aa660: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002aa690: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002aa6a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002aa6e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002aa6f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -002acbf0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002acc40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002acc80: 636c 7564 6520 7265 6d6f 7665 5f74 616c  clude remove_tal
│ │ │ -002acc90: 6b0a 0a63 6c61 7373 2072 656d 6f76 655f  k..class remove_
│ │ │ -002acca0: 7461 6c6b 207b 0a20 2070 6163 6b61 6765  talk {.  package
│ │ │ -002accb0: 207b 2027 7461 6c6b 273a 0a20 2020 2065   { 'talk':.    e
│ │ │ -002accc0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002accd0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -002accf0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002acd00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002acd10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002acd20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002acd30: 6431 3131 3922 2074 6162 696e 6465 783d d1119" tabindex= │ │ │ -002acd40: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002acd50: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002acd60: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002acd70: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002acd80: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002acd90: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002acda0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002acdb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ -002acbd0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002acc00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002acc20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002acc30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002acc50: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002acc60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -002ace40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002ace50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002acea0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002acee0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -002acef0: 2074 616c 6b20 5061 636b 6167 653a 2045   talk Package: E
│ │ │ -002acf00: 6e73 7572 6520 7461 6c6b 2069 7320 7265  nsure talk is re
│ │ │ -002acf10: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -002acf20: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -002acf30: 3a0a 2020 2020 6e61 6d65 3a20 7461 6c6b  :.    name: talk
│ │ │ -002acf40: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002acf50: 6e74 0a20 2074 6167 733a 0a20 202d 2050  nt.  tags:.  - P
│ │ │ -002acf60: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -002acf70: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -002acf80: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002acf90: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002acfa0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002acfb0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002acfc0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -002acfd0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002acfe0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002acff0: 5f74 616c 6b5f 7265 6d6f 7665 640a 3c2f  _talk_removed.
│ │ │ +002acb50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
C │ │ │ -002ace30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002ace60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002ace70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002aceb0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002acec0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002acbe0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002acbf0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002acc40: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002acc80: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002acc90: 2074 616c 6b20 5061 636b 6167 653a 2045   talk Package: E
│ │ │ +002acca0: 6e73 7572 6520 7461 6c6b 2069 7320 7265  nsure talk is re
│ │ │ +002accb0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +002accc0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +002accd0: 3a0a 2020 2020 6e61 6d65 3a20 7461 6c6b  :.    name: talk
│ │ │ +002acce0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +002accf0: 6e74 0a20 2074 6167 733a 0a20 202d 2050  nt.  tags:.  - P
│ │ │ +002acd00: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +002acd10: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +002acd20: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002acd30: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002acd40: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002acd50: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002acd60: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002acd70: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002acd80: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002acd90: 5f74 616c 6b5f 7265 6d6f 7665 640a 3c2f  _talk_removed.
R │ │ │ +002ace50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002ace60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +002acbd0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002acc00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002acc10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002acc50: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002acc60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002acf00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002acfa0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +002acfb0: 616c 6b0a 0a63 6c61 7373 2072 656d 6f76  alk..class remov
│ │ │ +002acfc0: 655f 7461 6c6b 207b 0a20 2070 6163 6b61  e_talk {.  packa
│ │ │ +002acfd0: 6765 207b 2027 7461 6c6b 273a 0a20 2020  ge { 'talk':.   
│ │ │ +002acfe0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +002acff0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remed │ │ │ -002ae240: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002ae250: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002acef0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002acf20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002acf30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002acf70: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002acf80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -002ae2e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002ae2f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002ae310: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002ae330: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002ae340: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002ae380: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -002ae390: 7564 6520 7265 6d6f 7665 5f69 6e65 7475  ude remove_inetu
│ │ │ -002ae3a0: 7469 6c73 2d74 656c 6e65 740a 0a63 6c61  tils-telnet..cla
│ │ │ -002ae3b0: 7373 2072 656d 6f76 655f 696e 6574 7574  ss remove_inetut
│ │ │ -002ae3c0: 696c 732d 7465 6c6e 6574 207b 0a20 2070  ils-telnet {.  p
│ │ │ -002ae3d0: 6163 6b61 6765 207b 2027 696e 6574 7574  ackage { 'inetut
│ │ │ -002ae3e0: 696c 732d 7465 6c6e 6574 273a 0a20 2020  ils-telnet':.   
│ │ │ -002ae3f0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -002ae400: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -002ae4c0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002ae4d0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002ae5b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002ae5c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002ae610: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -002ae620: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ -002ae630: 456e 7375 7265 2069 6e65 7475 7469 6c73  Ensure inetutils
│ │ │ -002ae640: 2d74 656c 6e65 7420 6973 2072 656d 6f76  -telnet is remov
│ │ │ -002ae650: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002ae660: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002ae670: 2020 206e 616d 653a 2069 6e65 7475 7469     name: inetuti
│ │ │ -002ae680: 6c73 2d74 656c 6e65 740a 2020 2020 7374  ls-telnet.    st
│ │ │ -002ae690: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002ae6a0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002ae6b0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002ae6c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002ae6d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002ae6e0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -002ae6f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002ae700: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002ae710: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -002ae720: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.
Complexity:low
Disrup │ │ │ -002ae590: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002ae5a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002ae5e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002ae5f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +002ae2e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002ae310: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002ae330: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002ae340: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002ae360: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002ae370: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002ae390: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ +002ae3a0: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ +002ae3b0: 7265 2069 6e65 7475 7469 6c73 2d74 656c  re inetutils-tel
│ │ │ +002ae3c0: 6e65 7420 6973 2072 656d 6f76 6564 270a  net is removed'.
│ │ │ +002ae3d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002ae3e0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002ae3f0: 616d 653a 2069 6e65 7475 7469 6c73 2d74  ame: inetutils-t
│ │ │ +002ae400: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ +002ae410: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002ae420: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002ae430: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002ae440: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002ae450: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +002ae460: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +002ae470: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002ae480: 0a20 202d 2070 6163 6b61 6765 5f69 6e65  .  - package_ine
│ │ │ +002ae490: 7475 7469 6c73 2d74 656c 6e65 745f 7265  tutils-telnet_re
│ │ │ +002ae4a0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediati │ │ │ +002ae560: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002ae570: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002ae5f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002ae600: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002ae610: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002ae650: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002ae660: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002ae680: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002ae690: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002ae6b0: 7265 6d6f 7665 5f69 6e65 7475 7469 6c73  remove_inetutils
│ │ │ +002ae6c0: 2d74 656c 6e65 740a 0a63 6c61 7373 2072  -telnet..class r
│ │ │ +002ae6d0: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +002ae6e0: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ +002ae6f0: 6765 207b 2027 696e 6574 7574 696c 732d  ge { 'inetutils-
│ │ │ +002ae700: 7465 6c6e 6574 273a 0a20 2020 2065 6e73  telnet':.    ens
│ │ │ +002ae710: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +002ae720: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
│ │ │ -002af900: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002af910: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -002af9f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002afa00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002afa50: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002afa60: 7465 6c6e 6574 0a0a 636c 6173 7320 7265  telnet..class re
│ │ │ -002afa70: 6d6f 7665 5f74 656c 6e65 7420 7b0a 2020  move_telnet {.  
│ │ │ -002afa80: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ -002afa90: 7427 3a0a 2020 2020 656e 7375 7265 203d  t':.    ensure =
│ │ │ -002afaa0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -002afab0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -002afb70: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -002afb80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -002afc00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002afc90: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002afca0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -002af9d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002af9e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002afa20: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002afa30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -002afc10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002afc20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002afc60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002afc70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -002afcc0: 5265 6d6f 7665 2074 656c 6e65 7420 436c  Remove telnet Cl
│ │ │ -002afcd0: 6965 6e74 733a 2045 6e73 7572 6520 7465  ients: Ensure te
│ │ │ -002afce0: 6c6e 6574 2069 7320 7265 6d6f 7665 6427  lnet is removed'
│ │ │ -002afcf0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -002afd00: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -002afd10: 6e61 6d65 3a20 7465 6c6e 6574 0a20 2020  name: telnet.   
│ │ │ -002afd20: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -002afd30: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002afd40: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ -002afd50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002afd60: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002afd70: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -002afd80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002afd90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002afda0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002afdb0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -002afdc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002afdd0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002afde0: 655f 7465 6c6e 6574 5f72 656d 6f76 6564  e_telnet_removed
│ │ │ +002af900: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +002af910: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +002af920: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
Complexity: │ │ │ +002af9f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002afa00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +002afa60: 2074 656c 6e65 7420 436c 6965 6e74 733a   telnet Clients:
│ │ │ +002afa70: 2045 6e73 7572 6520 7465 6c6e 6574 2069   Ensure telnet i
│ │ │ +002afa80: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002afa90: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002afaa0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002afab0: 7465 6c6e 6574 0a20 2020 2073 7461 7465  telnet.    state
│ │ │ +002afac0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +002afad0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +002afae0: 312d 332e 312e 3133 0a20 202d 2050 4349  1-3.1.13.  - PCI
│ │ │ +002afaf0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +002afb00: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +002afb10: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002afb20: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002afb30: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002afb40: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +002afb50: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +002afb60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002afb70: 2020 2d20 7061 636b 6167 655f 7465 6c6e    - package_teln
│ │ │ +002afb80: 6574 5f72 656d 6f76 6564 0a3c 2f63 6f64  et_removed.
Reme │ │ │ +002afc40: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002afc50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +002af9d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002af9e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002afa20: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002afa30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +002afce0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002afd10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002afd30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002afd40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002afd60: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002afd70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002afd90: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ +002afda0: 6574 0a0a 636c 6173 7320 7265 6d6f 7665  et..class remove
│ │ │ +002afdb0: 5f74 656c 6e65 7420 7b0a 2020 7061 636b  _telnet {.  pack
│ │ │ +002afdc0: 6167 6520 7b20 2774 656c 6e65 7427 3a0a  age { 'telnet':.
│ │ │ +002afdd0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002afde0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002afdf0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -002b1920: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002b1930: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002b1940: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002b19e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002b1a00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002b1a30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002b19c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b19d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b19f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002b1a10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002b1a20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002b1a60: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002b1a70: 6465 2072 656d 6f76 655f 7466 7470 642d de remove_tftpd- │ │ │ -002b1a80: 6870 610a 0a63 6c61 7373 2072 656d 6f76 hpa..class remov │ │ │ -002b1a90: 655f 7466 7470 642d 6870 6120 7b0a 2020 e_tftpd-hpa {. │ │ │ -002b1aa0: 7061 636b 6167 6520 7b20 2774 6674 7064 package { 'tftpd │ │ │ -002b1ab0: 2d68 7061 273a 0a20 2020 2065 6e73 7572 -hpa':. ensur │ │ │ -002b1ac0: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ -002b1ad0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -002b1ae0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ -002b1b90: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002b1ba0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002b1bb0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002b1c50: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002b1c70: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002b1ca0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002b1c30: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b1c40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b1c60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002b1c80: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002b1c90: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002b1cd0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002b1ce0: 3a20 2755 6e69 6e73 7461 6c6c 2074 6674 : 'Uninstall tft │ │ │ -002b1cf0: 7064 2d68 7061 2050 6163 6b61 6765 3a20 pd-hpa Package: │ │ │ -002b1d00: 456e 7375 7265 2074 6674 7064 2d68 7061 Ensure tftpd-hpa │ │ │ -002b1d10: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -002b1d20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -002b1d30: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -002b1d40: 3a20 7466 7470 642d 6870 610a 2020 2020 : tftpd-hpa. │ │ │ -002b1d50: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -002b1d60: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002b1d70: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002b1d80: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002b1d90: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -002b1da0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -002b1db0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -002b1dc0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -002b1dd0: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ -002b1de0: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ -002b1df0: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ -002b1e00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -002b1e10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -002b1e20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -002b1e30: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -002b1e40: 655f 7466 7470 2d73 6572 7665 725f 7265 e_tftp-server_re │ │ │ -002b1e50: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.


Comp │ │ │ +002b19c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002b19d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002b19f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002b1a10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002b1a20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002b1a60: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002b1a70: 653a 2027 556e 696e 7374 616c 6c20 7466  e: 'Uninstall tf
│ │ │ +002b1a80: 7470 642d 6870 6120 5061 636b 6167 653a  tpd-hpa Package:
│ │ │ +002b1a90: 2045 6e73 7572 6520 7466 7470 642d 6870   Ensure tftpd-hp
│ │ │ +002b1aa0: 6120 6973 2072 656d 6f76 6564 270a 2020  a is removed'.  
│ │ │ +002b1ab0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002b1ac0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002b1ad0: 653a 2074 6674 7064 2d68 7061 0a20 2020  e: tftpd-hpa.   
│ │ │ +002b1ae0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002b1af0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002b1b00: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +002b1b10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002b1b20: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +002b1b30: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +002b1b40: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002b1b50: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002b1b60: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +002b1b70: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +002b1b80: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +002b1b90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002b1ba0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002b1bb0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002b1bc0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002b1bd0: 6765 5f74 6674 702d 7365 7276 6572 5f72  ge_tftp-server_r
│ │ │ +002b1be0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediat │ │ │ +002b1ca0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002b1cb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002b1cf0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002b1d00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002b1d10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002b1d20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002b1d30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002b1d40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002b1d50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002b1d90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002b1da0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002b1dc0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002b1dd0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002b1df0: 2072 656d 6f76 655f 7466 7470 642d 6870 remove_tftpd-hp │ │ │ +002b1e00: 610a 0a63 6c61 7373 2072 656d 6f76 655f a..class remove_ │ │ │ +002b1e10: 7466 7470 642d 6870 6120 7b0a 2020 7061 tftpd-hpa {. pa │ │ │ +002b1e20: 636b 6167 6520 7b20 2774 6674 7064 2d68 ckage { 'tftpd-h │ │ │ +002b1e30: 7061 273a 0a20 2020 2065 6e73 7572 6520 pa':. ensure │ │ │ +002b1e40: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +002b1e50: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Re │ │ │ -002b32a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002b32b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002b32c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002b32d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b32e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b32f0: 7365 2220 6964 3d22 6964 3131 3334 223e se" id="id1134"> │ │ │ -002b3300: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002b3310: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -002b3320: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002b3330: 2274 6674 7064 2d68 7061 225d 0a3c 2f63  "tftpd-hpa"].
│ │ │ -002b3350: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002b33f0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002b3400: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002b3410: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002b34a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b34b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002b3500: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -002b3540: 6c75 6465 2064 6973 6162 6c65 5f74 6674  lude disable_tft
│ │ │ -002b3550: 7064 2d68 7061 0a0a 636c 6173 7320 6469  pd-hpa..class di
│ │ │ -002b3560: 7361 626c 655f 7466 7470 642d 6870 6120  sable_tftpd-hpa 
│ │ │ -002b3570: 7b0a 2020 7365 7276 6963 6520 7b27 7466  {.  service {'tf
│ │ │ -002b3580: 7470 642d 6870 6127 3a0a 2020 2020 656e  tpd-hpa':.    en
│ │ │ -002b3590: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002b35a0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002b35b0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002b35c0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002b3680: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002b3690: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002b3710: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002b3750: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ -002b3490: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002b34c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002b34d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002b3510: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -002b3520: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -002b3720: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002b3740: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002b3770: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002b3790: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002b37c0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002b37d0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002b37e0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002b37f0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002b3800: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002b3810: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -002b3820: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -002b3830: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -002b3840: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002b3850: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -002b3860: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002b3870: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -002b3880: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002b3890: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002b38a0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002b38b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002b38c0: 7365 7276 6963 655f 7466 7470 5f64 6973  service_tftp_dis
│ │ │ -002b38d0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -002b38e0: 6973 6162 6c65 2074 6674 7064 2d68 7061  isable tftpd-hpa
│ │ │ -002b38f0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002b3900: 6c65 2073 6572 7669 6365 2074 6674 7064  le service tftpd
│ │ │ -002b3910: 2d68 7061 0a20 2062 6c6f 636b 3a0a 0a20  -hpa.  block:.. 
│ │ │ -002b3920: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002b3930: 2074 6674 7064 2d68 7061 2053 6572 7669   tftpd-hpa Servi
│ │ │ -002b3940: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -002b3950: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -002b3960: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -002b3970: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -002b3980: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002b3990: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002b39a0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -002b39b0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -002b39c0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -002b39d0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -002b39e0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -002b39f0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002b3a00: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002b3a10: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -002b3a20: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -002b3a30: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -002b3a40: 6d65 3a20 4469 7361 626c 6520 7466 7470  me: Disable tftp
│ │ │ -002b3a50: 642d 6870 6120 5365 7276 6963 6520 2d20  d-hpa Service - 
│ │ │ -002b3a60: 456e 7375 7265 2074 6674 7064 2d68 7061  Ensure tftpd-hpa
│ │ │ -002b3a70: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002b3a80: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002b3a90: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002b3aa0: 2020 2020 2020 6e61 6d65 3a20 7466 7470        name: tftp
│ │ │ -002b3ab0: 642d 6870 612e 7365 7276 6963 650a 2020  d-hpa.service.  
│ │ │ -002b3ac0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002b3ad0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -002b3ae0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -002b3af0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002b3b00: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -002b3b10: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002b3b20: 2069 7320 7365 6172 6368 2822 7466 7470   is search("tftp
│ │ │ -002b3b30: 642d 6870 612e 7365 7276 6963 6522 2c20  d-hpa.service", 
│ │ │ -002b3b40: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002b3b50: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002b3b60: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002b3b70: 7466 7470 642d 6870 612e 736f 636b 6574  tftpd-hpa.socket
│ │ │ -002b3b80: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002b3b90: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002b3ba0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002b3bb0: 756e 6974 2d66 696c 6573 2074 6674 7064  unit-files tftpd
│ │ │ -002b3bc0: 2d68 7061 2e73 6f63 6b65 740a 2020 2020  -hpa.socket.    
│ │ │ -002b3bd0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002b3be0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002b3bf0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002b3c00: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002b3c10: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002b3c20: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002b3c30: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002b3c40: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002b3c50: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002b3c60: 6c65 2074 6674 7064 2d68 7061 2053 6572  le tftpd-hpa Ser
│ │ │ -002b3c70: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -002b3c80: 6f63 6b65 7420 7466 7470 642d 6870 610a  ocket tftpd-hpa.
│ │ │ -002b3c90: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002b3ca0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002b3cb0: 2020 206e 616d 653a 2074 6674 7064 2d68     name: tftpd-h
│ │ │ -002b3cc0: 7061 2e73 6f63 6b65 740a 2020 2020 2020  pa.socket.      
│ │ │ -002b3cd0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002b3ce0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002b3cf0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -002b3d00: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -002b3d10: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002b3d20: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002b3d30: 2069 7320 7365 6172 6368 2822 7466 7470   is search("tftp
│ │ │ -002b3d40: 642d 6870 612e 736f 636b 6574 222c 206d  d-hpa.socket", m
│ │ │ -002b3d50: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -002b3d60: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002b3d70: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002b3d80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002b3d90: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002b3da0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002b3db0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002b3dc0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -002b3dd0: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -002b3de0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002b3df0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002b3e00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002b3e10: 0a20 202d 2073 6572 7669 6365 5f74 6674  .  - service_tft
│ │ │ -002b3e20: 705f 6469 7361 626c 6564 0a20 202d 2073  p_disabled.  - s
│ │ │ -002b3e30: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -002b3e40: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -002b3e50: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -002b3e60: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -002b3e70: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


│ │ │ +002b3350: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002b33f0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002b3400: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002b3410: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002b3420: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002b3430: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +002b3440: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002b3450: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002b3460: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002b3470: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002b3480: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +002b3490: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +002b34a0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +002b34b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002b34c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002b34d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002b34e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002b34f0: 5f74 6674 705f 6469 7361 626c 6564 0a0a  _tftp_disabled..
│ │ │ +002b3500: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002b3510: 7466 7470 642d 6870 6120 5365 7276 6963  tftpd-hpa Servic
│ │ │ +002b3520: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +002b3530: 6963 6520 7466 7470 642d 6870 610a 2020  ice tftpd-hpa.  
│ │ │ +002b3540: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002b3550: 3a20 4469 7361 626c 6520 7466 7470 642d  : Disable tftpd-
│ │ │ +002b3560: 6870 6120 5365 7276 6963 6520 2d20 436f  hpa Service - Co
│ │ │ +002b3570: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +002b3580: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +002b3590: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +002b35a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002b35b0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002b35c0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002b35d0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +002b35e0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +002b35f0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +002b3600: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002b3610: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002b3620: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +002b3630: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +002b3640: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002b3650: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002b3660: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002b3670: 6162 6c65 2074 6674 7064 2d68 7061 2053  able tftpd-hpa S
│ │ │ +002b3680: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +002b3690: 7466 7470 642d 6870 612e 7365 7276 6963  tftpd-hpa.servic
│ │ │ +002b36a0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +002b36b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002b36c0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002b36d0: 616d 653a 2074 6674 7064 2d68 7061 2e73  ame: tftpd-hpa.s
│ │ │ +002b36e0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002b36f0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002b3700: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002b3710: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b3720: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002b3730: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002b3740: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002b3750: 7263 6828 2274 6674 7064 2d68 7061 2e73  rch("tftpd-hpa.s
│ │ │ +002b3760: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +002b3770: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +002b3780: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +002b3790: 4578 6973 7473 202d 2074 6674 7064 2d68  Exists - tftpd-h
│ │ │ +002b37a0: 7061 2e73 6f63 6b65 740a 2020 2020 616e  pa.socket.    an
│ │ │ +002b37b0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002b37c0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002b37d0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002b37e0: 6c65 7320 7466 7470 642d 6870 612e 736f  les tftpd-hpa.so
│ │ │ +002b37f0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +002b3800: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +002b3810: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002b3820: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002b3830: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002b3840: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002b3850: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002b3860: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002b3870: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002b3880: 6d65 3a20 4469 7361 626c 6520 7466 7470  me: Disable tftp
│ │ │ +002b3890: 642d 6870 6120 5365 7276 6963 6520 2d20  d-hpa Service - 
│ │ │ +002b38a0: 4469 7361 626c 6520 536f 636b 6574 2074  Disable Socket t
│ │ │ +002b38b0: 6674 7064 2d68 7061 0a20 2020 2061 6e73  ftpd-hpa.    ans
│ │ │ +002b38c0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002b38d0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002b38e0: 3a20 7466 7470 642d 6870 612e 736f 636b  : tftpd-hpa.sock
│ │ │ +002b38f0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +002b3900: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +002b3910: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +002b3920: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002b3930: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +002b3940: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +002b3950: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002b3960: 7263 6828 2274 6674 7064 2d68 7061 2e73  rch("tftpd-hpa.s
│ │ │ +002b3970: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +002b3980: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +002b3990: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002b39a0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002b39b0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +002b39c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002b39d0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +002b39e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002b39f0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +002b3a00: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002b3a10: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002b3a20: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002b3a30: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002b3a40: 7276 6963 655f 7466 7470 5f64 6973 6162  rvice_tftp_disab
│ │ │ +002b3a50: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002b3a60: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002b3a70: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002b3a80: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002b3a90: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002b3aa0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002b3b50: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002b3b60: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +002b3340: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b3370: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b3380: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b33c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b33d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002b3c40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002b3c50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +002b3ca0: 6e63 6c75 6465 2064 6973 6162 6c65 5f74  nclude disable_t
│ │ │ +002b3cb0: 6674 7064 2d68 7061 0a0a 636c 6173 7320  ftpd-hpa..class 
│ │ │ +002b3cc0: 6469 7361 626c 655f 7466 7470 642d 6870  disable_tftpd-hp
│ │ │ +002b3cd0: 6120 7b0a 2020 7365 7276 6963 6520 7b27  a {.  service {'
│ │ │ +002b3ce0: 7466 7470 642d 6870 6127 3a0a 2020 2020  tftpd-hpa':.    
│ │ │ +002b3cf0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +002b3d00: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +002b3d10: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +002b3d20: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +002b3de0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +002b3df0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +002b3e00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +002b3e50: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +002b3e60: 6173 6b65 6420 3d20 5b22 7466 7470 642d  asked = ["tftpd-
│ │ │ +002b3e70: 6870 6122 5d0a 3c2f 636f 6465 3e3c 2f70  hpa"].

Remediat │ │ │ -002b4c90: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002b4ca0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002b4ce0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002b4cf0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002b4d00: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002b4d10: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002b4d20: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002b4db0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002b4dc0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ +002b3c20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002b3c30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002b3c70: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +002b3c80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -002b4d30: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002b4d40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002b4d80: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002b4d90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -002b4de0: 2072 656d 6f76 655f 7273 796e 630a 0a63 remove_rsync..c │ │ │ -002b4df0: 6c61 7373 2072 656d 6f76 655f 7273 796e lass remove_rsyn │ │ │ -002b4e00: 6320 7b0a 2020 7061 636b 6167 6520 7b20 c {. package { │ │ │ -002b4e10: 2772 7379 6e63 273a 0a20 2020 2065 6e73 'rsync':. ens │ │ │ -002b4e20: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ -002b4e30: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remed │ │ │ -002b4ef0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002b4f00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002b4f90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002b4fc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002b4fe0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002b4ff0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002b5010: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002b5020: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002b5040: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2072  me: 'Uninstall r
│ │ │ -002b5050: 7379 6e63 2050 6163 6b61 6765 3a20 456e  sync Package: En
│ │ │ -002b5060: 7375 7265 2072 7379 6e63 2069 7320 7265  sure rsync is re
│ │ │ -002b5070: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -002b5080: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -002b5090: 3a0a 2020 2020 6e61 6d65 3a20 7273 796e  :.    name: rsyn
│ │ │ -002b50a0: 630a 2020 2020 7374 6174 653a 2061 6273  c.    state: abs
│ │ │ -002b50b0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002b50c0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002b50d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002b50e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002b50f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002b5100: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002b5110: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002b5120: 2020 2d20 7061 636b 6167 655f 7273 796e    - package_rsyn
│ │ │ -002b5130: 635f 7265 6d6f 7665 640a 3c2f 636f 6465  c_removed.
< │ │ │ +002b4cb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002b4cc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002b4cd0: 7365 2220 6964 3d22 6964 3131 3339 223e se" id="id1139"> │ │ │ +002b4ce0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002b4d50: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002b4d70: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002b4da0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002b4d30: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002b4d40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002b4d80: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002b4d90: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002b4de0: 2027 556e 696e 7374 616c 6c20 7273 796e 'Uninstall rsyn │ │ │ +002b4df0: 6320 5061 636b 6167 653a 2045 6e73 7572 c Package: Ensur │ │ │ +002b4e00: 6520 7273 796e 6320 6973 2072 656d 6f76 e rsync is remov │ │ │ +002b4e10: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +002b4e20: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +002b4e30: 2020 206e 616d 653a 2072 7379 6e63 0a20 name: rsync. │ │ │ +002b4e40: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ +002b4e50: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ +002b4e60: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +002b4e70: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +002b4e80: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +002b4e90: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +002b4ea0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +002b4eb0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +002b4ec0: 2070 6163 6b61 6765 5f72 7379 6e63 5f72 package_rsync_r │ │ │ +002b4ed0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.

Remediat │ │ │ +002b4f90: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002b4fa0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002b4fe0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002b4ff0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002b5000: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002b5010: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002b5020: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002b5030: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002b5040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002b5080: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002b5090: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002b50b0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002b50c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002b50e0: 2072 656d 6f76 655f 7273 796e 630a 0a63 remove_rsync..c │ │ │ +002b50f0: 6c61 7373 2072 656d 6f76 655f 7273 796e lass remove_rsyn │ │ │ +002b5100: 6320 7b0a 2020 7061 636b 6167 6520 7b20 c {. package { │ │ │ +002b5110: 2772 7379 6e63 273a 0a20 2020 2065 6e73 'rsync':. ens │ │ │ +002b5120: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ +002b5130: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedia │ │ │ -002b5f70: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -002b5f80: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -002b5f90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -002b5fd0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -002b5fe0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -002b5ff0: 0a6d 6173 6b65 6420 3d20 5b22 7273 796e  .masked = ["rsyn
│ │ │ -002b6000: 6364 225d 0a3c 2f63 6f64 653e 3c2f 7072  cd"].
Remediatio │ │ │ -002b60c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002b60d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002b6150: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002b6160: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002b6180: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002b6190: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002b61b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002b61d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002b6200: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002b6210: 6162 6c65 5f72 7379 6e63 640a 0a63 6c61  able_rsyncd..cla
│ │ │ -002b6220: 7373 2064 6973 6162 6c65 5f72 7379 6e63  ss disable_rsync
│ │ │ -002b6230: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -002b6240: 7273 796e 6364 273a 0a20 2020 2065 6e61  rsyncd':.    ena
│ │ │ -002b6250: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -002b6260: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002b6270: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -002b6280: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002b6290: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002b6340: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002b6350: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002b63e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002b6400: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002b6410: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b6420: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002b6430: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002b6450: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002b6480: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002b6490: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002b64a0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002b64b0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002b64c0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002b64d0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002b64e0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002b64f0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -002b6500: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002b6510: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002b6520: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002b6530: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -002b6540: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002b6550: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -002b6560: 6572 7669 6365 5f72 7379 6e63 645f 6469  ervice_rsyncd_di
│ │ │ -002b6570: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -002b6580: 456e 7375 7265 2072 7379 6e63 6420 7365  Ensure rsyncd se
│ │ │ -002b6590: 7276 6963 6520 6973 2064 6973 6162 6c65  rvice is disable
│ │ │ -002b65a0: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ -002b65b0: 6963 6520 7273 796e 6364 0a20 2062 6c6f  ice rsyncd.  blo
│ │ │ -002b65c0: 636b 3a0a 0a20 202d 206e 616d 653a 2045  ck:..  - name: E
│ │ │ -002b65d0: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ -002b65e0: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ -002b65f0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -002b6600: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -002b6610: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ -002b6620: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002b6630: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002b6640: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002b6650: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002b6660: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002b6670: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002b6680: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002b6690: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002b66a0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002b66b0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002b66c0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002b66d0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002b66e0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002b66f0: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ -002b6700: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ -002b6710: 2064 6973 6162 6c65 6420 2d20 456e 7375   disabled - Ensu
│ │ │ -002b6720: 7265 2072 7379 6e63 642e 7365 7276 6963  re rsyncd.servic
│ │ │ -002b6730: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -002b6740: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002b6750: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002b6760: 616d 653a 2072 7379 6e63 642e 7365 7276  ame: rsyncd.serv
│ │ │ -002b6770: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -002b6780: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002b6790: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002b67a0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002b67b0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -002b67c0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -002b67d0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002b67e0: 2822 7273 796e 6364 2e73 6572 7669 6365  ("rsyncd.service
│ │ │ -002b67f0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002b6800: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -002b6810: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -002b6820: 202d 2072 7379 6e63 642e 736f 636b 6574   - rsyncd.socket
│ │ │ -002b6830: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002b6840: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002b6850: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002b6860: 756e 6974 2d66 696c 6573 2072 7379 6e63  unit-files rsync
│ │ │ -002b6870: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ -002b6880: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -002b6890: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -002b68a0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -002b68b0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002b68c0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -002b68d0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002b68e0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002b68f0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002b6900: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ -002b6910: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ -002b6920: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ -002b6930: 626c 6520 536f 636b 6574 2072 7379 6e63  ble Socket rsync
│ │ │ -002b6940: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -002b6950: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -002b6960: 2020 2020 206e 616d 653a 2072 7379 6e63       name: rsync
│ │ │ -002b6970: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -002b6980: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002b6990: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002b69a0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002b69b0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002b69c0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002b69d0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002b69e0: 6973 2073 6561 7263 6828 2272 7379 6e63  is search("rsync
│ │ │ -002b69f0: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ -002b6a00: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -002b6a10: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ -002b6a20: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -002b6a30: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -002b6a40: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002b6a50: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002b6a60: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002b6a70: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -002b6a80: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -002b6a90: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002b6aa0: 2073 6572 7669 6365 5f72 7379 6e63 645f   service_rsyncd_
│ │ │ -002b6ab0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -002b6ac0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -002b6ad0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -002b6ae0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002b6af0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002b6b00: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

│ │ │ +002b5f90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002b6030: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002b6050: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002b6080: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002b6010: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002b6020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002b6040: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002b6060: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002b6070: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002b60b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002b60c0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002b60d0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002b60e0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +002b60f0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +002b6100: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ +002b6110: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +002b6120: 4453 5376 342d 322e 322e 340a 2020 2d20 DSSv4-2.2.4. - │ │ │ +002b6130: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +002b6140: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +002b6150: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +002b6160: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +002b6170: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +002b6180: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +002b6190: 2020 2d20 7365 7276 6963 655f 7273 796e - service_rsyn │ │ │ +002b61a0: 6364 5f64 6973 6162 6c65 640a 0a2d 206e cd_disabled..- n │ │ │ +002b61b0: 616d 653a 2045 6e73 7572 6520 7273 796e ame: Ensure rsyn │ │ │ +002b61c0: 6364 2073 6572 7669 6365 2069 7320 6469 cd service is di │ │ │ +002b61d0: 7361 626c 6564 202d 2044 6973 6162 6c65 sabled - Disable │ │ │ +002b61e0: 2073 6572 7669 6365 2072 7379 6e63 640a service rsyncd. │ │ │ +002b61f0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ +002b6200: 6d65 3a20 456e 7375 7265 2072 7379 6e63 me: Ensure rsync │ │ │ +002b6210: 6420 7365 7276 6963 6520 6973 2064 6973 d service is dis │ │ │ +002b6220: 6162 6c65 6420 2d20 436f 6c6c 6563 7420 abled - Collect │ │ │ +002b6230: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ +002b6240: 2050 7265 7365 6e74 2069 6e0a 2020 2020 Present in. │ │ │ +002b6250: 2020 7468 6520 5379 7374 656d 0a20 2020 the System. │ │ │ +002b6260: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +002b6270: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ +002b6280: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ +002b6290: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ +002b62a0: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ +002b62b0: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ +002b62c0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +002b62d0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +002b62e0: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ +002b62f0: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ +002b6300: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +002b6310: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +002b6320: 650a 0a20 202d 206e 616d 653a 2045 6e73 e.. - name: Ens │ │ │ +002b6330: 7572 6520 7273 796e 6364 2073 6572 7669 ure rsyncd servi │ │ │ +002b6340: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ +002b6350: 2045 6e73 7572 6520 7273 796e 6364 2e73 Ensure rsyncd.s │ │ │ +002b6360: 6572 7669 6365 2069 7320 4d61 736b 6564 ervice is Masked │ │ │ +002b6370: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +002b6380: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ +002b6390: 2020 2020 6e61 6d65 3a20 7273 796e 6364 name: rsyncd │ │ │ +002b63a0: 2e73 6572 7669 6365 0a20 2020 2020 2073 .service. s │ │ │ +002b63b0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +002b63c0: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +002b63d0: 7365 0a20 2020 2020 206d 6173 6b65 643a se. masked: │ │ │ +002b63e0: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ +002b63f0: 7365 7276 6963 655f 6578 6973 7473 2e73 service_exists.s │ │ │ +002b6400: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ +002b6410: 6561 7263 6828 2272 7379 6e63 642e 7365 earch("rsyncd.se │ │ │ +002b6420: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ +002b6430: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ +002b6440: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ +002b6450: 7869 7374 7320 2d20 7273 796e 6364 2e73 xists - rsyncd.s │ │ │ +002b6460: 6f63 6b65 740a 2020 2020 616e 7369 626c ocket. ansibl │ │ │ +002b6470: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ +002b6480: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ +002b6490: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ +002b64a0: 7273 796e 6364 2e73 6f63 6b65 740a 2020 rsyncd.socket. │ │ │ +002b64b0: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ +002b64c0: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ +002b64d0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +002b64e0: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +002b64f0: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ +002b6500: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ +002b6510: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +002b6520: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +002b6530: 650a 0a20 202d 206e 616d 653a 2045 6e73 e.. - name: Ens │ │ │ +002b6540: 7572 6520 7273 796e 6364 2073 6572 7669 ure rsyncd servi │ │ │ +002b6550: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ +002b6560: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ +002b6570: 7273 796e 6364 0a20 2020 2061 6e73 6962 rsyncd. ansib │ │ │ +002b6580: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +002b6590: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +002b65a0: 7273 796e 6364 2e73 6f63 6b65 740a 2020 rsyncd.socket. │ │ │ +002b65b0: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +002b65c0: 7365 0a20 2020 2020 2073 7461 7465 3a20 se. state: │ │ │ +002b65d0: 7374 6f70 7065 640a 2020 2020 2020 6d61 stopped. ma │ │ │ +002b65e0: 736b 6564 3a20 7472 7565 0a20 2020 2077 sked: true. w │ │ │ +002b65f0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ +002b6600: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ +002b6610: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ +002b6620: 7273 796e 6364 2e73 6f63 6b65 7422 2c20 rsyncd.socket", │ │ │ +002b6630: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ +002b6640: 2020 7461 6773 3a0a 2020 2d20 5043 492d tags:. - PCI- │ │ │ +002b6650: 4453 5376 342d 322e 320a 2020 2d20 5043 DSSv4-2.2. - PC │ │ │ +002b6660: 492d 4453 5376 342d 322e 322e 340a 2020 I-DSSv4-2.2.4. │ │ │ +002b6670: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +002b6680: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +002b6690: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +002b66a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +002b66b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +002b66c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +002b66d0: 640a 2020 2d20 7365 7276 6963 655f 7273 d. - service_rs │ │ │ +002b66e0: 796e 6364 5f64 6973 6162 6c65 640a 2020 yncd_disabled. │ │ │ +002b66f0: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +002b6700: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ +002b6710: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +002b6720: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +002b6730: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +002b6740: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +002b67f0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002b6800: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002b6810: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002b68b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002b68d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002b6900: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002b6890: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002b68a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002b68c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002b68e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002b68f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +002b6940: 2064 6973 6162 6c65 5f72 7379 6e63 640a disable_rsyncd. │ │ │ +002b6950: 0a63 6c61 7373 2064 6973 6162 6c65 5f72 .class disable_r │ │ │ +002b6960: 7379 6e63 6420 7b0a 2020 7365 7276 6963 syncd {. servic │ │ │ +002b6970: 6520 7b27 7273 796e 6364 273a 0a20 2020 e {'rsyncd':. │ │ │ +002b6980: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ +002b6990: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ +002b69a0: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ +002b69b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediat │ │ │ +002b6a70: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +002b6a80: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +002b6a90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ +002b6ad0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +002b6ae0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +002b6af0: 6d61 736b 6564 203d 205b 2272 7379 6e63  masked = ["rsync
│ │ │ +002b6b00: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remed │ │ │ -002b8360: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002b8370: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002b8400: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002b8410: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002b8430: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002b8450: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002b8460: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002b84a0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -002b84b0: 7564 6520 7265 6d6f 7665 5f63 7570 730a  ude remove_cups.
│ │ │ -002b84c0: 0a63 6c61 7373 2072 656d 6f76 655f 6375  .class remove_cu
│ │ │ -002b84d0: 7073 207b 0a20 2070 6163 6b61 6765 207b  ps {.  package {
│ │ │ -002b84e0: 2027 6375 7073 273a 0a20 2020 2065 6e73   'cups':.    ens
│ │ │ -002b84f0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -002b8500: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002b85c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002b85d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002b8660: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002b8690: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002b86b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002b86c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002b86e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002b86f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002b8710: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2043  me: 'Uninstall C
│ │ │ -002b8720: 5550 5320 5061 636b 6167 653a 2045 6e73  UPS Package: Ens
│ │ │ -002b8730: 7572 6520 6375 7073 2069 7320 7265 6d6f  ure cups is remo
│ │ │ -002b8740: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -002b8750: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -002b8760: 2020 2020 6e61 6d65 3a20 6375 7073 0a20      name: cups. 
│ │ │ -002b8770: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -002b8780: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -002b8790: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -002b87a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002b87b0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -002b87c0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -002b87d0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002b87e0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002b87f0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002b8800: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002b8810: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002b8820: 0a20 202d 2070 6163 6b61 6765 5f63 7570  .  - package_cup
│ │ │ -002b8830: 735f 7265 6d6f 7665 640a 2020 2d20 756e  s_removed.  - un
│ │ │ -002b8840: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +002b8360: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +002b8370: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Com │ │ │ +002b8400: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002b8430: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002b8450: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002b8460: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002b8480: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002b8490: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002b84b0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2043  me: 'Uninstall C
│ │ │ +002b84c0: 5550 5320 5061 636b 6167 653a 2045 6e73  UPS Package: Ens
│ │ │ +002b84d0: 7572 6520 6375 7073 2069 7320 7265 6d6f  ure cups is remo
│ │ │ +002b84e0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +002b84f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +002b8500: 2020 2020 6e61 6d65 3a20 6375 7073 0a20      name: cups. 
│ │ │ +002b8510: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +002b8520: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +002b8530: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +002b8540: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002b8550: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +002b8560: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +002b8570: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002b8580: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002b8590: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002b85a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002b85b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002b85c0: 0a20 202d 2070 6163 6b61 6765 5f63 7570  .  - package_cup
│ │ │ +002b85d0: 735f 7265 6d6f 7665 640a 2020 2d20 756e  s_removed.  - un
│ │ │ +002b85e0: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +002b85f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002b86a0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002b86b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +002b8790: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002b87a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002b87f0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +002b8800: 6375 7073 0a0a 636c 6173 7320 7265 6d6f  cups..class remo
│ │ │ +002b8810: 7665 5f63 7570 7320 7b0a 2020 7061 636b  ve_cups {.  pack
│ │ │ +002b8820: 6167 6520 7b20 2763 7570 7327 3a0a 2020  age { 'cups':.  
│ │ │ +002b8830: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002b8840: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  002b8850: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002b9b20: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -002b9b30: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -002b9b40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ -002b9b90: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -002b9ba0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -002b9bb0: 205b 2263 7570 7322 5d0a 3c2f 636f 6465   ["cups"].
Remed │ │ │ -002b9c70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002b9c80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +002b8770: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002b8780: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002b87c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002b87d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -002b9d10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002b9d20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002b9d40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002b9d60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002b9d70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002b9db0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002b9dc0: 6520 6469 7361 626c 655f 6375 7073 0a0a e disable_cups.. │ │ │ -002b9dd0: 636c 6173 7320 6469 7361 626c 655f 6375 class disable_cu │ │ │ -002b9de0: 7073 207b 0a20 2073 6572 7669 6365 207b ps {. service { │ │ │ -002b9df0: 2763 7570 7327 3a0a 2020 2020 656e 6162 'cups':. enab │ │ │ -002b9e00: 6c65 203d 2667 743b 2066 616c 7365 2c0a le => false,. │ │ │ -002b9e10: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ -002b9e20: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a 'stopped',. }. │ │ │ -002b9e30: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.
< │ │ │ -002b9e40: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002b9ef0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002b9f00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002b9f90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002b9fb0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002b9fd0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002ba000: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002ba010: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -002ba040: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -002ba050: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -002ba060: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -002ba070: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -002ba080: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002ba090: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -002ba0a0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -002ba0b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002ba0c0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -002ba0d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002ba0e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002ba0f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002ba100: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -002ba110: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002ba120: 6963 655f 6375 7073 5f64 6973 6162 6c65  ice_cups_disable
│ │ │ -002ba130: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -002ba140: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ -002ba150: 4469 7361 626c 6520 7468 6520 4355 5053  Disable the CUPS
│ │ │ -002ba160: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002ba170: 6c65 2073 6572 7669 6365 2063 7570 730a  le service cups.
│ │ │ -002ba180: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -002ba190: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ -002ba1a0: 4355 5053 2053 6572 7669 6365 202d 2043  CUPS Service - C
│ │ │ -002ba1b0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -002ba1c0: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -002ba1d0: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ -002ba1e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002ba1f0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002ba200: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002ba210: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -002ba220: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -002ba230: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -002ba240: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002ba250: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002ba260: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -002ba270: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -002ba280: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002ba290: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002ba2a0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002ba2b0: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ -002ba2c0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -002ba2d0: 6375 7073 2e73 6572 7669 6365 2069 7320  cups.service is 
│ │ │ -002ba2e0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -002ba2f0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002ba300: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002ba310: 6375 7073 2e73 6572 7669 6365 0a20 2020  cups.service.   
│ │ │ -002ba320: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -002ba330: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -002ba340: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -002ba350: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -002ba360: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002ba370: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002ba380: 6973 2073 6561 7263 6828 2263 7570 732e  is search("cups.
│ │ │ -002ba390: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -002ba3a0: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -002ba3b0: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -002ba3c0: 2045 7869 7374 7320 2d20 6375 7073 2e73   Exists - cups.s
│ │ │ -002ba3d0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -002ba3e0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002ba3f0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002ba400: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002ba410: 6375 7073 2e73 6f63 6b65 740a 2020 2020  cups.socket.    
│ │ │ -002ba420: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002ba430: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002ba440: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002ba450: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002ba460: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002ba470: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002ba480: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002ba490: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002ba4a0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002ba4b0: 6c65 2074 6865 2043 5550 5320 5365 7276  le the CUPS Serv
│ │ │ -002ba4c0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -002ba4d0: 636b 6574 2063 7570 730a 2020 2020 616e  cket cups.    an
│ │ │ -002ba4e0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002ba4f0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002ba500: 653a 2063 7570 732e 736f 636b 6574 0a20  e: cups.socket. 
│ │ │ -002ba510: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002ba520: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -002ba530: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -002ba540: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -002ba550: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002ba560: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -002ba570: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -002ba580: 2263 7570 732e 736f 636b 6574 222c 206d  "cups.socket", m
│ │ │ -002ba590: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -002ba5a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002ba5b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002ba5c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002ba5d0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002ba5e0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002ba5f0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002ba600: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002ba610: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002ba620: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -002ba630: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002ba640: 202d 2073 6572 7669 6365 5f63 7570 735f   - service_cups_
│ │ │ -002ba650: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -002ba660: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -002ba670: 636b 0a20 202d 2075 6e6b 6e6f 776e 5f73  ck.  - unknown_s
│ │ │ -002ba680: 6576 6572 6974 790a 2020 7768 656e 3a20  everity.  when: 
│ │ │ -002ba690: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -002ba6a0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002ba6b0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +002b9b20: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +002b9b30: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +002b9b40: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
Complexity: │ │ │ +002b9c10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002b9c20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +002b9c80: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002b9c90: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002b9ca0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002b9cb0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002b9cc0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002b9cd0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +002b9ce0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +002b9cf0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002b9d00: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +002b9d10: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002b9d20: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002b9d30: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002b9d40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002b9d50: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002b9d60: 5f63 7570 735f 6469 7361 626c 6564 0a20  _cups_disabled. 
│ │ │ +002b9d70: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +002b9d80: 6974 790a 0a2d 206e 616d 653a 2044 6973  ity..- name: Dis
│ │ │ +002b9d90: 6162 6c65 2074 6865 2043 5550 5320 5365  able the CUPS Se
│ │ │ +002b9da0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +002b9db0: 7365 7276 6963 6520 6375 7073 0a20 2062  service cups.  b
│ │ │ +002b9dc0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +002b9dd0: 2044 6973 6162 6c65 2074 6865 2043 5550   Disable the CUP
│ │ │ +002b9de0: 5320 5365 7276 6963 6520 2d20 436f 6c6c  S Service - Coll
│ │ │ +002b9df0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +002b9e00: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +002b9e10: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +002b9e20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002b9e30: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002b9e40: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002b9e50: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +002b9e60: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +002b9e70: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002b9e80: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002b9e90: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002b9ea0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +002b9eb0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +002b9ec0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +002b9ed0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +002b9ee0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002b9ef0: 6c65 2074 6865 2043 5550 5320 5365 7276  le the CUPS Serv
│ │ │ +002b9f00: 6963 6520 2d20 456e 7375 7265 2063 7570  ice - Ensure cup
│ │ │ +002b9f10: 732e 7365 7276 6963 6520 6973 204d 6173  s.service is Mas
│ │ │ +002b9f20: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +002b9f30: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002b9f40: 0a20 2020 2020 206e 616d 653a 2063 7570  .      name: cup
│ │ │ +002b9f50: 732e 7365 7276 6963 650a 2020 2020 2020  s.service.      
│ │ │ +002b9f60: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002b9f70: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002b9f80: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +002b9f90: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002b9fa0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002b9fb0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002b9fc0: 7365 6172 6368 2822 6375 7073 2e73 6572  search("cups.ser
│ │ │ +002b9fd0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +002b9fe0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +002b9ff0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +002ba000: 6973 7473 202d 2063 7570 732e 736f 636b  ists - cups.sock
│ │ │ +002ba010: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +002ba020: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002ba030: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002ba040: 742d 756e 6974 2d66 696c 6573 2063 7570  t-unit-files cup
│ │ │ +002ba050: 732e 736f 636b 6574 0a20 2020 2072 6567  s.socket.    reg
│ │ │ +002ba060: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002ba070: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002ba080: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002ba090: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002ba0a0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002ba0b0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002ba0c0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002ba0d0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002ba0e0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002ba0f0: 7468 6520 4355 5053 2053 6572 7669 6365  the CUPS Service
│ │ │ +002ba100: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +002ba110: 7420 6375 7073 0a20 2020 2061 6e73 6962  t cups.    ansib
│ │ │ +002ba120: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +002ba130: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +002ba140: 6375 7073 2e73 6f63 6b65 740a 2020 2020  cups.socket.    
│ │ │ +002ba150: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002ba160: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002ba170: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +002ba180: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002ba190: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002ba1a0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002ba1b0: 6573 2069 7320 7365 6172 6368 2822 6375  es is search("cu
│ │ │ +002ba1c0: 7073 2e73 6f63 6b65 7422 2c20 6d75 6c74  ps.socket", mult
│ │ │ +002ba1d0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +002ba1e0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +002ba1f0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +002ba200: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +002ba210: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002ba220: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +002ba230: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002ba240: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002ba250: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002ba260: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002ba270: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002ba280: 7365 7276 6963 655f 6375 7073 5f64 6973  service_cups_dis
│ │ │ +002ba290: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +002ba2a0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +002ba2b0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +002ba2c0: 7269 7479 0a20 2077 6865 6e3a 2027 226c  rity.  when: '"l
│ │ │ +002ba2d0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +002ba2e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +002ba2f0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediati │ │ │ +002ba3b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002ba3c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002ba440: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002ba4d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ +002b9bf0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002b9c00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002b9c40: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002b9c50: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +002ba450: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002ba460: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +002ba4a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002ba4b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +002ba4f0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +002ba500: 7361 626c 655f 6375 7073 0a0a 636c 6173  sable_cups..clas
│ │ │ +002ba510: 7320 6469 7361 626c 655f 6375 7073 207b  s disable_cups {
│ │ │ +002ba520: 0a20 2073 6572 7669 6365 207b 2763 7570  .  service {'cup
│ │ │ +002ba530: 7327 3a0a 2020 2020 656e 6162 6c65 203d  s':.    enable =
│ │ │ +002ba540: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +002ba550: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +002ba560: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +002ba620: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +002ba630: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +002ba640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002ba650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +002ba690: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +002ba6a0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +002ba6b0: 5b22 6375 7073 225d 0a3c 2f63 6f64 653e  ["cups"].
│ │ │  002ba6c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -002bbd20: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002bbd30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002bbdd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002bbe70: 696e 636c 7564 6520 7265 6d6f 7665 5f73  include remove_s
│ │ │ -002bbe80: 7175 6964 0a0a 636c 6173 7320 7265 6d6f  quid..class remo
│ │ │ -002bbe90: 7665 5f73 7175 6964 207b 0a20 2070 6163  ve_squid {.  pac
│ │ │ -002bbea0: 6b61 6765 207b 2027 7371 7569 6427 3a0a  kage { 'squid':.
│ │ │ -002bbeb0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002bbec0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002bbed0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002bbf90: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002bbfa0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002bbdc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002bbdf0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002bbe00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002bbe40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002bbe50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002bc020: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002bc040: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002bc090: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002bc0c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002bc030: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002bc050: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002bc0a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002bc0b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -002bc0e0: 7374 616c 6c20 7371 7569 6420 5061 636b  stall squid Pack
│ │ │ -002bc0f0: 6167 653a 2045 6e73 7572 6520 7371 7569  age: Ensure squi
│ │ │ -002bc100: 6420 6973 2072 656d 6f76 6564 270a 2020  d is removed'.  
│ │ │ -002bc110: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002bc120: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002bc130: 653a 2073 7175 6964 0a20 2020 2073 7461  e: squid.    sta
│ │ │ -002bc140: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -002bc150: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002bc160: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002bc170: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002bc180: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002bc190: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002bc1a0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -002bc1b0: 7175 6964 5f72 656d 6f76 6564 0a20 202d  quid_removed.  -
│ │ │ -002bc1c0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -002bc1d0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +002bbd20: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +002bbd30: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +002bbe10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002bbe20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002bbe70: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +002bbe80: 6c6c 2073 7175 6964 2050 6163 6b61 6765  ll squid Package
│ │ │ +002bbe90: 3a20 456e 7375 7265 2073 7175 6964 2069  : Ensure squid i
│ │ │ +002bbea0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002bbeb0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002bbec0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002bbed0: 7371 7569 640a 2020 2020 7374 6174 653a  squid.    state:
│ │ │ +002bbee0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002bbef0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002bbf00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002bbf10: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002bbf20: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +002bbf30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002bbf40: 2020 2d20 7061 636b 6167 655f 7371 7569    - package_squi
│ │ │ +002bbf50: 645f 7265 6d6f 7665 640a 2020 2d20 756e  d_removed.  - un
│ │ │ +002bbf60: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +002bbf70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002bc020: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002bc030: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +002bbdf0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002bbe00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002bbe40: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002bbe50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +002bc110: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002bc120: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002bc170: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +002bc180: 7371 7569 640a 0a63 6c61 7373 2072 656d  squid..class rem
│ │ │ +002bc190: 6f76 655f 7371 7569 6420 7b0a 2020 7061  ove_squid {.  pa
│ │ │ +002bc1a0: 636b 6167 6520 7b20 2773 7175 6964 273a  ckage { 'squid':
│ │ │ +002bc1b0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +002bc1c0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +002bc1d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 002bc1e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -002bcfe0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -002bcff0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -002bd000: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ -002bd040: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -002bd050: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -002bd060: 6d61 736b 6564 203d 205b 2273 7175 6964  masked = ["squid
│ │ │ -002bd070: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -002bd080: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002bd130: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002bd140: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -002bd210: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002bd260: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:low
Disrup │ │ │ +002bc0f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002bc100: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002bc140: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002bc150: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -002bd1d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -002bd1f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002bd240: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002bd250: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -002bd280: 6c65 5f73 7175 6964 0a0a 636c 6173 7320  le_squid..class 
│ │ │ -002bd290: 6469 7361 626c 655f 7371 7569 6420 7b0a  disable_squid {.
│ │ │ -002bd2a0: 2020 7365 7276 6963 6520 7b27 7371 7569    service {'squi
│ │ │ -002bd2b0: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -002bd2c0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -002bd2d0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002bd2e0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ -002bd3a0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002bd3b0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002bd490: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002bd4a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002bd4f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002bd500: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002bd510: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002bd520: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002bd530: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002bd540: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002bd550: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002bd560: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002bd570: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002bd580: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002bd590: 7365 7276 6963 655f 7371 7569 645f 6469  service_squid_di
│ │ │ -002bd5a0: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ -002bd5b0: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ -002bd5c0: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ -002bd5d0: 6964 202d 2044 6973 6162 6c65 2073 6572  id - Disable ser
│ │ │ -002bd5e0: 7669 6365 2073 7175 6964 0a20 2062 6c6f  vice squid.  blo
│ │ │ -002bd5f0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -002bd600: 6973 6162 6c65 2053 7175 6964 202d 2043  isable Squid - C
│ │ │ -002bd610: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -002bd620: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -002bd630: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ -002bd640: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002bd650: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002bd660: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002bd670: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -002bd680: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -002bd690: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -002bd6a0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002bd6b0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002bd6c0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -002bd6d0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -002bd6e0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002bd6f0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002bd700: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002bd710: 7361 626c 6520 5371 7569 6420 2d20 456e  sable Squid - En
│ │ │ -002bd720: 7375 7265 2073 7175 6964 2e73 6572 7669  sure squid.servi
│ │ │ -002bd730: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -002bd740: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002bd750: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002bd760: 6e61 6d65 3a20 7371 7569 642e 7365 7276  name: squid.serv
│ │ │ -002bd770: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -002bd780: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002bd790: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002bd7a0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002bd7b0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -002bd7c0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -002bd7d0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002bd7e0: 2822 7371 7569 642e 7365 7276 6963 6522  ("squid.service"
│ │ │ -002bd7f0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -002bd800: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -002bd810: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -002bd820: 2d20 7371 7569 642e 736f 636b 6574 0a20  - squid.socket. 
│ │ │ -002bd830: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002bd840: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002bd850: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -002bd860: 6974 2d66 696c 6573 2073 7175 6964 2e73  it-files squid.s
│ │ │ -002bd870: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -002bd880: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -002bd890: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002bd8a0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002bd8b0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002bd8c0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002bd8d0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002bd8e0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002bd8f0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002bd900: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ -002bd910: 6964 202d 2044 6973 6162 6c65 2053 6f63  id - Disable Soc
│ │ │ -002bd920: 6b65 7420 7371 7569 640a 2020 2020 616e  ket squid.    an
│ │ │ -002bd930: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002bd940: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002bd950: 653a 2073 7175 6964 2e73 6f63 6b65 740a  e: squid.socket.
│ │ │ -002bd960: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002bd970: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -002bd980: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -002bd990: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -002bd9a0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -002bd9b0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -002bd9c0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002bd9d0: 2822 7371 7569 642e 736f 636b 6574 222c  ("squid.socket",
│ │ │ -002bd9e0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002bd9f0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -002bda00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002bda10: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002bda20: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002bda30: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002bda40: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002bda50: 7669 6365 5f73 7175 6964 5f64 6973 6162  vice_squid_disab
│ │ │ -002bda60: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -002bda70: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -002bda80: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -002bda90: 7479 0a20 2077 6865 6e3a 2028 2022 7371  ty.  when: ( "sq
│ │ │ -002bdaa0: 7569 6422 2069 6e20 616e 7369 626c 655f  uid" in ansible_
│ │ │ -002bdab0: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ -002bdac0: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ -002bdad0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -002bdae0: 2e70 6163 6b61 6765 730a 2020 2020 290a  .packages.    ).
│ │ │ +002bcfe0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +002bcff0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +002bd000: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002bd010: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002bd020: 7365 2220 6964 3d22 6964 3131 3631 223e se" id="id1161"> │ │ │ +002bd030: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -002bd470: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002bd480: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002bd4c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002bd4d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +002bd0a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002bd0c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002bd0f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002bd080: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002bd090: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002bd0d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002bd0e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002bd130: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +002bd140: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +002bd150: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +002bd160: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +002bd170: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ +002bd180: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +002bd190: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +002bd1a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +002bd1b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +002bd1c0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +002bd1d0: 5f73 7175 6964 5f64 6973 6162 6c65 640a _squid_disabled. │ │ │ +002bd1e0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665 - unknown_seve │ │ │ +002bd1f0: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469 rity..- name: Di │ │ │ +002bd200: 7361 626c 6520 5371 7569 6420 2d20 4469 sable Squid - Di │ │ │ +002bd210: 7361 626c 6520 7365 7276 6963 6520 7371 sable service sq │ │ │ +002bd220: 7569 640a 2020 626c 6f63 6b3a 0a0a 2020 uid. block:.. │ │ │ +002bd230: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +002bd240: 5371 7569 6420 2d20 436f 6c6c 6563 7420 Squid - Collect │ │ │ +002bd250: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ +002bd260: 2050 7265 7365 6e74 2069 6e20 7468 6520 Present in the │ │ │ +002bd270: 5379 7374 656d 0a20 2020 2061 6e73 6962 System. ansib │ │ │ +002bd280: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +002bd290: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ +002bd2a0: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ +002bd2b0: 202d 2d74 7970 6520 7365 7276 6963 650a --type service. │ │ │ +002bd2c0: 2020 2020 7265 6769 7374 6572 3a20 7365 register: se │ │ │ +002bd2d0: 7276 6963 655f 6578 6973 7473 0a20 2020 rvice_exists. │ │ │ +002bd2e0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ +002bd2f0: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ +002bd300: 7768 656e 3a20 7365 7276 6963 655f 6578 when: service_ex │ │ │ +002bd310: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ +002bd320: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ +002bd330: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ +002bd340: 206e 616d 653a 2044 6973 6162 6c65 2053 name: Disable S │ │ │ +002bd350: 7175 6964 202d 2045 6e73 7572 6520 7371 quid - Ensure sq │ │ │ +002bd360: 7569 642e 7365 7276 6963 6520 6973 204d uid.service is M │ │ │ +002bd370: 6173 6b65 640a 2020 2020 616e 7369 626c asked. ansibl │ │ │ +002bd380: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +002bd390: 643a 0a20 2020 2020 206e 616d 653a 2073 d:. name: s │ │ │ +002bd3a0: 7175 6964 2e73 6572 7669 6365 0a20 2020 quid.service. │ │ │ +002bd3b0: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +002bd3c0: 640a 2020 2020 2020 656e 6162 6c65 643a d. enabled: │ │ │ +002bd3d0: 2066 616c 7365 0a20 2020 2020 206d 6173 false. mas │ │ │ +002bd3e0: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ +002bd3f0: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ +002bd400: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ +002bd410: 6973 2073 6561 7263 6828 2273 7175 6964 is search("squid │ │ │ +002bd420: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ +002bd430: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ +002bd440: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ +002bd450: 7420 4578 6973 7473 202d 2073 7175 6964 t Exists - squid │ │ │ +002bd460: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ +002bd470: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ +002bd480: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ +002bd490: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ +002bd4a0: 7320 7371 7569 642e 736f 636b 6574 0a20 s squid.socket. │ │ │ +002bd4b0: 2020 2072 6567 6973 7465 723a 2073 6f63 register: soc │ │ │ +002bd4c0: 6b65 745f 6669 6c65 5f65 7869 7374 730a ket_file_exists. │ │ │ +002bd4d0: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ +002bd4e0: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ +002bd4f0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f ed_when: socket_ │ │ │ +002bd500: 6669 6c65 5f65 7869 7374 732e 7263 206e file_exists.rc n │ │ │ +002bd510: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ +002bd520: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ +002bd530: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ +002bd540: 7361 626c 6520 5371 7569 6420 2d20 4469 sable Squid - Di │ │ │ +002bd550: 7361 626c 6520 536f 636b 6574 2073 7175 sable Socket squ │ │ │ +002bd560: 6964 0a20 2020 2061 6e73 6962 6c65 2e62 id. ansible.b │ │ │ +002bd570: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ +002bd580: 2020 2020 2020 6e61 6d65 3a20 7371 7569 name: squi │ │ │ +002bd590: 642e 736f 636b 6574 0a20 2020 2020 2065 d.socket. e │ │ │ +002bd5a0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +002bd5b0: 2020 2020 7374 6174 653a 2073 746f 7070 state: stopp │ │ │ +002bd5c0: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ +002bd5d0: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ +002bd5e0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +002bd5f0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ +002bd600: 6973 2073 6561 7263 6828 2273 7175 6964 is search("squid │ │ │ +002bd610: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c .socket", multil │ │ │ +002bd620: 696e 653d 5472 7565 290a 2020 7461 6773 ine=True). tags │ │ │ +002bd630: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ +002bd640: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +002bd650: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002bd660: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002bd670: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +002bd680: 640a 2020 2d20 7365 7276 6963 655f 7371 d. - service_sq │ │ │ +002bd690: 7569 645f 6469 7361 626c 6564 0a20 202d uid_disabled. - │ │ │ +002bd6a0: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ +002bd6b0: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f _block. - unkno │ │ │ +002bd6c0: 776e 5f73 6576 6572 6974 790a 2020 7768 wn_severity. wh │ │ │ +002bd6d0: 656e 3a20 2820 2273 7175 6964 2220 696e en: ( "squid" in │ │ │ +002bd6e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +002bd6f0: 6163 6b61 6765 7320 616e 6420 226c 696e ackages and "lin │ │ │ +002bd700: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ +002bd710: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +002bd720: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e es. ). │ │ │ +002bd730: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedi │ │ │ +002bd7e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002bd7f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002bd800: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002bd8a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002bd8c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002bd8f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002bd880: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002bd890: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002bd8b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002bd8d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002bd8e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +002bd930: 2064 6973 6162 6c65 5f73 7175 6964 0a0a disable_squid.. │ │ │ +002bd940: 636c 6173 7320 6469 7361 626c 655f 7371 class disable_sq │ │ │ +002bd950: 7569 6420 7b0a 2020 7365 7276 6963 6520 uid {. service │ │ │ +002bd960: 7b27 7371 7569 6427 3a0a 2020 2020 656e {'squid':. en │ │ │ +002bd970: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ +002bd980: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +002bd990: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ +002bd9a0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ +002bda60: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +002bda70: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ +002bdad0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +002bdae0: 6b65 6420 3d20 5b22 7371 7569 6422 5d0a  ked = ["squid"].
│ │ │  002bdaf0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediatio │ │ │ -002bf290: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002bf2a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002bf320: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002bf330: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002bf350: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002bf360: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002bf380: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002bf3a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002bf3d0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002bf3e0: 656d 6f76 655f 7361 6d62 610a 0a63 6c61  emove_samba..cla
│ │ │ -002bf3f0: 7373 2072 656d 6f76 655f 7361 6d62 6120  ss remove_samba 
│ │ │ -002bf400: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ -002bf410: 616d 6261 273a 0a20 2020 2065 6e73 7572  amba':.    ensur
│ │ │ -002bf420: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002bf430: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002bf440: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002bf4f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002bf500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002bf510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002bf5b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002bf5d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002bf600: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002bf590: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002bf5a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002bf5c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002bf5e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002bf5f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002bf630: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002bf640: 3a20 2755 6e69 6e73 7461 6c6c 2053 616d : 'Uninstall Sam │ │ │ -002bf650: 6261 2050 6163 6b61 6765 3a20 456e 7375 ba Package: Ensu │ │ │ -002bf660: 7265 2073 616d 6261 2069 7320 7265 6d6f re samba is remo │ │ │ -002bf670: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -002bf680: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -002bf690: 2020 2020 6e61 6d65 3a20 7361 6d62 610a name: samba. │ │ │ -002bf6a0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -002bf6b0: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ -002bf6c0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -002bf6d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -002bf6e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -002bf6f0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -002bf700: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -002bf710: 636b 6167 655f 7361 6d62 615f 7265 6d6f ckage_samba_remo │ │ │ -002bf720: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f ved. - unknown_ │ │ │ -002bf730: 7365 7665 7269 7479 0a3c 2f63 6f64 653e severity. │ │ │ +002bf290: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +002bf2a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002bf320: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002bf330: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002bf340: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002bf380: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002bf390: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002bf3b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002bf3c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +002bf3e0: 556e 696e 7374 616c 6c20 5361 6d62 6120  Uninstall Samba 
│ │ │ +002bf3f0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +002bf400: 7361 6d62 6120 6973 2072 656d 6f76 6564  samba is removed
│ │ │ +002bf410: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +002bf420: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002bf430: 206e 616d 653a 2073 616d 6261 0a20 2020   name: samba.   
│ │ │ +002bf440: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002bf450: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002bf460: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002bf470: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002bf480: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002bf490: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002bf4a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002bf4b0: 6765 5f73 616d 6261 5f72 656d 6f76 6564  ge_samba_removed
│ │ │ +002bf4c0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002bf4d0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediati │ │ │ +002bf590: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002bf5a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002bf620: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002bf630: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002bf640: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002bf680: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002bf690: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002bf6b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002bf6c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002bf6e0: 7265 6d6f 7665 5f73 616d 6261 0a0a 636c  remove_samba..cl
│ │ │ +002bf6f0: 6173 7320 7265 6d6f 7665 5f73 616d 6261  ass remove_samba
│ │ │ +002bf700: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +002bf710: 7361 6d62 6127 3a0a 2020 2020 656e 7375  samba':.    ensu
│ │ │ +002bf720: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002bf730: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002bf740: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation │ │ │ -002c04d0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -002c04e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -002c0540: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002c0550: 6564 203d 205b 2273 6d62 225d 0a3c 2f63  ed = ["smb"].
│ │ │ -002c0570: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002c0610: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002c0620: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002c0630: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002c06c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002c06d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002c0720: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -002c0760: 6c75 6465 2064 6973 6162 6c65 5f73 6d62  lude disable_smb
│ │ │ -002c0770: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -002c0780: 736d 6220 7b0a 2020 7365 7276 6963 6520  smb {.  service 
│ │ │ -002c0790: 7b27 736d 6227 3a0a 2020 2020 656e 6162  {'smb':.    enab
│ │ │ -002c07a0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -002c07b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002c07c0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -002c07d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002c07e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002c0890: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002c08a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -002c0970: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ -002c06b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002c06e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002c06f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002c0730: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -002c0740: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -002c0930: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -002c0950: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002c09a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002c09b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -002c09e0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -002c09f0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -002c0a00: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -002c0a10: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -002c0a20: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002c0a30: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002c0a40: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002c0a50: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -002c0a60: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -002c0a70: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002c0a80: 0a20 202d 2073 6572 7669 6365 5f73 6d62  .  - service_smb
│ │ │ -002c0a90: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -002c0aa0: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ -002c0ab0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -002c0ac0: 6365 2073 6d62 0a20 2062 6c6f 636b 3a0a  ce smb.  block:.
│ │ │ -002c0ad0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002c0ae0: 6c65 2053 616d 6261 202d 2043 6f6c 6c65  le Samba - Colle
│ │ │ -002c0af0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -002c0b00: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -002c0b10: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -002c0b20: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -002c0b30: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -002c0b40: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -002c0b50: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -002c0b60: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -002c0b70: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -002c0b80: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002c0b90: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002c0ba0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -002c0bb0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -002c0bc0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -002c0bd0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -002c0be0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002c0bf0: 6520 5361 6d62 6120 2d20 456e 7375 7265  e Samba - Ensure
│ │ │ -002c0c00: 2073 6d62 2e73 6572 7669 6365 2069 7320   smb.service is 
│ │ │ -002c0c10: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -002c0c20: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002c0c30: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002c0c40: 736d 622e 7365 7276 6963 650a 2020 2020  smb.service.    
│ │ │ -002c0c50: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002c0c60: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002c0c70: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -002c0c80: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -002c0c90: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002c0ca0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -002c0cb0: 7320 7365 6172 6368 2822 736d 622e 7365  s search("smb.se
│ │ │ -002c0cc0: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -002c0cd0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -002c0ce0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -002c0cf0: 7869 7374 7320 2d20 736d 622e 736f 636b  xists - smb.sock
│ │ │ -002c0d00: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -002c0d10: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -002c0d20: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -002c0d30: 742d 756e 6974 2d66 696c 6573 2073 6d62  t-unit-files smb
│ │ │ -002c0d40: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -002c0d50: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -002c0d60: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002c0d70: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002c0d80: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -002c0d90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002c0da0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -002c0db0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -002c0dc0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -002c0dd0: 206e 616d 653a 2044 6973 6162 6c65 2053   name: Disable S
│ │ │ -002c0de0: 616d 6261 202d 2044 6973 6162 6c65 2053  amba - Disable S
│ │ │ -002c0df0: 6f63 6b65 7420 736d 620a 2020 2020 616e  ocket smb.    an
│ │ │ -002c0e00: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002c0e10: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002c0e20: 653a 2073 6d62 2e73 6f63 6b65 740a 2020  e: smb.socket.  
│ │ │ -002c0e30: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002c0e40: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002c0e50: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002c0e60: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002c0e70: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002c0e80: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002c0e90: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002c0ea0: 736d 622e 736f 636b 6574 222c 206d 756c  smb.socket", mul
│ │ │ -002c0eb0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -002c0ec0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -002c0ed0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002c0ee0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002c0ef0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002c0f00: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -002c0f10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002c0f20: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002c0f30: 655f 736d 625f 6469 7361 626c 6564 0a20  e_smb_disabled. 
│ │ │ -002c0f40: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -002c0f50: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -002c0f60: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -002c0f70: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002c0f80: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Complexity │ │ │ +002c0570: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002c0590: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002c05a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c05b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002c05c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002c05e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002c0610: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002c0620: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002c0630: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002c0640: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002c0650: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002c0660: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002c0670: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002c0680: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002c0690: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002c06a0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +002c06b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002c06c0: 640a 2020 2d20 7365 7276 6963 655f 736d  d.  - service_sm
│ │ │ +002c06d0: 625f 6469 7361 626c 6564 0a0a 2d20 6e61  b_disabled..- na
│ │ │ +002c06e0: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ +002c06f0: 6120 2d20 4469 7361 626c 6520 7365 7276  a - Disable serv
│ │ │ +002c0700: 6963 6520 736d 620a 2020 626c 6f63 6b3a  ice smb.  block:
│ │ │ +002c0710: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002c0720: 626c 6520 5361 6d62 6120 2d20 436f 6c6c  ble Samba - Coll
│ │ │ +002c0730: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +002c0740: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +002c0750: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +002c0760: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002c0770: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002c0780: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002c0790: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +002c07a0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +002c07b0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002c07c0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002c07d0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002c07e0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +002c07f0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +002c0800: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +002c0810: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +002c0820: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002c0830: 6c65 2053 616d 6261 202d 2045 6e73 7572  le Samba - Ensur
│ │ │ +002c0840: 6520 736d 622e 7365 7276 6963 6520 6973  e smb.service is
│ │ │ +002c0850: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +002c0860: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002c0870: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002c0880: 2073 6d62 2e73 6572 7669 6365 0a20 2020   smb.service.   
│ │ │ +002c0890: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002c08a0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +002c08b0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002c08c0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002c08d0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002c08e0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002c08f0: 6973 2073 6561 7263 6828 2273 6d62 2e73  is search("smb.s
│ │ │ +002c0900: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +002c0910: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +002c0920: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +002c0930: 4578 6973 7473 202d 2073 6d62 2e73 6f63  Exists - smb.soc
│ │ │ +002c0940: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002c0950: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002c0960: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002c0970: 7374 2d75 6e69 742d 6669 6c65 7320 736d  st-unit-files sm
│ │ │ +002c0980: 622e 736f 636b 6574 0a20 2020 2072 6567  b.socket.    reg
│ │ │ +002c0990: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002c09a0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002c09b0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002c09c0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002c09d0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002c09e0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002c09f0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002c0a00: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002c0a10: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002c0a20: 5361 6d62 6120 2d20 4469 7361 626c 6520  Samba - Disable 
│ │ │ +002c0a30: 536f 636b 6574 2073 6d62 0a20 2020 2061  Socket smb.    a
│ │ │ +002c0a40: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +002c0a50: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +002c0a60: 6d65 3a20 736d 622e 736f 636b 6574 0a20  me: smb.socket. 
│ │ │ +002c0a70: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002c0a80: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +002c0a90: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +002c0aa0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002c0ab0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +002c0ac0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002c0ad0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002c0ae0: 2273 6d62 2e73 6f63 6b65 7422 2c20 6d75  "smb.socket", mu
│ │ │ +002c0af0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +002c0b00: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +002c0b10: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002c0b20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002c0b30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002c0b40: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002c0b50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002c0b60: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002c0b70: 6365 5f73 6d62 5f64 6973 6162 6c65 640a  ce_smb_disabled.
│ │ │ +002c0b80: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002c0b90: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +002c0ba0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002c0bb0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002c0bc0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +002c0c80: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002c0c90: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +002c0d20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002c0d50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002c0d70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002c0d80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002c0da0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +002c0dc0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +002c0dd0: 6465 2064 6973 6162 6c65 5f73 6d62 0a0a  de disable_smb..
│ │ │ +002c0de0: 636c 6173 7320 6469 7361 626c 655f 736d  class disable_sm
│ │ │ +002c0df0: 6220 7b0a 2020 7365 7276 6963 6520 7b27  b {.  service {'
│ │ │ +002c0e00: 736d 6227 3a0a 2020 2020 656e 6162 6c65  smb':.    enable
│ │ │ +002c0e10: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +002c0e20: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002c0e30: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +002c0e40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +002c0f00: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002c0f10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +002c0f60: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +002c0f70: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +002c0f80: 3d20 5b22 736d 6222 5d0a 3c2f 636f 6465  = ["smb"].
│ │ │ -002c2670: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002c2680: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -002c2760: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002c2770: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002c27c0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002c27d0: 6e65 742d 736e 6d70 0a0a 636c 6173 7320  net-snmp..class 
│ │ │ -002c27e0: 7265 6d6f 7665 5f6e 6574 2d73 6e6d 7020  remove_net-snmp 
│ │ │ -002c27f0: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ -002c2800: 6574 2d73 6e6d 7027 3a0a 2020 2020 656e  et-snmp':.    en
│ │ │ -002c2810: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002c2820: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002c28e0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002c28f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002c2900: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -002c2740: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002c2750: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002c2790: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002c27a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -002c29a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c29f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002c2a30: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002c2a40: 6e65 742d 736e 6d70 2050 6163 6b61 6765  net-snmp Package
│ │ │ -002c2a50: 3a20 456e 7375 7265 206e 6574 2d73 6e6d  : Ensure net-snm
│ │ │ -002c2a60: 7020 6973 2072 656d 6f76 6564 270a 2020  p is removed'.  
│ │ │ -002c2a70: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002c2a80: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002c2a90: 653a 206e 6574 2d73 6e6d 700a 2020 2020  e: net-snmp.    
│ │ │ -002c2aa0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002c2ab0: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -002c2ac0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -002c2ad0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -002c2ae0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002c2af0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002c2b00: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002c2b10: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002c2b20: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002c2b30: 7061 636b 6167 655f 6e65 742d 736e 6d70  package_net-snmp
│ │ │ -002c2b40: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ -002c2b50: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
Co │ │ │ -002c2980: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c29b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c29d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c29e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c2a00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c2a10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +002c2760: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002c2770: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +002c27d0: 616c 6c20 6e65 742d 736e 6d70 2050 6163  all net-snmp Pac
│ │ │ +002c27e0: 6b61 6765 3a20 456e 7375 7265 206e 6574  kage: Ensure net
│ │ │ +002c27f0: 2d73 6e6d 7020 6973 2072 656d 6f76 6564  -snmp is removed
│ │ │ +002c2800: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +002c2810: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002c2820: 206e 616d 653a 206e 6574 2d73 6e6d 700a   name: net-snmp.
│ │ │ +002c2830: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002c2840: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ +002c2850: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002c2860: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +002c2870: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002c2880: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002c2890: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002c28a0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +002c28b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002c28c0: 2020 2d20 7061 636b 6167 655f 6e65 742d    - package_net-
│ │ │ +002c28d0: 736e 6d70 5f72 656d 6f76 6564 0a20 202d  snmp_removed.  -
│ │ │ +002c28e0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +002c28f0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +002c2900: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002c29b0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002c29c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ +002c2740: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002c2750: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002c2790: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002c27a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002c2a40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002c2a60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002c2ab0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002c2ae0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002c2a50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002c2a70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002c2ac0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002c2ad0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +002c2b00: 7665 5f6e 6574 2d73 6e6d 700a 0a63 6c61  ve_net-snmp..cla
│ │ │ +002c2b10: 7373 2072 656d 6f76 655f 6e65 742d 736e  ss remove_net-sn
│ │ │ +002c2b20: 6d70 207b 0a20 2070 6163 6b61 6765 207b  mp {.  package {
│ │ │ +002c2b30: 2027 6e65 742d 736e 6d70 273a 0a20 2020   'net-snmp':.   
│ │ │ +002c2b40: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +002c2b50: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remedi │ │ │ -002c3980: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002c3990: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002c39a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -002c39f0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002c3a00: 5d0a 6d61 736b 6564 203d 205b 2273 6e6d  ].masked = ["snm
│ │ │ -002c3a10: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remediatio │ │ │ -002c3ad0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002c3ae0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002c3b60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002c3b70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002c3b90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002c3ba0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002c3bc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002c3be0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002c3c10: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002c3c20: 6162 6c65 5f73 6e6d 7064 0a0a 636c 6173  able_snmpd..clas
│ │ │ -002c3c30: 7320 6469 7361 626c 655f 736e 6d70 6420  s disable_snmpd 
│ │ │ -002c3c40: 7b0a 2020 7365 7276 6963 6520 7b27 736e  {.  service {'sn
│ │ │ -002c3c50: 6d70 6427 3a0a 2020 2020 656e 6162 6c65  mpd':.    enable
│ │ │ -002c3c60: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -002c3c70: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002c3c80: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -002c3c90: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002c3d50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002c3d60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002c3de0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002c3e00: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002c3e50: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002c3e80: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -002c3ea0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -002c3eb0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002c3ec0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002c3ed0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002c3ee0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002c3ef0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002c3f00: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002c3f10: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -002c3f20: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002c3f30: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002c3f40: 202d 2073 6572 7669 6365 5f73 6e6d 7064   - service_snmpd
│ │ │ -002c3f50: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -002c3f60: 653a 2044 6973 6162 6c65 2073 6e6d 7064  e: Disable snmpd
│ │ │ -002c3f70: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002c3f80: 6c65 2073 6572 7669 6365 2073 6e6d 7064  le service snmpd
│ │ │ -002c3f90: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -002c3fa0: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ -002c3fb0: 7064 2053 6572 7669 6365 202d 2043 6f6c  pd Service - Col
│ │ │ -002c3fc0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -002c3fd0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -002c3fe0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -002c3ff0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002c4000: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002c4010: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002c4020: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -002c4030: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -002c4040: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -002c4050: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002c4060: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002c4070: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -002c4080: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -002c4090: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002c40a0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002c40b0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002c40c0: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ -002c40d0: 6520 2d20 456e 7375 7265 2073 6e6d 7064  e - Ensure snmpd
│ │ │ -002c40e0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002c40f0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002c4100: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002c4110: 2020 2020 2020 6e61 6d65 3a20 736e 6d70        name: snmp
│ │ │ -002c4120: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -002c4130: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -002c4140: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002c4150: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -002c4160: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -002c4170: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -002c4180: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002c4190: 7365 6172 6368 2822 736e 6d70 642e 7365  search("snmpd.se
│ │ │ -002c41a0: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -002c41b0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -002c41c0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -002c41d0: 7869 7374 7320 2d20 736e 6d70 642e 736f  xists - snmpd.so
│ │ │ -002c41e0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002c41f0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002c4200: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002c4210: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ -002c4220: 6e6d 7064 2e73 6f63 6b65 740a 2020 2020  nmpd.socket.    
│ │ │ -002c4230: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002c4240: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002c4250: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002c4260: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002c4270: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002c4280: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002c4290: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002c42a0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002c42b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002c42c0: 6c65 2073 6e6d 7064 2053 6572 7669 6365  le snmpd Service
│ │ │ -002c42d0: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -002c42e0: 7420 736e 6d70 640a 2020 2020 616e 7369  t snmpd.    ansi
│ │ │ -002c42f0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002c4300: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002c4310: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ -002c4320: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002c4330: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002c4340: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002c4350: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002c4360: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002c4370: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002c4380: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002c4390: 736e 6d70 642e 736f 636b 6574 222c 206d  snmpd.socket", m
│ │ │ -002c43a0: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -002c43b0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002c43c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002c43d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002c43e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002c43f0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -002c4400: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002c4410: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002c4420: 6963 655f 736e 6d70 645f 6469 7361 626c  ice_snmpd_disabl
│ │ │ -002c4430: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -002c4440: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -002c4450: 6865 6e3a 2028 2022 736e 6d70 6422 2069  hen: ( "snmpd" i
│ │ │ -002c4460: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002c4470: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ -002c4480: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002c4490: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002c44a0: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
low
Disr │ │ │ -002c3e10: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002c3e20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002c3e60: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002c3e70: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ +002c3a20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002c3a30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002c3a50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002c3a70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002c3a80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002c3ac0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002c3ad0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +002c3ae0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002c3af0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002c3b00: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002c3b10: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002c3b20: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002c3b30: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002c3b40: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002c3b50: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +002c3b60: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002c3b70: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002c3b80: 6963 655f 736e 6d70 645f 6469 7361 626c  ice_snmpd_disabl
│ │ │ +002c3b90: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +002c3ba0: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ +002c3bb0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +002c3bc0: 6963 6520 736e 6d70 640a 2020 626c 6f63  ice snmpd.  bloc
│ │ │ +002c3bd0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +002c3be0: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ +002c3bf0: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +002c3c00: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +002c3c10: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +002c3c20: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +002c3c30: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +002c3c40: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +002c3c50: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +002c3c60: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +002c3c70: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +002c3c80: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +002c3c90: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002c3ca0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002c3cb0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002c3cc0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002c3cd0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002c3ce0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002c3cf0: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ +002c3d00: 7064 2053 6572 7669 6365 202d 2045 6e73  pd Service - Ens
│ │ │ +002c3d10: 7572 6520 736e 6d70 642e 7365 7276 6963  ure snmpd.servic
│ │ │ +002c3d20: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +002c3d30: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002c3d40: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002c3d50: 616d 653a 2073 6e6d 7064 2e73 6572 7669  ame: snmpd.servi
│ │ │ +002c3d60: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +002c3d70: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +002c3d80: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002c3d90: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002c3da0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +002c3db0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002c3dc0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002c3dd0: 2273 6e6d 7064 2e73 6572 7669 6365 222c  "snmpd.service",
│ │ │ +002c3de0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002c3df0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +002c3e00: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +002c3e10: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ +002c3e20: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002c3e30: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002c3e40: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002c3e50: 742d 6669 6c65 7320 736e 6d70 642e 736f  t-files snmpd.so
│ │ │ +002c3e60: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +002c3e70: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +002c3e80: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002c3e90: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002c3ea0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002c3eb0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002c3ec0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002c3ed0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002c3ee0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002c3ef0: 6d65 3a20 4469 7361 626c 6520 736e 6d70  me: Disable snmp
│ │ │ +002c3f00: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +002c3f10: 626c 6520 536f 636b 6574 2073 6e6d 7064  ble Socket snmpd
│ │ │ +002c3f20: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002c3f30: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002c3f40: 2020 2020 6e61 6d65 3a20 736e 6d70 642e      name: snmpd.
│ │ │ +002c3f50: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002c3f60: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002c3f70: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002c3f80: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002c3f90: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +002c3fa0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002c3fb0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002c3fc0: 2073 6561 7263 6828 2273 6e6d 7064 2e73   search("snmpd.s
│ │ │ +002c3fd0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +002c3fe0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +002c3ff0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002c4000: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002c4010: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002c4020: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +002c4030: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +002c4040: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002c4050: 0a20 202d 2073 6572 7669 6365 5f73 6e6d  .  - service_snm
│ │ │ +002c4060: 7064 5f64 6973 6162 6c65 640a 2020 2d20  pd_disabled.  - 
│ │ │ +002c4070: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +002c4080: 626c 6f63 6b0a 2020 7768 656e 3a20 2820  block.  when: ( 
│ │ │ +002c4090: 2273 6e6d 7064 2220 696e 2061 6e73 6962  "snmpd" in ansib
│ │ │ +002c40a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002c40b0: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ +002c40c0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002c40d0: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ +002c40e0: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +002c40f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002c41a0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002c41b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +002c4240: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002c4260: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002c4280: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002c42b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002c42c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +002c42d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +002c42f0: 6c65 5f73 6e6d 7064 0a0a 636c 6173 7320  le_snmpd..class 
│ │ │ +002c4300: 6469 7361 626c 655f 736e 6d70 6420 7b0a  disable_snmpd {.
│ │ │ +002c4310: 2020 7365 7276 6963 6520 7b27 736e 6d70    service {'snmp
│ │ │ +002c4320: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +002c4330: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +002c4340: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +002c4350: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +002c4410: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +002c4420: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +002c4430: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002c4440: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +002c4480: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +002c4490: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +002c44a0: 5b22 736e 6d70 6422 5d0a 3c2f 636f 6465  ["snmpd"].
Remedia │ │ │ -002ed6b0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002ed6c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002ed6d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002ed6e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002ed6f0: 7365 2220 6964 3d22 6964 3132 3530 223e se" id="id1250"> │ │ │ -002ed700: 3c70 7265 3e3c 636f 6465 3e0a 0a0a 696e
...in
│ │ │ -002ed710: 636c 7564 6520 7373 685f 7072 6976 6174  clude ssh_privat
│ │ │ -002ed720: 655f 6b65 795f 7065 726d 730a 0a63 6c61  e_key_perms..cla
│ │ │ -002ed730: 7373 2073 7368 5f70 7269 7661 7465 5f6b  ss ssh_private_k
│ │ │ -002ed740: 6579 5f70 6572 6d73 207b 0a20 2065 7865  ey_perms {.  exe
│ │ │ -002ed750: 6320 7b20 2773 7368 645f 7072 6976 5f6b  c { 'sshd_priv_k
│ │ │ -002ed760: 6579 273a 0a20 2020 2063 6f6d 6d61 6e64  ey':.    command
│ │ │ -002ed770: 203d 2667 743b 2022 6368 6d6f 6420 3036   => "chmod 06
│ │ │ -002ed780: 3030 202f 6574 632f 7373 682f 2a5f 6b65  00 /etc/ssh/*_ke
│ │ │ -002ed790: 7922 2c0a 2020 2020 7061 7468 2020 2020  y",.    path    
│ │ │ -002ed7a0: 3d26 6774 3b20 272f 6269 6e3a 2f75 7372  => '/bin:/usr
│ │ │ -002ed7b0: 2f62 696e 270a 2020 7d0a 7d0a 3c2f 636f  /bin'.  }.}.
< │ │ │ -002ed7d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002ed7e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002ed7f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002ed800: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002ed810: 6431 3235 3122 2074 6162 696e 6465 783d d1251" tabindex= │ │ │ -002ed820: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002ed830: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002ed840: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002ed850: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002ed860: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002ed870: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002ed880: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002ed890: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002ed920: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002ed930: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002ed980: 3c74 723e 3c74 683e 5374 7261 7465 6779

│ │ │ -002ed9c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002ed9d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002ed9e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002ed9f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002eda00: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002eda10: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002eda20: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -002eda30: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -002eda40: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002eda50: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -002eda60: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -002eda70: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002eda80: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -002eda90: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -002edaa0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002edab0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002edac0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -002edad0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -002edae0: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -002edaf0: 6864 5f70 7269 7661 7465 5f6b 6579 0a20  hd_private_key. 
│ │ │ -002edb00: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002edb10: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002edb20: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002edb30: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002edb40: 7265 626f 6f74 5f6e 6565 6465 640a 0a2d  reboot_needed..-
│ │ │ -002edb50: 206e 616d 653a 2046 696e 6420 726f 6f74   name: Find root
│ │ │ -002edb60: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ -002edb70: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -002edb80: 696e 2e63 6f6d 6d61 6e64 3a20 6669 6e64  in.command: find
│ │ │ -002edb90: 202d 4820 2f65 7463 2f73 7368 2f20 2d6d   -H /etc/ssh/ -m
│ │ │ -002edba0: 6178 6465 7074 6820 3120 2d75 7365 7220  axdepth 1 -user 
│ │ │ -002edbb0: 726f 6f74 202d 7265 6765 7820 222e 2a5f  root -regex ".*_
│ │ │ -002edbc0: 6b65 7924 220a 2020 2020 2d74 7970 6520  key$".    -type 
│ │ │ -002edbd0: 6620 2d67 726f 7570 2072 6f6f 7420 2d70  f -group root -p
│ │ │ -002edbe0: 6572 6d20 2f75 2b78 732c 672b 7877 7273  erm /u+xs,g+xwrs
│ │ │ -002edbf0: 2c6f 2b78 7772 740a 2020 7265 6769 7374  ,o+xwrt.  regist
│ │ │ -002edc00: 6572 3a20 726f 6f74 5f6f 776e 6564 5f6b  er: root_owned_k
│ │ │ -002edc10: 6579 730a 2020 6368 616e 6765 645f 7768  eys.  changed_wh
│ │ │ -002edc20: 656e 3a20 6661 6c73 650a 2020 6661 696c  en: false.  fail
│ │ │ -002edc30: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002edc40: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002edc50: 7365 0a20 2077 6865 6e3a 2027 226c 696e  se.  when: '"lin
│ │ │ -002edc60: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002edc70: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002edc80: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -002edc90: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002edca0: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -002edcb0: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -002edcc0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002edcd0: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -002edce0: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -002edcf0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002edd00: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -002edd10: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -002edd20: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002edd30: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002edd40: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -002edd50: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -002edd60: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -002edd70: 6864 5f70 7269 7661 7465 5f6b 6579 0a20  hd_private_key. 
│ │ │ -002edd80: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002edd90: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002edda0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002eddb0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002eddc0: 7265 626f 6f74 5f6e 6565 6465 640a 0a2d  reboot_needed..-
│ │ │ -002eddd0: 206e 616d 653a 2053 6574 2070 6572 6d69   name: Set permi
│ │ │ -002edde0: 7373 696f 6e73 2066 6f72 2072 6f6f 743a  ssions for root:
│ │ │ -002eddf0: 726f 6f74 2d6f 776e 6564 206b 6579 730a  root-owned keys.
│ │ │ -002ede00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002ede10: 6e2e 6669 6c65 3a0a 2020 2020 7061 7468  n.file:.    path
│ │ │ -002ede20: 3a20 277b 7b20 6974 656d 207d 7d27 0a20  : '{{ item }}'. 
│ │ │ -002ede30: 2020 206d 6f64 653a 2075 2d78 732c 672d     mode: u-xs,g-
│ │ │ -002ede40: 7877 7273 2c6f 2d78 7772 740a 2020 2020  xwrs,o-xwrt.    
│ │ │ -002ede50: 7374 6174 653a 2066 696c 650a 2020 7769  state: file.  wi
│ │ │ -002ede60: 7468 5f69 7465 6d73 3a0a 2020 2d20 277b  th_items:.  - '{
│ │ │ -002ede70: 7b20 726f 6f74 5f6f 776e 6564 5f6b 6579  { root_owned_key
│ │ │ -002ede80: 732e 7374 646f 7574 5f6c 696e 6573 207d  s.stdout_lines }
│ │ │ -002ede90: 7d27 0a20 2077 6865 6e3a 2027 226c 696e  }'.  when: '"lin
│ │ │ -002edea0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002edeb0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002edec0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -002eded0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002edee0: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -002edef0: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -002edf00: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002edf10: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -002edf20: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -002edf30: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002edf40: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -002edf50: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -002edf60: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002edf70: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002edf80: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -002edf90: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -002edfa0: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -002edfb0: 6864 5f70 7269 7661 7465 5f6b 6579 0a20  hd_private_key. 
│ │ │ -002edfc0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002edfd0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002edfe0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002edff0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002ee000: 7265 626f 6f74 5f6e 6565 6465 640a 3c2f  reboot_needed.
│ │ │ +002ed6d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ -002ed910: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002ed940: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002ed950: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002ed990: 3a3c 2f74 683e 3c74 643e 636f 6e66 6967 :config │ │ │ -002ed9a0: 7572 653c 2f74 643e 3c2f 7472 3e3c 2f74 ure
│ │ │ +002ed770: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002ed790: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002ed7c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002ed750: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002ed760: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002ed780: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002ed7a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002ed7b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:configure< │ │ │ +002ed7e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002ed800: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002ed810: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002ed820: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002ed830: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002ed840: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002ed850: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002ed860: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002ed870: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002ed880: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002ed890: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002ed8a0: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002ed8b0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002ed8c0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002ed8d0: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002ed8e0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002ed8f0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002ed900: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002ed910: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002ed920: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002ed930: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ +002ed940: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002ed950: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002ed960: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002ed970: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002ed980: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +002ed990: 653a 2046 696e 6420 726f 6f74 3a72 6f6f  e: Find root:roo
│ │ │ +002ed9a0: 742d 6f77 6e65 6420 6b65 7973 0a20 2061  t-owned keys.  a
│ │ │ +002ed9b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002ed9c0: 6f6d 6d61 6e64 3a20 6669 6e64 202d 4820  ommand: find -H 
│ │ │ +002ed9d0: 2f65 7463 2f73 7368 2f20 2d6d 6178 6465  /etc/ssh/ -maxde
│ │ │ +002ed9e0: 7074 6820 3120 2d75 7365 7220 726f 6f74  pth 1 -user root
│ │ │ +002ed9f0: 202d 7265 6765 7820 222e 2a5f 6b65 7924   -regex ".*_key$
│ │ │ +002eda00: 220a 2020 2020 2d74 7970 6520 6620 2d67  ".    -type f -g
│ │ │ +002eda10: 726f 7570 2072 6f6f 7420 2d70 6572 6d20  roup root -perm 
│ │ │ +002eda20: 2f75 2b78 732c 672b 7877 7273 2c6f 2b78  /u+xs,g+xwrs,o+x
│ │ │ +002eda30: 7772 740a 2020 7265 6769 7374 6572 3a20  wrt.  register: 
│ │ │ +002eda40: 726f 6f74 5f6f 776e 6564 5f6b 6579 730a  root_owned_keys.
│ │ │ +002eda50: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002eda60: 6661 6c73 650a 2020 6661 696c 6564 5f77  false.  failed_w
│ │ │ +002eda70: 6865 6e3a 2066 616c 7365 0a20 2063 6865  hen: false.  che
│ │ │ +002eda80: 636b 5f6d 6f64 653a 2066 616c 7365 0a20  ck_mode: false. 
│ │ │ +002eda90: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002edaa0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002edab0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002edac0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002edad0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002edae0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002edaf0: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002edb00: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002edb10: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002edb20: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002edb30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002edb40: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002edb50: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002edb60: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002edb70: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002edb80: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002edb90: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002edba0: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002edbb0: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ +002edbc0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002edbd0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002edbe0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002edbf0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002edc00: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +002edc10: 653a 2053 6574 2070 6572 6d69 7373 696f  e: Set permissio
│ │ │ +002edc20: 6e73 2066 6f72 2072 6f6f 743a 726f 6f74  ns for root:root
│ │ │ +002edc30: 2d6f 776e 6564 206b 6579 730a 2020 616e  -owned keys.  an
│ │ │ +002edc40: 7369 626c 652e 6275 696c 7469 6e2e 6669  sible.builtin.fi
│ │ │ +002edc50: 6c65 3a0a 2020 2020 7061 7468 3a20 277b  le:.    path: '{
│ │ │ +002edc60: 7b20 6974 656d 207d 7d27 0a20 2020 206d  { item }}'.    m
│ │ │ +002edc70: 6f64 653a 2075 2d78 732c 672d 7877 7273  ode: u-xs,g-xwrs
│ │ │ +002edc80: 2c6f 2d78 7772 740a 2020 2020 7374 6174  ,o-xwrt.    stat
│ │ │ +002edc90: 653a 2066 696c 650a 2020 7769 7468 5f69  e: file.  with_i
│ │ │ +002edca0: 7465 6d73 3a0a 2020 2d20 277b 7b20 726f  tems:.  - '{{ ro
│ │ │ +002edcb0: 6f74 5f6f 776e 6564 5f6b 6579 732e 7374  ot_owned_keys.st
│ │ │ +002edcc0: 646f 7574 5f6c 696e 6573 207d 7d27 0a20  dout_lines }}'. 
│ │ │ +002edcd0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002edce0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002edcf0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002edd00: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002edd10: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002edd20: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002edd30: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002edd40: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002edd50: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002edd60: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002edd70: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002edd80: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002edd90: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002edda0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002eddb0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002eddc0: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002eddd0: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002edde0: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002eddf0: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ +002ede00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002ede10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002ede20: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002ede30: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002ede40: 6f74 5f6e 6565 6465 640a 3c2f 636f 6465  ot_needed.
Remed │ │ │ +002edf00: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002edf10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
...
│ │ │ +002edf60: 696e 636c 7564 6520 7373 685f 7072 6976  include ssh_priv
│ │ │ +002edf70: 6174 655f 6b65 795f 7065 726d 730a 0a63  ate_key_perms..c
│ │ │ +002edf80: 6c61 7373 2073 7368 5f70 7269 7661 7465  lass ssh_private
│ │ │ +002edf90: 5f6b 6579 5f70 6572 6d73 207b 0a20 2065  _key_perms {.  e
│ │ │ +002edfa0: 7865 6320 7b20 2773 7368 645f 7072 6976  xec { 'sshd_priv
│ │ │ +002edfb0: 5f6b 6579 273a 0a20 2020 2063 6f6d 6d61  _key':.    comma
│ │ │ +002edfc0: 6e64 203d 2667 743b 2022 6368 6d6f 6420  nd => "chmod 
│ │ │ +002edfd0: 3036 3030 202f 6574 632f 7373 682f 2a5f  0600 /etc/ssh/*_
│ │ │ +002edfe0: 6b65 7922 2c0a 2020 2020 7061 7468 2020  key",.    path  
│ │ │ +002edff0: 2020 3d26 6774 3b20 272f 6269 6e3a 2f75    => '/bin:/u
│ │ │ +002ee000: 7372 2f62 696e 270a 2020 7d0a 7d0a 3c2f  sr/bin'.  }.}.
Remediati │ │ │ -002ef470: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002ef480: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

include │ │ │ -002ef4d0: 2073 7368 5f70 7562 6c69 635f 6b65 795f ssh_public_key_ │ │ │ -002ef4e0: 7065 726d 730a 0a63 6c61 7373 2073 7368 perms..class ssh │ │ │ -002ef4f0: 5f70 7562 6c69 635f 6b65 795f 7065 726d _public_key_perm │ │ │ -002ef500: 7320 7b0a 2020 6578 6563 207b 2027 7373 s {. exec { 'ss │ │ │ -002ef510: 6864 5f70 7562 5f6b 6579 273a 0a20 2020 hd_pub_key':. │ │ │ -002ef520: 2063 6f6d 6d61 6e64 203d 2667 743b 2022 command => " │ │ │ -002ef530: 6368 6d6f 6420 3036 3434 202f 6574 632f chmod 0644 /etc/ │ │ │ -002ef540: 7373 682f 2a2e 7075 6222 2c0a 2020 2020 ssh/*.pub",. │ │ │ -002ef550: 7061 7468 2020 2020 3d26 6774 3b20 272f path => '/ │ │ │ -002ef560: 6269 6e3a 2f75 7372 2f62 696e 270a 2020 bin:/usr/bin'. │ │ │ -002ef570: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -002ef630: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002ef640: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002ef6c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002ef6d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002ef6f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002ef700: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002ef720: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002ef740: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ -002ef760: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002ef780: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002ef790: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002ef7a0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002ef7b0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002ef7c0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -002ef7d0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -002ef7e0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -002ef7f0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -002ef800: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -002ef810: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -002ef820: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -002ef830: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002ef840: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -002ef850: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -002ef860: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -002ef870: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -002ef880: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -002ef890: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -002ef8a0: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b sions_sshd_pub_k │ │ │ -002ef8b0: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c ey. - low_compl │ │ │ -002ef8c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002ef8d0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002ef8e0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002ef8f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -002ef900: 640a 0a2d 206e 616d 653a 2046 696e 6420 d..- name: Find │ │ │ -002ef910: 2f65 7463 2f73 7368 2f20 6669 6c65 2873 /etc/ssh/ file(s │ │ │ -002ef920: 290a 2020 616e 7369 626c 652e 6275 696c ). ansible.buil │ │ │ -002ef930: 7469 6e2e 636f 6d6d 616e 643a 2066 696e tin.command: fin │ │ │ -002ef940: 6420 2d50 202f 6574 632f 7373 682f 202d d -P /etc/ssh/ - │ │ │ -002ef950: 6d61 7864 6570 7468 2031 202d 7065 726d maxdepth 1 -perm │ │ │ -002ef960: 202f 752b 7873 2c67 2b78 7773 2c6f 2b78 /u+xs,g+xws,o+x │ │ │ -002ef970: 7774 2020 2d74 7970 650a 2020 2020 6620 wt -type. f │ │ │ -002ef980: 2d72 6567 6578 7479 7065 2070 6f73 6978 -regextype posix │ │ │ -002ef990: 2d65 7874 656e 6465 6420 2d72 6567 6578 -extended -regex │ │ │ -002ef9a0: 2022 5e2e 2a5c 2e70 7562 2422 0a20 2072 "^.*\.pub$". r │ │ │ -002ef9b0: 6567 6973 7465 723a 2066 696c 6573 5f66 egister: files_f │ │ │ -002ef9c0: 6f75 6e64 0a20 2063 6861 6e67 6564 5f77 ound. changed_w │ │ │ -002ef9d0: 6865 6e3a 2066 616c 7365 0a20 2066 6169 hen: false. fai │ │ │ -002ef9e0: 6c65 645f 7768 656e 3a20 6661 6c73 650a led_when: false. │ │ │ -002ef9f0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002efa00: 6c73 650a 2020 7768 656e 3a20 2722 6c69 lse. when: '"li │ │ │ -002efa10: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -002efa20: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -002efa30: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -002efa40: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002efa50: 312e 3133 0a20 202d 204e 4953 542d 3830 1.13. - NIST-80 │ │ │ -002efa60: 302d 3137 312d 332e 3133 2e31 300a 2020 0-171-3.13.10. │ │ │ -002efa70: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -002efa80: 2d31 3728 6129 0a20 202d 204e 4953 542d -17(a). - NIST- │ │ │ -002efa90: 3830 302d 3533 2d41 432d 3628 3129 0a20 800-53-AC-6(1). │ │ │ -002efaa0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -002efab0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44 M-6(a). - PCI-D │ │ │ -002efac0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d SS-Req-2.2.4. - │ │ │ -002efad0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -002efae0: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -002efaf0: 2e36 0a20 202d 2063 6f6e 6669 6775 7265 .6. - configure │ │ │ -002efb00: 5f73 7472 6174 6567 790a 2020 2d20 6669 _strategy. - fi │ │ │ -002efb10: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73 le_permissions_s │ │ │ -002efb20: 7368 645f 7075 625f 6b65 790a 2020 2d20 shd_pub_key. - │ │ │ -002efb30: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -002efb40: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -002efb50: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -002efb60: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -002efb70: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61 oot_needed..- na │ │ │ -002efb80: 6d65 3a20 5365 7420 7065 726d 6973 7369 me: Set permissi │ │ │ -002efb90: 6f6e 7320 666f 7220 2f65 7463 2f73 7368 ons for /etc/ssh │ │ │ -002efba0: 2f20 6669 6c65 2873 290a 2020 616e 7369 / file(s). ansi │ │ │ -002efbb0: 626c 652e 6275 696c 7469 6e2e 6669 6c65 ble.builtin.file │ │ │ -002efbc0: 3a0a 2020 2020 7061 7468 3a20 277b 7b20 :. path: '{{ │ │ │ -002efbd0: 6974 656d 207d 7d27 0a20 2020 206d 6f64 item }}'. mod │ │ │ -002efbe0: 653a 2075 2d78 732c 672d 7877 732c 6f2d e: u-xs,g-xws,o- │ │ │ -002efbf0: 7877 740a 2020 2020 7374 6174 653a 2066 xwt. state: f │ │ │ -002efc00: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ -002efc10: 3a0a 2020 2d20 277b 7b20 6669 6c65 735f :. - '{{ files_ │ │ │ -002efc20: 666f 756e 642e 7374 646f 7574 5f6c 696e found.stdout_lin │ │ │ -002efc30: 6573 207d 7d27 0a20 2077 6865 6e3a 2027 es }}'. when: ' │ │ │ -002efc40: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -002efc50: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -002efc60: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -002efc70: 2020 2d20 4e49 5354 2d38 3030 2d31 3731 - NIST-800-171 │ │ │ -002efc80: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354 -3.1.13. - NIST │ │ │ -002efc90: 2d38 3030 2d31 3731 2d33 2e31 332e 3130 -800-171-3.13.10 │ │ │ -002efca0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -002efcb0: 2d41 432d 3137 2861 290a 2020 2d20 4e49 -AC-17(a). - NI │ │ │ -002efcc0: 5354 2d38 3030 2d35 332d 4143 2d36 2831 ST-800-53-AC-6(1 │ │ │ -002efcd0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -002efce0: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ -002efcf0: 492d 4453 532d 5265 712d 322e 322e 340a I-DSS-Req-2.2.4. │ │ │ -002efd00: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -002efd10: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -002efd20: 322e 322e 360a 2020 2d20 636f 6e66 6967 2.2.6. - config │ │ │ -002efd30: 7572 655f 7374 7261 7465 6779 0a20 202d ure_strategy. - │ │ │ -002efd40: 2066 696c 655f 7065 726d 6973 7369 6f6e file_permission │ │ │ -002efd50: 735f 7373 6864 5f70 7562 5f6b 6579 0a20 s_sshd_pub_key. │ │ │ -002efd60: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -002efd70: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -002efd80: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -002efd90: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -002efda0: 7265 626f 6f74 5f6e 6565 6465 640a 3c2f reboot_needed.
< │ │ │ +002ef4c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002ef4d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002ef4e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002ef4f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002ef500: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002ef510: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002ef520: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002ef560: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002ef570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002ef590: 3c74 643e 636f 6e66 6967 7572 653c 2f74 configure< │ │ │ +002ef5b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002ef5c0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002ef5d0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002ef5e0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +002ef5f0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +002ef600: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002ef610: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ +002ef620: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +002ef630: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ +002ef640: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ +002ef650: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +002ef660: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ +002ef670: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +002ef680: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +002ef690: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ +002ef6a0: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +002ef6b0: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ +002ef6c0: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ +002ef6d0: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ +002ef6e0: 6973 7369 6f6e 735f 7373 6864 5f70 7562 issions_sshd_pub │ │ │ +002ef6f0: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d _key. - low_com │ │ │ +002ef700: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +002ef710: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +002ef720: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +002ef730: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +002ef740: 6465 640a 0a2d 206e 616d 653a 2046 696e ded..- name: Fin │ │ │ +002ef750: 6420 2f65 7463 2f73 7368 2f20 6669 6c65 d /etc/ssh/ file │ │ │ +002ef760: 2873 290a 2020 616e 7369 626c 652e 6275 (s). ansible.bu │ │ │ +002ef770: 696c 7469 6e2e 636f 6d6d 616e 643a 2066 iltin.command: f │ │ │ +002ef780: 696e 6420 2d50 202f 6574 632f 7373 682f ind -P /etc/ssh/ │ │ │ +002ef790: 202d 6d61 7864 6570 7468 2031 202d 7065 -maxdepth 1 -pe │ │ │ +002ef7a0: 726d 202f 752b 7873 2c67 2b78 7773 2c6f rm /u+xs,g+xws,o │ │ │ +002ef7b0: 2b78 7774 2020 2d74 7970 650a 2020 2020 +xwt -type. │ │ │ +002ef7c0: 6620 2d72 6567 6578 7479 7065 2070 6f73 f -regextype pos │ │ │ +002ef7d0: 6978 2d65 7874 656e 6465 6420 2d72 6567 ix-extended -reg │ │ │ +002ef7e0: 6578 2022 5e2e 2a5c 2e70 7562 2422 0a20 ex "^.*\.pub$". │ │ │ +002ef7f0: 2072 6567 6973 7465 723a 2066 696c 6573 register: files │ │ │ +002ef800: 5f66 6f75 6e64 0a20 2063 6861 6e67 6564 _found. changed │ │ │ +002ef810: 5f77 6865 6e3a 2066 616c 7365 0a20 2066 _when: false. f │ │ │ +002ef820: 6169 6c65 645f 7768 656e 3a20 6661 6c73 ailed_when: fals │ │ │ +002ef830: 650a 2020 6368 6563 6b5f 6d6f 6465 3a20 e. check_mode: │ │ │ +002ef840: 6661 6c73 650a 2020 7768 656e 3a20 2722 false. when: '" │ │ │ +002ef850: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ +002ef860: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +002ef870: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ +002ef880: 202d 204e 4953 542d 3830 302d 3137 312d - NIST-800-171- │ │ │ +002ef890: 332e 312e 3133 0a20 202d 204e 4953 542d 3.1.13. - NIST- │ │ │ +002ef8a0: 3830 302d 3137 312d 332e 3133 2e31 300a 800-171-3.13.10. │ │ │ +002ef8b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +002ef8c0: 4143 2d31 3728 6129 0a20 202d 204e 4953 AC-17(a). - NIS │ │ │ +002ef8d0: 542d 3830 302d 3533 2d41 432d 3628 3129 T-800-53-AC-6(1) │ │ │ +002ef8e0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +002ef8f0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ +002ef900: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20 -DSS-Req-2.2.4. │ │ │ +002ef910: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +002ef920: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +002ef930: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775 .2.6. - configu │ │ │ +002ef940: 7265 5f73 7472 6174 6567 790a 2020 2d20 re_strategy. - │ │ │ +002ef950: 6669 6c65 5f70 6572 6d69 7373 696f 6e73 file_permissions │ │ │ +002ef960: 5f73 7368 645f 7075 625f 6b65 790a 2020 _sshd_pub_key. │ │ │ +002ef970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +002ef980: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +002ef990: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +002ef9a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +002ef9b0: 6562 6f6f 745f 6e65 6564 6564 0a0a 2d20 eboot_needed..- │ │ │ +002ef9c0: 6e61 6d65 3a20 5365 7420 7065 726d 6973 name: Set permis │ │ │ +002ef9d0: 7369 6f6e 7320 666f 7220 2f65 7463 2f73 sions for /etc/s │ │ │ +002ef9e0: 7368 2f20 6669 6c65 2873 290a 2020 616e sh/ file(s). an │ │ │ +002ef9f0: 7369 626c 652e 6275 696c 7469 6e2e 6669 sible.builtin.fi │ │ │ +002efa00: 6c65 3a0a 2020 2020 7061 7468 3a20 277b le:. path: '{ │ │ │ +002efa10: 7b20 6974 656d 207d 7d27 0a20 2020 206d { item }}'. m │ │ │ +002efa20: 6f64 653a 2075 2d78 732c 672d 7877 732c ode: u-xs,g-xws, │ │ │ +002efa30: 6f2d 7877 740a 2020 2020 7374 6174 653a o-xwt. state: │ │ │ +002efa40: 2066 696c 650a 2020 7769 7468 5f69 7465 file. with_ite │ │ │ +002efa50: 6d73 3a0a 2020 2d20 277b 7b20 6669 6c65 ms:. - '{{ file │ │ │ +002efa60: 735f 666f 756e 642e 7374 646f 7574 5f6c s_found.stdout_l │ │ │ +002efa70: 696e 6573 207d 7d27 0a20 2077 6865 6e3a ines }}'. when: │ │ │ +002efa80: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +002efa90: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +002efaa0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +002efab0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ +002efac0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49 71-3.1.13. - NI │ │ │ +002efad0: 5354 2d38 3030 2d31 3731 2d33 2e31 332e ST-800-171-3.13. │ │ │ +002efae0: 3130 0a20 202d 204e 4953 542d 3830 302d 10. - NIST-800- │ │ │ +002efaf0: 3533 2d41 432d 3137 2861 290a 2020 2d20 53-AC-17(a). - │ │ │ +002efb00: 4e49 5354 2d38 3030 2d35 332d 4143 2d36 NIST-800-53-AC-6 │ │ │ +002efb10: 2831 290a 2020 2d20 4e49 5354 2d38 3030 (1). - NIST-800 │ │ │ +002efb20: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +002efb30: 5043 492d 4453 532d 5265 712d 322e 322e PCI-DSS-Req-2.2. │ │ │ +002efb40: 340a 2020 2d20 5043 492d 4453 5376 342d 4. - PCI-DSSv4- │ │ │ +002efb50: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +002efb60: 342d 322e 322e 360a 2020 2d20 636f 6e66 4-2.2.6. - conf │ │ │ +002efb70: 6967 7572 655f 7374 7261 7465 6779 0a20 igure_strategy. │ │ │ +002efb80: 202d 2066 696c 655f 7065 726d 6973 7369 - file_permissi │ │ │ +002efb90: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579 ons_sshd_pub_key │ │ │ +002efba0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +002efbb0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +002efbc0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +002efbd0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +002efbe0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +002efbf0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remediation Pup │ │ │ +002efcb0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002efcc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
include ssh_p
│ │ │ +002efd10: 7562 6c69 635f 6b65 795f 7065 726d 730a  ublic_key_perms.
│ │ │ +002efd20: 0a63 6c61 7373 2073 7368 5f70 7562 6c69  .class ssh_publi
│ │ │ +002efd30: 635f 6b65 795f 7065 726d 7320 7b0a 2020  c_key_perms {.  
│ │ │ +002efd40: 6578 6563 207b 2027 7373 6864 5f70 7562  exec { 'sshd_pub
│ │ │ +002efd50: 5f6b 6579 273a 0a20 2020 2063 6f6d 6d61  _key':.    comma
│ │ │ +002efd60: 6e64 203d 2667 743b 2022 6368 6d6f 6420  nd => "chmod 
│ │ │ +002efd70: 3036 3434 202f 6574 632f 7373 682f 2a2e  0644 /etc/ssh/*.
│ │ │ +002efd80: 7075 6222 2c0a 2020 2020 7061 7468 2020  pub",.    path  
│ │ │ +002efd90: 2020 3d26 6774 3b20 272f 6269 6e3a 2f75    => '/bin:/u
│ │ │ +002efda0: 7372 2f62 696e 270a 2020 7d0a 7d0a 3c2f  sr/bin'.  }.}.
Remed │ │ │ -002f1a80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002f1a90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002f1b20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002f1b30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002f1b50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002f1b70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002f1b80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002f1bc0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -002f1bd0: 7564 6520 7265 6d6f 7665 5f78 6f72 672d  ude remove_xorg-
│ │ │ -002f1be0: 7831 312d 7365 7276 6572 2d63 6f6d 6d6f  x11-server-commo
│ │ │ -002f1bf0: 6e0a 0a63 6c61 7373 2072 656d 6f76 655f  n..class remove_
│ │ │ +002f1a80: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +002f1a90: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Com │ │ │ +002f1b20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002f1b50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002f1b70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002f1b80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002f1ba0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002f1bb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002f1bd0: 6d65 3a20 2752 656d 6f76 6520 7468 6520  me: 'Remove the 
│ │ │ +002f1be0: 5820 5769 6e64 6f77 7320 5061 636b 6167  X Windows Packag
│ │ │ +002f1bf0: 6520 4772 6f75 703a 2045 6e73 7572 6520  e Group: Ensure 
│ │ │  002f1c00: 786f 7267 2d78 3131 2d73 6572 7665 722d  xorg-x11-server-
│ │ │ -002f1c10: 636f 6d6d 6f6e 207b 0a20 2070 6163 6b61  common {.  packa
│ │ │ -002f1c20: 6765 207b 2027 786f 7267 2d78 3131 2d73  ge { 'xorg-x11-s
│ │ │ -002f1c30: 6572 7665 722d 636f 6d6d 6f6e 273a 0a20  erver-common':. 
│ │ │ -002f1c40: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -002f1c50: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002f1c60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002f1d20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002f1d30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002f1db0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002f1dd0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002f1e20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002f1e50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ -002f1e70: 6520 7468 6520 5820 5769 6e64 6f77 7320  e the X Windows 
│ │ │ -002f1e80: 5061 636b 6167 6520 4772 6f75 703a 2045  Package Group: E
│ │ │ -002f1e90: 6e73 7572 6520 786f 7267 2d78 3131 2d73  nsure xorg-x11-s
│ │ │ -002f1ea0: 6572 7665 722d 636f 6d6d 6f6e 2069 7320  erver-common is 
│ │ │ -002f1eb0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002f1ec0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -002f1ed0: 6765 3a0a 2020 2020 6e61 6d65 3a20 786f  ge:.    name: xo
│ │ │ -002f1ee0: 7267 2d78 3131 2d73 6572 7665 722d 636f  rg-x11-server-co
│ │ │ -002f1ef0: 6d6d 6f6e 0a20 2020 2073 7461 7465 3a20  mmon.    state: 
│ │ │ -002f1f00: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -002f1f10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002f1f20: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -002f1f30: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -002f1f40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002f1f50: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -002f1f60: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002f1f70: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002f1f80: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002f1f90: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -002f1fa0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002f1fb0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002f1fc0: 6163 6b61 6765 5f78 6f72 672d 7831 312d  ackage_xorg-x11-
│ │ │ -002f1fd0: 7365 7276 6572 2d63 6f6d 6d6f 6e5f 7265  server-common_re
│ │ │ -002f1fe0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediation Pup │ │ │ +002f1e10: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002f1e20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ -002f1de0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002f1df0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002f1e30: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002f1e40: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +002f1ef0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002f1f00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002f1f60: 5f78 6f72 672d 7831 312d 7365 7276 6572  _xorg-x11-server
│ │ │ +002f1f70: 2d63 6f6d 6d6f 6e0a 0a63 6c61 7373 2072  -common..class r
│ │ │ +002f1f80: 656d 6f76 655f 786f 7267 2d78 3131 2d73  emove_xorg-x11-s
│ │ │ +002f1f90: 6572 7665 722d 636f 6d6d 6f6e 207b 0a20  erver-common {. 
│ │ │ +002f1fa0: 2070 6163 6b61 6765 207b 2027 786f 7267   package { 'xorg
│ │ │ +002f1fb0: 2d78 3131 2d73 6572 7665 722d 636f 6d6d  -x11-server-comm
│ │ │ +002f1fc0: 6f6e 273a 0a20 2020 2065 6e73 7572 6520  on':.    ensure 
│ │ │ +002f1fd0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +002f1fe0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

R │ │ │ -004b8b20: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -004b8b30: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -004b8b40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -004b8b50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[[p
│ │ │ -004b8b90: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -004b8ba0: 2022 6175 6469 7370 642d 706c 7567 696e   "audispd-plugin
│ │ │ -004b8bb0: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │ -004b8bc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -004b8c80: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -004b8c90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +002f1ed0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002f1ee0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002f1f20: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002f1f30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -004b8d10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -004b8d30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -004b8d80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -004b8dd0: 5f61 7564 6973 7064 2d70 6c75 6769 6e73  _audispd-plugins
│ │ │ -004b8de0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -004b8df0: 6175 6469 7370 642d 706c 7567 696e 7320  audispd-plugins 
│ │ │ -004b8e00: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ -004b8e10: 7564 6973 7064 2d70 6c75 6769 6e73 273a  udispd-plugins':
│ │ │ -004b8e20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -004b8e30: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -004b8e40: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -004b8f00: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -004b8f10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -004b8f90: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -004b9020: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disr │ │ │ -004b8d40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -004b8d50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -004b8d90: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -004b8da0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ -004b8fa0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -004b8fb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -004b8ff0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -004b9000: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -004b9040: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -004b9050: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -004b9060: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -004b9070: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -004b9080: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -004b9090: 3a0a 2020 2d20 5043 492d 4453 532d 5265  :.  - PCI-DSS-Re
│ │ │ -004b90a0: 712d 3130 2e35 2e33 0a20 202d 2050 4349  q-10.5.3.  - PCI
│ │ │ -004b90b0: 2d44 5353 7634 2d31 302e 330a 2020 2d20  -DSSv4-10.3.  - 
│ │ │ -004b90c0: 5043 492d 4453 5376 342d 3130 2e33 2e33  PCI-DSSv4-10.3.3
│ │ │ -004b90d0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -004b90e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -004b90f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -004b9100: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -004b9110: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -004b9120: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -004b9130: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -004b9140: 6175 6469 742d 6175 6469 7370 642d 706c  audit-audispd-pl
│ │ │ -004b9150: 7567 696e 735f 696e 7374 616c 6c65 640a  ugins_installed.
│ │ │ -004b9160: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -004b9170: 6175 6469 7370 642d 706c 7567 696e 7320  audispd-plugins 
│ │ │ -004b9180: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -004b9190: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -004b91a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -004b91b0: 3a20 6175 6469 7370 642d 706c 7567 696e  : audispd-plugin
│ │ │ -004b91c0: 730a 2020 2020 7374 6174 653a 2070 7265  s.    state: pre
│ │ │ -004b91d0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -004b91e0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -004b91f0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -004b9200: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -004b9210: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -004b9220: 2e35 2e33 0a20 202d 2050 4349 2d44 5353  .5.3.  - PCI-DSS
│ │ │ -004b9230: 7634 2d31 302e 330a 2020 2d20 5043 492d  v4-10.3.  - PCI-
│ │ │ -004b9240: 4453 5376 342d 3130 2e33 2e33 0a20 202d  DSSv4-10.3.3.  -
│ │ │ -004b9250: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -004b9260: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -004b9270: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -004b9280: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -004b9290: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -004b92a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -004b92b0: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ -004b92c0: 742d 6175 6469 7370 642d 706c 7567 696e  t-audispd-plugin
│ │ │ -004b92d0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +004b8c10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +004b8c20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +004b8c70: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +004b8c80: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +004b8c90: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +004b8ca0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +004b8cb0: 746f 0a20 2074 6167 733a 0a20 202d 2050  to.  tags:.  - P
│ │ │ +004b8cc0: 4349 2d44 5353 2d52 6571 2d31 302e 352e  CI-DSS-Req-10.5.
│ │ │ +004b8cd0: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ +004b8ce0: 3130 2e33 0a20 202d 2050 4349 2d44 5353  10.3.  - PCI-DSS
│ │ │ +004b8cf0: 7634 2d31 302e 332e 330a 2020 2d20 656e  v4-10.3.3.  - en
│ │ │ +004b8d00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +004b8d10: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +004b8d20: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +004b8d30: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +004b8d40: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +004b8d50: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +004b8d60: 2070 6163 6b61 6765 5f61 7564 6974 2d61   package_audit-a
│ │ │ +004b8d70: 7564 6973 7064 2d70 6c75 6769 6e73 5f69  udispd-plugins_i
│ │ │ +004b8d80: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +004b8d90: 3a20 456e 7375 7265 2061 7564 6973 7064  : Ensure audispd
│ │ │ +004b8da0: 2d70 6c75 6769 6e73 2069 7320 696e 7374  -plugins is inst
│ │ │ +004b8db0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +004b8dc0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +004b8dd0: 0a20 2020 206e 616d 653a 2061 7564 6973  .    name: audis
│ │ │ +004b8de0: 7064 2d70 6c75 6769 6e73 0a20 2020 2073  pd-plugins.    s
│ │ │ +004b8df0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +004b8e00: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +004b8e10: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +004b8e20: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +004b8e30: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +004b8e40: 5353 2d52 6571 2d31 302e 352e 330a 2020  SS-Req-10.5.3.  
│ │ │ +004b8e50: 2d20 5043 492d 4453 5376 342d 3130 2e33  - PCI-DSSv4-10.3
│ │ │ +004b8e60: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +004b8e70: 302e 332e 330a 2020 2d20 656e 6162 6c65  0.3.3.  - enable
│ │ │ +004b8e80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +004b8e90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +004b8ea0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +004b8eb0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +004b8ec0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +004b8ed0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +004b8ee0: 6b61 6765 5f61 7564 6974 2d61 7564 6973  kage_audit-audis
│ │ │ +004b8ef0: 7064 2d70 6c75 6769 6e73 5f69 6e73 7461  pd-plugins_insta
│ │ │ +004b8f00: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediatio
│ │ │ +004b8fc0: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +004b8fd0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +004b9050: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +004b9090: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +004b8bf0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +004b8c00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +004b8c40: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +004b8c50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +004b9060: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +004b9080: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +004b90b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +004b90d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +004b9100: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +004b9110: 7461 6c6c 5f61 7564 6973 7064 2d70 6c75  tall_audispd-plu
│ │ │ +004b9120: 6769 6e73 0a0a 636c 6173 7320 696e 7374  gins..class inst
│ │ │ +004b9130: 616c 6c5f 6175 6469 7370 642d 706c 7567  all_audispd-plug
│ │ │ +004b9140: 696e 7320 7b0a 2020 7061 636b 6167 6520  ins {.  package 
│ │ │ +004b9150: 7b20 2761 7564 6973 7064 2d70 6c75 6769  { 'audispd-plugi
│ │ │ +004b9160: 6e73 273a 0a20 2020 2065 6e73 7572 6520  ns':.    ensure 
│ │ │ +004b9170: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +004b9180: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +004b9190: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +004b9240: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +004b9250: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +004b9260: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[[packag
│ │ │ +004b92b0: 6573 5d5d 0a6e 616d 6520 3d20 2261 7564  es]].name = "aud
│ │ │ +004b92c0: 6973 7064 2d70 6c75 6769 6e73 220a 7665  ispd-plugins".ve
│ │ │ +004b92d0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 004b92f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 004b9300: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 004b9310: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 004b9320: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 004b9330: 6431 3437 3222 2074 6162 696e 6465 783d d1472" tabindex= │ │ │ 004b9340: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -309843,153 +309843,153 @@ │ │ │ 004ba520: 6172 6765 743d 2223 6964 3134 3734 2220 arget="#id1474" │ │ │ 004ba530: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 004ba540: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 004ba550: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 004ba560: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 004ba570: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 004ba580: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -004ba590: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -004ba5a0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -004ba5b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]]
│ │ │ -004ba600: 0a6e 616d 6520 3d20 2261 7564 6974 6422  .name = "auditd"
│ │ │ -004ba610: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -004ba620: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -004ba6d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -004ba6e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -004ba7c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -004ba7d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -004ba820: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ -004ba830: 7564 6974 640a 0a63 6c61 7373 2069 6e73  uditd..class ins
│ │ │ -004ba840: 7461 6c6c 5f61 7564 6974 6420 7b0a 2020  tall_auditd {.  
│ │ │ -004ba850: 7061 636b 6167 6520 7b20 2761 7564 6974  package { 'audit
│ │ │ -004ba860: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -004ba870: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -004ba880: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -004ba890: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -004ba940: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ -004ba950: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -004ba960: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ -004ba7a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -004ba7b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -004ba7f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -004ba800: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -004baa00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -004baa20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -004baa50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -004ba9e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -004ba9f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -004baa10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -004baa30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -004baa40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -004baa90: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -004baaa0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -004baab0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -004baac0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -004baad0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -004baae0: 302d 3533 2d41 432d 3728 6129 0a20 202d 0-53-AC-7(a). - │ │ │ -004baaf0: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -004bab00: 3132 2832 290a 2020 2d20 4e49 5354 2d38 12(2). - NIST-8 │ │ │ -004bab10: 3030 2d35 332d 4155 2d31 340a 2020 2d20 00-53-AU-14. - │ │ │ -004bab20: 4e49 5354 2d38 3030 2d35 332d 4155 2d32 NIST-800-53-AU-2 │ │ │ -004bab30: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -004bab40: 2d35 332d 4155 2d37 2831 290a 2020 2d20 -53-AU-7(1). - │ │ │ -004bab50: 4e49 5354 2d38 3030 2d35 332d 4155 2d37 NIST-800-53-AU-7 │ │ │ -004bab60: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ -004bab70: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -004bab80: 5043 492d 4453 532d 5265 712d 3130 2e31 PCI-DSS-Req-10.1 │ │ │ -004bab90: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ -004baba0: 302e 320a 2020 2d20 5043 492d 4453 5376 0.2. - PCI-DSSv │ │ │ -004babb0: 342d 3130 2e32 2e31 0a20 202d 2065 6e61 4-10.2.1. - ena │ │ │ -004babc0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -004babd0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -004babe0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -004babf0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -004bac00: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -004bac10: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -004bac20: 7061 636b 6167 655f 6175 6469 745f 696e package_audit_in │ │ │ -004bac30: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ -004bac40: 2045 6e73 7572 6520 6175 6469 7464 2069 Ensure auditd i │ │ │ -004bac50: 7320 696e 7374 616c 6c65 640a 2020 616e s installed. an │ │ │ -004bac60: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -004bac70: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -004bac80: 2061 7564 6974 640a 2020 2020 7374 6174 auditd. stat │ │ │ -004bac90: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ -004baca0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -004bacb0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -004bacc0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -004bacd0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -004bace0: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ -004bacf0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ -004bad00: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ -004bad10: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ -004bad20: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ -004bad30: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -004bad40: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ -004bad50: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ -004bad60: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ -004bad70: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -004bad80: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ -004bad90: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ -004bada0: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -004badb0: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ -004badc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -004badd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -004bade0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -004badf0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -004bae00: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -004bae10: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -004bae20: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ -004bae30: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.
│ │ │ +004ba620: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +004ba630: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +004ba640: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +004ba680: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +004ba690: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +004ba6b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +004ba6d0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +004ba6e0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +004ba6f0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +004ba700: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +004ba710: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +004ba720: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +004ba730: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ +004ba740: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +004ba750: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ +004ba760: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ +004ba770: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ +004ba780: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004ba790: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ +004ba7a0: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ +004ba7b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004ba7c0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +004ba7d0: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ +004ba7e0: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +004ba7f0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +004ba800: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ +004ba810: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +004ba820: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +004ba830: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +004ba840: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +004ba850: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +004ba860: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +004ba870: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ +004ba880: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +004ba890: 7375 7265 2061 7564 6974 6420 6973 2069  sure auditd is i
│ │ │ +004ba8a0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +004ba8b0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +004ba8c0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6175  ge:.    name: au
│ │ │ +004ba8d0: 6469 7464 0a20 2020 2073 7461 7465 3a20  ditd.    state: 
│ │ │ +004ba8e0: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +004ba8f0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +004ba900: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +004ba910: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +004ba920: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004ba930: 2d41 432d 3728 6129 0a20 202d 204e 4953  -AC-7(a).  - NIS
│ │ │ +004ba940: 542d 3830 302d 3533 2d41 552d 3132 2832  T-800-53-AU-12(2
│ │ │ +004ba950: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +004ba960: 332d 4155 2d31 340a 2020 2d20 4e49 5354  3-AU-14.  - NIST
│ │ │ +004ba970: 2d38 3030 2d35 332d 4155 2d32 2861 290a  -800-53-AU-2(a).
│ │ │ +004ba980: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +004ba990: 4155 2d37 2831 290a 2020 2d20 4e49 5354  AU-7(1).  - NIST
│ │ │ +004ba9a0: 2d38 3030 2d35 332d 4155 2d37 2832 290a  -800-53-AU-7(2).
│ │ │ +004ba9b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +004ba9c0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +004ba9d0: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ +004ba9e0: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ +004ba9f0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +004baa00: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ +004baa10: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +004baa20: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +004baa30: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +004baa40: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +004baa50: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +004baa60: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +004baa70: 6167 655f 6175 6469 745f 696e 7374 616c  age_audit_instal
│ │ │ +004baa80: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +004bab40: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +004bab50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +004babe0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +004bac00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +004bac10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +004bac20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +004bac30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +004bac50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +004bac90: 616c 6c5f 6175 6469 7464 0a0a 636c 6173  all_auditd..clas
│ │ │ +004baca0: 7320 696e 7374 616c 6c5f 6175 6469 7464  s install_auditd
│ │ │ +004bacb0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +004bacc0: 6175 6469 7464 273a 0a20 2020 2065 6e73  auditd':.    ens
│ │ │ +004bacd0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +004bace0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +004bad00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +004bada0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +004badb0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +004badc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +004badd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +004bade0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +004badf0: 7365 2220 6964 3d22 6964 3134 3736 223e se" id="id1476"> │ │ │ +004bae00: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +004bae10: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +004bae20: 2261 7564 6974 6422 0a76 6572 7369 6f6e  "auditd".version
│ │ │ +004bae30: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation OS │ │ │ -004bcae0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -004bcaf0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -004bcb00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -004bcb40: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -004bcb50: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -004bcb60: 6420 3d20 5b22 6175 6469 7464 225d 0a3c  d = ["auditd"].<
│ │ │ -004bcb70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -004bcc20: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -004bcc30: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -004bcd10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -004bcd20: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -004bcd70: 6e63 6c75 6465 2065 6e61 626c 655f 6175  nclude enable_au
│ │ │ -004bcd80: 6469 7464 0a0a 636c 6173 7320 656e 6162  ditd..class enab
│ │ │ -004bcd90: 6c65 5f61 7564 6974 6420 7b0a 2020 7365  le_auditd {.  se
│ │ │ -004bcda0: 7276 6963 6520 7b27 6175 6469 7464 273a  rvice {'auditd':
│ │ │ -004bcdb0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -004bcdc0: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -004bcdd0: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -004bcde0: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remed │ │ │ -004bcea0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -004bceb0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ -004bccf0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -004bcd00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -004bcd40: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -004bcd50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -004bcf40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -004bcf70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -004bcf90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -004bcfa0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -004bcfc0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -004bcfe0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -004bcff0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -004bd000: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -004bd010: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -004bd020: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -004bd030: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ -004bd040: 352e 342e 312e 310a 2020 2d20 4e49 5354  5.4.1.1.  - NIST
│ │ │ -004bd050: 2d38 3030 2d31 3731 2d33 2e33 2e31 0a20  -800-171-3.3.1. 
│ │ │ -004bd060: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -004bd070: 332e 332e 320a 2020 2d20 4e49 5354 2d38  3.3.2.  - NIST-8
│ │ │ -004bd080: 3030 2d31 3731 2d33 2e33 2e36 0a20 202d  00-171-3.3.6.  -
│ │ │ -004bd090: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -004bd0a0: 3228 6729 0a20 202d 204e 4953 542d 3830  2(g).  - NIST-80
│ │ │ -004bd0b0: 302d 3533 2d41 432d 3628 3929 0a20 202d  0-53-AC-6(9).  -
│ │ │ -004bd0c0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -004bd0d0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -004bd0e0: 3533 2d41 552d 3132 2863 290a 2020 2d20  53-AU-12(c).  - 
│ │ │ -004bd0f0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -004bd100: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ -004bd110: 302d 3533 2d41 552d 3228 6429 0a20 202d  0-53-AU-2(d).  -
│ │ │ -004bd120: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -004bd130: 330a 2020 2d20 4e49 5354 2d38 3030 2d35  3.  - NIST-800-5
│ │ │ -004bd140: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -004bd150: 5354 2d38 3030 2d35 332d 5349 2d34 2832  ST-800-53-SI-4(2
│ │ │ -004bd160: 3329 0a20 202d 2050 4349 2d44 5353 2d52  3).  - PCI-DSS-R
│ │ │ -004bd170: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ -004bd180: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ -004bd190: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ -004bd1a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -004bd1b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -004bd1c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -004bd1d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -004bd1e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -004bd1f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -004bd200: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ -004bd210: 7564 6974 645f 656e 6162 6c65 640a 0a2d  uditd_enabled..-
│ │ │ -004bd220: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ -004bd230: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ -004bd240: 6e61 626c 6520 7365 7276 6963 6520 6175  nable service au
│ │ │ -004bd250: 6469 7464 0a20 2062 6c6f 636b 3a0a 0a20  ditd.  block:.. 
│ │ │ -004bd260: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -004bd270: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -004bd280: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -004bd290: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -004bd2a0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -004bd2b0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -004bd2c0: 6d65 3a20 456e 6162 6c65 2061 7564 6974  me: Enable audit
│ │ │ -004bd2d0: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ -004bd2e0: 6c65 2053 6572 7669 6365 2061 7564 6974  le Service audit
│ │ │ -004bd2f0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -004bd300: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -004bd310: 2020 2020 206e 616d 653a 2061 7564 6974       name: audit
│ │ │ -004bd320: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -004bd330: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -004bd340: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -004bd350: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -004bd360: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -004bd370: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ -004bd380: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -004bd390: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -004bd3a0: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ -004bd3b0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -004bd3c0: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ -004bd3d0: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ -004bd3e0: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -004bd3f0: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -004bd400: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ -004bd410: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ -004bd420: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -004bd430: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ -004bd440: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ -004bd450: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -004bd460: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ -004bd470: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ -004bd480: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -004bd490: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ -004bd4a0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -004bd4b0: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -004bd4c0: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ -004bd4d0: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -004bd4e0: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -004bd4f0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -004bd500: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -004bd510: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -004bd520: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -004bd530: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -004bd540: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -004bd550: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -004bd560: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -004bd570: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ -004bd580: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -004bd590: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -004bd5a0: 6865 6e3a 0a20 202d 2027 226c 696e 7578  hen:.  - '"linux
│ │ │ -004bd5b0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -004bd5c0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -004bd5d0: 270a 2020 2d20 2722 6175 6469 7464 2220  '.  - '"auditd" 
│ │ │ -004bd5e0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -004bd5f0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.Remediation An
│ │ │ +004bcae0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +004bcaf0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
│ │ │ +004bcb70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +004bcb90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +004bcbe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +004bcc10: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +004bcc30: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +004bcc40: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +004bcc50: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +004bcc60: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +004bcc70: 2d20 434a 4953 2d35 2e34 2e31 2e31 0a20  - CJIS-5.4.1.1. 
│ │ │ +004bcc80: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +004bcc90: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ +004bcca0: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ +004bccb0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +004bccc0: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ +004bccd0: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ +004bcce0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +004bccf0: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ +004bcd00: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ +004bcd10: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +004bcd20: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ +004bcd30: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ +004bcd40: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ +004bcd50: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ +004bcd60: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ +004bcd70: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +004bcd80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004bcd90: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ +004bcda0: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +004bcdb0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +004bcdc0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +004bcdd0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +004bcde0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +004bcdf0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +004bce00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +004bce10: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +004bce20: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +004bce30: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +004bce40: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ +004bce50: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ +004bce60: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ +004bce70: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +004bce80: 7669 6365 2061 7564 6974 640a 2020 626c  vice auditd.  bl
│ │ │ +004bce90: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +004bcea0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +004bceb0: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +004bcec0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +004bced0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +004bcee0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +004bcef0: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +004bcf00: 6520 6175 6469 7464 2053 6572 7669 6365  e auditd Service
│ │ │ +004bcf10: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +004bcf20: 6520 6175 6469 7464 0a20 2020 2061 6e73  e auditd.    ans
│ │ │ +004bcf30: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +004bcf40: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +004bcf50: 3a20 6175 6469 7464 0a20 2020 2020 2065  : auditd.      e
│ │ │ +004bcf60: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +004bcf70: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +004bcf80: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +004bcf90: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +004bcfa0: 2020 2020 2d20 2722 6175 6469 7464 2220      - '"auditd" 
│ │ │ +004bcfb0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +004bcfc0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +004bcfd0: 733a 0a20 202d 2043 4a49 532d 352e 342e  s:.  - CJIS-5.4.
│ │ │ +004bcfe0: 312e 310a 2020 2d20 4e49 5354 2d38 3030  1.1.  - NIST-800
│ │ │ +004bcff0: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e  -171-3.3.1.  - N
│ │ │ +004bd000: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +004bd010: 320a 2020 2d20 4e49 5354 2d38 3030 2d31  2.  - NIST-800-1
│ │ │ +004bd020: 3731 2d33 2e33 2e36 0a20 202d 204e 4953  71-3.3.6.  - NIS
│ │ │ +004bd030: 542d 3830 302d 3533 2d41 432d 3228 6729  T-800-53-AC-2(g)
│ │ │ +004bd040: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004bd050: 2d41 432d 3628 3929 0a20 202d 204e 4953  -AC-6(9).  - NIS
│ │ │ +004bd060: 542d 3830 302d 3533 2d41 552d 3130 0a20  T-800-53-AU-10. 
│ │ │ +004bd070: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +004bd080: 552d 3132 2863 290a 2020 2d20 4e49 5354  U-12(c).  - NIST
│ │ │ +004bd090: 2d38 3030 2d35 332d 4155 2d31 3428 3129  -800-53-AU-14(1)
│ │ │ +004bd0a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004bd0b0: 2d41 552d 3228 6429 0a20 202d 204e 4953  -AU-2(d).  - NIS
│ │ │ +004bd0c0: 542d 3830 302d 3533 2d41 552d 330a 2020  T-800-53-AU-3.  
│ │ │ +004bd0d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +004bd0e0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +004bd0f0: 3030 2d35 332d 5349 2d34 2832 3329 0a20  00-53-SI-4(23). 
│ │ │ +004bd100: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +004bd110: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ +004bd120: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ +004bd130: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ +004bd140: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +004bd150: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +004bd160: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +004bd170: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +004bd180: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +004bd190: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +004bd1a0: 202d 2073 6572 7669 6365 5f61 7564 6974   - service_audit
│ │ │ +004bd1b0: 645f 656e 6162 6c65 640a 2020 2d20 7370  d_enabled.  - sp
│ │ │ +004bd1c0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +004bd1d0: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20  ock.  when:.  - 
│ │ │ +004bd1e0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +004bd1f0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +004bd200: 6163 6b61 6765 7327 0a20 202d 2027 2261  ackages'.  - '"a
│ │ │ +004bd210: 7564 6974 6422 2069 6e20 616e 7369 626c  uditd" in ansibl
│ │ │ +004bd220: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +004bd230: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +004bd240: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +004bd2f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +004bd300: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +004bcb80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +004bcba0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +004bcbf0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +004bcc00: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +004bd380: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +004bd3a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +004bd3f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +004bd420: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +004bd440: 5f61 7564 6974 640a 0a63 6c61 7373 2065  _auditd..class e
│ │ │ +004bd450: 6e61 626c 655f 6175 6469 7464 207b 0a20  nable_auditd {. 
│ │ │ +004bd460: 2073 6572 7669 6365 207b 2761 7564 6974   service {'audit
│ │ │ +004bd470: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +004bd480: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +004bd490: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +004bd4a0: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +004bd4c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +004bd560: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +004bd570: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +004bd580: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +004bd590: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +004bd5a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +004bd5b0: 7365 2220 6964 3d22 6964 3134 3831 223e se" id="id1481"> │ │ │ +004bd5c0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +004bd5d0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +004bd5e0: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +004bd5f0: 5b22 6175 6469 7464 225d 0a3c 2f63 6f64  ["auditd"].
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -176,14 +159,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -1516,27 +1516,14 @@ │ │ │ │ Rationale: graphical environment is unnecessary for certain types of systems including a virtualization │ │ │ │ hypervisor. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_gdm_removed │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 1.7.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_gdm │ │ │ │ - │ │ │ │ -class remove_gdm { │ │ │ │ - package { 'gdm': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1563,14 +1550,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_gdm_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_gdm │ │ │ │ + │ │ │ │ +class remove_gdm { │ │ │ │ + package { 'gdm': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'gdm3' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -1619,31 +1619,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1670,14 +1653,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -6435,31 +6435,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--mmoodduulleess PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6480,14 +6463,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -6504,31 +6504,14 @@ │ │ │ │ Rationale: Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts │ │ │ │ at guessing and brute-force attacks. "pwquality" enforces complex password construction configuration │ │ │ │ and has the ability to limit brute-force attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6549,14 +6532,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -6569,31 +6569,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--rruunnttiimmee PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6602,14 +6585,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -9350,31 +9350,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access Control │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -9384,14 +9367,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -9407,31 +9407,14 @@ │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000368-GPOS-00154, SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312- │ │ │ │ References: GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -9441,14 +9424,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -10051,31 +10051,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an attacker gains root │ │ │ │ Rationale: access on the local system, they could tamper with or remove log data that is stored on the local │ │ │ │ system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10096,14 +10079,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10128,31 +10128,14 @@ │ │ │ │ intact even if the local system is compromised. Additionally, centralized logs facilitate correlation │ │ │ │ of events across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10188,14 +10171,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( │ │ │ │ @@ -10220,31 +10220,14 @@ │ │ │ │ Rationale: of failure and any information necessary to return to operations with least disruption to system │ │ │ │ processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10279,14 +10262,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -11254,31 +11254,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11301,14 +11284,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -11336,31 +11336,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, A.15.2.1, │ │ │ │ A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11397,14 +11380,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -11775,31 +11775,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be installed with the following command: │ │ │ │ $ apt-get install iptables-persistent │ │ │ │ Rationale: A method of configuring and maintaining firewall rules is necessary to configure a Host Based Firewall. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_installed │ │ │ │ References: _c_i_s 4.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables-persistent" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_iptables-persistent │ │ │ │ - │ │ │ │ -class install_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11820,14 +11803,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_iptables-persistent │ │ │ │ + │ │ │ │ +class install_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "iptables-persistent" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'iptables' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -11844,31 +11844,14 @@ │ │ │ │ set up firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ References: _p_c_i_d_s_s Req-1.4.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 4.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_iptables │ │ │ │ - │ │ │ │ -class install_iptables { │ │ │ │ - package { 'iptables': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11893,14 +11876,31 @@ │ │ │ │ - PCI-DSS-Req-1.4.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_iptables │ │ │ │ + │ │ │ │ +class install_iptables { │ │ │ │ + package { 'iptables': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "iptables" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( ! (systemctl is-active nftables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -11914,27 +11914,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11955,14 +11942,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -17768,31 +17768,14 @@ │ │ │ │ $ apt-get install nftables │ │ │ │ Rationale: nftables is a subsystem of the Linux kernel that can protect against threats originating from within a │ │ │ │ corporate network to include malicious mobile code and poorly configured software on a host. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nftables_installed │ │ │ │ References: _c_i_s 4.3.1 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "nftables" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_nftables │ │ │ │ - │ │ │ │ -class install_nftables { │ │ │ │ - package { 'nftables': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17817,14 +17800,31 @@ │ │ │ │ - PCI-DSSv4-1.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nftables_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_nftables │ │ │ │ + │ │ │ │ +class install_nftables { │ │ │ │ + package { 'nftables': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "nftables" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( ! (systemctl is-active iptables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -17840,31 +17840,14 @@ │ │ │ │ The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the /etc/sysconfig/ │ │ │ │ nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.3.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -17898,14 +17881,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep -q '^installed$' && ! │ │ │ │ @@ -17928,31 +17928,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: Running both firewalld and nftables may lead to conflict. nftables is actually one of the backends for │ │ │ │ firewalld management tools. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.4.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18008,14 +17991,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "firewalld" in ansible_facts.packages and "nftables" in ansible_facts.packages │ │ │ │ and "linux-base" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'firewalld' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -18508,31 +18508,14 @@ │ │ │ │ $ apt-get install ufw │ │ │ │ Rationale: ufw controls the Linux kernel network packet filtering code. ufw allows system operators to set up │ │ │ │ firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ufw" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_ufw │ │ │ │ - │ │ │ │ -class install_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18553,14 +18536,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_ufw │ │ │ │ + │ │ │ │ +class install_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "ufw" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -18573,27 +18573,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee uuffww PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ufw package can be removed with the following command: │ │ │ │ $ apt-get remove ufw │ │ │ │ Rationale: Running iptables.persistent with ufw enabled may lead to conflict and unexpected results. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_removed │ │ │ │ References: _c_i_s 4.3.2, 4.4.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ufw │ │ │ │ - │ │ │ │ -class remove_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18614,14 +18601,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ufw │ │ │ │ + │ │ │ │ +class remove_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -18657,31 +18657,14 @@ │ │ │ │ The ufw service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable ufw.service │ │ │ │ Rationale: The ufw service must be enabled and running in order for ufw to protect the system │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ufw_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ufw"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ufw │ │ │ │ - │ │ │ │ -class enable_ufw { │ │ │ │ - service {'ufw': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18716,14 +18699,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ufw_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( "ufw" in ansible_facts.packages and "linux-base" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ufw │ │ │ │ + │ │ │ │ +class enable_ufw { │ │ │ │ + service {'ufw': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ufw"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( │ │ │ │ @@ -19041,31 +19041,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t AC-18(a), AC-18(3), CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["bluetooth"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_bluetooth │ │ │ │ - │ │ │ │ -class disable_bluetooth { │ │ │ │ - service {'bluetooth': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -19129,14 +19112,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_bluetooth_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_bluetooth │ │ │ │ + │ │ │ │ +class disable_bluetooth { │ │ │ │ + service {'bluetooth': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["bluetooth"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -25968,27 +25968,14 @@ │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove autofs │ │ │ │ Rationale: With automounting enabled anyone with physical access could attach a USB drive or disc and have its │ │ │ │ contents available in the filesystem even if they lacked permissions to mount it themselves. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_autofs_removed │ │ │ │ References: _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_autofs │ │ │ │ - │ │ │ │ -class remove_autofs { │ │ │ │ - package { 'autofs': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove autofs Package: Ensure autofs is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -25997,14 +25984,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_autofs_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_autofs │ │ │ │ + │ │ │ │ +class remove_autofs { │ │ │ │ + package { 'autofs': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove autofs │ │ │ │ @@ -26057,31 +26057,14 @@ │ │ │ │ 2.1, SR 2.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.18.1.4, A.6.2.1, A.6.2.2, A.7.1.1, A.9.2.1, A.9.2.2, │ │ │ │ A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-3, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["autofs"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_autofs │ │ │ │ - │ │ │ │ -class disable_autofs { │ │ │ │ - service {'autofs': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -26142,14 +26125,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_autofs_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "autofs" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_autofs │ │ │ │ + │ │ │ │ +class disable_autofs { │ │ │ │ + service {'autofs': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["autofs"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'autofs' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -31982,27 +31982,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_avahi │ │ │ │ - │ │ │ │ -class remove_avahi { │ │ │ │ - package { 'avahi': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall avahi Server Package: Ensure avahi is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -32014,14 +32001,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_avahi_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_avahi │ │ │ │ + │ │ │ │ +class remove_avahi { │ │ │ │ + package { 'avahi': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove avahi │ │ │ │ @@ -32063,31 +32063,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["avahi-daemon"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_avahi-daemon │ │ │ │ - │ │ │ │ -class disable_avahi-daemon { │ │ │ │ - service {'avahi-daemon': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32149,14 +32132,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_avahi-daemon │ │ │ │ + │ │ │ │ +class disable_avahi-daemon { │ │ │ │ + service {'avahi-daemon': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["avahi-daemon"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'avahi' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -33202,31 +33202,14 @@ │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33253,14 +33236,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -33287,31 +33287,14 @@ │ │ │ │ References: 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33346,14 +33329,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35127,27 +35127,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ Rationale: NIS is the historical SUN service for central account management, more and more replaced by LDAP. NIS │ │ │ │ does not support efficiently security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35156,14 +35143,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -35217,27 +35217,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35251,14 +35238,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dhcp │ │ │ │ @@ -35289,31 +35289,14 @@ │ │ │ │ can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: 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. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35363,14 +35346,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35411,31 +35411,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35491,14 +35474,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35546,27 +35546,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind │ │ │ │ - │ │ │ │ -class remove_bind { │ │ │ │ - package { 'bind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35578,14 +35565,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind │ │ │ │ + │ │ │ │ +class remove_bind { │ │ │ │ + package { 'bind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind │ │ │ │ @@ -35625,31 +35625,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["named"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_named │ │ │ │ - │ │ │ │ -class disable_named { │ │ │ │ - service {'named': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35705,14 +35688,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_named_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_named │ │ │ │ + │ │ │ │ +class disable_named { │ │ │ │ + service {'named': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["named"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35744,27 +35744,14 @@ │ │ │ │ The dnsmasq package can be removed with the following command: │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35773,14 +35760,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -35810,31 +35810,14 @@ │ │ │ │ The dnsmasq service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35884,14 +35867,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35940,27 +35940,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35976,14 +35963,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -36024,31 +36024,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36104,14 +36087,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36147,27 +36147,14 @@ │ │ │ │ Rationale: be used if file transfer is required. Unless there is a need to run the system as a FTP server (for │ │ │ │ example, to allow anonymous downloads), it is recommended that the package be removed to reduce the │ │ │ │ potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36178,14 +36165,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -36218,27 +36218,14 @@ │ │ │ │ $ apt-get remove ftp │ │ │ │ Unless there is a need to run the system using Internet standard File Transfer Protocol (for example, │ │ │ │ Rationale: to allow anonymous downloads), it is recommended that the package be removed to reduce the potential │ │ │ │ attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tnftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tnftp │ │ │ │ - │ │ │ │ -class remove_tnftp { │ │ │ │ - package { 'tnftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tnftp Package: Ensure tnftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36247,14 +36234,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tnftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tnftp │ │ │ │ + │ │ │ │ +class remove_tnftp { │ │ │ │ + package { 'tnftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tnftp │ │ │ │ @@ -36307,27 +36307,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36339,14 +36326,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -36386,31 +36386,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36466,14 +36449,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36515,27 +36515,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36547,14 +36534,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -36584,31 +36584,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36658,14 +36641,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36701,27 +36701,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a safeguard against │ │ │ │ its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot │ │ │ │ - │ │ │ │ -class remove_dovecot { │ │ │ │ - package { 'dovecot': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36730,14 +36717,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot │ │ │ │ + │ │ │ │ +class remove_dovecot { │ │ │ │ + package { 'dovecot': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot │ │ │ │ @@ -36767,31 +36767,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36841,14 +36824,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -36891,27 +36891,14 @@ │ │ │ │ from a central database. The ldap-utils package can be removed with the following command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software is removed to │ │ │ │ reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_openldap-clients │ │ │ │ - │ │ │ │ -class remove_openldap-clients { │ │ │ │ - package { 'openldap-clients': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure openldap-clients is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36920,14 +36907,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_openldap-clients │ │ │ │ + │ │ │ │ +class remove_openldap-clients { │ │ │ │ + package { 'openldap-clients': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove openldap-clients │ │ │ │ @@ -36971,27 +36971,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_openldap-servers │ │ │ │ - │ │ │ │ -class remove_openldap-servers { │ │ │ │ - package { 'openldap-servers': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure openldap-servers is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37003,14 +36990,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_openldap-servers │ │ │ │ + │ │ │ │ +class remove_openldap-servers { │ │ │ │ + package { 'openldap-servers': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove openldap-servers │ │ │ │ @@ -37040,31 +37040,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up information │ │ │ │ from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software be disabled │ │ │ │ to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37114,14 +37097,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37219,27 +37219,14 @@ │ │ │ │ be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37260,14 +37247,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37308,31 +37308,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37386,14 +37369,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37439,31 +37439,14 @@ │ │ │ │ 4.3.3.6.8, 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37520,14 +37503,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37557,27 +37557,14 @@ │ │ │ │ The nfs-kernel-server package can be removed with the following command: │ │ │ │ $ apt-get remove nfs-kernel-server │ │ │ │ Rationale: If the system does not export NFS shares or act as an NFS client, it is recommended that these services │ │ │ │ be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ References: _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37586,14 +37573,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -37671,31 +37671,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37722,14 +37705,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "chrony" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37823,31 +37823,14 @@ │ │ │ │ working properly. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_enabled │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_chrony │ │ │ │ - │ │ │ │ -class enable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37882,14 +37865,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_chrony │ │ │ │ + │ │ │ │ +class enable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["chrony"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -37922,31 +37922,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-timesyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-timesyncd │ │ │ │ - │ │ │ │ -class enable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37992,14 +37975,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( not ( "chrony" in ansible_facts.packages ) and not ( "ntp" in ansible_facts.packages │ │ │ │ ) ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-timesyncd │ │ │ │ + │ │ │ │ +class enable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-timesyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( ! │ │ │ │ @@ -38700,27 +38700,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38752,14 +38739,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38813,31 +38813,14 @@ │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38895,14 +38878,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38957,27 +38957,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38993,14 +38980,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -39031,31 +39031,14 @@ │ │ │ │ ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or NIS+ domain. This │ │ │ │ service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39105,14 +39088,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39152,27 +39152,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39184,14 +39171,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh │ │ │ │ @@ -39256,27 +39256,14 @@ │ │ │ │ client program. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39287,14 +39274,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -39328,27 +39328,14 @@ │ │ │ │ The telnet client allows users to start connections to other systems via the telnet protocol. │ │ │ │ The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could │ │ │ │ Rationale: allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and │ │ │ │ stronger security and is included in Debian 12. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_inetutils-telnet_removed │ │ │ │ References: _c_i_s 2.2.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnet │ │ │ │ - │ │ │ │ -class remove_inetutils-telnet { │ │ │ │ - package { 'inetutils-telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure inetutils-telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39357,14 +39344,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnet │ │ │ │ + │ │ │ │ +class remove_inetutils-telnet { │ │ │ │ + package { 'inetutils-telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnet │ │ │ │ @@ -39401,27 +39401,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39433,14 +39420,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -39495,27 +39495,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39529,14 +39516,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -39579,31 +39579,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39659,14 +39642,31 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39696,27 +39696,14 @@ │ │ │ │ The rsyncd service can be used to synchronize files between systems over network links. The rsync package can be │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39725,14 +39712,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -39762,31 +39762,14 @@ │ │ │ │ The rsyncd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39841,14 +39824,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39895,27 +39895,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_cups │ │ │ │ - │ │ │ │ -class remove_cups { │ │ │ │ - package { 'cups': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall CUPS Package: Ensure cups is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39927,14 +39914,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_cups_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_cups │ │ │ │ + │ │ │ │ +class remove_cups { │ │ │ │ + package { 'cups': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove cups │ │ │ │ @@ -39973,31 +39973,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["cups"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_cups │ │ │ │ - │ │ │ │ -class disable_cups { │ │ │ │ - service {'cups': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40053,14 +40036,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_cups_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_cups │ │ │ │ + │ │ │ │ +class disable_cups { │ │ │ │ + service {'cups': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["cups"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -40099,27 +40099,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a safeguard │ │ │ │ against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40128,14 +40115,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -40166,31 +40166,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be removed if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40241,14 +40224,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -40289,27 +40289,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40318,14 +40305,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -40354,31 +40354,14 @@ │ │ │ │ ****** RRuullee? ?  DDiissaabbllee SSaammbbaa ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smb"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smb │ │ │ │ - │ │ │ │ -class disable_smb { │ │ │ │ - service {'smb': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40428,14 +40411,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smb │ │ │ │ + │ │ │ │ +class disable_smb { │ │ │ │ + service {'smb': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smb"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -40473,27 +40473,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_net-snmp │ │ │ │ - │ │ │ │ -class remove_net-snmp { │ │ │ │ - package { 'net-snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure net-snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40504,14 +40491,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_net-snmp │ │ │ │ + │ │ │ │ +class remove_net-snmp { │ │ │ │ + package { 'net-snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove net-snmp │ │ │ │ @@ -40541,31 +40541,14 @@ │ │ │ │ The snmpd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40616,14 +40599,31 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmpd" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmpd' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -43253,26 +43253,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43336,14 +43324,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ if test root:root = "$(stat -c "%U:%G" "$keyfile")"; then │ │ │ │ @@ -43378,23 +43378,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43458,14 +43449,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -43505,27 +43505,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.13, SR 2.6, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, │ │ │ │ References: SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.14.1.3, A.6.2.1, A.6.2.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.20 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xorg-x11-server-common │ │ │ │ - │ │ │ │ -class remove_xorg-x11-server-common { │ │ │ │ - package { 'xorg-x11-server-common': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove the X Windows Package Group: Ensure xorg-x11-server-common is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43537,14 +43524,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xorg-x11-server-common_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xorg-x11-server-common │ │ │ │ + │ │ │ │ +class remove_xorg-x11-server-common { │ │ │ │ + package { 'xorg-x11-server-common': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove xorg-x11-server-common │ │ │ │ @@ -84317,31 +84317,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_audit-audispd-plugins_installed │ │ │ │ _h_i_p_a_a 164.308(a)(1)(ii)(D), 164.308(a)(5)(ii)(C), 164.310(a)(2)(iv), 164.310(d)(2)(iii), 164.312(b) │ │ │ │ _p_c_i_d_s_s Req-10.5.3 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000342-GPOS-00133 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.3.3, 10.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "audispd-plugins" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_audispd-plugins │ │ │ │ - │ │ │ │ -class install_audispd-plugins { │ │ │ │ - package { 'audispd-plugins': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -84368,14 +84351,31 @@ │ │ │ │ - PCI-DSSv4-10.3.3 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit-audispd-plugins_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_audispd-plugins │ │ │ │ + │ │ │ │ +class install_audispd-plugins { │ │ │ │ + package { 'audispd-plugins': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "audispd-plugins" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -84403,31 +84403,14 @@ │ │ │ │ 000349-GPOS-00137, SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS- │ │ │ │ 00140, SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, SRG-OS- │ │ │ │ 000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -84468,14 +84451,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -84528,31 +84528,14 @@ │ │ │ │ 00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR-001300, SRG- │ │ │ │ APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -84619,14 +84602,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { dpkg- │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-cis_level2_workstation.html │ │ │ @@ -15106,134 +15106,134 @@ │ │ │ 0003b010: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 0003b020: 2369 6431 3522 2074 6162 696e 6465 783d #id15" tabindex= │ │ │ 0003b030: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ 0003b040: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ 0003b050: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ 0003b060: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ 0003b070: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0003b080: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0003b090: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0003b0a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ -0003b0f0: 6765 735d 5d0a 6e61 6d65 203d 2022 6169 ges]].name = "ai │ │ │ -0003b100: 6465 220a 7665 7273 696f 6e20 3d20 222a de".version = "* │ │ │ -0003b110: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ -0003b120: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ -0003b1d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0003b1e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +004bd390: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +004bd3b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +004bd400: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +004bd410: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0003b270: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0003b310: 636c 7564 6520 696e 7374 616c 6c5f 6169  clude install_ai
│ │ │ -0003b320: 6465 0a0a 636c 6173 7320 696e 7374 616c  de..class instal
│ │ │ -0003b330: 6c5f 6169 6465 207b 0a20 2070 6163 6b61  l_aide {.  packa
│ │ │ -0003b340: 6765 207b 2027 6169 6465 273a 0a20 2020  ge { 'aide':.   
│ │ │ -0003b350: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0003b360: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0003b370: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0003b420: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0003b430: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0003b440: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -0003b260: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0003b290: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0003b2a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0003b2e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0003b2f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0003b4d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0003b570: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0003b580: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0003b590: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0003b5a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0003b5b0: 6f0a 2020 7461 6773 3a0a 2020 2d20 434a  o.  tags:.  - CJ
│ │ │ -0003b5c0: 4953 2d35 2e31 302e 312e 330a 2020 2d20  IS-5.10.1.3.  - 
│ │ │ -0003b5d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0003b5e0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -0003b5f0: 5265 712d 3131 2e35 0a20 202d 2050 4349  Req-11.5.  - PCI
│ │ │ -0003b600: 2d44 5353 7634 2d31 312e 352e 320a 2020  -DSSv4-11.5.2.  
│ │ │ -0003b610: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0003b620: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0003b630: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0003b640: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0003b650: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0003b660: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0003b670: 0a20 202d 2070 6163 6b61 6765 5f61 6964  .  - package_aid
│ │ │ -0003b680: 655f 696e 7374 616c 6c65 640a 0a2d 206e  e_installed..- n
│ │ │ -0003b690: 616d 653a 2045 6e73 7572 6520 6169 6465  ame: Ensure aide
│ │ │ -0003b6a0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -0003b6b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0003b6c0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0003b6d0: 653a 2061 6964 650a 2020 2020 7374 6174  e: aide.    stat
│ │ │ -0003b6e0: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -0003b6f0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -0003b700: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0003b710: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -0003b720: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31  gs:.  - CJIS-5.1
│ │ │ -0003b730: 302e 312e 330a 2020 2d20 4e49 5354 2d38  0.1.3.  - NIST-8
│ │ │ -0003b740: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0003b750: 2d20 5043 492d 4453 532d 5265 712d 3131  - PCI-DSS-Req-11
│ │ │ -0003b760: 2e35 0a20 202d 2050 4349 2d44 5353 7634  .5.  - PCI-DSSv4
│ │ │ -0003b770: 2d31 312e 352e 320a 2020 2d20 656e 6162  -11.5.2.  - enab
│ │ │ -0003b780: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0003b790: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0003b7a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0003b7b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0003b7c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0003b7d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0003b7e0: 6163 6b61 6765 5f61 6964 655f 696e 7374  ackage_aide_inst
│ │ │ -0003b7f0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

│ │ │ +0003b0a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ -0003b4c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0003b4f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0003b500: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0003b540: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0003b550: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +0003b120: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0003b150: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0003b170: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0003b180: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0003b1a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0003b1c0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0003b1d0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0003b1e0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0003b1f0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0003b200: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0003b210: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ +0003b220: 352e 3130 2e31 2e33 0a20 202d 204e 4953  5.10.1.3.  - NIS
│ │ │ +0003b230: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0003b240: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +0003b250: 2d31 312e 350a 2020 2d20 5043 492d 4453  -11.5.  - PCI-DS
│ │ │ +0003b260: 5376 342d 3131 2e35 2e32 0a20 202d 2065  Sv4-11.5.2.  - e
│ │ │ +0003b270: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +0003b280: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0003b290: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0003b2a0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0003b2b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0003b2c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0003b2d0: 2d20 7061 636b 6167 655f 6169 6465 5f69  - package_aide_i
│ │ │ +0003b2e0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +0003b2f0: 3a20 456e 7375 7265 2061 6964 6520 6973  : Ensure aide is
│ │ │ +0003b300: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +0003b310: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0003b320: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0003b330: 6169 6465 0a20 2020 2073 7461 7465 3a20  aide.    state: 
│ │ │ +0003b340: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +0003b350: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +0003b360: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0003b370: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +0003b380: 0a20 202d 2043 4a49 532d 352e 3130 2e31  .  - CJIS-5.10.1
│ │ │ +0003b390: 2e33 0a20 202d 204e 4953 542d 3830 302d  .3.  - NIST-800-
│ │ │ +0003b3a0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +0003b3b0: 4349 2d44 5353 2d52 6571 2d31 312e 350a  CI-DSS-Req-11.5.
│ │ │ +0003b3c0: 2020 2d20 5043 492d 4453 5376 342d 3131    - PCI-DSSv4-11
│ │ │ +0003b3d0: 2e35 2e32 0a20 202d 2065 6e61 626c 655f  .5.2.  - enable_
│ │ │ +0003b3e0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0003b3f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0003b400: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0003b410: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0003b420: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0003b430: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0003b440: 6167 655f 6169 6465 5f69 6e73 7461 6c6c  age_aide_install
│ │ │ +0003b450: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0003b460: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +0003b510: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0003b520: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0003b5f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0003b600: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0003b650: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ +0003b660: 6964 650a 0a63 6c61 7373 2069 6e73 7461  ide..class insta
│ │ │ +0003b670: 6c6c 5f61 6964 6520 7b0a 2020 7061 636b  ll_aide {.  pack
│ │ │ +0003b680: 6167 6520 7b20 2761 6964 6527 3a0a 2020  age { 'aide':.  
│ │ │ +0003b690: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0003b6a0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +0003b6b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0003b6c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +0003b770: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0003b780: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +0003b7d0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +0003b7e0: 2022 6169 6465 220a 7665 7273 696f 6e20   "aide".version 
│ │ │ +0003b7f0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Re │ │ │ -000566f0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00056700: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00056710: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00056720: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00056730: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00056740: 7365 2220 6964 3d22 6964 3531 223e 3c70 se" id="id51">

.[[pack │ │ │ -00056760: 6167 6573 5d5d 0a6e 616d 6520 3d20 2273 ages]].name = "s │ │ │ -00056770: 7564 6f22 0a76 6572 7369 6f6e 203d 2022 udo".version = " │ │ │ -00056780: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ -00056790: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation Pu │ │ │ -00056840: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00056850: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity:low
Disrup │ │ │ +0003b5d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0003b5e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0003b620: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0003b630: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00056920: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00056930: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00056980: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f73  nclude install_s
│ │ │ -00056990: 7564 6f0a 0a63 6c61 7373 2069 6e73 7461  udo..class insta
│ │ │ -000569a0: 6c6c 5f73 7564 6f20 7b0a 2020 7061 636b  ll_sudo {.  pack
│ │ │ -000569b0: 6167 6520 7b20 2773 7564 6f27 3a0a 2020  age { 'sudo':.  
│ │ │ -000569c0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000569d0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -000569e0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000569f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -00056aa0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00056ab0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ -00056900: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00056910: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00056950: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00056960: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00056b80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00056b90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00056be0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00056bf0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00056c00: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00056c10: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00056c20: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00056c30: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00056c40: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ -00056c50: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00056c60: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ -00056c70: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00056c80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00056c90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00056ca0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00056cb0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00056cc0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00056cd0: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ -00056ce0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00056cf0: 456e 7375 7265 2073 7564 6f20 6973 2069  Ensure sudo is i
│ │ │ -00056d00: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -00056d10: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00056d20: 6765 3a0a 2020 2020 6e61 6d65 3a20 7375  ge:.    name: su
│ │ │ -00056d30: 646f 0a20 2020 2073 7461 7465 3a20 7072  do.    state: pr
│ │ │ -00056d40: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00056d50: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00056d60: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00056d70: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00056d80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00056d90: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00056da0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -00056db0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -00056dc0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00056dd0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00056de0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00056df0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00056e00: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00056e10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00056e20: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ -00056e30: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Complexity:low
Disrup │ │ │ -00056b60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00056b70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00056bb0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00056bc0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +000567b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00056800: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00056790: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000567c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000567e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000567f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00056810: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00056820: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00056840: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00056850: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00056860: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00056870: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00056880: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00056890: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +000568a0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +000568b0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +000568c0: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ +000568d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000568e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000568f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00056900: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00056910: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00056920: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00056930: 6b61 6765 5f73 7564 6f5f 696e 7374 616c  kage_sudo_instal
│ │ │ +00056940: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00056950: 7572 6520 7375 646f 2069 7320 696e 7374  ure sudo is inst
│ │ │ +00056960: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +00056970: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00056980: 0a20 2020 206e 616d 653a 2073 7564 6f0a  .    name: sudo.
│ │ │ +00056990: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000569a0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +000569b0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +000569c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000569d0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000569e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +000569f0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ +00056a00: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00056a10: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ +00056a20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00056a30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00056a40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00056a50: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00056a60: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00056a70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00056a80: 2070 6163 6b61 6765 5f73 7564 6f5f 696e   package_sudo_in
│ │ │ +00056a90: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00056aa0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +00056b50: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00056b60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +00056bf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00056c10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00056c20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00056c30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00056c40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00056c60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +00056ca0: 616c 6c5f 7375 646f 0a0a 636c 6173 7320  all_sudo..class 
│ │ │ +00056cb0: 696e 7374 616c 6c5f 7375 646f 207b 0a20  install_sudo {. 
│ │ │ +00056cc0: 2070 6163 6b61 6765 207b 2027 7375 646f   package { 'sudo
│ │ │ +00056cd0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00056ce0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +00056cf0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +00056db0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00056dc0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00056dd0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ +00056e20: 616d 6520 3d20 2273 7564 6f22 0a76 6572  ame = "sudo".ver
│ │ │ +00056e30: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediati │ │ │ -000a3e30: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000a3e40: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000a3e50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000a3ea0: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -000a3eb0: 6d6f 6475 6c65 7322 0a76 6572 7369 6f6e  modules".version
│ │ │ -000a3ec0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000a3f80: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000a3f90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a4010: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a4020: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a4040: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a4050: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a4070: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a4090: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a40c0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000a40d0: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -000a40e0: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -000a40f0: 6c6c 5f6c 6962 7061 6d2d 6d6f 6475 6c65  ll_libpam-module
│ │ │ -000a4100: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -000a4110: 276c 6962 7061 6d2d 6d6f 6475 6c65 7327  'libpam-modules'
│ │ │ -000a4120: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000a4130: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000a4140: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000a4200: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000a4210: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a4290: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a42a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a42c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a42d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a42f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a4310: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a4340: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000a4350: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000a4360: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000a4370: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000a4380: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000a4390: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000a43a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000a43b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000a43c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000a43d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000a43e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000a43f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000a4400: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ -000a4410: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000a4420: 6e73 7572 6520 6c69 6270 616d 2d6d 6f64  nsure libpam-mod
│ │ │ -000a4430: 756c 6573 2069 7320 696e 7374 616c 6c65  ules is installe
│ │ │ -000a4440: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000a4450: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000a4460: 206e 616d 653a 206c 6962 7061 6d2d 6d6f   name: libpam-mo
│ │ │ -000a4470: 6475 6c65 730a 2020 2020 7374 6174 653a  dules.    state:
│ │ │ -000a4480: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000a4490: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -000a44a0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000a44b0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000a44c0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000a44d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000a44e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000a44f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000a4500: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000a4510: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000a4520: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000a4530: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573  kage_pam_modules
│ │ │ -000a4540: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000a3ec0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000a3ed0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000a3ee0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000a3f20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000a3f30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000a3f50: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000a3f70: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000a3f80: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000a3f90: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000a3fa0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000a3fb0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000a3fc0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +000a3fd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000a3fe0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000a3ff0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000a4000: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000a4010: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000a4020: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000a4030: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ +000a4040: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000a4050: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ +000a4060: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ +000a4070: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +000a4080: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000a4090: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ +000a40a0: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ +000a40b0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000a40c0: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +000a40d0: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +000a40e0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000a40f0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000a4100: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000a4110: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000a4120: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000a4130: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000a4140: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000a4150: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000a4160: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +000a4170: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000a4190: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000a41a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000a41b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000a41c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000a41d0: 6431 3639 2220 7461 6269 6e64 6578 3d22 d169" tabindex=" │ │ │ +000a41e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000a41f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000a4200: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000a4210: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000a4220: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000a4230: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000a4240: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000a42d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000a42e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000a4300: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000a4320: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000a4330: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000a4370: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000a4380: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ +000a4390: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ +000a43a0: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ +000a43b0: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ +000a43c0: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ +000a43d0: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ +000a43e0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000a43f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +000a44b0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000a44c0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000a44d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000a4520: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +000a4530: 7061 6d2d 6d6f 6475 6c65 7322 0a76 6572  pam-modules".ver
│ │ │ +000a4540: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediatio │ │ │ -000a5270: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000a5280: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -000a5290: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -000a52e0: 6e61 6d65 203d 2022 6c69 6270 616d 2d70  name = "libpam-p
│ │ │ -000a52f0: 7771 7561 6c69 7479 220a 7665 7273 696f  wquality".versio
│ │ │ -000a5300: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -000a5310: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000a53c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000a53d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000a5450: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000a5460: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000a5470: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000a54b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000a54c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000a54e0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000a5500: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000a5510: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -000a5520: 7561 6c69 7479 0a0a 636c 6173 7320 696e  uality..class in
│ │ │ -000a5530: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -000a5540: 7561 6c69 7479 207b 0a20 2070 6163 6b61  uality {.  packa
│ │ │ -000a5550: 6765 207b 2027 6c69 6270 616d 2d70 7771  ge { 'libpam-pwq
│ │ │ -000a5560: 7561 6c69 7479 273a 0a20 2020 2065 6e73  uality':.    ens
│ │ │ -000a5570: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000a5580: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -000a55a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000a5640: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000a5650: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000a5660: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000a5700: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000a5750: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000a56e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000a5710: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000a5730: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000a5740: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000a5760: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000a5770: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000a5790: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000a57a0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000a57b0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000a57c0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000a57d0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000a57e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000a57f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000a5800: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000a5810: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000a5820: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000a5830: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000a5840: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -000a5850: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -000a5860: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -000a5870: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -000a5880: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000a5890: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000a58a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000a58b0: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -000a58c0: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -000a58d0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000a58e0: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -000a58f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000a5900: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000a5910: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000a5920: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000a5930: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000a5940: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000a5950: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000a5960: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000a5970: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000a5980: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ -000a5990: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +000a5300: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000a5310: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000a5330: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000a5340: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000a5360: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000a5380: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000a53b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +000a53c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +000a53d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +000a53e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +000a53f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +000a5400: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000a5410: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000a5420: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000a5430: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000a5440: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000a5450: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000a5460: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000a5470: 7061 6d5f 7077 7175 616c 6974 795f 696e  pam_pwquality_in
│ │ │ +000a5480: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +000a5490: 2045 6e73 7572 6520 6c69 6270 616d 2d70   Ensure libpam-p
│ │ │ +000a54a0: 7771 7561 6c69 7479 2069 7320 696e 7374  wquality is inst
│ │ │ +000a54b0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +000a54c0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +000a54d0: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ +000a54e0: 6d2d 7077 7175 616c 6974 790a 2020 2020  m-pwquality.    
│ │ │ +000a54f0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +000a5500: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ +000a5510: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ +000a5520: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000a5530: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000a5540: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000a5550: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000a5560: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000a5570: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000a5580: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000a5590: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000a55a0: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +000a55b0: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +000a55c0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000a55d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000a5680: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000a5690: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000a5710: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000a5730: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000a5780: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000a57d0: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +000a57e0: 790a 0a63 6c61 7373 2069 6e73 7461 6c6c  y..class install
│ │ │ +000a57f0: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +000a5800: 7920 7b0a 2020 7061 636b 6167 6520 7b20  y {.  package { 
│ │ │ +000a5810: 276c 6962 7061 6d2d 7077 7175 616c 6974  'libpam-pwqualit
│ │ │ +000a5820: 7927 3a0a 2020 2020 656e 7375 7265 203d  y':.    ensure =
│ │ │ +000a5830: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +000a5840: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +000a5850: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +000a5900: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +000a5910: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +000a5920: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[[packages]
│ │ │ +000a5970: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ +000a5980: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ +000a5990: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -000a64f0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000a6500: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000a6510: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -000a6560: 6167 6573 5d5d 0a6e 616d 6520 3d20 226c ages]].name = "l │ │ │ -000a6570: 6962 7061 6d2d 7275 6e74 696d 6522 0a76 ibpam-runtime".v │ │ │ -000a6580: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ -000a65a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000a6640: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000a6650: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000a6660: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +000a5740: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000a5750: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000a5790: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000a57a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -000a66e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000a6710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000a6730: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000a6740: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000a6760: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000a6780: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000a6790: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ -000a67a0: 6d2d 7275 6e74 696d 650a 0a63 6c61 7373  m-runtime..class
│ │ │ -000a67b0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ -000a67c0: 7275 6e74 696d 6520 7b0a 2020 7061 636b  runtime {.  pack
│ │ │ -000a67d0: 6167 6520 7b20 276c 6962 7061 6d2d 7275  age { 'libpam-ru
│ │ │ -000a67e0: 6e74 696d 6527 3a0a 2020 2020 656e 7375  ntime':.    ensu
│ │ │ -000a67f0: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -000a6800: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -000a6820: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000a6830: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000a6840: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000a6850: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000a6860: 6431 3830 2220 7461 6269 6e64 6578 3d22 d180" tabindex=" │ │ │ -000a6870: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000a6880: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000a6890: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000a68a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000a68b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000a68c0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -000a68d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000a68e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000a6960: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000a6990: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000a69b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000a69c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000a69e0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000a6a00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000a6a10: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ -000a6a20: 2d72 756e 7469 6d65 2069 7320 696e 7374  -runtime is inst
│ │ │ -000a6a30: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000a6a40: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000a6a50: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ -000a6a60: 6d2d 7275 6e74 696d 650a 2020 2020 7374  m-runtime.    st
│ │ │ -000a6a70: 6174 653a 2070 7265 7365 6e74 0a20 2074  ate: present.  t
│ │ │ -000a6a80: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -000a6a90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000a6aa0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000a6ab0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000a6ac0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000a6ad0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000a6ae0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000a6af0: 6167 655f 7061 6d5f 7275 6e74 696d 655f  age_pam_runtime_
│ │ │ -000a6b00: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
│ │ │ +000a6510: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +000a65b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000a6600: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000a6590: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000a65c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000a65e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000a65f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000a6610: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000a6620: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000a6640: 6d65 3a20 456e 7375 7265 206c 6962 7061  me: Ensure libpa
│ │ │ +000a6650: 6d2d 7275 6e74 696d 6520 6973 2069 6e73  m-runtime is ins
│ │ │ +000a6660: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000a6670: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000a6680: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270  :.    name: libp
│ │ │ +000a6690: 616d 2d72 756e 7469 6d65 0a20 2020 2073  am-runtime.    s
│ │ │ +000a66a0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000a66b0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +000a66c0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000a66d0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000a66e0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000a66f0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000a6700: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000a6710: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000a6720: 6b61 6765 5f70 616d 5f72 756e 7469 6d65  kage_pam_runtime
│ │ │ +000a6730: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000a67f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000a6800: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000a68b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000a68d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000a6900: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000a6890: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000a68a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000a68c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000a68e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000a68f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000a6940: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +000a6950: 7275 6e74 696d 650a 0a63 6c61 7373 2069 runtime..class i │ │ │ +000a6960: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7275 nstall_libpam-ru │ │ │ +000a6970: 6e74 696d 6520 7b0a 2020 7061 636b 6167 ntime {. packag │ │ │ +000a6980: 6520 7b20 276c 6962 7061 6d2d 7275 6e74 e { 'libpam-runt │ │ │ +000a6990: 696d 6527 3a0a 2020 2020 656e 7375 7265 ime':. ensure │ │ │ +000a69a0: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +000a69b0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ +000a6a70: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000a6a80: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000a6a90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000a6ad0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000a6ae0: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ +000a6af0: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ +000a6b00: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
│ │ │ -000e05c0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000e05d0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000e05e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000e0630: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000e0640: 2022 6170 7061 726d 6f72 2d75 7469 6c73   "apparmor-utils
│ │ │ -000e0650: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -000e0660: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000e0710: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000e0720: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -000e07c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000e0860: 636c 7564 6520 696e 7374 616c 6c5f 6170  clude install_ap
│ │ │ -000e0870: 7061 726d 6f72 2d75 7469 6c73 0a0a 636c  parmor-utils..cl
│ │ │ -000e0880: 6173 7320 696e 7374 616c 6c5f 6170 7061  ass install_appa
│ │ │ -000e0890: 726d 6f72 2d75 7469 6c73 207b 0a20 2070  rmor-utils {.  p
│ │ │ -000e08a0: 6163 6b61 6765 207b 2027 6170 7061 726d  ackage { 'apparm
│ │ │ -000e08b0: 6f72 2d75 7469 6c73 273a 0a20 2020 2065  or-utils':.    e
│ │ │ -000e08c0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000e08d0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000e08e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000e0990: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000e09a0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000e07b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000e07e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000e07f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000e0830: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000e0840: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -000e0a40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000e0ae0: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ -000e0af0: 6172 6d6f 722d 7574 696c 7320 6973 2069  armor-utils is i
│ │ │ -000e0b00: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000e0b10: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000e0b20: 6765 3a0a 2020 2020 6e61 6d65 3a20 6170  ge:.    name: ap
│ │ │ -000e0b30: 7061 726d 6f72 2d75 7469 6c73 0a20 2020  parmor-utils.   
│ │ │ -000e0b40: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -000e0b50: 2020 7768 656e 3a20 616e 7369 626c 655f    when: ansible_
│ │ │ -000e0b60: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74  virtualization_t
│ │ │ -000e0b70: 7970 6520 6e6f 7420 696e 205b 2264 6f63  ype not in ["doc
│ │ │ -000e0b80: 6b65 7222 2c20 226c 7863 222c 2022 6f70  ker", "lxc", "op
│ │ │ -000e0b90: 656e 767a 222c 2022 706f 646d 616e 222c  envz", "podman",
│ │ │ -000e0ba0: 2022 636f 6e74 6169 6e65 7222 5d0a 2020   "container"].  
│ │ │ -000e0bb0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000e0bc0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000e0bd0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000e0be0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000e0bf0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000e0c00: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000e0c10: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000e0c20: 6b61 6765 5f61 7070 6172 6d6f 722d 7574  kage_apparmor-ut
│ │ │ -000e0c30: 696c 735f 696e 7374 616c 6c65 640a 3c2f  ils_installed.
│ │ │ -000e0a30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000e0a60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000e0a70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000e0ab0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000e0ac0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000e06b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000e06c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000e0710: 206e 616d 653a 2045 6e73 7572 6520 6170   name: Ensure ap
│ │ │ +000e0720: 7061 726d 6f72 2d75 7469 6c73 2069 7320  parmor-utils is 
│ │ │ +000e0730: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +000e0740: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000e0750: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ +000e0760: 7070 6172 6d6f 722d 7574 696c 730a 2020  pparmor-utils.  
│ │ │ +000e0770: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000e0780: 0a20 2077 6865 6e3a 2061 6e73 6962 6c65  .  when: ansible
│ │ │ +000e0790: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ +000e07a0: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ +000e07b0: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ +000e07c0: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ +000e07d0: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ +000e07e0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000e07f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000e0800: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000e0810: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000e0820: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000e0830: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000e0840: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000e0850: 636b 6167 655f 6170 7061 726d 6f72 2d75  ckage_apparmor-u
│ │ │ +000e0860: 7469 6c73 5f69 6e73 7461 6c6c 6564 0a3c  tils_installed.<
│ │ │ +000e0870: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000e0920: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000e0930: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +000e0690: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000e06a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000e06e0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000e06f0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +000e09d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000e09e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000e0a30: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000e0a70: 6c75 6465 2069 6e73 7461 6c6c 5f61 7070  lude install_app
│ │ │ +000e0a80: 6172 6d6f 722d 7574 696c 730a 0a63 6c61  armor-utils..cla
│ │ │ +000e0a90: 7373 2069 6e73 7461 6c6c 5f61 7070 6172  ss install_appar
│ │ │ +000e0aa0: 6d6f 722d 7574 696c 7320 7b0a 2020 7061  mor-utils {.  pa
│ │ │ +000e0ab0: 636b 6167 6520 7b20 2761 7070 6172 6d6f  ckage { 'apparmo
│ │ │ +000e0ac0: 722d 7574 696c 7327 3a0a 2020 2020 656e  r-utils':.    en
│ │ │ +000e0ad0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000e0ae0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000e0ba0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000e0bb0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000e0bc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000e0bd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e0be0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e0bf0: 7365 2220 6964 3d22 6964 3237 3822 3e3c se" id="id278">< │ │ │ +000e0c00: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000e0c10: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000e0c20: 6170 7061 726d 6f72 2d75 7469 6c73 220a apparmor-utils". │ │ │ +000e0c30: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".Remediation OSB │ │ │ -000e18c0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000e18d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -000e1920: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000e1930: 3d20 2261 7070 6172 6d6f 7222 0a76 6572  = "apparmor".ver
│ │ │ -000e1940: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -000e1a00: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000e1a10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +000e09c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000e09f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000e0a00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000e0a40: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000e0a50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -000e1ac0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000e1ae0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000e1b10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000e1aa0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000e1ab0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000e1ad0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000e1af0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000e1b00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -000e1b50: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f install_apparmo │ │ │ -000e1b60: 720a 0a63 6c61 7373 2069 6e73 7461 6c6c r..class install │ │ │ -000e1b70: 5f61 7070 6172 6d6f 7220 7b0a 2020 7061 _apparmor {. pa │ │ │ -000e1b80: 636b 6167 6520 7b20 2761 7070 6172 6d6f ckage { 'apparmo │ │ │ -000e1b90: 7227 3a0a 2020 2020 656e 7375 7265 203d r':. ensure = │ │ │ -000e1ba0: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ -000e1bb0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -000e1bc0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ -000e1c70: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000e1c80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000e1c90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000e1ca0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000e1cb0: 7365 2220 6964 3d22 6964 3238 3322 3e3c se" id="id283">< │ │ │ -000e1cc0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000e1cd0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000e1ce0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000e1cf0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000e1d00: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000e1d10: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000e1d20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000e1d60: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000e1d70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000e1d90: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000e1da0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: E
│ │ │ -000e1dc0: 6e73 7572 6520 6170 7061 726d 6f72 2069  nsure apparmor i
│ │ │ -000e1dd0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -000e1de0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000e1df0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -000e1e00: 2061 7070 6172 6d6f 720a 2020 2020 7374   apparmor.    st
│ │ │ -000e1e10: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000e1e20: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ -000e1e30: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ -000e1e40: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ -000e1e50: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ -000e1e60: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ -000e1e70: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ -000e1e80: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000e1e90: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000e1ea0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000e1eb0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000e1ec0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000e1ed0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000e1ee0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000e1ef0: 655f 6170 7061 726d 6f72 5f69 6e73 7461  e_apparmor_insta
│ │ │ -000e1f00: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation Ans
│ │ │ +000e18c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +000e18d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +000e19a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000e19b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000e1a00: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ +000e1a10: 7070 6172 6d6f 7220 6973 2069 6e73 7461  pparmor is insta
│ │ │ +000e1a20: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +000e1a30: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +000e1a40: 2020 2020 6e61 6d65 3a20 6170 7061 726d      name: apparm
│ │ │ +000e1a50: 6f72 0a20 2020 2073 7461 7465 3a20 7072  or.    state: pr
│ │ │ +000e1a60: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ +000e1a70: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ +000e1a80: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ +000e1a90: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ +000e1aa0: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ +000e1ab0: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ +000e1ac0: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ +000e1ad0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000e1ae0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000e1af0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000e1b00: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000e1b10: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000e1b20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000e1b30: 202d 2070 6163 6b61 6765 5f61 7070 6172   - package_appar
│ │ │ +000e1b40: 6d6f 725f 696e 7374 616c 6c65 640a 3c2f  mor_installed.
Re │ │ │ +000e1c00: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000e1c10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000e1c20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +000e1980: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000e1990: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000e19d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000e19e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +000e1cc0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000e1d10: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000e1ca0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000e1cd0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000e1cf0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000e1d00: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000e1d20: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000e1d30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000e1d50: 7564 6520 696e 7374 616c 6c5f 6170 7061  ude install_appa
│ │ │ +000e1d60: 726d 6f72 0a0a 636c 6173 7320 696e 7374  rmor..class inst
│ │ │ +000e1d70: 616c 6c5f 6170 7061 726d 6f72 207b 0a20  all_apparmor {. 
│ │ │ +000e1d80: 2070 6163 6b61 6765 207b 2027 6170 7061   package { 'appa
│ │ │ +000e1d90: 726d 6f72 273a 0a20 2020 2065 6e73 7572  rmor':.    ensur
│ │ │ +000e1da0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +000e1db0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +000e1e70: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000e1e80: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000e1e90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000e1ee0: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ +000e1ef0: 6172 6d6f 7222 0a76 6572 7369 6f6e 203d  armor".version =
│ │ │ +000e1f00: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -000ef640: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000ef650: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -000ef6b0: 616d 6520 3d20 2273 7973 7465 6d64 2d6a  ame = "systemd-j
│ │ │ -000ef6c0: 6f75 726e 616c 2d72 656d 6f74 6522 0a76  ournal-remote".v
│ │ │ -000ef6d0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -000ef6f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Rem │ │ │ -000ef790: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000ef7a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000ef7b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000ef830: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000ef860: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000ef880: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000ef890: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000ef8b0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000ef8d0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000ef8e0: 6465 2069 6e73 7461 6c6c 5f73 7973 7465  de install_syste
│ │ │ -000ef8f0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000ef900: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ -000ef910: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ -000ef920: 2d72 656d 6f74 6520 7b0a 2020 7061 636b  -remote {.  pack
│ │ │ -000ef930: 6167 6520 7b20 2773 7973 7465 6d64 2d6a  age { 'systemd-j
│ │ │ -000ef940: 6f75 726e 616c 2d72 656d 6f74 6527 3a0a  ournal-remote':.
│ │ │ -000ef950: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000ef960: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -000ef970: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -000efa30: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000efa40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000efad0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000efaf0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000efb10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000efb40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000efb50: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000efb60: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -000efb80: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000efb90: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -000efba0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -000efbb0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -000efbc0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000efbd0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000efbe0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000efbf0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000efc00: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000efc10: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000efc20: 640a 2020 2d20 7061 636b 6167 655f 7379  d.  - package_sy
│ │ │ -000efc30: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ -000efc40: 6d6f 7465 5f69 6e73 7461 6c6c 6564 0a0a  mote_installed..
│ │ │ -000efc50: 2d20 6e61 6d65 3a20 456e 7375 7265 2073  - name: Ensure s
│ │ │ -000efc60: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ -000efc70: 656d 6f74 6520 6973 2069 6e73 7461 6c6c  emote is install
│ │ │ -000efc80: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000efc90: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000efca0: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ -000efcb0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 0a20  journal-remote. 
│ │ │ -000efcc0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -000efcd0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -000efce0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -000efcf0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000efd00: 7327 0a20 2074 6167 733a 0a20 202d 2065  s'.  tags:.  - e
│ │ │ -000efd10: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000efd20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000efd30: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000efd40: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000efd50: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000efd60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000efd70: 2d20 7061 636b 6167 655f 7379 7374 656d  - package_system
│ │ │ -000efd80: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ -000efd90: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Complexity │ │ │ +000ef6e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000ef700: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000ef710: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000ef720: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000ef730: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000ef750: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000ef790: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000ef7a0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000ef7b0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000ef7c0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000ef7d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000ef7e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000ef7f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000ef800: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000ef810: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000ef820: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000ef830: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +000ef840: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ +000ef850: 656d 6f74 655f 696e 7374 616c 6c65 640a  emote_installed.
│ │ │ +000ef860: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +000ef870: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000ef880: 7265 6d6f 7465 2069 7320 696e 7374 616c  remote is instal
│ │ │ +000ef890: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +000ef8a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +000ef8b0: 2020 206e 616d 653a 2073 7973 7465 6d64     name: systemd
│ │ │ +000ef8c0: 2d6a 6f75 726e 616c 2d72 656d 6f74 650a  -journal-remote.
│ │ │ +000ef8d0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000ef8e0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +000ef8f0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +000ef900: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000ef910: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000ef920: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000ef930: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000ef940: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000ef950: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000ef960: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000ef970: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000ef980: 202d 2070 6163 6b61 6765 5f73 7973 7465   - package_syste
│ │ │ +000ef990: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000ef9a0: 655f 696e 7374 616c 6c65 640a 3c2f 636f  e_installed.
< │ │ │ +000ef9c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000ef9d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000ef9e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000ef9f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000efa00: 6433 3033 2220 7461 6269 6e64 6578 3d22 d303" tabindex=" │ │ │ +000efa10: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000efa20: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000efa30: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000efa40: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000efa50: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000efa60: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000efa70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000efb00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000efb10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000efb30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000efb50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000efb60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000efba0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000efbb0: 6520 696e 7374 616c 6c5f 7379 7374 656d e install_system │ │ │ +000efbc0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465 d-journal-remote │ │ │ +000efbd0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +000efbe0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000efbf0: 7265 6d6f 7465 207b 0a20 2070 6163 6b61 remote {. packa │ │ │ +000efc00: 6765 207b 2027 7379 7374 656d 642d 6a6f ge { 'systemd-jo │ │ │ +000efc10: 7572 6e61 6c2d 7265 6d6f 7465 273a 0a20 urnal-remote':. │ │ │ +000efc20: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +000efc30: 2769 6e73 7461 6c6c 6564 272c 0a20 207d 'installed',. } │ │ │ +000efc40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ +000efc50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000efd00: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000efd10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000efd20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000efd60: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +000efd70: 6520 3d20 2273 7973 7465 6d64 2d6a 6f75  e = "systemd-jou
│ │ │ +000efd80: 726e 616c 2d72 656d 6f74 6522 0a76 6572  rnal-remote".ver
│ │ │ +000efd90: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Rem │ │ │ -000f0ec0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000f0ed0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000f0ee0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -000f0f30: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -000f0f40: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -000f0f50: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ -000f0f60: 7570 6c6f 6164 225d 0a3c 2f63 6f64 653e upload"]. │ │ │ -000f0f70: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -000f1020: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000f1030: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000f1040: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000f1050: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000f1060: 7365 2220 6964 3d22 6964 3330 3822 3e3c se" id="id308">< │ │ │ -000f1070: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000f1080: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000f1090: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000f10a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000f10b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000f10c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000f10d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000f1110: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000f1120: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000f1140: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000f1150: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -000f1170: 6e61 626c 655f 7379 7374 656d 642d 6a6f  nable_systemd-jo
│ │ │ -000f1180: 7572 6e61 6c2d 7570 6c6f 6164 0a0a 636c  urnal-upload..cl
│ │ │ -000f1190: 6173 7320 656e 6162 6c65 5f73 7973 7465  ass enable_syste
│ │ │ -000f11a0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000f11b0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -000f11c0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -000f11d0: 7570 6c6f 6164 273a 0a20 2020 2065 6e61  upload':.    ena
│ │ │ -000f11e0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -000f11f0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000f1200: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -000f1210: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000f1220: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000f12d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000f12e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000f1360: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000f1380: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000f13d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -000f1420: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -000f1430: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -000f1440: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -000f1450: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -000f1460: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000f1470: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000f1480: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000f1490: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000f14a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000f14b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000f14c0: 2020 2d20 7365 7276 6963 655f 7379 7374    - service_syst
│ │ │ -000f14d0: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -000f14e0: 6164 5f65 6e61 626c 6564 0a0a 2d20 6e61  ad_enabled..- na
│ │ │ -000f14f0: 6d65 3a20 456e 6162 6c65 2073 7973 7465  me: Enable syste
│ │ │ -000f1500: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000f1510: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ -000f1520: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ -000f1530: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000f1540: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -000f1550: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000f1560: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000f1570: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -000f1580: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ -000f1590: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ -000f15a0: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ -000f15b0: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ -000f15c0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 2053  journal-upload S
│ │ │ -000f15d0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000f15e0: 5365 7276 6963 6520 7379 7374 656d 642d  Service systemd-
│ │ │ -000f15f0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 0a20  journal-upload. 
│ │ │ -000f1600: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -000f1610: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -000f1620: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ -000f1630: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 0a20  journal-upload. 
│ │ │ -000f1640: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -000f1650: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -000f1660: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -000f1670: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -000f1680: 7768 656e 3a0a 2020 2020 2d20 2722 7379  when:.    - '"sy
│ │ │ -000f1690: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ -000f16a0: 6d6f 7465 2220 696e 2061 6e73 6962 6c65  mote" in ansible
│ │ │ -000f16b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000f16c0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -000f16d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000f16e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000f16f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000f1700: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000f1710: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000f1720: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000f1730: 7365 7276 6963 655f 7379 7374 656d 642d  service_systemd-
│ │ │ -000f1740: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 5f65  journal-upload_e
│ │ │ -000f1750: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ -000f1760: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -000f1770: 0a20 2077 6865 6e3a 0a20 202d 2027 226c  .  when:.  - '"l
│ │ │ -000f1780: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -000f1790: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000f17a0: 6167 6573 270a 2020 2d20 2820 616e 7369  ages'.  - ( ansi
│ │ │ -000f17b0: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000f17c0: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000f17d0: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000f17e0: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000f17f0: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000f1800: 5d0a 2020 2020 616e 6420 2273 7973 7465  ].    and "syste
│ │ │ -000f1810: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000f1820: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000f1830: 6374 732e 7061 636b 6167 6573 2029 0a3c  cts.packages ).<
│ │ │ +000f0ec0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +000f0ed0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +000f0ee0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -000f1390: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000f13a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000f13e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000f13f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +000f0f80: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000f0fd0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000f0f60: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000f0f90: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000f0fb0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000f0fc0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000f0fe0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000f0ff0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000f1010: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +000f1020: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +000f1030: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +000f1040: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +000f1050: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +000f1060: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000f1070: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000f1080: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000f1090: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000f10a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000f10b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000f10c0: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +000f10d0: 6f75 726e 616c 2d75 706c 6f61 645f 656e  ournal-upload_en
│ │ │ +000f10e0: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ +000f10f0: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ +000f1100: 7572 6e61 6c2d 7570 6c6f 6164 2053 6572  urnal-upload Ser
│ │ │ +000f1110: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ +000f1120: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ +000f1130: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2062  urnal-upload.  b
│ │ │ +000f1140: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +000f1150: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +000f1160: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +000f1170: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +000f1180: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +000f1190: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000f11a0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ +000f11b0: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e  le systemd-journ
│ │ │ +000f11c0: 616c 2d75 706c 6f61 6420 5365 7276 6963  al-upload Servic
│ │ │ +000f11d0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +000f11e0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e  ce systemd-journ
│ │ │ +000f11f0: 616c 2d75 706c 6f61 640a 2020 2020 616e  al-upload.    an
│ │ │ +000f1200: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +000f1210: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +000f1220: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ +000f1230: 616c 2d75 706c 6f61 640a 2020 2020 2020  al-upload.      
│ │ │ +000f1240: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +000f1250: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +000f1260: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +000f1270: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +000f1280: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ +000f1290: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ +000f12a0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +000f12b0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +000f12c0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +000f12d0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000f12e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000f12f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000f1300: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000f1310: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000f1320: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +000f1330: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ +000f1340: 616c 2d75 706c 6f61 645f 656e 6162 6c65  al-upload_enable
│ │ │ +000f1350: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +000f1360: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +000f1370: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ +000f1380: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +000f1390: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000f13a0: 0a20 202d 2028 2061 6e73 6962 6c65 5f76  .  - ( ansible_v
│ │ │ +000f13b0: 6972 7475 616c 697a 6174 696f 6e5f 7479  irtualization_ty
│ │ │ +000f13c0: 7065 206e 6f74 2069 6e20 5b22 646f 636b  pe not in ["dock
│ │ │ +000f13d0: 6572 222c 2022 6c78 6322 2c20 226f 7065  er", "lxc", "ope
│ │ │ +000f13e0: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20  nvz", "podman", 
│ │ │ +000f13f0: 2263 6f6e 7461 696e 6572 225d 0a20 2020  "container"].   
│ │ │ +000f1400: 2061 6e64 2022 7379 7374 656d 642d 6a6f   and "systemd-jo
│ │ │ +000f1410: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e  urnal-remote" in
│ │ │ +000f1420: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000f1430: 6163 6b61 6765 7320 290a 3c2f 636f 6465  ackages ).
Remedi │ │ │ +000f14f0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000f1500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000f1510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000f1540: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000f15b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000f15d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000f1600: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000f1620: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000f1590: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000f15a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000f15e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000f15f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000f1640: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a enable_systemd-j │ │ │ +000f1650: 6f75 726e 616c 2d75 706c 6f61 640a 0a63 ournal-upload..c │ │ │ +000f1660: 6c61 7373 2065 6e61 626c 655f 7379 7374 lass enable_syst │ │ │ +000f1670: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f emd-journal-uplo │ │ │ +000f1680: 6164 207b 0a20 2073 6572 7669 6365 207b ad {. service { │ │ │ +000f1690: 2773 7973 7465 6d64 2d6a 6f75 726e 616c 'systemd-journal │ │ │ +000f16a0: 2d75 706c 6f61 6427 3a0a 2020 2020 656e -upload':. en │ │ │ +000f16b0: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ +000f16c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +000f16d0: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ +000f16e0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +000f16f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000f17a0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000f17b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000f17c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000f1800: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +000f1810: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +000f1820: 6420 3d20 5b22 7379 7374 656d 642d 6a6f  d = ["systemd-jo
│ │ │ +000f1830: 7572 6e61 6c2d 7570 6c6f 6164 225d 0a3c  urnal-upload"].<
│ │ │  000f1840: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -000f2720: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000f2730: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000f2740: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -000f2790: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -000f27a0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -000f27b0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64 systemd-journald │ │ │ -000f27c0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e "]. │ │ │ -000f27d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22

Remediation P │ │ │ -000f2880: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000f2890: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000f2910: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000f2930: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000f2980: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -000f29d0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -000f29e0: 0a0a 636c 6173 7320 656e 6162 6c65 5f73  ..class enable_s
│ │ │ -000f29f0: 7973 7465 6d64 2d6a 6f75 726e 616c 6420  ystemd-journald 
│ │ │ -000f2a00: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ -000f2a10: 7374 656d 642d 6a6f 7572 6e61 6c64 273a  stemd-journald':
│ │ │ -000f2a20: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -000f2a30: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -000f2a40: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -000f2a50: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ -000f2b10: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -000f2b20: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ -000f2940: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000f2950: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000f2990: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000f29a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -000f2bd0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000f2bf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000f2c20: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000f2bb0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000f2bc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000f2be0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000f2c00: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000f2c10: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -000f2c60: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -000f2c70: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -000f2c80: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -000f2c90: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -000f2ca0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -000f2cb0: 302d 3533 2d53 432d 3234 0a20 202d 2065 0-53-SC-24. - e │ │ │ -000f2cc0: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ -000f2cd0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -000f2ce0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -000f2cf0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -000f2d00: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -000f2d10: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -000f2d20: 2d20 7365 7276 6963 655f 7379 7374 656d - service_system │ │ │ -000f2d30: 642d 6a6f 7572 6e61 6c64 5f65 6e61 626c d-journald_enabl │ │ │ -000f2d40: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ -000f2d50: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e le systemd-journ │ │ │ -000f2d60: 616c 6420 5365 7276 6963 6520 2d20 456e ald Service - En │ │ │ -000f2d70: 6162 6c65 2073 6572 7669 6365 2073 7973 able service sys │ │ │ -000f2d80: 7465 6d64 2d6a 6f75 726e 616c 640a 2020 temd-journald. │ │ │ -000f2d90: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ -000f2da0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000f2db0: 6b61 6765 2066 6163 7473 0a20 2020 2061 kage facts. a │ │ │ -000f2dc0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -000f2dd0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020 ackage_facts:. │ │ │ -000f2de0: 2020 2020 6d61 6e61 6765 723a 2061 7574 manager: aut │ │ │ -000f2df0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61 o.. - name: Ena │ │ │ -000f2e00: 626c 6520 7379 7374 656d 642d 6a6f 7572 ble systemd-jour │ │ │ -000f2e10: 6e61 6c64 2053 6572 7669 6365 202d 2045 nald Service - E │ │ │ -000f2e20: 6e61 626c 6520 5365 7276 6963 6520 7379 nable Service sy │ │ │ -000f2e30: 7374 656d 642d 6a6f 7572 6e61 6c64 0a20 stemd-journald. │ │ │ -000f2e40: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -000f2e50: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -000f2e60: 2020 6e61 6d65 3a20 7379 7374 656d 642d name: systemd- │ │ │ -000f2e70: 6a6f 7572 6e61 6c64 0a20 2020 2020 2065 journald. e │ │ │ -000f2e80: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ -000f2e90: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ -000f2ea0: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ -000f2eb0: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ -000f2ec0: 2020 2020 2d20 2722 7379 7374 656d 6422 - '"systemd" │ │ │ -000f2ed0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -000f2ee0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -000f2ef0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -000f2f00: 2d35 332d 5343 2d32 340a 2020 2d20 656e -53-SC-24. - en │ │ │ -000f2f10: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -000f2f20: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -000f2f30: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -000f2f40: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -000f2f50: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -000f2f60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -000f2f70: 2073 6572 7669 6365 5f73 7973 7465 6d64 service_systemd │ │ │ -000f2f80: 2d6a 6f75 726e 616c 645f 656e 6162 6c65 -journald_enable │ │ │ -000f2f90: 640a 2020 2d20 7370 6563 6961 6c5f 7365 d. - special_se │ │ │ -000f2fa0: 7276 6963 655f 626c 6f63 6b0a 2020 7768 rvice_block. wh │ │ │ -000f2fb0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -000f2fc0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -000f2fd0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63 ts.packages'. │ │ │ +000f2740: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

low< │ │ │ +000f27e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000f2830: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000f27c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000f27f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000f2810: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000f2820: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000f2840: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000f2850: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000f2870: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +000f2880: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +000f2890: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +000f28a0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +000f28b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +000f28c0: 2d38 3030 2d35 332d 5343 2d32 340a 2020  -800-53-SC-24.  
│ │ │ +000f28d0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000f28e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000f28f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000f2900: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000f2910: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000f2920: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000f2930: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ +000f2940: 7465 6d64 2d6a 6f75 726e 616c 645f 656e  temd-journald_en
│ │ │ +000f2950: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ +000f2960: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ +000f2970: 7572 6e61 6c64 2053 6572 7669 6365 202d  urnald Service -
│ │ │ +000f2980: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +000f2990: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +000f29a0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +000f29b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000f29c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000f29d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000f29e0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +000f29f0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +000f2a00: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +000f2a10: 456e 6162 6c65 2073 7973 7465 6d64 2d6a  Enable systemd-j
│ │ │ +000f2a20: 6f75 726e 616c 6420 5365 7276 6963 6520  ournald Service 
│ │ │ +000f2a30: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ +000f2a40: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000f2a50: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +000f2a60: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +000f2a70: 2020 2020 206e 616d 653a 2073 7973 7465       name: syste
│ │ │ +000f2a80: 6d64 2d6a 6f75 726e 616c 640a 2020 2020  md-journald.    
│ │ │ +000f2a90: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +000f2aa0: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +000f2ab0: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +000f2ac0: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +000f2ad0: 6e3a 0a20 2020 202d 2027 2273 7973 7465  n:.    - '"syste
│ │ │ +000f2ae0: 6d64 2220 696e 2061 6e73 6962 6c65 5f66  md" in ansible_f
│ │ │ +000f2af0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000f2b00: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +000f2b10: 3830 302d 3533 2d53 432d 3234 0a20 202d  800-53-SC-24.  -
│ │ │ +000f2b20: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000f2b30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000f2b40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000f2b50: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000f2b60: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000f2b70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000f2b80: 2020 2d20 7365 7276 6963 655f 7379 7374    - service_syst
│ │ │ +000f2b90: 656d 642d 6a6f 7572 6e61 6c64 5f65 6e61  emd-journald_ena
│ │ │ +000f2ba0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +000f2bb0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +000f2bc0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +000f2bd0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +000f2be0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000f2bf0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000f2ca0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000f2cb0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000f2d50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000f2df0: 636c 7564 6520 656e 6162 6c65 5f73 7973  clude enable_sys
│ │ │ +000f2e00: 7465 6d64 2d6a 6f75 726e 616c 640a 0a63  temd-journald..c
│ │ │ +000f2e10: 6c61 7373 2065 6e61 626c 655f 7379 7374  lass enable_syst
│ │ │ +000f2e20: 656d 642d 6a6f 7572 6e61 6c64 207b 0a20  emd-journald {. 
│ │ │ +000f2e30: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ +000f2e40: 6d64 2d6a 6f75 726e 616c 6427 3a0a 2020  md-journald':.  
│ │ │ +000f2e50: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +000f2e60: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +000f2e70: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +000f2e80: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ +000f2f40: 6f6e 204f 5342 7569 6c64 2042 6c75 6570  on OSBuild Bluep
│ │ │ +000f2f50: 7269 6e74 2073 6e69 7070 6574 20e2 87b2  rint snippet ...
│ │ │ +000f2f60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
.[customizati
│ │ │ +000f2fb0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +000f2fc0: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ +000f2fd0: 642d 6a6f 7572 6e61 6c64 225d 0a3c 2f63  d-journald"].
│ │ │ 000f2ff0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00100b50: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00100b60: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00100b70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00100b80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00100b90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00100ba0: 7365 2220 6964 3d22 6964 3333 3822 3e3c se" id="id338">< │ │ │ -00100bb0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00100bc0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00100bd0: 7273 7973 6c6f 6722 0a76 6572 7369 6f6e rsyslog".version │ │ │ -00100be0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".Remediati │ │ │ -00100ca0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00100cb0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00100d30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00100d70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ +000f2d40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000f2d70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000f2d80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000f2dc0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000f2dd0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -00100d40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00100d60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00100d90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00100db0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00100de0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00100df0: 7461 6c6c 5f72 7379 736c 6f67 0a0a 636c  tall_rsyslog..cl
│ │ │ -00100e00: 6173 7320 696e 7374 616c 6c5f 7273 7973  ass install_rsys
│ │ │ -00100e10: 6c6f 6720 7b0a 2020 7061 636b 6167 6520  log {.  package 
│ │ │ -00100e20: 7b20 2772 7379 736c 6f67 273a 0a20 2020  { 'rsyslog':.   
│ │ │ -00100e30: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -00100e40: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -00100e50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00100f10: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00100f20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00100ff0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00101000: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00101050: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00101060: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00101070: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00101080: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00101090: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -001010a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -001010b0: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -001010c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001010d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001010e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001010f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00101100: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00101110: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00101120: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ -00101130: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -00101140: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ -00101150: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00101160: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00101170: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ -00101180: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ -00101190: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -001011a0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -001011b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -001011c0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -001011d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -001011e0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -001011f0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00101200: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00101210: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00101220: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00101230: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00101240: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00101250: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -00101260: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.
low
Disru │ │ │ -00100fd0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00100fe0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00101020: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00101030: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00100c00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00100c10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00100c60: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00100ca0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00100cb0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00100cc0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00100cd0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00100ce0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00100cf0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00100d00: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00100d10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00100d20: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00100d30: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00100d40: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00100d50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00100d60: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00100d70: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +00100d80: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +00100d90: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ +00100da0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00100db0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00100dc0: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ +00100dd0: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ +00100de0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +00100df0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00100e00: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00100e10: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00100e20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00100e30: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00100e40: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00100e50: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00100e60: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00100e70: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00100e80: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00100e90: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00100ea0: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +00100eb0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00100ec0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00100f70: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00100f80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00100f90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00100fa0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00100fb0: 7365 2220 6964 3d22 6964 3333 3922 3e3c se" id="id339">< │ │ │ +00100fc0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00100fd0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00100fe0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00100ff0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00101000: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00101090: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +001010a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +00100bf0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00100c20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00100c30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00100c70: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00100c80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +00101010: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00101020: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00101060: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00101070: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +001010c0: 6e73 7461 6c6c 5f72 7379 736c 6f67 0a0a  nstall_rsyslog..
│ │ │ +001010d0: 636c 6173 7320 696e 7374 616c 6c5f 7273  class install_rs
│ │ │ +001010e0: 7973 6c6f 6720 7b0a 2020 7061 636b 6167  yslog {.  packag
│ │ │ +001010f0: 6520 7b20 2772 7379 736c 6f67 273a 0a20  e { 'rsyslog':. 
│ │ │ +00101100: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00101110: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +00101120: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00101130: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +001011e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +001011f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00101200: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00101240: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +00101250: 6520 3d20 2272 7379 736c 6f67 220a 7665  e = "rsyslog".ve
│ │ │ +00101260: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00101280: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00101290: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 001012a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 001012b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 001012c0: 6433 3431 2220 7461 6269 6e64 6578 3d22 d341" tabindex=" │ │ │ 001012d0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -66120,151 +66120,151 @@ │ │ │ 00102470: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 00102480: 2369 6433 3433 2220 7461 6269 6e64 6578 #id343" tabindex │ │ │ 00102490: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 001024a0: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 001024b0: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 001024c0: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 001024d0: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -001024e0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -001024f0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00102500: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00102510: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00102520: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00102530: 7365 2220 6964 3d22 6964 3334 3322 3e3c se" id="id343">< │ │ │ -00102540: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00102550: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00102560: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -00102570: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].
Remed │ │ │ -00102630: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00102640: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -001026f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00102710: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00102740: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001026d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001026e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00102700: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00102720: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00102730: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00102780: 2065 6e61 626c 655f 7273 7973 6c6f 670a enable_rsyslog. │ │ │ -00102790: 0a63 6c61 7373 2065 6e61 626c 655f 7273 .class enable_rs │ │ │ -001027a0: 7973 6c6f 6720 7b0a 2020 7365 7276 6963 yslog {. servic │ │ │ -001027b0: 6520 7b27 7273 7973 6c6f 6727 3a0a 2020 e {'rsyslog':. │ │ │ -001027c0: 2020 656e 6162 6c65 203d 2667 743b 2074 enable => t │ │ │ -001027d0: 7275 652c 0a20 2020 2065 6e73 7572 6520 rue,. ensure │ │ │ -001027e0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c => 'running', │ │ │ -001027f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediati │ │ │ -001028b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -001028c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00102940: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00102950: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00102960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001029a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001029b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001029d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -001029f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00102a00: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00102a10: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00102a20: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00102a30: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00102a40: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00102a50: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -00102a60: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00102a70: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -00102a80: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00102a90: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00102aa0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00102ab0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00102ac0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00102ad0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00102ae0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -00102af0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ -00102b00: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ -00102b10: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -00102b20: 6520 7273 7973 6c6f 670a 2020 626c 6f63  e rsyslog.  bloc
│ │ │ -00102b30: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -00102b40: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00102b50: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -00102b60: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00102b70: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -00102b80: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -00102b90: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -00102ba0: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -00102bb0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -00102bc0: 2072 7379 736c 6f67 0a20 2020 2061 6e73   rsyslog.    ans
│ │ │ -00102bd0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00102be0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00102bf0: 3a20 7273 7973 6c6f 670a 2020 2020 2020  : rsyslog.      
│ │ │ -00102c00: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -00102c10: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -00102c20: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -00102c30: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -00102c40: 0a20 2020 202d 2027 2272 7379 736c 6f67  .    - '"rsyslog
│ │ │ -00102c50: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00102c60: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00102c70: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00102c80: 302d 3533 2d41 552d 3428 3129 0a20 202d  0-53-AU-4(1).  -
│ │ │ -00102c90: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00102ca0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00102cb0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00102cc0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00102cd0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00102ce0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00102cf0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00102d00: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00102d10: 6963 655f 7273 7973 6c6f 675f 656e 6162  ice_rsyslog_enab
│ │ │ -00102d20: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00102d30: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00102d40: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00102d50: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00102d60: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +001024e0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +001024f0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +00102590: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001025a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001025f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00102630: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00102640: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00102650: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00102660: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00102670: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00102680: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ +00102690: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001026a0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +001026b0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001026c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001026d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001026e0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +001026f0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00102700: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00102710: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ +00102720: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +00102730: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ +00102740: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00102750: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ +00102760: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00102770: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00102780: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00102790: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +001027a0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +001027b0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +001027c0: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +001027d0: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ +001027e0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +001027f0: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ +00102800: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00102810: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00102820: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ +00102830: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00102840: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +00102850: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +00102860: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +00102870: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +00102880: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ +00102890: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +001028a0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +001028b0: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +001028c0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +001028d0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +001028e0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +001028f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00102900: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00102910: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00102920: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00102930: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00102940: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ +00102950: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ +00102960: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +00102970: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +00102980: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00102990: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +001029a0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediatio │ │ │ +00102a60: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00102a70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00102b30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00102b40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +00102580: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001025b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001025c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00102600: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00102610: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00102b00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00102b20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00102b50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00102b70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00102bb0: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ +00102bc0: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ +00102bd0: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ +00102be0: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ +00102bf0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00102c00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00102c10: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00102c20: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00102c30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00102ce0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00102cf0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00102d00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00102d40: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00102d50: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +00102d60: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │  00102d70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediat │ │ │ -0010ca00: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0010ca10: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0010ca20: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -0010ca70: 5d0a 6e61 6d65 203d 2022 6970 7461 626c  ].name = "iptabl
│ │ │ -0010ca80: 6573 2d70 6572 7369 7374 656e 7422 0a76  es-persistent".v
│ │ │ -0010ca90: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0010cab0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0010cb50: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0010cb60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0010cb70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0010cbf0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0010cc20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0010cc40: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0010cc50: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0010cc70: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0010cc90: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0010cca0: 6465 2069 6e73 7461 6c6c 5f69 7074 6162  de install_iptab
│ │ │ -0010ccb0: 6c65 732d 7065 7273 6973 7465 6e74 0a0a  les-persistent..
│ │ │ -0010ccc0: 636c 6173 7320 696e 7374 616c 6c5f 6970  class install_ip
│ │ │ -0010ccd0: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ -0010cce0: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -0010ccf0: 2769 7074 6162 6c65 732d 7065 7273 6973  'iptables-persis
│ │ │ -0010cd00: 7465 6e74 273a 0a20 2020 2065 6e73 7572  tent':.    ensur
│ │ │ -0010cd10: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -0010cd20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0010cde0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0010cdf0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0010ce80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0010ce90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0010ceb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0010ced0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0010cee0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0010cf20: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0010cf30: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0010cf40: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0010cf50: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0010cf60: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0010cf70: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -0010cf80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0010cf90: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0010cfa0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0010cfb0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -0010cfc0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -0010cfd0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -0010cfe0: 6b61 6765 5f69 7074 6162 6c65 732d 7065 kage_iptables-pe │ │ │ -0010cff0: 7273 6973 7465 6e74 5f69 6e73 7461 6c6c rsistent_install │ │ │ -0010d000: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ -0010d010: 7265 2069 7074 6162 6c65 732d 7065 7273 re iptables-pers │ │ │ -0010d020: 6973 7465 6e74 2069 7320 696e 7374 616c istent is instal │ │ │ -0010d030: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -0010d040: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -0010d050: 2020 206e 616d 653a 2069 7074 6162 6c65 name: iptable │ │ │ -0010d060: 732d 7065 7273 6973 7465 6e74 0a20 2020 s-persistent. │ │ │ -0010d070: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -0010d080: 2020 7768 656e 3a20 2722 6970 7461 626c when: '"iptabl │ │ │ -0010d090: 6573 2220 696e 2061 6e73 6962 6c65 5f66 es" in ansible_f │ │ │ -0010d0a0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ -0010d0b0: 2074 6167 733a 0a20 202d 2065 6e61 626c tags:. - enabl │ │ │ -0010d0c0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -0010d0d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0010d0e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0010d0f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -0010d100: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -0010d110: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -0010d120: 636b 6167 655f 6970 7461 626c 6573 2d70 ckage_iptables-p │ │ │ -0010d130: 6572 7369 7374 656e 745f 696e 7374 616c ersistent_instal │ │ │ -0010d140: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.

< │ │ │ +0010ca20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0010ca30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0010ca40: 7365 2220 6964 3d22 6964 3336 3022 3e3c se" id="id360">< │ │ │ +0010ca50: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0010ca60: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0010ca70: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0010ca80: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0010ca90: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0010caa0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0010cab0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0010caf0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0010cb00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0010cb20: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0010cb30: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0010cb50: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0010cb60: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0010cb70: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0010cb80: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0010cb90: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +0010cba0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0010cbb0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0010cbc0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0010cbd0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0010cbe0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0010cbf0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0010cc00: 655f 6970 7461 626c 6573 2d70 6572 7369  e_iptables-persi
│ │ │ +0010cc10: 7374 656e 745f 696e 7374 616c 6c65 640a  stent_installed.
│ │ │ +0010cc20: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +0010cc30: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +0010cc40: 656e 7420 6973 2069 6e73 7461 6c6c 6564  ent is installed
│ │ │ +0010cc50: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0010cc60: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0010cc70: 6e61 6d65 3a20 6970 7461 626c 6573 2d70  name: iptables-p
│ │ │ +0010cc80: 6572 7369 7374 656e 740a 2020 2020 7374  ersistent.    st
│ │ │ +0010cc90: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0010cca0: 6865 6e3a 2027 2269 7074 6162 6c65 7322  hen: '"iptables"
│ │ │ +0010ccb0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0010ccc0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +0010ccd0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +0010cce0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0010ccf0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0010cd00: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0010cd10: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0010cd20: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0010cd30: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0010cd40: 6765 5f69 7074 6162 6c65 732d 7065 7273  ge_iptables-pers
│ │ │ +0010cd50: 6973 7465 6e74 5f69 6e73 7461 6c6c 6564  istent_installed
│ │ │ +0010cd60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0010ce20: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0010ce30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0010cf00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0010cf10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0010cf60: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f69  nclude install_i
│ │ │ +0010cf70: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +0010cf80: 6e74 0a0a 636c 6173 7320 696e 7374 616c  nt..class instal
│ │ │ +0010cf90: 6c5f 6970 7461 626c 6573 2d70 6572 7369  l_iptables-persi
│ │ │ +0010cfa0: 7374 656e 7420 7b0a 2020 7061 636b 6167  stent {.  packag
│ │ │ +0010cfb0: 6520 7b20 2769 7074 6162 6c65 732d 7065  e { 'iptables-pe
│ │ │ +0010cfc0: 7273 6973 7465 6e74 273a 0a20 2020 2065  rsistent':.    e
│ │ │ +0010cfd0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0010cfe0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0010cff0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0010d0a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0010d0b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0010d0c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0010d0d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0010d100: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +0010d110: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +0010d120: 2269 7074 6162 6c65 732d 7065 7273 6973  "iptables-persis
│ │ │ +0010d130: 7465 6e74 220a 7665 7273 696f 6e20 3d20  tent".version = 
│ │ │ +0010d140: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
│ │ │ -0010de60: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0010de70: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0010de80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -0010ded0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -0010dee0: 2022 6970 7461 626c 6573 220a 7665 7273   "iptables".vers
│ │ │ -0010def0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Complexity:low
Disrup │ │ │ +0010cee0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0010cef0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0010cf30: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0010cf40: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le