-
Notifications
You must be signed in to change notification settings - Fork 19
/
section_02.yml
225 lines (173 loc) · 9.54 KB
/
section_02.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
---
# Default Variables for CIS Ubuntu Linux 20.04 LTS Benchmark v1.1.0 Section 2
ubuntu_2004_cis_section2_rule_2_1_1_1: true
ubuntu_2004_cis_section2_rule_2_1_1_2: true
ubuntu_2004_cis_section2_rule_2_1_1_3: true
ubuntu_2004_cis_section2_rule_2_1_1_4: true
ubuntu_2004_cis_time_synchronization_package_state: present
ubuntu_2004_cis_section2_rule_2_1_1_1_params_timesyncd_service_name: systemd-timesyncd
ubuntu_2004_cis_section2_rule_2_1_1_1_params_timesyncd_service_enabled_state: yes
ubuntu_2004_cis_section2_rule_2_1_1_1_params_timesyncd_service_masked_true: yes
ubuntu_2004_cis_section2_rule_2_1_1_1_params_chrony_package: chrony
ubuntu_2004_cis_section2_rule_2_1_1_1_params_chrony_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_1_1_params_chrony_package_purge: yes
ubuntu_2004_cis_section2_rule_2_1_1_1_params_ntp_package: ntp
ubuntu_2004_cis_section2_rule_2_1_1_1_params_ntp_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_1_1_params_ntp_package_purge: yes
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_name: systemd-timesyncd
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_enabled_state: yes
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_masked_true: no
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_state: restarted
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_path: /etc/systemd/timesyncd.conf
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_section: Time
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_ntp_option: NTP
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_ntp_value: 0.debian.pool.ntp.org 1.debian.pool.ntp.org
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_fallbackntp_option: FallbackNTP
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_fallbackntp_value: 2.debian.pool.ntp.org 3.debian.pool.ntp.org
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_rootdistancemaxsec_option: RootDistanceMaxSec
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_rootdistancemaxsec_value: '1'
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_owner: root
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_group: root
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_mode: 0644
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_state: present
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_service_conffile_no_extra_spaces: yes
ubuntu_2004_cis_section2_rule_2_1_1_2_params_timesyncd_setntptrue_command: timedatectl set-ntp true
ubuntu_2004_cis_section2_rule_2_1_1_3_params_chrony_template_src: section_02/2.1.1.3_chrony.conf.j2
ubuntu_2004_cis_section2_rule_2_1_1_3_params_chrony_template_dest: /etc/chrony/chrony.conf
ubuntu_2004_cis_section2_rule_2_1_1_3_params_chrony_template_owner: root
ubuntu_2004_cis_section2_rule_2_1_1_3_params_chrony_template_group: root
ubuntu_2004_cis_section2_rule_2_1_1_3_params_chrony_template_mode: '0644'
ubuntu_2004_cis_section2_rule_2_1_1_4_params_ntp_template_src: section_02/2.1.1.4_ntp.conf.j2
ubuntu_2004_cis_section2_rule_2_1_1_4_params_ntp_template_dest: /etc/ntp.conf
ubuntu_2004_cis_section2_rule_2_1_1_4_params_ntp_template_owner: root
ubuntu_2004_cis_section2_rule_2_1_1_4_params_ntp_template_group: root
ubuntu_2004_cis_section2_rule_2_1_1_4_params_ntp_template_mode: '0644'
# Variables for 2.1.2
ubuntu_2004_cis_section2_rule_2_1_2: true
ubuntu_2004_cis_section2_rule_2_1_2_params_package_name: xserver-xorg*
ubuntu_2004_cis_section2_rule_2_1_2_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_2_params_package_purge: yes
# Variables for 2.1.3
ubuntu_2004_cis_section2_rule_2_1_3: true
ubuntu_2004_cis_section2_rule_2_1_3_params_package_name: avahi-daemon
ubuntu_2004_cis_section2_rule_2_1_3_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_3_params_package_purge: yes
# Variables for 2.1.4
ubuntu_2004_cis_section2_rule_2_1_4: true
ubuntu_2004_cis_section2_rule_2_1_4_params_package_name:
- cups
- cups-common
- cups-server-common
- cups-daemon
ubuntu_2004_cis_section2_rule_2_1_4_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_4_params_package_purge: yes
# Variables for 2.1.5
ubuntu_2004_cis_section2_rule_2_1_5: true
ubuntu_2004_cis_section2_rule_2_1_5_params_package_name: isc-dhcp-server
ubuntu_2004_cis_section2_rule_2_1_5_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_5_params_package_purge: yes
# Variables for 2.1.6
ubuntu_2004_cis_section2_rule_2_1_6: true
ubuntu_2004_cis_section2_rule_2_1_6_params_package_name: slapd
ubuntu_2004_cis_section2_rule_2_1_6_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_6_params_package_purge: yes
# Variables for 2.1.7
ubuntu_2004_cis_section2_rule_2_1_7: true
ubuntu_2004_cis_section2_rule_2_1_7_params_package_name: nfs-kernel-server
ubuntu_2004_cis_section2_rule_2_1_7_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_7_params_package_purge: yes
# Variables for 2.1.8
ubuntu_2004_cis_section2_rule_2_1_8: true
ubuntu_2004_cis_section2_rule_2_1_8_params_package_name: bind9
ubuntu_2004_cis_section2_rule_2_1_8_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_8_params_package_purge: yes
# Variables for 2.1.9
ubuntu_2004_cis_section2_rule_2_1_9: true
ubuntu_2004_cis_section2_rule_2_1_9_params_package_name:
- vsftpd
- proftpd-basic
ubuntu_2004_cis_section2_rule_2_1_9_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_9_params_package_purge: yes
# Variables for 2.1.10
ubuntu_2004_cis_section2_rule_2_1_10: true
ubuntu_2004_cis_section2_rule_2_1_10_params_package_name:
- apache
- apache2
- lighttpd
- nginx
ubuntu_2004_cis_section2_rule_2_1_10_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_10_params_package_purge: yes
# Variables for 2.1.11
ubuntu_2004_cis_section2_rule_2_1_11: true
ubuntu_2004_cis_section2_rule_2_1_11_params_package_name:
- dovecot-imapd
- dovecot-pop3d
ubuntu_2004_cis_section2_rule_2_1_11_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_11_params_package_purge: yes
# Variables for 2.1.12
ubuntu_2004_cis_section2_rule_2_1_12: true
ubuntu_2004_cis_section2_rule_2_1_12_params_package_name: samba
ubuntu_2004_cis_section2_rule_2_1_12_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_12_params_package_purge: yes
# Variables for 2.1.13
ubuntu_2004_cis_section2_rule_2_1_13: true
ubuntu_2004_cis_section2_rule_2_1_13_params_package_name: squid
ubuntu_2004_cis_section2_rule_2_1_13_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_13_params_package_purge: yes
# Variables for 2.1.14
ubuntu_2004_cis_section2_rule_2_1_14: true
ubuntu_2004_cis_section2_rule_2_1_14_params_package_name: snmpd
ubuntu_2004_cis_section2_rule_2_1_14_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_14_params_package_purge: yes
# Variables for 2.1.15
ubuntu_2004_cis_section2_rule_2_1_15: true
ubuntu_2004_cis_section2_rule_2_1_15_params_path: /etc/postfix/main.cf
ubuntu_2004_cis_section2_rule_2_1_15_params_line: inet_interfaces = localhost
ubuntu_2004_cis_section2_rule_2_1_15_params_regexp: ^inet_interfaces.*
ubuntu_2004_cis_section2_rule_2_1_15_params_state: present
ubuntu_2004_cis_section2_rule_2_1_15_params_owner: root
ubuntu_2004_cis_section2_rule_2_1_15_params_group: root
ubuntu_2004_cis_section2_rule_2_1_15_params_mode: '0644'
# Variables for 2.1.16
ubuntu_2004_cis_section2_rule_2_1_16: true
ubuntu_2004_cis_section2_rule_2_1_16_params_package_name: rsync
ubuntu_2004_cis_section2_rule_2_1_16_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_16_params_package_purge: yes
# Variables for 2.1.17
ubuntu_2004_cis_section2_rule_2_1_17: true
ubuntu_2004_cis_section2_rule_2_1_17_params_package_name: nis
ubuntu_2004_cis_section2_rule_2_1_17_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_1_17_params_package_purge: yes
# Variables for 2.2.1
ubuntu_2004_cis_section2_rule_2_2_1: true
ubuntu_2004_cis_section2_rule_2_2_1_params_package_name: nis
ubuntu_2004_cis_section2_rule_2_2_1_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_2_1_params_package_purge: yes
# Variables for 2.2.2
ubuntu_2004_cis_section2_rule_2_2_2: true
ubuntu_2004_cis_section2_rule_2_2_2_params_package_name: rsh-client
ubuntu_2004_cis_section2_rule_2_2_2_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_2_2_params_package_purge: yes
# Variables for 2.2.3
ubuntu_2004_cis_section2_rule_2_2_3: true
ubuntu_2004_cis_section2_rule_2_2_3_params_package_name: talk
ubuntu_2004_cis_section2_rule_2_2_3_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_2_3_params_package_purge: yes
# Variables for 2.2.4
ubuntu_2004_cis_section2_rule_2_2_4: true
ubuntu_2004_cis_section2_rule_2_2_4_params_package_name: telnet
ubuntu_2004_cis_section2_rule_2_2_4_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_2_4_params_package_purge: yes
# Variables for 2.2.5
ubuntu_2004_cis_section2_rule_2_2_5: true
ubuntu_2004_cis_section2_rule_2_2_5_params_package_name: ldap-utils
ubuntu_2004_cis_section2_rule_2_2_5_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_2_5_params_package_purge: yes
# Variables for 2.2.6
ubuntu_2004_cis_section2_rule_2_2_6: true
ubuntu_2004_cis_section2_rule_2_2_6_params_package_name: rpcbind
ubuntu_2004_cis_section2_rule_2_2_6_params_package_state: absent
ubuntu_2004_cis_section2_rule_2_2_6_params_package_purge: yes
# Variables for 2.3
ubuntu_2004_cis_section2_rule_2_3: true
ubuntu_2004_cis_section2_rule_2_3_params_script: 2.3.listening_services.sh