This file is indexed.

/usr/share/openscap/sectool-sce/sectool-xccdf.xml is in libopenscap8 1.2.15-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<Benchmark id="migrated_sectool_checks" xml:lang="en" xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <status date="2012-02-06">draft</status>
  <title>Migrated sectool checks</title>
  <description>These checks are originally from sectool (http://fedorahosted.org/sectool) and have been migrated to SCE for use with XCCDF and related technologies.</description>
  <notice id="disclaimer">This XCCDF has been automatically generated, it should only serve as a baseline!</notice>
  <front-matter>STUB</front-matter>
  <rear-matter>STUB</rear-matter>
  <reference href="http://open-scap.org/page/SCE" />
  <reference href="http://open-scap.org/page/SCE_result_file" />
  <reference href="http://fedorahosted.org/sectool" />
  <version>0.1</version>

  <model system="urn:xccdf:scoring:default" />
  <model system="urn:xccdf:scoring:flat" />

  <Profile id="Desktop" abstract="false">
    <title xml:lang="en">Desktop</title>
    <description xml:lang="en">Desktop checks</description>
    <select idref="rule-1" selected="false" />
    <select idref="rule-2" selected="false" />
    <select idref="rule-3" selected="false" />
    <select idref="rule-4" selected="false" />
    <select idref="rule-5" selected="false" />
    <select idref="rule-6" selected="false" />
    <select idref="rule-7" selected="false" />
    <select idref="rule-8" selected="false" />
    <select idref="rule-9" selected="false" />
    <select idref="rule-10" selected="false" />
    <select idref="rule-11" selected="false" />
    <select idref="rule-12" selected="false" />
    <select idref="rule-13" selected="false" />
    <select idref="rule-14" selected="true" />
    <select idref="rule-15" selected="false" />
    <select idref="rule-16" selected="false" />
    <select idref="rule-17" selected="false" />
    <select idref="rule-18" selected="false" />
    <select idref="rule-19" selected="true" />
    <select idref="rule-20" selected="true" />
    <select idref="rule-21" selected="true" />
    <select idref="rule-22" selected="false" />
    <select idref="rule-23" selected="false" />
    <select idref="rule-24" selected="false" />
    <select idref="rule-25" selected="false" />
    <refine-value idref="var-20" selector="enforcing" />
  </Profile>

  <Profile id="Server" abstract="false">
    <title xml:lang="en">Server</title>
    <description xml:lang="en">Server checks</description>
    <select idref="rule-1" selected="false" />
    <select idref="rule-2" selected="false" />
    <select idref="rule-3" selected="true" />
    <select idref="rule-4" selected="true" />
    <select idref="rule-5" selected="true" />
    <select idref="rule-6" selected="true" />
    <select idref="rule-7" selected="true" />
    <select idref="rule-8" selected="true" />
    <select idref="rule-9" selected="false" />
    <select idref="rule-10" selected="true" />
    <select idref="rule-11" selected="true" />
    <select idref="rule-12" selected="true" />
    <select idref="rule-13" selected="true" />
    <select idref="rule-14" selected="false" />
    <select idref="rule-15" selected="true" />
    <select idref="rule-16" selected="true" />
    <select idref="rule-17" selected="false" />
    <select idref="rule-18" selected="false" />
    <select idref="rule-19" selected="true" />
    <select idref="rule-20" selected="true" />
    <select idref="rule-21" selected="true" />
    <select idref="rule-22" selected="false" />
    <select idref="rule-23" selected="false" />
    <select idref="rule-24" selected="false" />
    <select idref="rule-25" selected="true" />
    <refine-value idref="var-20" selector="enforcing" />
  </Profile>

  <Group id="gr-0" hidden="false">
   <title>Sectool checks</title>

    <Value id="var-20" type="string" operator="equals">
      <title>SELinux state</title>
      <description xml:lang="en"> 
	enforcing - SELinux security policy is enforced. <xhtml:br/>
	permissive - SELinux prints warnings instead of enforcing.<xhtml:br/>
	disabled - SELinux is fully disabled.
      </description>
      <question xml:lang="en">Set the SELinux state</question>
      <value>enforcing</value>
      <value selector="enforcing">enforcing</value>
      <value selector="permissive">permissive</value>
      <value selector="disabled">disabled</value>
      <match>enforcing|permissive|disabled</match>
      <choices mustMatch="1">
	<choice>enforcing</choice>
	<choice>permissive</choice>
	<choice>disabled</choice>
      </choices>
    </Value>

  <Rule id="rule-1" selected="true">
    <title>integrity</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
System integrity test. Checks presence and integrity of
system commands and directories. For checking the integrity
of binaries the command rpmverify (rpm -Vf) is used. A search
for duplicates is also done for each command.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="00_integrity.sh" />
    </check>
  </Rule>
  <Rule id="rule-2" selected="true">
    <title>bootloader</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Tests
* permission and owner of /etc/grub.conf
* password presence</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="01_bootloader.sh" />
    </check>
  </Rule>
  <Rule id="rule-3" selected="true">
    <title>disk_usage</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Tells user, which of mounted volumes are going to be full. Uses df to get this info.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="01_disk_usage.sh" />
    </check>
  </Rule>
  <Rule id="rule-4" selected="true">
    <title>group</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks group for whether
* line is not blank
* line has correct number of fields
* groupname is not empty
* groupname contains only alpha-numeric characters
* groupname is shorter than 32 chars
* all group passwords are shadowed
* GIDs are valid numbers
* GIDs are in range 0..60000
* there are groups with same GID
* there are same groupnames</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="01_group.sh" />
    </check>
  </Rule>
  <Rule id="rule-5" selected="true">
    <title>passwd</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks passwd for whether
* /etc/passwd has permission 644 and its owner is root:root
* /etc/shadow has permission 400 and its owner is root:root
* line is not blank
* line has correct number of fields
* username is not empty
* username contains only alpha-numeric characters
* username is shorter than 32 chars
* all users have password
* all passwords are shadowed
* UID and GID are valid numbers
* UID and GID are in range 500..60000
* user has UID 0, but his username is not root
* user has UID 1, but his username is not bin
* user has GID 0, but his username is not root
* user has GID 1, but his username is not bin
* user has negative UID
* user has negative GID
* there are users with same UID
* there are same username
* root has UID 0
* user has valid shell (listed in /etc/shells)</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="01_passwd.sh" />
    </check>
  </Rule>
  <Rule id="rule-6" selected="true">
    <title>shadow</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks shadow for whether
* /etc/shadow has permission 400 and its owner is root:root
* line is not blank
* line has correct number of fields
* username is not empty
* username contains only alpha-numeric characters
* username is shorter than 32 chars
* all users have password
* there are same usernames</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="01_shadow.sh" />
    </check>
  </Rule>
  <Rule id="rule-7" selected="true">
    <title>home_files</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Tests ownership and access rights to sensitive files (.bashrc, ssh/id_dsa etc.) in home directories of all users</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="02_home_files.sh" />
    </check>
  </Rule>
  <Rule id="rule-8" selected="true">
    <title>root_dirs</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Do not allow dot directories in "/"</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="02_root_dirs.sh" />
    </check>
  </Rule>
  <Rule id="rule-9" selected="true">
    <title>path</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks
* if all directories listed in PATH exist
Tests environmental variable PATH for
* hazardous paths curent directiory, relative path, '/tmp'
* group-writable or world-writable directories
* writable executables</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="03_path.sh" />
    </check>
  </Rule>
  <Rule id="rule-10" selected="true">
    <title>firewall</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Simple analysis of firewall policy rules.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="04_firewall.sh" />
    </check>
  </Rule>
  <Rule id="rule-11" selected="true">
    <title>netserv</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Audit of currently running network services.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="05_netserv.sh" />
    </check>
  </Rule>
  <Rule id="rule-12" selected="true">
    <title>openssh</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
OpenSSH configuration audit.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="05_openssh.sh" />
    </check>
  </Rule>
  <Rule id="rule-13" selected="true">
    <title>openvpn</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
OpenVPN configuration audit.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="05_openvpn.sh" />
    </check>
  </Rule>
  <Rule id="rule-14" selected="true">
    <title>removed_libs</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks if libraries mapped into memory are the same as the libraries on the disk.
To get rid of this warnings simply restart these processes (their names and PIDs
are in messages printed out by this test). Use the command service(8) to restart
processes that belong to a running system service.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="05_removed_libs.sh" />
    </check>
  </Rule>
  <Rule id="rule-15" selected="true">
    <title>xinetd</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
xinetd configuration audit.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="05_xinetd.sh" />
    </check>
  </Rule>
  <Rule id="rule-16" selected="true">
    <title>log_files</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Tests logfiles presence, owner, group and permissions of logfiles.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="07_log_files.sh" />
    </check>
  </Rule>
  <Rule id="rule-17" selected="true">
    <title>pam</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
PAM configuration audit.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="08_pam.sh" />
    </check>
  </Rule>
  <Rule id="rule-18" selected="true">
    <title>permissions</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Tests important directories for presence, permissions and owner</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="08_permissions.sh" />
    </check>
  </Rule>
  <Rule id="rule-19" selected="true">
    <title>exec_shield</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks if exec-shield is enabled.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="09_exec_shield.sh" />
    </check>
  </Rule>
  <Rule id="rule-20" selected="true">
    <title>selinux</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
      Checks if you have SELinux enabled and monitors any booleans changes.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-export value-id="var-20" export-name="EXPECTED_STATE" /> <!-- TBD -->
      <check-content-ref href="09_selinux.sh" />
    </check>
  </Rule>
  <Rule id="rule-21" selected="true">
    <title>va_randomization</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks whether va-randomization is enabled.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="09_va_randomization.sh" />
    </check>
  </Rule>
  <Rule id="rule-22" selected="true">
    <title>aliases</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks bash aliases for:
* existence of included file
* existence of command
* possibility of changing content of file implementing the command (world/other writable, owner not root)
* possibility of changing content of included file (world/other writable, owner not root)</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="11_aliases.sh" />
    </check>
  </Rule>
  <Rule id="rule-23" selected="true">
    <title>cron</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Basic crontab checking.
Looks for unexpected paths in the crontab PATH variable, checks ownership and
permissions of cron related dirs and commands listed in crontab.</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="12_cron.sh" />
    </check>
  </Rule>
  <Rule id="rule-24" selected="true">
    <title>nfs</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Audit of nfs server. Finds RW exports</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="14_nfs.sh" />
    </check>
  </Rule>
  <Rule id="rule-25" selected="true">
    <title>tcp_wrappers</title>
    <description>
      <xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml">
Checks whether all running applications, which are using libwrap, have some restrictions in /etc/hosts.deny and /etc.hosts allow</xhtml:pre>
    </description>
    <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout" />
      <check-content-ref href="15_tcp_wrappers.sh" />
    </check>
  </Rule>
  </Group>
</Benchmark>