-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map more rules into Anssi policy #4439
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9743f7f
Map ANSSI R29 user session timeout
yuumasato 7a82d94
Map R35 umask value
yuumasato b93ebdc
Map R08 Regular updates
yuumasato 1c15559
Map R17 Boot loader password
yuumasato ead7515
Mat R19 Accountabilit of administration
yuumasato 233eaf4
Map R12 Partitioning
yuumasato 272c20f
Mat R25 Yama module
yuumasato a58a5df
Map R23
yuumasato 0dd31fa
Map R32 Protection of stored passwords
yuumasato 6a5132d
Comment R38 in profile
yuumasato 2ed50e8
Map R13 Restriction on System.map
yuumasato 61ab20a
Map R11 IOMMU Configuration Guidelines
yuumasato 9230614
Map R36 Rights to access sensitive content files
yuumasato 5b33382
Map R67 Setting SELinux Booleans
yuumasato ac40763
Comment R59 in profile
yuumasato cea8c61
Remove duplicated rules from ANSSI intermediary
yuumasato File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,6 @@ severity: unknown | |
|
||
references: | ||
cis: 1.1.14 | ||
anssi: NT28(R12) | ||
|
||
platform: machine |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,6 @@ severity: unknown | |
|
||
references: | ||
cis: 1.1.8 | ||
anssi: NT28(R12) | ||
|
||
platform: machine |
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 |
---|---|---|
|
@@ -18,5 +18,6 @@ severity: unknown | |
|
||
references: | ||
cis: 1.1.10 | ||
anssi: NT28(R12) | ||
|
||
platform: machine |
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 |
---|---|---|
|
@@ -18,5 +18,6 @@ severity: unknown | |
|
||
references: | ||
cis: 1.1.9 | ||
anssi: NT28(R12) | ||
|
||
platform: machine |
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
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 |
---|---|---|
|
@@ -9,18 +9,39 @@ description: 'Draft profile for ANSSI compliance at the intermediary level. ANSS | |
extends: anssi_nt28_minimal | ||
|
||
selections: | ||
|
||
# ============================================== | ||
# R12 Partitioning | ||
- partition_for_tmp | ||
- mount_option_tmp_nosuid | ||
- mount_option_tmp_nodev | ||
- mount_option_tmp_noexec | ||
- partition_for_var | ||
- partition_for_var_tmp | ||
- mount_option_var_tmp_nosuid | ||
- mount_option_var_tmp_nodev | ||
- mount_option_var_tmp_noexec | ||
- partition_for_var_log | ||
- partition_for_var_log_audit | ||
- partition_for_home | ||
- mount_option_home_nosuid | ||
- mount_option_home_nodev | ||
|
||
- sshd_idle_timeout_value=5_minutes | ||
- rsyslog_files_ownership | ||
- rsyslog_files_groupownership | ||
- rsyslog_files_permissions | ||
- ensure_logrotate_activated | ||
- sysctl_fs_suid_dumpable | ||
- sysctl_kernel_randomize_va_space | ||
|
||
# ============================================== | ||
# R19 - Accountability of administration | ||
# Each administrator must have a dedicated account (local or remote), and not use the root | ||
# account as the access account for system administration. | ||
# | ||
# Change of privilege operations must be based on executables to monitor the activities | ||
# performed (for example sudo). | ||
- no_direct_root_logins | ||
- sshd_disable_root_login | ||
|
||
# ============================================== | ||
# R22 - Setting up network sysctl | ||
|
@@ -124,3 +145,49 @@ selections: | |
# Maximum number of autoconfigured addresses per interface | ||
# net.ipv6.conf.all.max_addresses = 1 | ||
# net.ipv6.conf.default.max_addresses = 1 | ||
|
||
# ============================================== | ||
# R23 - Setting system sysctl | ||
# Here is a list of recommended system sysctl (in the format /etc/sysctl.conf): | ||
# Disabling SysReq | ||
# kernel. sysrq = 0 | ||
|
||
# No core dump of executable setuid | ||
- sysctl_fs_suid_dumpable | ||
|
||
# Prohibit links to find links to files | ||
# the current user is not the owner | ||
# Can prevent some programs from working properly | ||
- sysctl_fs_protected_symlinks | ||
- sysctl_fs_protected_hardlinks | ||
|
||
# Activation of the ASLR | ||
- sysctl_kernel_randomize_va_space | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. second occurrence |
||
|
||
# Prohibit mapping of memory in low addresses (0) | ||
# vm.mmap_min_addr = 65536 | ||
|
||
# Larger choice space for PID values | ||
# kernel.pid_max = 65536 | ||
|
||
# Obfuscation of addresses memory kernel | ||
- sysctl_kernel_kptr_restrict | ||
|
||
# Access restriction to the dmesg buffer | ||
- sysctl_kernel_dmesg_restrict | ||
|
||
# Restricts the use of the perf system | ||
# kernel.perf_event_paranoid = 2 | ||
# kernel.perf_event_max_sample_rate = 1 | ||
# kernel.perf_cpu_time_max_percent = 1 | ||
|
||
# ============================================== | ||
# R36 - Rights to access sensitive content files | ||
# Sensitive content files should only be readable by users with strict need to know. | ||
- file_owner_etc_shadow | ||
- file_permissions_etc_shadow | ||
- file_owner_etc_gshadow | ||
- file_permissions_etc_gshadow | ||
- file_permissions_etc_passwd | ||
- file_permissions_etc_group | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
second occurrence