Question about the recommendations included in SSG #14865
|
Hello everyone,I have a question about how the process of collecting and implementing security recommendations works in ComplianceAsCode/SSG. and DISA STIG has: "Minimum password length = 20" Would these be represented as the same technical rule with different parameter values depending on the profile? For example, would you create one password length rule, reference both CIS and STIG in that rule, and then define different values in the CIS and STIG profiles? |
Replies: 1 comment 1 reply
|
Hello @Yesser-Belhajali I’m not a project maintainer, but here’s how it works in practice in ComplianceAsCode/SSG: They don’t create all the rules from scratch for each standard. There is a shared library of technical rules (linux_os/guide/). The standards (CIS, STIG, NIST, etc.) are then mapped to this library via files in the CIS = 10, STIG = 20: one or two rules? Example with minimum password length: Rule: accounts_password_pam_minlen They only create two separate rules if the technical mechanism differs (e.g., PAM vs. /etc/login.defs), not simply because the value changes. |
Hello @Yesser-Belhajali
I’m not a project maintainer, but here’s how it works in practice in ComplianceAsCode/SSG:
They don’t create all the rules from scratch for each standard. There is a shared library of technical rules (linux_os/guide/). The standards (CIS, STIG, NIST, etc.) are then mapped to this library via files in the
controls/directory. Some rules also exist independently, based on best practices or cross-cutting requirements.CIS = 10, STIG = 20: one or two rules?
Generally, a single technical rule, with different values depending on the profile.
Example with minimum password length:
Rule: accounts_password_pam_minlen
Variable: var_password_pam_minlen
In controls/cis_ubuntu24…