Customize DISA-STIG profiles

You can’t apply all rules automatically without additional input. You can provide that input using a tailoring file, as demonstrated below. Furthermore, a tailoring file allows you to select which rules to enforce.

  1. Generate a tailoring file:

    sudo usg generate-tailoring disa_stig tailor.xml
    
  2. Edit the tailoring file and review the rules shown as comments.

    For example, to set the remote auditd server (rule UBTU-20-010216), find the text:

    <!-- UBTU-20-010216
    <xccdf:set-value idref="var_audispd_remote_server">logcollector</xccdf:set-value>
    

    Replace logcollector with the name of the server. To disable the rule, replace selected="true" with selected="false".

  3. Audit using the new tailoring file:

    sudo usg audit --tailoring-file tailor.xml
    
  4. Fix using the new tailoring file:

    sudo usg fix --tailoring-file tailor.xml