Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2c7b9f0
Update PCI-DSS profile for RHEL9
marcusburghardt Nov 8, 2023
f1f101f
Update PCI-DSS profile for RHEL8
marcusburghardt Nov 10, 2023
43eb517
Update PCI-DSS profile for RHEL7
marcusburghardt Nov 10, 2023
172c52c
Define prodtype for set_ipv6_loopback_traffic
marcusburghardt Nov 13, 2023
ba8a0d2
Define prodtype for package_audit-audispd-plugins_installed
marcusburghardt Nov 13, 2023
5a4f463
Define prodtype for set_loopback_traffic
marcusburghardt Nov 13, 2023
49ad9ee
Define prodtype for NTP service rules
marcusburghardt Nov 13, 2023
0b5e226
Define prodtype for ntpd_specify_multiple_servers
marcusburghardt Nov 13, 2023
8d0e22b
Define prodtype for ntpd_specify_remote_server
marcusburghardt Nov 13, 2023
5bfd8b0
Include rhel cces in ntpd_specify_multiple_servers
marcusburghardt Nov 13, 2023
1978afc
Include rhel8 in prodtype for service_ntpd_enabled
marcusburghardt Nov 13, 2023
37bcd4e
Include rhel8 in prodtype for ntpd_specify_remote_server
marcusburghardt Nov 13, 2023
0b41091
Update pcidss reference for rhel8 profile stability test
marcusburghardt Nov 13, 2023
c3e8a54
Include rhcos4 in prodtype for ntpd_specify_remote_server
marcusburghardt Nov 13, 2023
0fc8df8
Include ol8 in prodtype for service_ntpd_enabled
marcusburghardt Nov 13, 2023
00503fc
Include ol8 in prodtype for ntpd_specify_remote_server
marcusburghardt Nov 13, 2023
fcaec63
Include rhv4 in prodtype for ntpd_specify_remote_server
marcusburghardt Nov 14, 2023
b95070c
Complement pcidss_4 requirement 10.3.3
marcusburghardt Nov 17, 2023
2f2e088
Exclude rule in pci-dss profile for rhel9
marcusburghardt Nov 17, 2023
2d4af5f
Remove old ubuntu versions from package_audit-audispd-plugins_installed
marcusburghardt Nov 17, 2023
582f247
Exclude rpm_verify_permissions in pcidss profiles for RHEL
marcusburghardt Nov 17, 2023
962956c
Update pcidss reference for rhel8 profile stability test
marcusburghardt Nov 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions controls/pcidss_4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2834,6 +2834,7 @@ controls:
requirement demands manual assessment.
rules:
- auditd_audispd_syslog_plugin_activated
- package_audispd-plugins_installed
- package_audit-audispd-plugins_installed
related_rules:
- rsyslog_remote_loghost
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: fedora,ol7,ol8,rhcos4,rhel7,rhel8,rhv4,sle12,sle15

title: 'Specify Additional Remote NTP Servers'

description: |-
Expand All @@ -18,6 +20,8 @@ rationale: |-
severity: unknown

identifiers:
cce@rhel7: CCE-86487-6
cce@rhel8: CCE-86488-4
cce@sle12: CCE-91660-1
cce@sle15: CCE-91297-2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: alinux2,fedora,ol7,ol8,rhcos4,rhel7,rhel8,rhv4,sle12,sle15

title: 'Specify a Remote NTP Server'

description: |-
Expand All @@ -19,6 +21,7 @@ severity: medium

identifiers:
cce@rhel7: CCE-83436-6
cce@rhel8: CCE-86508-9
cce@sle12: CCE-91661-9
cce@sle15: CCE-91298-0

Expand Down
2 changes: 2 additions & 0 deletions linux_os/guide/services/ntp/service_ntp_enabled/rule.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: debian10,debian11,debian12,sle12,sle15,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204

title: 'Enable the NTP Daemon'

description: |-
Expand Down
3 changes: 3 additions & 0 deletions linux_os/guide/services/ntp/service_ntpd_enabled/rule.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: alinux2,fedora,ol7,ol8,ol9,rhcos4,rhel7,rhel8,rhel9,rhv4,sle12,sle15

title: 'Enable the NTP Daemon'

description: |-
Expand All @@ -21,6 +23,7 @@ severity: medium

identifiers:
cce@rhel7: CCE-84253-4
cce@rhel8: CCE-86486-8
cce@rhel9: CCE-87863-7
cce@sle12: CCE-91658-5
cce@sle15: CCE-91295-6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ identifiers:

references:
ospp: FMT_SMF_EXT.1
pcidss4: '10.3.3'
srg: SRG-OS-000342-GPOS-00133
stigid@rhel9: RHEL-09-653130

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: fedora,ol9,rhel9,sle12,sle15,ubuntu2004

title: 'Ensure the default plugins for the audit dispatcher are Installed'

description: 'The audit-audispd-plugins package should be installed.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: sle12,sle15,ubuntu2004,ubuntu2204

title: 'Set configuration for IPv6 loopback traffic'

description: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
documentation_complete: true

prodtype: alinux2,sle12,sle15,ubuntu2004,ubuntu2204

title: 'Set configuration for loopback traffic'

description: |-
Expand Down
131 changes: 21 additions & 110 deletions products/rhel7/profiles/pci-dss.profile
Original file line number Diff line number Diff line change
@@ -1,116 +1,27 @@
documentation_complete: true

