mirror of
https://github.com/dev-sec/linux-baseline
synced 2024-11-26 04:50:21 +00:00
added control for trusted hosts login and Dot in PATH variable
Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
This commit is contained in:
parent
ad9f9b9a37
commit
3e3635b071
1 changed files with 24 additions and 0 deletions
24
default/os_spec.rb
Normal file
24
default/os_spec.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
# encoding: utf-8
|
||||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
control '01' do
|
||||
impact 1.0
|
||||
title "trusted hosts login"
|
||||
desc "Rhosts/hosts.equiv files are a weak implemenation of authentication. Disabling the .rhosts and hosts.equiv support helps to prevent users from subverting the system's normal access control mechanisms of the system."
|
||||
describe command('find / -name \'.rhosts\'') do
|
||||
its('stdout') { should be_empty }
|
||||
end
|
||||
describe command('find / -name \'hosts.equiv\' ') do
|
||||
its('stdout') { should be_empty }
|
||||
end
|
||||
end
|
||||
|
||||
control '02' do
|
||||
impact 1.0
|
||||
title "Dot in PATH variable"
|
||||
desc "Do not include the current working directory in PATH variable. This makes it easier for an attacker to gain extensive rigths by executing a Trojan program"
|
||||
describe command('echo $PATH') do
|
||||
its('stdout') { should_not include(":.:") }
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue