Skip to content

Commit

Permalink
Merge pull request #11820 from mpurg/ubuntu_2204_stig_initial
Browse files Browse the repository at this point in the history
Initial implementation of STIG V1R1 profile for Ubuntu 22.04 LTS
  • Loading branch information
dodys authored Apr 16, 2024
2 parents 8996a29 + 07ce16a commit c2eb39c
Show file tree
Hide file tree
Showing 194 changed files with 867 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ severity: unknown

references:
stigid@ubuntu2004: UBTU-20-010438
stigid@ubuntu2204: UBTU-22-214010
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ references:
stigid@sle12: SLES-12-010840
stigid@sle15: SLES-15-040190
stigid@ubuntu2004: UBTU-20-010413
stigid@ubuntu2204: UBTU-22-213015

ocil_clause: |-
{{{ ocil_clause_service_disabled(service="kdump") }}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ references:
nist: CM-7(a),CM-7(b),CM-6(a)
nist-csf: PR.AC-3,PR.IP-1,PR.PT-3,PR.PT-4
stigid@ubuntu2004: UBTU-20-010405
stigid@ubuntu2204: UBTU-22-215035

template:
name: package_removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ references:
stigid@sle12: SLES-12-030300
stigid@sle15: SLES-15-010400
stigid@ubuntu2004: UBTU-20-010435
stigid@ubuntu2204: UBTU-22-252010

ocil_clause: '"maxpoll" has not been set to the value of "{{{ xccdf_value("var_time_service_set_maxpoll") }}}", is commented out, or is missing'

Expand Down
1 change: 1 addition & 0 deletions linux_os/guide/services/ntp/chronyd_sync_clock/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ references:
disa: CCI-002046
srg: SRG-OS-000356-GPOS-00144
stigid@ubuntu2004: UBTU-20-010436
stigid@ubuntu2204: UBTU-22-252015

ocil_clause: ''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ references:
pcidss: Req-10.4
srg: SRG-OS-000355-GPOS-00143
stigid@ubuntu2004: UBTU-20-010435
stigid@ubuntu2204: UBTU-22-215015

ocil_clause: 'the package is not installed'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ references:
stigid@rhel7: RHEL-07-020000
stigid@rhel8: RHEL-08-040010
stigid@ubuntu2004: UBTU-20-010406
stigid@ubuntu2204: UBTU-22-215030

{{{ complete_ocil_entry_package(package="rsh-server") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ references:
stigid@rhel7: RHEL-07-040300
stigid@rhel8: RHEL-08-040159
stigid@ubuntu2004: UBTU-20-010042
stigid@ubuntu2204: UBTU-22-255010

ocil_clause: 'the package is not installed'

Expand Down
1 change: 1 addition & 0 deletions linux_os/guide/services/ssh/service_sshd_enabled/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ references:
stigid@sle12: SLES-12-030100
stigid@sle15: SLES-15-010530
stigid@ubuntu2004: UBTU-20-010042
stigid@ubuntu2204: UBTU-22-255015

ocil: |-
{{{ ocil_service_enabled(service="sshd") }}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ references:
stigid@sle12: SLES-12-030150
stigid@sle15: SLES-15-040440
stigid@ubuntu2004: UBTU-20-010047
stigid@ubuntu2204: UBTU-22-255025

{{{ complete_ocil_entry_sshd_option(default="yes", option="PermitEmptyPasswords", value="no") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ references:
stigid@rhel8: RHEL-08-040340
stigid@sle15: SLES-15-040290
stigid@ubuntu2004: UBTU-20-010048
stigid@ubuntu2204: UBTU-22-255040

{{{ complete_ocil_entry_sshd_option(default="yes", option="X11Forwarding", value="no") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ references:
stigid@sle12: SLES-12-030151
stigid@sle15: SLES-15-040440
stigid@ubuntu2004: UBTU-20-010047
stigid@ubuntu2204: UBTU-22-255025

{{{ complete_ocil_entry_sshd_option(default="yes", option="PermitUserEnvironment", value="no") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ references:
disa: CCI-000877
srg: SRG-OS-000125-GPOS-00065
stigid@ubuntu2004: UBTU-20-010035
stigid@ubuntu2204: UBTU-22-255065

{{{ complete_ocil_entry_sshd_option(default="no", option="UsePAM", value="yes") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ references:
disa: CCI-000765,CCI-000766,CCI-000767,CCI-000768
srg: SRG-OS-000105-GPOS-00052,SRG-OS-000106-GPOS-00053,SRG-OS-000107-GPOS-00054,SRG-OS-000108-GPOS-00055
stigid@ubuntu2004: UBTU-20-010033
stigid@ubuntu2204: UBTU-22-612020

{{{ complete_ocil_entry_sshd_option(default="no", option="PubkeyAuthentication", value="yes") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ references:
ospp: FTA_TAB.1
srg: SRG-OS-000023-GPOS-00006,SRG-OS-000228-GPOS-00088
stigid@ubuntu2004: UBTU-20-010038
stigid@ubuntu2204: UBTU-22-255020

{{{ complete_ocil_entry_sshd_option(default="no", option="Banner", value="/etc/issue.net") }}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ references:
stigid@sle12: SLES-12-030190
stigid@sle15: SLES-15-010280
stigid@ubuntu2004: UBTU-20-010037
stigid@ubuntu2204: UBTU-22-255035

requires:
{{% if product in ['ubuntu2004', 'ubuntu2204'] %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ references:
stigid@sle12: SLES-12-030191
stigid@sle15: SLES-15-010320
stigid@ubuntu2004: UBTU-20-010036
stigid@ubuntu2204: UBTU-22-255030

requires:
- sshd_set_idle_timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ references:
stigid@rhel7: RHEL-07-040110
stigid@sle15: SLES-15-010160
stigid@ubuntu2004: UBTU-20-010044
stigid@ubuntu2204: UBTU-22-255050

ocil_clause: 'FIPS ciphers are not configured or the enabled ciphers are not FIPS-approved'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ references:
stigid@sle12: SLES-12-030270
stigid@sle15: SLES-15-040450
stigid@ubuntu2004: UBTU-20-010045
stigid@ubuntu2204: UBTU-22-255060

ocil_clause: 'KexAlgorithms option is commented out, contains non-approved algorithms, or the FIPS-approved algorithms are not in the exact order'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ references:
stigid@rhel7: RHEL-07-040400
stigid@sle15: SLES-15-010270
stigid@ubuntu2004: UBTU-20-010043
stigid@ubuntu2204: UBTU-22-255055

ocil_clause: 'MACs option is commented out or not using FIPS-approved hash algorithms'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ references:
stigid@rhel8: RHEL-08-040341
stigid@sle12: SLES-12-030261
stigid@ubuntu2004: UBTU-20-010049
stigid@ubuntu2204: UBTU-22-255045

ocil_clause: "the display proxy is listening on wildcard address"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ references:
stigid@sle12: SLES-12-010680
stigid@sle15: SLES-15-010500
stigid@ubuntu2004: UBTU-20-010441
stigid@ubuntu2204: UBTU-22-631015

ocil_clause: 'it does not exist or is not configured properly'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ references:
disa: CCI-000048,CCI-001384,CCI-001385,CCI-001386,CCI-001387,CCI-001388
srg: SRG-OS-000023-GPOS-00006,SRG-OS-000228-GPOS-00088
stigid@ubuntu2004: UBTU-20-010038
stigid@ubuntu2204: UBTU-22-255020

ocil_clause: 'it does not display the required banner'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ references:
stigid@sle12: SLES-12-010040
stigid@sle15: SLES-15-010080
stigid@ubuntu2004: UBTU-20-010002
stigid@ubuntu2204: UBTU-22-271010

ocil_clause: 'it is not'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ references:
stigid@sle12: SLES-12-010050
stigid@sle15: SLES-15-010090
stigid@ubuntu2004: UBTU-20-010003
stigid@ubuntu2204: UBTU-22-271015

ocil_clause: 'it does not'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ references:
stigid@sle12: SLES-12-010390
stigid@sle15: SLES-15-020080
stigid@ubuntu2004: UBTU-20-010453
stigid@ubuntu2204: UBTU-22-412015

platform: package[pam]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ references:
srg: SRG-OS-000077-GPOS-00045
stigid@sle15: SLES-15-020250
stigid@ubuntu2004: UBTU-20-010070
stigid@ubuntu2204: UBTU-22-611050

ocil_clause: 'the value of remember is not equal to or greater than the expected value'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ references:
stigid@sle12: SLES-12-010370
stigid@sle15: SLES-15-040010
stigid@ubuntu2004: UBTU-20-010075
stigid@ubuntu2204: UBTU-22-412010

ocil_clause: 'the value of delay is not set properly or the line is commented or missing'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ references:
stigid@ol8: OL08-00-020020,OL08-00-020021
stigid@rhel8: RHEL-08-020021
stigid@ubuntu2004: UBTU-20-010072
stigid@ubuntu2204: UBTU-22-411045

{{% if product == "rhel8" %}}
platform: os_linux[rhel]>=8.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ references:
stigid@rhel7: RHEL-07-010320
stigid@rhel8: RHEL-08-020011
stigid@ubuntu2004: UBTU-20-010072
stigid@ubuntu2204: UBTU-22-411045

platform: package[pam]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ references:
stigid@rhel7: RHEL-07-010320
stigid@rhel8: RHEL-08-020012,RHEL-08-020013
stigid@ubuntu2004: UBTU-20-010072
stigid@ubuntu2204: UBTU-22-411045

platform: package[pam]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ references:
stigid@ol8: OL08-00-020018,OL08-00-020019
stigid@rhel8: RHEL-08-020018,RHEL-08-020019
stigid@ubuntu2004: UBTU-20-010072
stigid@ubuntu2204: UBTU-22-411045

ocil_clause: 'the system shows messages when three unsuccessful logon attempts occur'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ references:
stigid@rhel7: RHEL-07-010320
stigid@rhel8: RHEL-08-020014,RHEL-08-020015
stigid@ubuntu2004: UBTU-20-010072
stigid@ubuntu2204: UBTU-22-411045

platform: package[pam]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ references:
stigid@sle12: SLES-12-010130
stigid@sle15: SLES-15-020010
stigid@ubuntu2004: UBTU-20-010072
stigid@ubuntu2204: UBTU-22-411045

ocil_clause: 'the account option is missing or commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ references:
disa: CCI-000366
srg: SRG-OS-000480-GPOS-00225
stigid@ubuntu2004: UBTU-20-010057
stigid@ubuntu2204: UBTU-22-215010

ocil_clause: 'the package is not installed'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ references:
stigid@rhel7: RHEL-07-010140
stigid@rhel8: RHEL-08-020130
stigid@ubuntu2004: UBTU-20-010052
stigid@ubuntu2204: UBTU-22-611020

ocil_clause: 'the value of "dcredit" is a positive number or is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ references:
stigid@ol8: OL08-00-020300
stigid@rhel8: RHEL-08-020300
stigid@ubuntu2004: UBTU-20-010056
stigid@ubuntu2204: UBTU-22-611030

ocil_clause: '"dictcheck" does not have a value other than "0", or is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ references:
stigid@rhel7: RHEL-07-010160
stigid@rhel8: RHEL-08-020170
stigid@ubuntu2004: UBTU-20-010053
stigid@ubuntu2204: UBTU-22-611040

ocil_clause: 'the value of "difok" is set to less than "{{{ xccdf_value("var_password_pam_difok") }}}", or is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ references:
disa: CCI-000366
srg: SRG-OS-000480-GPOS-00225
stigid@ubuntu2004: UBTU-20-010057
stigid@ubuntu2204: UBTU-22-611045

ocil_clause: 'enforcing is not uncommented or configured correctly'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ references:
stigid@rhel7: RHEL-07-010130
stigid@rhel8: RHEL-08-020120
stigid@ubuntu2004: UBTU-20-010051
stigid@ubuntu2204: UBTU-22-611015

ocil_clause: 'the value of "lcredit" is a positive number or is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ references:
stigid@rhel7: RHEL-07-010280
stigid@rhel8: RHEL-08-020230
stigid@ubuntu2004: UBTU-20-010054
stigid@ubuntu2204: UBTU-22-611035

ocil_clause: 'the command does not return a "minlen" value of "{{{ xccdf_value("var_password_pam_minlen") }}}" or greater, does not return a line, or the line is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ references:
stigid@rhel7: RHEL-07-010150
stigid@rhel8: RHEL-08-020280
stigid@ubuntu2004: UBTU-20-010055
stigid@ubuntu2204: UBTU-22-611025

ocil_clause: 'value of "ocredit" is a positive number or is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ references:
stigid@rhel7: RHEL-07-010119
stigid@rhel8: RHEL-08-020104
stigid@ubuntu2004: UBTU-20-010057
stigid@ubuntu2204: UBTU-22-611045

ocil_clause: 'the value of "retry" is set to "0" or greater than "{{{ xccdf_value("var_password_pam_retry") }}}", or is missing'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ references:
stigid@rhel7: RHEL-07-010120
stigid@rhel8: RHEL-08-020110
stigid@ubuntu2004: UBTU-20-010050
stigid@ubuntu2204: UBTU-22-611010

ocil_clause: 'the value of "ucredit" is a positive number or is commented out'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ references:
stigid@sle12: SLES-12-010210
stigid@sle15: SLES-15-010260
stigid@ubuntu2004: UBTU-20-010404
stigid@ubuntu2204: UBTU-22-611070

ocil_clause: 'ENCRYPT_METHOD is not set to {{{ xccdf_value("var_password_hashing_algorithm") }}}'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ references:
stigid@rhel8: RHEL-08-040172
stigid@sle15: SLES-15-040062
stigid@ubuntu2004: UBTU-20-010460
stigid@ubuntu2204: UBTU-22-211015

ocil_clause: 'the system is configured to reboot when Ctrl-Alt-Del is pressed more than 7 times in 2 seconds.'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ references:
stigid@sle12: SLES-12-010610
stigid@sle15: SLES-15-040060
stigid@ubuntu2004: UBTU-20-010460
stigid@ubuntu2204: UBTU-22-211015

ocil_clause: 'the system is configured to reboot when Ctrl-Alt-Del is pressed'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ references:
stigid@sle12: SLES-12-010070
stigid@sle15: SLES-15-010110
stigid@ubuntu2004: UBTU-20-010005
stigid@ubuntu2204: UBTU-22-412025

ocil_clause: 'the package is not installed'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ references:
stigid@sle12: SLES-12-030500
stigid@sle15: SLES-15-010460
stigid@ubuntu2004: UBTU-20-010063
stigid@ubuntu2204: UBTU-22-612010

ocil_clause: 'smartcard software is not installed'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ references:
stigid@ol8: OL08-00-010410
stigid@rhel8: RHEL-08-010410
stigid@ubuntu2004: UBTU-20-010064
stigid@ubuntu2204: UBTU-22-612015

ocil_clause: 'the package is not installed'

Expand Down
Loading

0 comments on commit c2eb39c

Please sign in to comment.