title: 'PCI-DSS v3.2.1 Control Baseline for Red Hat Enterprise Linux 7'
metadata:
version: '4.0'
SMEs:
- marcusburghardt
- mab879
- vojtapolasek

reference: https://docs-prv.pcisecuritystandards.org/PCI%20DSS/Standard/PCI-DSS-v4_0.pdf

title: 'PCI-DSS v4.0 Control Baseline for Red Hat Enterprise Linux 7'

description: |-
Ensures PCI-DSS v3.2.1 security configuration settings are applied.
Payment Card Industry - Data Security Standard (PCI-DSS) is a set of
security standards designed to ensure the secure handling of payment card
data, with the goal of preventing data breaches and protecting sensitive
financial information.

This profile ensures Red Hat Enterprise Linux 7 is configured in alignment
with PCI-DSS v4.0 requirements.

selections:
- var_password_pam_unix_remember=4
- var_account_disable_post_pw_expiration=90
- var_accounts_passwords_pam_faillock_deny=6
- var_accounts_passwords_pam_faillock_unlock_time=1800
- sshd_idle_timeout_value=15_minutes
- var_password_pam_minlen=7
- var_password_pam_minclass=2
- var_accounts_maximum_age_login_defs=90
- var_auditd_num_logs=5
- service_auditd_enabled
- grub2_audit_argument
- auditd_data_retention_num_logs
- auditd_data_retention_max_log_file
- auditd_data_retention_max_log_file_action
- auditd_data_retention_space_left_action
- auditd_data_retention_admin_space_left_action
- auditd_data_retention_action_mail_acct
- auditd_audispd_syslog_plugin_activated
- audit_rules_time_adjtimex
- audit_rules_time_settimeofday
- audit_rules_time_stime
- audit_rules_time_clock_settime
- audit_rules_time_watch_localtime
- audit_rules_usergroup_modification
- audit_rules_networkconfig_modification
- file_permissions_var_log_audit
- file_ownership_var_log_audit
- audit_rules_mac_modification
- audit_rules_dac_modification_chmod
- audit_rules_dac_modification_chown
- audit_rules_dac_modification_fchmod
- audit_rules_dac_modification_fchmodat
- audit_rules_dac_modification_fchown
- audit_rules_dac_modification_fchownat
- audit_rules_dac_modification_fremovexattr
- audit_rules_dac_modification_fsetxattr
- audit_rules_dac_modification_lchown
- audit_rules_dac_modification_lremovexattr
- audit_rules_dac_modification_lsetxattr
- audit_rules_dac_modification_removexattr
- audit_rules_dac_modification_setxattr
- audit_rules_login_events
- var_accounts_passwords_pam_faillock_dir=run
- audit_rules_session_events
- audit_rules_unsuccessful_file_modification
- audit_rules_privileged_commands
- audit_rules_media_export
- audit_rules_file_deletion_events
- audit_rules_sysadmin_actions
- audit_rules_kernel_module_loading
- audit_rules_immutable
- var_multiple_time_servers=rhel
- service_chronyd_or_ntpd_enabled
- chronyd_or_ntpd_specify_remote_server
- chronyd_or_ntpd_specify_multiple_servers
- rpm_verify_permissions
- rpm_verify_hashes
- install_hids
- rsyslog_files_permissions
- rsyslog_files_ownership
- rsyslog_files_groupownership
- ensure_logrotate_activated
- package_aide_installed
- disable_prelink
- aide_build_database
- aide_periodic_cron_checking
- account_unique_name
- gid_passwd_group_same
- accounts_password_all_shadowed
- no_empty_passwords
- display_login_attempts
- account_disable_post_pw_expiration
- accounts_passwords_pam_faillock_deny
- accounts_passwords_pam_faillock_unlock_time
- dconf_db_up_to_date
- dconf_gnome_screensaver_idle_delay
- dconf_gnome_screensaver_idle_activation_enabled
- dconf_gnome_screensaver_lock_enabled
- dconf_gnome_screensaver_mode_blank
- sshd_set_idle_timeout
- var_sshd_set_keepalive=0
- sshd_set_keepalive_0
- accounts_password_pam_minlen
- accounts_password_pam_dcredit
- accounts_password_pam_ucredit
- accounts_password_pam_lcredit
- accounts_password_pam_unix_remember
- accounts_maximum_age_login_defs
- ensure_redhat_gpgkey_installed
- ensure_gpgcheck_globally_activated
- ensure_gpgcheck_never_disabled
- security_patches_up_to_date
- smartcard_auth
- set_password_hashing_algorithm_systemauth
- set_password_hashing_algorithm_logindefs
- set_password_hashing_algorithm_libuserconf
- file_owner_etc_shadow
- file_groupowner_etc_shadow
- file_permissions_etc_shadow
- file_owner_etc_group
- file_groupowner_etc_group
- file_permissions_etc_group
- file_owner_etc_passwd
- file_groupowner_etc_passwd
- file_permissions_etc_passwd
- file_owner_grub2_cfg
- file_groupowner_grub2_cfg
- package_libreswan_installed
- pcidss_4:all
# More tests are needed to identify which rule is conflicting with rpm_verify_permissions.
# https://github.com/ComplianceAsCode/content/issues/11285
- '!rpm_verify_permissions'
Loading