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.
Generate a tailoring file:
sudo usg generate-tailoring disa_stig tailor.xml
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
logcollectorwith the name of the server. To disable the rule, replaceselected="true"withselected="false".Audit using the new tailoring file:
sudo usg audit --tailoring-file tailor.xml
Fix using the new tailoring file:
sudo usg fix --tailoring-file tailor.xml