forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ComplianceAsCode#11588 from jan-cerny/ANSSI_R50
Update ANSSI R50
- Loading branch information
Showing
60 changed files
with
1,348 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
linux_os/guide/services/ntp/file_groupowner_etc_chrony_keys/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
documentation_complete: true | ||
|
||
title: Verify Group Who Owns /etc/chrony.keys File | ||
|
||
description: '{{{ describe_file_group_owner(file="/etc/chrony.keys", group="root") }}}' | ||
|
||
rationale: |- | ||
The ownership of the /etc/chrony.keys file by the root group is important | ||
because this file hosts chrony cryptographic keys. Protection | ||
of this file is critical for system security. Assigning the ownership to | ||
root ensures exclusive control of the chrony cryptography keys. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel7: CCE-86371-2 | ||
cce@rhel8: CCE-86373-8 | ||
cce@rhel9: CCE-86374-6 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/chrony.keys", group="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_group_owner(file="/etc/chrony.keys", group="root") }}} | ||
fixtext: '{{{ fixtext_file_group_owner(file="/etc/chrony.keys", group="root") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_file_group_owner(file="/etc/chrony.keys", group="root") }}}' | ||
|
||
template: | ||
name: file_groupowner | ||
vars: | ||
filepath: /etc/chrony.keys | ||
gid_or_name: root |
33 changes: 33 additions & 0 deletions
33
linux_os/guide/services/ntp/file_owner_etc_chrony_keys/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
documentation_complete: true | ||
|
||
title: Verify User Who Owns /etc/chrony.keys File | ||
|
||
description: '{{{ describe_file_owner(file="/etc/chrony.keys", owner="root") }}}' | ||
|
||
rationale: |- | ||
The ownership of the /etc/chrony.keys file by the root user is important | ||
because this file hosts chrony cryptographic keys. Protection | ||
of this file is critical for system security. Assigning the ownership to | ||
root ensures exclusive control of the chrony cryptographic keys. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel7: CCE-86375-3 | ||
cce@rhel8: CCE-86379-5 | ||
cce@rhel9: CCE-86380-3 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/chrony.keys", owner="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_owner(file="/etc/chrony.keys", owner="root") }}} | ||
fixtext: '{{{ fixtext_file_owner(file="/etc/chrony.keys", owner="root") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_file_owner(file="/etc/chrony.keys", owner="root") }}}' | ||
|
||
template: | ||
name: file_owner | ||
vars: | ||
filepath: /etc/chrony.keys | ||
fileuid: '0' |
33 changes: 33 additions & 0 deletions
33
linux_os/guide/services/ntp/file_permissions_etc_chrony_keys/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
documentation_complete: true | ||
|
||
title: Verify Permissions On /etc/chrony.keys File | ||
|
||
description: '{{{ describe_file_permissions(file="/etc/chrony.keys", perms="0600") }}}' | ||
|
||
rationale: |- | ||
Setting correct permissions on the /etc/chrony.keys file is important | ||
because this file hosts chrony cryptographic keys. Protection | ||
of this file is critical for system security. Assigning the correct mode | ||
ensures exclusive control of the chrony cryptographic keys. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel7: CCE-86381-1 | ||
cce@rhel8: CCE-86383-7 | ||
cce@rhel9: CCE-86384-5 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/chrony.keys", perms="0600") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_permissions(file="/etc/chrony.keys", perms="0600") }}} | ||
fixtext: '{{{ fixtext_file_permissions(file="/etc/chrony.keys", mode="0600") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_file_permission(file="/etc/chrony.keys", mode="0600") }}}' | ||
|
||
template: | ||
name: file_permissions | ||
vars: | ||
filepath: /etc/chrony.keys | ||
filemode: '0600' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
linux_os/guide/system/network/network-ipsec/directory_groupowner_etc_ipsecd/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
documentation_complete: true | ||
|
||
title: Verify Group Who Owns /etc/ipsec.d Directory | ||
|
||
description: '{{{ describe_file_group_owner(file="/etc/ipsec.d", group="root") }}}' | ||
|
||
rationale: |- | ||
The ownership of the /etc/ipsec.d directory by the root group is important | ||
because this directory hosts Libreswan configuration. Protection of this | ||
file is critical for system security. Assigning the ownership to root | ||
ensures exclusive control of the Libreswan configuration. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel7: CCE-86437-1 | ||
cce@rhel8: CCE-86438-9 | ||
cce@rhel9: CCE-86439-7 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/ipsec.d", group="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_group_owner(file="/etc/ipsec.d", group="root") }}} | ||
platform: package[libreswan] | ||
|
||
fixtext: '{{{ fixtext_file_group_owner(file="/etc/ipsec.d", group="root") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_file_group_owner(file="/etc/ipsec.d", group="root") }}}' | ||
|
||
template: | ||
name: file_groupowner | ||
vars: | ||
filepath: /etc/ipsec.d/ | ||
gid_or_name: root |
Oops, something went wrong.