From 15f31c8d487f24d0d6971801531ebfc9e06161ec Mon Sep 17 00:00:00 2001 From: Sven Vermeulen Date: Sun, 30 Mar 2014 22:06:31 +0200 Subject: Add test for world writable directories --- xml/SCAP/gentoo-oval.xml | 101 ++++++++++++++++++++++++++++++++++++++++++++++ xml/SCAP/gentoo-xccdf.xml | 29 ++++++++++++- 2 files changed, 128 insertions(+), 2 deletions(-) diff --git a/xml/SCAP/gentoo-oval.xml b/xml/SCAP/gentoo-oval.xml index f873701..427e5c1 100644 --- a/xml/SCAP/gentoo-oval.xml +++ b/xml/SCAP/gentoo-oval.xml @@ -581,6 +581,37 @@ + + + /etc/lilo.conf has a password set + + Gentoo Linux + + + If /etc/lilo.conf exists, then it must have a password set. + + + + + + + + + + + All world writable directories have the sticky bit set + + Gentoo Linux + + + All world writable directories must have the sticky bit set. + + + + + + + @@ -879,6 +910,7 @@ version="1" check="at least one" check_existence="at_least_one_exists"> + @@ -889,6 +921,31 @@ + + + + + + + + + + + + + + + + + + + @@ -1031,6 +1088,35 @@ /boot/grub + + /etc/lilo.conf + + + + /etc/lilo.conf + ^([^#\n]*)(?#.*)?$ + 1 + + + + + + oval:org.gentoo.dev.swift:obj:28 + + oval:org.gentoo.dev.swift:ste:18 + + + + + + / + + + @@ -1110,6 +1196,21 @@ [\s]*password --md5 [\S]+ + + [\s]*password=[\S]+ + + + + 1 + + + + 0 + + diff --git a/xml/SCAP/gentoo-xccdf.xml b/xml/SCAP/gentoo-xccdf.xml index 732bde3..aa85c1e 100644 --- a/xml/SCAP/gentoo-xccdf.xml +++ b/xml/SCAP/gentoo-xccdf.xml @@ -20,6 +20,8 @@ large impact on the performance of a server. Tests include scripted validationn. + + Default server setup settings (non-scripted) @@ -103,8 +107,10 @@ - + Default server setup settings @@ -1516,7 +1522,7 @@ grub> quit - Grub legacy has a password entry with md5 hash + Grub legacy (if it exists) has a password entry with md5 hash Edit /boot/grub/grub.conf and set a password entry with md5 hash @@ -1557,6 +1563,15 @@ image=/boot/bzImage Rerun lilo after updating the configuration file. + + LILO (if it exists) has a password entry + + Edit /etc/lilo.conf and set a password entry + + + + + @@ -1782,6 +1797,16 @@ session required pam_unix.so world writable privilege is not accessible anyhow). + + All world writable directories have the sticky bit set + + Make sure all world-writable directories have the sticky bit set + + + + + + Limit setuid and setgid file and directory usage -- cgit v1.2.3