|
| 1 | +# encoding: utf-8 |
| 2 | +# |
| 3 | +# Copyright 2015, Patrick Münch |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +# author: Christoph Hartmann |
| 18 | +# author: Dominik Richter |
| 19 | +# author: Patrick Münch |
| 20 | + |
| 21 | +control '01' do |
| 22 | + impact 1.0 |
| 23 | + title "Do not run deprecated inetd or xinetd" |
| 24 | + desc "http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf, Chapter 3.2.1" |
| 25 | + describe package('inetd') do |
| 26 | + it { should_not be_installed } |
| 27 | + end |
| 28 | + describe package('xinetd') do |
| 29 | + it { should_not be_installed } |
| 30 | + end |
| 31 | +end |
| 32 | + |
| 33 | +control '02' do |
| 34 | + impact 1.0 |
| 35 | + title "Do not install Telnet server" |
| 36 | + desc "Telnet protocol uses unencrypted communication, that means the passowrd and other sensitive data are unencrypted. http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf, Chapter 3.2.2" |
| 37 | + describe package('telnetd') do |
| 38 | + it { should_not be_installed } |
| 39 | + end |
| 40 | +end |
| 41 | + |
| 42 | +control '03' do |
| 43 | + impact 1.0 |
| 44 | + title "Do not install rsh server" |
| 45 | + desc "The r-commands suffers same problem as telnet. http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf, Chapter 3.2.3" |
| 46 | + describe package('telnetd') do |
| 47 | + it { should_not be_installed } |
| 48 | + end |
| 49 | +end |
| 50 | + |
| 51 | +control '05' do |
| 52 | + impact 1.0 |
| 53 | + title "Do not install ypserv server (NIS)" |
| 54 | + desc "Network Information Service (NIS) has some security design weaknesses like inadequate protection of important authentication information. http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf, Chapter 3.2.4" |
| 55 | + describe package('ypserv') do |
| 56 | + it { should_not be_installed } |
| 57 | + end |
| 58 | +end |
| 59 | + |
| 60 | +control '06' do |
| 61 | + impact 1.0 |
| 62 | + title "Do not install tftp server" |
| 63 | + desc "tftp-server provides little security http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf, Chapter 3.2.5" |
| 64 | + describe package('tftp-server') do |
| 65 | + it { should_not be_installed } |
| 66 | + end |
| 67 | +end |
0 commit comments