[PATCH 04/10] Added disable_host_auth to shared/
Shawn Wells
shawn at redhat.com
Mon Jan 27 16:00:57 UTC 2014
-------------- next part --------------
>From 889e90895714dc7831a1ac0a4fbe1357099f63e3 Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Thu, 23 Jan 2014 01:05:36 -0500
Subject: [PATCH 04/10] Added disable_host_auth to shared/
- Moved to shared/
- Tested on RHEL7, updated CPE
- Created symlinks
- Added to RHEL7 rht-ccp profile
---
RHEL/6/input/checks/disable_host_auth.xml | 30 +-----------------------------
RHEL/7/input/checks/disable_host_auth.xml | 1 +
RHEL/7/input/profiles/rht-ccp.xml | 2 +-
scap-security-guide.spec | 2 ++
shared/oval/disable_host_auth.xml | 30 ++++++++++++++++++++++++++++++
5 files changed, 35 insertions(+), 30 deletions(-)
mode change 100644 => 120000 RHEL/6/input/checks/disable_host_auth.xml
create mode 120000 RHEL/7/input/checks/disable_host_auth.xml
create mode 100644 shared/oval/disable_host_auth.xml
diff --git a/RHEL/6/input/checks/disable_host_auth.xml b/RHEL/6/input/checks/disable_host_auth.xml
deleted file mode 100644
index 37b01c4..0000000
--- a/RHEL/6/input/checks/disable_host_auth.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<def-group>
- <definition class="compliance" id="disable_host_auth" version="2">
- <metadata>
- <title>Disable Host-Based Authentication</title>
- <affected family="unix">
- <platform>Red Hat Enterprise Linux 6</platform>
- </affected>
- <description>SSH host-based authentication should be disabled.</description>
- <reference source="MED" ref_id="20130813" ref_url="test_attestation" />
- </metadata>
- <criteria comment="SSH is not being used or conditions are met"
- operator="OR">
- <extend_definition comment="sshd service is disabled"
- definition_ref="service_sshd_disabled" />
- <criterion comment="Check HostbasedAuthentication in /etc/ssh/sshd_config"
- test_ref="test_sshd_hostbasedauthentication" />
- </criteria>
- </definition>
- <ind:textfilecontent54_test check="all" check_existence="none_exist"
- comment="sshd HostbasedAuthentication" id="test_sshd_hostbasedauthentication"
- version="1">
- <ind:object object_ref="object_sshd_hostbasedauthentication" />
- </ind:textfilecontent54_test>
- <ind:textfilecontent54_object id="object_sshd_hostbasedauthentication" version="1">
- <ind:filepath>/etc/ssh/sshd_config</ind:filepath>
- <ind:pattern operation="pattern match">^[\s]*(?i)HostbasedAuthentication[\s]+yes[\s]*$</ind:pattern>
- <ind:instance datatype="int">1</ind:instance>
- </ind:textfilecontent54_object>
-</def-group>
diff --git a/RHEL/6/input/checks/disable_host_auth.xml b/RHEL/6/input/checks/disable_host_auth.xml
new file mode 120000
index 0000000..842961c
--- /dev/null
+++ b/RHEL/6/input/checks/disable_host_auth.xml
@@ -0,0 +1 @@
+../../../../shared/oval/disable_host_auth.xml
\ No newline at end of file
diff --git a/RHEL/7/input/checks/disable_host_auth.xml b/RHEL/7/input/checks/disable_host_auth.xml
new file mode 120000
index 0000000..842961c
--- /dev/null
+++ b/RHEL/7/input/checks/disable_host_auth.xml
@@ -0,0 +1 @@
+../../../../shared/oval/disable_host_auth.xml
\ No newline at end of file
diff --git a/RHEL/7/input/profiles/rht-ccp.xml b/RHEL/7/input/profiles/rht-ccp.xml
index eaf801a..1950ac5 100644
--- a/RHEL/7/input/profiles/rht-ccp.xml
+++ b/RHEL/7/input/profiles/rht-ccp.xml
@@ -128,8 +128,8 @@ SSH / REMOTE ACCESS CHECKS
<select idref="sshd_set_idle_timeout" selected="true"/>
<select idref="sshd_set_keepalive" selected="true"/>
<select idref="sshd_disable_rhosts" selected="true"/>
-<!--
<select idref="disable_host_auth" selected="true"/>
+<!--
<select idref="sshd_disable_root_login" selected="true"/>
<select idref="sshd_disable_empty_passwords" selected="true"/>
<select idref="sshd_enable_warning_banner" selected="true"/>
diff --git a/scap-security-guide.spec b/scap-security-guide.spec
index c93b8be..5ed74e3 100644
--- a/scap-security-guide.spec
+++ b/scap-security-guide.spec
@@ -56,6 +56,8 @@ cp -a RHEL/6/input/auxiliary/scap-security-guide.8 %{buildroot}%{_mandir}/en/man
* Thu Jan 23 2014 Shawn Wells <shawn at redhat.com> 0.1-16.rc3
+ Added to RHEL7 content pool
- OVAL for sshd_set_idle_timeout
+- OVAL for sshd_set_keepalive
+- OVAL for sshd_disable_rhosts
* Tue Dec 24 2013 Shawn Wells <shawn at redhat.com> 0.1-16.rc2
+ RHEL6 stig-rhel6-server XCCDF profile renamed to stig-rhel6-server-upstream
diff --git a/shared/oval/disable_host_auth.xml b/shared/oval/disable_host_auth.xml
new file mode 100644
index 0000000..faf372d
--- /dev/null
+++ b/shared/oval/disable_host_auth.xml
@@ -0,0 +1,30 @@
+<def-group>
+ <definition class="compliance" id="disable_host_auth" version="2">
+ <metadata>
+ <title>Disable Host-Based Authentication</title>
+ <affected family="unix">
+ <platform>Red Hat Enterprise Linux 6</platform>
+ <platform>Red Hat Enterprise Linux 7</platform>
+ </affected>
+ <description>SSH host-based authentication should be disabled.</description>
+ <reference source="MED" ref_id="20130813" ref_url="test_attestation" />
+ </metadata>
+ <criteria comment="SSH is not being used or conditions are met"
+ operator="OR">
+ <extend_definition comment="sshd service is disabled"
+ definition_ref="service_sshd_disabled" />
+ <criterion comment="Check HostbasedAuthentication in /etc/ssh/sshd_config"
+ test_ref="test_sshd_hostbasedauthentication" />
+ </criteria>
+ </definition>
+ <ind:textfilecontent54_test check="all" check_existence="none_exist"
+ comment="sshd HostbasedAuthentication" id="test_sshd_hostbasedauthentication"
+ version="1">
+ <ind:object object_ref="object_sshd_hostbasedauthentication" />
+ </ind:textfilecontent54_test>
+ <ind:textfilecontent54_object id="object_sshd_hostbasedauthentication" version="1">
+ <ind:filepath>/etc/ssh/sshd_config</ind:filepath>
+ <ind:pattern operation="pattern match">^[\s]*(?i)HostbasedAuthentication[\s]+yes[\s]*$</ind:pattern>
+ <ind:instance datatype="int">1</ind:instance>
+ </ind:textfilecontent54_object>
+</def-group>
--
1.8.3.1
More information about the scap-security-guide
mailing list