-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSV-257804.rb
43 lines (36 loc) · 1.58 KB
/
SV-257804.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
control 'SV-257804' do
title 'RHEL 9 must be configured to disable the Asynchronous Transfer Mode kernel module.'
desc 'Disabling Asynchronous Transfer Mode (ATM) protects the system against exploitation of any flaws in its implementation.'
desc 'check', 'Verify that RHEL 9 disables the ability to load the ATM kernel module with the following command:
$ sudo grep -r atm /etc/modprobe.conf /etc/modprobe.d/*
blacklist atm
If the command does not return any output, or the line is commented out, and use of ATM is not documented with the information system security officer (ISSO) as an operational requirement, this is a finding.'
desc 'fix', 'To configure the system to prevent the atm kernel module from being loaded, add the following line to the file /etc/modprobe.d/atm.conf (or create atm.conf if it does not exist):
install atm /bin/false
blacklist atm'
impact 0.5
ref 'DPMS Target Red Hat Enterprise Linux 9'
tag severity: 'medium'
tag gtitle: 'SRG-OS-000095-GPOS-00049'
tag gid: 'V-257804'
tag rid: 'SV-257804r958478_rule'
tag stig_id: 'RHEL-09-213045'
tag fix_id: 'F-61469r925398_fix'
tag cci: ['CCI-000381']
tag nist: ['CM-7 a']
tag 'host'
only_if('This control is Not Applicable to containers', impact: 0.0) {
!virtualization.system.eql?('docker')
}
if input('atm_required')
impact 0.0
describe 'N/A' do
skip "Profile inputs indicate that this parameter's setting is a documented operational requirement"
end
else
describe kernel_module('atm') do
it { should be_disabled }
it { should be_blacklisted }
end
end
end