-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix aide setup instruction + SSH v2 check (#448)
More fixes to the Linux policy --------- Signed-off-by: Tim Smith <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,7 +206,7 @@ queries: | |
yum install aide | ||
``` | ||
### Debian/Ubuntu | ||
### Debian/Ubuntu and derivatives | ||
``` | ||
apt-get install aide | ||
``` | ||
|
@@ -221,9 +221,7 @@ queries: | |
Initialize AIDE: | ||
``` | ||
aide --init | ||
mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz | ||
aideinit | ||
``` | ||
- uid: mondoo-linux-security-filesystem-integrity-is-regularly-checked | ||
title: Ensure filesystem integrity is regularly checked | ||
|
@@ -2182,7 +2180,7 @@ queries: | |
yum install rsyslog | ||
``` | ||
### Debian/Ubuntu | ||
### Debian/Ubuntu and derivatives | ||
``` | ||
apt-get install rsyslog | ||
``` | ||
|
@@ -2235,6 +2233,12 @@ queries: | |
``` | ||
ForwardToSyslog=yes | ||
``` | ||
Restart the service to load the new configuration values: | ||
``` | ||
systemctl restart systemd-journald | ||
``` | ||
- uid: mondoo-linux-security-journald-is-configured-to-compress-large-log-files | ||
title: Ensure journald is configured to compress large log files | ||
impact: 50 | ||
|
@@ -2252,6 +2256,12 @@ queries: | |
``` | ||
Compress=yes | ||
``` | ||
Restart the service to load the new configuration values: | ||
``` | ||
systemctl restart systemd-journald | ||
``` | ||
- uid: mondoo-linux-security-journald-is-configured-to-write-logfiles-to-persistent-disk | ||
title: Ensure journald is configured to write logfiles to persistent disk | ||
impact: 50 | ||
|
@@ -2269,6 +2279,12 @@ queries: | |
``` | ||
Storage=persistent | ||
``` | ||
Restart the service to load the new configuration values: | ||
``` | ||
systemctl restart systemd-journald | ||
``` | ||
- uid: mondoo-linux-security-permissions-on-all-logfiles-are-configured | ||
title: Ensure secure permissions on all log files are set | ||
impact: 80 | ||
|
@@ -2367,7 +2383,7 @@ queries: | |
title: Ensure SSH Protocol is set to 2 | ||
impact: 80 | ||
# openssh-server 7.6 and later remove support for protocol v1 | ||
filters: package('openssh-server').version == /6./ || package('openssh-server').version == /7\.[0|1|2|3|4|5]/ | ||
filters: package('openssh-server').version == /6\./ || package('openssh-server').version == /7\.[0|1|2|3|4|5]/ | ||
mql: | | ||
sshd.config.params["Protocol"] == 2 | ||
docs: | ||
|
@@ -2580,7 +2596,7 @@ queries: | |
KexAlgorithms [email protected],[email protected],diffie-hellman-group18-sha512 | ||
``` | ||
openssh-server version 8.6 to 9: | ||
openssh-server version 8.6 or later: | ||
``` | ||
KexAlgorithms [email protected],[email protected],diffie-hellman-group18-sha512 | ||
|