Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/data/ssg-firefox-ds.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <ns0:data-stream-collection xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:ns0="http://scap.nist.gov/schema/scap/source/1.2" xmlns:ns1="http://www.w3.org/1999/xlink" xmlns:ns12="http://cpe.mitre.org/dictionary/2.0" xmlns:ns2="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:ns3="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ns5="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ns6="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:ns7="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:ns8="http://scap.nist.gov/schema/ocil/2.0" xmlns:ns9="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="scap_org.open-scap_collection_from_xccdf_ssg-firefox-xccdf-1.2.xml" schematron-version="1.3">
3 <ns0:data-stream id="scap_org.open-scap_datastream_from_xccdf_ssg-firefox-xccdf-1.2.xml" scap-version="1.3" use-case="OTHER">
4 <ns0:dictionaries>
5 <ns0:component-ref id="scap_org.open-scap_cref_ssg-firefox-cpe-dictionary.xml" ns1:href="#scap_org.open-scap_comp_ssg-firefox-cpe-dictionary.xml">
6 <ns2:catalog>
7 <ns2:uri name="ssg-firefox-cpe-oval.xml" uri="#scap_org.open-scap_cref_ssg-firefox-cpe-oval.xml"/>
8 </ns2:catalog>
9 </ns0:component-ref>
10 </ns0:dictionaries>
11 <ns0:checklists>
12 <ns0:component-ref id="scap_org.open-scap_cref_ssg-firefox-xccdf-1.2.xml" ns1:href="#scap_org.open-scap_comp_ssg-firefox-xccdf-1.2.xml">
13 <ns2:catalog>
14 <ns2:uri name="ssg-firefox-oval.xml" uri="#scap_org.open-scap_cref_ssg-firefox-oval.xml"/>
15 <ns2:uri name="ssg-firefox-ocil.xml" uri="#scap_org.open-scap_cref_ssg-firefox-ocil.xml"/>
16 </ns2:catalog>
17 </ns0:component-ref>
18 </ns0:checklists>
19 <ns0:checks>
20 <ns0:component-ref id="scap_org.open-scap_cref_ssg-firefox-oval.xml" ns1:href="#scap_org.open-scap_comp_ssg-firefox-oval.xml"/>
21 <ns0:component-ref id="scap_org.open-scap_cref_ssg-firefox-ocil.xml" ns1:href="#scap_org.open-scap_comp_ssg-firefox-ocil.xml"/>
22 <ns0:component-ref id="scap_org.open-scap_cref_ssg-firefox-cpe-oval.xml" ns1:href="#scap_org.open-scap_comp_ssg-firefox-cpe-oval.xml"/>
23 </ns0:checks>
24 </ns0:data-stream>
25 <ns0:component id="scap_org.open-scap_comp_ssg-firefox-oval.xml" timestamp="2020-01-16T13:55:21">
26 <ns3:oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd">
27 <ns3:generator>
28 <ns5:product_name>combine_ovals.py from SCAP Security Guide</ns5:product_name>
29 <ns5:product_version>ssg: [0, 1, 48], python: 3.7.6</ns5:product_version>
30 <ns5:schema_version>5.11</ns5:schema_version>
31 <ns5:timestamp>2020-01-16T13:51:04</ns5:timestamp>
32 </ns3:generator>
33 <ns3:definitions>
34 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-verification:def:1" version="1">
35 <ns3:metadata>
36 <ns3:title>Enable Certificate Verification</ns3:title>
37 <ns3:affected family="unix">
38 <ns3:product>Firefox</ns3:product>
39 </ns3:affected>
40 <ns3:description>When a web site asks for a certificate for user authentication, Firefox must be configured to have the user choose which certificate to present. Websites within DOD require user authentication for access which increases security for DoD information. Access will be denied to the user if certificate management is not configured</ns3:description>
41 <ns3:reference ref_id="firefox_preferences-verification" source="ssg"/>
42 </ns3:metadata>
43 <ns3:criteria>
44 <ns3:criterion comment="verification installed" test_ref="oval:ssg-test_firefox_preferences-verification:tst:1"/>
45 </ns3:criteria>
46 </ns3:definition>
47 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-ssl_protocol_tls:def:1" version="1">
48 <ns3:metadata>
49 <ns3:title>Enable TLS Usage in Firefox</ns3:title>
50 <ns3:affected family="unix">
51 <ns3:product>Firefox</ns3:product>
52 </ns3:affected>
53 <ns3:description>DoD implementations of SSL must use TLS 1.0 in accordance with
54 the Network Infrastructure STIG.</ns3:description>
55 <ns3:reference ref_id="firefox_preferences-ssl_protocol_tls" source="ssg"/>
56 </ns3:metadata>
57 <ns3:criteria>
58 <ns3:criterion comment="TLS is enabled" test_ref="oval:ssg-test_firefox_preferences-ssl_protocol_tls:tst:1"/>
59 </ns3:criteria>
60 </ns3:definition>
61 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-javascript_context_menus:def:1" version="1">
62 <ns3:metadata>
63 <ns3:title>Disable JavaScript Context Menus</ns3:title>
64 <ns3:affected family="unix">
65 <ns3:product>Firefox</ns3:product>
66 </ns3:affected>
67 <ns3:description>Firefox should be configured to not allow JavaScript to
68 disable or replace context menus.</ns3:description>
69 <ns3:reference ref_id="firefox_preferences-javascript_context_menus" source="ssg"/>
70 </ns3:metadata>
71 <ns3:criteria>
72 <ns3:criterion comment="disable javaScript context menus" test_ref="oval:ssg-test_firefox_preferences-javascript_context_menus:tst:1"/>
73 </ns3:criteria>
74 </ns3:definition>
75 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-javascript_window_changes:def:1" version="1">
76 <ns3:metadata>
77 <ns3:title>Disable JavaScript's Raise Or Lower Windows Capability</ns3:title>
78 <ns3:affected family="unix">
79 <ns3:product>Firefox</ns3:product>
80 </ns3:affected>
81 <ns3:description>Firefox should be configured to not allow JavaScript to
82 raise or lower windows.</ns3:description>
83 <ns3:reference ref_id="firefox_preferences-javascript_window_changes" source="ssg"/>
84 </ns3:metadata>
85 <ns3:criteria>
86 <ns3:criterion comment="raise or lower windows disabled" test_ref="oval:ssg-test_firefox_preferences-javascript_window_changes:tst:1"/>
87 </ns3:criteria>
88 </ns3:definition>
89 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-home_page:def:1" version="1">
90 <ns3:metadata>
91 <ns3:title>Default Firefox Home Page Configured</ns3:title>
92 <ns3:affected family="unix">
93 <ns3:product>Firefox</ns3:product>
94 </ns3:affected>
95 <ns3:description>The default homepage for Firefox is set and cannot be changed.</ns3:description>
96 <ns3:reference ref_id="firefox_preferences-home_page" source="ssg"/>
97 </ns3:metadata>
98 <ns3:criteria>
99 <ns3:criterion comment="home page configured" test_ref="oval:ssg-test_firefox_preferences-home_page:tst:1"/>
100 </ns3:criteria>
101 </ns3:definition>
102 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-pop-up_windows:def:1" version="1">
103 <ns3:metadata>
104 <ns3:title>Enable Firefox Pop-up Blocker</ns3:title>
105 <ns3:affected family="unix">
106 <ns3:product>Firefox</ns3:product>
107 </ns3:affected>
108 <ns3:description>The Firefox Pop-up blocker should be enabled as windows may be
109 used to launch an attack within a new browser window with altered settings.
110 </ns3:description>
111 <ns3:reference ref_id="firefox_preferences-pop-up_windows" source="ssg"/>
112 </ns3:metadata>
113 <ns3:criteria>
114 <ns3:criterion comment="pop-up_windows installed" test_ref="oval:ssg-test_firefox_preferences-pop-up_windows:tst:1"/>
115 </ns3:criteria>
116 </ns3:definition>
117 <ns3:definition class="compliance" id="oval:ssg-installed_firefox_version_supported:def:1" version="1">
118 <ns3:metadata>
119 <ns3:title>Supported Version of Firefox Installed</ns3:title>
120 <ns3:affected family="unix">
121 <ns3:product>Firefox</ns3:product>
122 </ns3:affected>
123 <ns3:description>Use of versions of an application which are not
124 supported by the vendor are not permitted. Vendors respond to
125 security flaws with updates and patches. These updates are not
126 available for unsupported versions which can leave the application
127 vulnerable to attack.</ns3:description>
128 <ns3:reference ref_id="installed_firefox_version_supported" source="ssg"/>
129 </ns3:metadata>
130 <ns3:criteria>
131 <ns3:criterion comment="installed version of firefox supported" test_ref="oval:ssg-test_supported_version_of_firefox:tst:1"/>
132 </ns3:criteria>
133 </ns3:definition>
134 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-search_update:def:1" version="1">
135 <ns3:metadata>
136 <ns3:title>Disable Installed Search Plugins Update Checking</ns3:title>
137 <ns3:affected family="unix">
138 <ns3:product>Firefox</ns3:product>
139 </ns3:affected>
140 <ns3:description>Search plugins can be automatically configured to check for
141 updates. Updates need to be controlled and installed from authorized and
142 trusted servers.</ns3:description>
143 <ns3:reference ref_id="firefox_preferences-search_update" source="ssg"/>
144 </ns3:metadata>
145 <ns3:criteria>
146 <ns3:criterion comment="Disable search plugin update capability" test_ref="oval:ssg-test_firefox_preferences-search_update:tst:1"/>
147 </ns3:criteria>
148 </ns3:definition>
149 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-non-secure_page_warning:def:1" version="1">
150 <ns3:metadata>
151 <ns3:title>Enable Non-Secure Page Warnings</ns3:title>
152 <ns3:affected family="unix">
153 <ns3:product>Firefox</ns3:product>
154 </ns3:affected>
155 <ns3:description>Firefox is not configured to provide warnings when a user switches
156 from a secure (SSL-enabled) to a non-secure page.</ns3:description>
157 <ns3:reference ref_id="firefox_preferences-non-secure_page_warning" source="ssg"/>
158 </ns3:metadata>
159 <ns3:criteria>
160 <ns3:criterion comment="non-secure page warning configured" test_ref="oval:ssg-test_firefox_preferences-non-secure_page_warning:tst:1"/>
161 </ns3:criteria>
162 </ns3:definition>
163 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-auto-download_actions:def:1" version="1">
164 <ns3:metadata>
165 <ns3:title>Disable Automatic Downloads of MIME Types</ns3:title>
166 <ns3:affected family="unix">
167 <ns3:product>Firefox</ns3:product>
168 </ns3:affected>
169 <ns3:description>Firefox automatically executes or downloads MIME types which are
170 not authorized for auto-download.</ns3:description>
171 <ns3:reference ref_id="firefox_preferences-auto-download_actions" source="ssg"/>
172 </ns3:metadata>
173 <ns3:criteria>
174 <ns3:criterion comment="Auto download actions of mime type is disabled" test_ref="oval:ssg-test_firefox_preferences-auto-download_actions:tst:1"/>
175 </ns3:criteria>
176 </ns3:definition>
177 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-javascript_window_resizing:def:1" version="1">
178 <ns3:metadata>
179 <ns3:title>Disable JavaScript's Moving Or Resizing Windows Capability</ns3:title>
180 <ns3:affected family="unix">
181 <ns3:product>Firefox</ns3:product>
182 </ns3:affected>
183 <ns3:description>FireFox should not be configured to allow JavaScript to move
184 or resize windows.</ns3:description>
185 <ns3:reference ref_id="firefox_preferences-javascript_window_resizing" source="ssg"/>
186 </ns3:metadata>
187 <ns3:criteria>
188 <ns3:criterion comment="move or resize windows disabled" test_ref="oval:ssg-test_firefox_preferences-javascript_window_resizing:tst:1"/>
189 </ns3:criteria>
190 </ns3:definition>
191 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-shell_protocol:def:1" version="1">
192 <ns3:metadata>
193 <ns3:title>Disable Firefox Access to Shell Protocols</ns3:title>
194 <ns3:affected family="unix">
195 <ns3:product>Firefox</ns3:product>
196 </ns3:affected>
197 <ns3:description>Firefox can be configured to access systems shells which
198 could potentially allow Firefox and other users to access to the
199 underlying system.</ns3:description>
200 <ns3:reference ref_id="firefox_preferences-shell_protocol" source="ssg"/>
201 </ns3:metadata>
202 <ns3:criteria>
203 <ns3:criterion comment="Disable Firefox Shell Protocol Access" test_ref="oval:ssg-test_firefox_preferences-shell_protocol:tst:1"/>
204 </ns3:criteria>
205 </ns3:definition>
206 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-password_store:def:1" version="1">
207 <ns3:metadata>
208 <ns3:title>Disable the Firefox Password Store</ns3:title>
209 <ns3:affected family="unix">
210 <ns3:product>Firefox</ns3:product>
211 </ns3:affected>
212 <ns3:description>The Firefox password store should be disabled.</ns3:description>
213 <ns3:reference ref_id="firefox_preferences-password_store" source="ssg"/>
214 </ns3:metadata>
215 <ns3:criteria>
216 <ns3:criterion comment="password_store disabled" test_ref="oval:ssg-test_firefox_preferences-password_store:tst:1"/>
217 </ns3:criteria>
218 </ns3:definition>
219 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-open_confirmation:def:1" version="1">
220 <ns3:metadata>
221 <ns3:title>Enable Downloading and Opening File Confirmation</ns3:title>
222 <ns3:affected family="unix">
223 <ns3:product>Firefox</ns3:product>
224 </ns3:affected>
225 <ns3:description>Firefox is not configured to prompt user before downloading and
226 opening required file types.</ns3:description>
227 <ns3:reference ref_id="firefox_preferences-open_confirmation" source="ssg"/>
228 </ns3:metadata>
229 <ns3:criteria>
230 <ns3:criterion comment="open_confirmation configured" test_ref="oval:ssg-test_firefox_preferences-open_confirmation:tst:1"/>
231 </ns3:criteria>
232 </ns3:definition>
233 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-ssl_version_3:def:1" version="1">
234 <ns3:metadata>
235 <ns3:title>Disable SSL Version 3 in Firefox</ns3:title>
236 <ns3:affected family="unix">
237 <ns3:product>Firefox</ns3:product>
238 </ns3:affected>
239 <ns3:description>Earlier versions of SSL have known security vulnerabilities
240 and are not authorized for use in DOD.</ns3:description>
241 <ns3:reference ref_id="firefox_preferences-ssl_version_3" source="ssg"/>
242 </ns3:metadata>
243 <ns3:criteria>
244 <ns3:criterion comment="SSL V3 installed" test_ref="oval:ssg-test_firefox_preferences-ssl_version_3:tst:1"/>
245 </ns3:criteria>
246 </ns3:definition>
247 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-addons_plugin_updates:def:1" version="1">
248 <ns3:metadata>
249 <ns3:title>Disable Addons Plugin Updates</ns3:title>
250 <ns3:affected family="unix">
251 <ns3:product>Firefox</ns3:product>
252 </ns3:affected>
253 <ns3:description>Firefox automatically updates installed
254 add-ons and plugins.</ns3:description>
255 <ns3:reference ref_id="firefox_preferences-addons_plugin_updates" source="ssg"/>
256 </ns3:metadata>
257 <ns3:criteria>
258 <ns3:criterion comment="addons plugin updates configured" test_ref="oval:ssg-test_firefox_preferences-addons_plugin_updates:tst:1"/>
259 </ns3:criteria>
260 </ns3:definition>
261 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-ssl_version_2:def:1" version="1">
262 <ns3:metadata>
263 <ns3:title>Disable SSL Version 2.0 in Firefox</ns3:title>
264 <ns3:affected family="unix">
265 <ns3:product>Firefox</ns3:product>
266 </ns3:affected>
267 <ns3:description>SSL 2.0 and SSL 3.0 contain a number of security flaws.
268 Therefore, SSL 2.0 should be disabled.</ns3:description>
269 <ns3:reference ref_id="firefox_preferences-ssl_version_2" source="ssg"/>
270 </ns3:metadata>
271 <ns3:criteria>
272 <ns3:criterion comment="SSL 2.0 protocol disabled" test_ref="oval:ssg-test_firefox_preferences-ssl_version_2:tst:1"/>
273 </ns3:criteria>
274 </ns3:definition>
275 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-autofill_passwords:def:1" version="1">
276 <ns3:metadata>
277 <ns3:title>Disable User Ability To Autofill Passwords</ns3:title>
278 <ns3:affected family="unix">
279 <ns3:product>Firefox</ns3:product>
280 </ns3:affected>
281 <ns3:description>Firefox should not be configured to autofill passwords.</ns3:description>
282 <ns3:reference ref_id="firefox_preferences-autofill_passwords" source="ssg"/>
283 </ns3:metadata>
284 <ns3:criteria>
285 <ns3:criterion comment="autofill_passwords disabled" test_ref="oval:ssg-test_firefox_preferences-autofill_passwords:tst:1"/>
286 </ns3:criteria>
287 </ns3:definition>
288 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-javascript_status_bar_changes:def:1" version="1">
289 <ns3:metadata>
290 <ns3:title>Disable JavaScript's Ability To Change The Status Bar</ns3:title>
291 <ns3:affected family="unix">
292 <ns3:product>Firefox</ns3:product>
293 </ns3:affected>
294 <ns3:description>Firefox should be configured to not allow JavaScript to
295 hide or change the status bar.</ns3:description>
296 <ns3:reference ref_id="firefox_preferences-javascript_status_bar_changes" source="ssg"/>
297 </ns3:metadata>
298 <ns3:criteria>
299 <ns3:criterion comment="disable hiding or changing status bar menus" test_ref="oval:ssg-test_firefox_preferences-javascript_status_bar_changes:tst:1"/>
300 </ns3:criteria>
301 </ns3:definition>
302 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-javascript_status_bar_text:def:1" version="1">
303 <ns3:metadata>
304 <ns3:title>Disable JavaScript's Ability To Modify The Browser Appearance</ns3:title>
305 <ns3:affected family="unix">
306 <ns3:product>Firefox</ns3:product>
307 </ns3:affected>
308 <ns3:description>Firefox should be configured not to allow JavaScript
309 to change the status bar text.</ns3:description>
310 <ns3:reference ref_id="firefox_preferences-javascript_status_bar_text" source="ssg"/>
311 </ns3:metadata>
312 <ns3:criteria>
313 <ns3:criterion comment="disable changing the status bar text" test_ref="oval:ssg-test_firefox_preferences-javascript_status_bar_text:tst:1"/>
314 </ns3:criteria>
315 </ns3:definition>
316 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-auto-update_of_firefox:def:1" version="1">
317 <ns3:metadata>
318 <ns3:title>Disable Firefox Auto-Update Capability</ns3:title>
319 <ns3:affected family="unix">
320 <ns3:product>Firefox</ns3:product>
321 </ns3:affected>
322 <ns3:description>Firefox should not be able to automatically
323 update itself.</ns3:description>
324 <ns3:reference ref_id="firefox_preferences-auto-update_of_firefox" source="ssg"/>
325 </ns3:metadata>
326 <ns3:criteria>
327 <ns3:criterion comment="auto-update is disabled" test_ref="oval:ssg-test_firefox_preferences-auto-update_of_firefox:tst:1"/>
328 </ns3:criteria>
329 </ns3:definition>
330 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-autofill_forms:def:1" version="1">
331 <ns3:metadata>
332 <ns3:title>Disable Autofill Form Assistance</ns3:title>
333 <ns3:affected family="unix">
334 <ns3:product>Firefox</ns3:product>
335 </ns3:affected>
336 <ns3:description>Firefox formfill assistance option is disabled.</ns3:description>
337 <ns3:reference ref_id="firefox_preferences-autofill_forms" source="ssg"/>
338 </ns3:metadata>
339 <ns3:criteria>
340 <ns3:criterion comment="autofill_forms disabled" test_ref="oval:ssg-test_firefox_preferences-autofill_forms:tst:1"/>
341 </ns3:criteria>
342 </ns3:definition>
343 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-cookies_clear:def:1" version="1">
344 <ns3:metadata>
345 <ns3:title>Clear Cookies And Other Data When Firefox Closes</ns3:title>
346 <ns3:affected family="unix">
347 <ns3:product>Firefox</ns3:product>
348 </ns3:affected>
349 <ns3:description>Set browser preferences to perform a Clear Private Data
350 operation when closing the browser in order to clear cookies and other
351 data installed by websites visited during the session.</ns3:description>
352 <ns3:reference ref_id="firefox_preferences-cookies_clear" source="ssg"/>
353 </ns3:metadata>
354 <ns3:criteria>
355 <ns3:criterion comment="enabled sanitizeOnShutdown" test_ref="oval:ssg-test_firefox_preferences-cookies_shutdown_sanitize:tst:1"/>
356 </ns3:criteria>
357 </ns3:definition>
358 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-cookies_user_notice:def:1" version="1">
359 <ns3:metadata>
360 <ns3:title>Disable User Prompt For Clearing Cookies And Other Data</ns3:title>
361 <ns3:affected family="unix">
362 <ns3:product>Firefox</ns3:product>
363 </ns3:affected>
364 <ns3:description>Users should not be prompted about data and cookies being
365 cleared when the browser is closed.</ns3:description>
366 <ns3:reference ref_id="firefox_preferences-cookies_user_notice" source="ssg"/>
367 </ns3:metadata>
368 <ns3:criteria>
369 <ns3:criterion comment="disable promptOnSanitize" test_ref="oval:ssg-test_firefox_preferences-cookies_sanitize_prompt:tst:1"/>
370 </ns3:criteria>
371 </ns3:definition>
372 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-lock_settings_obscure:def:1" version="1">
373 <ns3:metadata>
374 <ns3:title>Prevent Users from Changing Firefox Configuration Settings</ns3:title>
375 <ns3:affected family="unix">
376 <ns3:product>Firefox</ns3:product>
377 </ns3:affected>
378 <ns3:description>Locked settings prevents users from accessing about:config and
379 changing the security settings set by the system administrator.</ns3:description>
380 <ns3:reference ref_id="firefox_preferences-lock_settings_obscure" source="ssg"/>
381 </ns3:metadata>
382 <ns3:criteria>
383 <ns3:criterion comment="Do not obscure locked file content with ROT-13" test_ref="oval:ssg-test_firefox_preferences-obscure_value:tst:1"/>
384 </ns3:criteria>
385 </ns3:definition>
386 <ns3:definition class="compliance" id="oval:ssg-firefox_preferences-lock_settings_config_file:def:1" version="1">
387 <ns3:metadata>
388 <ns3:title>Prevent Users from Changing Firefox Configuration Settings</ns3:title>
389 <ns3:affected family="unix">
390 <ns3:product>Firefox</ns3:product>
391 </ns3:affected>
392 <ns3:description>Locked settings prevents users from accessing about:config and
393 changing the security settings set by the system administrator.</ns3:description>
394 <ns3:reference ref_id="firefox_preferences-lock_settings_config_file" source="ssg"/>
395 </ns3:metadata>
396 <ns3:criteria>
397 <ns3:criterion comment="Configuration file is set" test_ref="oval:ssg-test_firefox_preferences-config_filename:tst:1"/>
398 </ns3:criteria>
399 </ns3:definition>
400 <ns3:definition class="inventory" id="oval:ssg-installed_app_is_firefox:def:1" version="2">
401 <ns3:metadata>
402 <ns3:title>Mozilla Firefox</ns3:title>
403 <ns3:affected family="unix">
404 <ns3:product>Firefox</ns3:product>
405 </ns3:affected>
406 <ns3:reference ref_id="cpe:/a:mozilla:firefox" source="CPE"/>
407 <ns3:description>The application installed on the system is firefox.</ns3:description>
408 <ns3:reference ref_id="installed_app_is_firefox" source="ssg"/>
409 </ns3:metadata>
410 <ns3:criteria operator="AND">
411 <ns3:extend_definition comment="Installed OS is part of the Unix family" definition_ref="oval:ssg-installed_OS_is_part_of_Unix_family:def:1"/>
412 <ns3:criterion comment="Firefox is installed" test_ref="oval:ssg-test_firefox:tst:1"/>
413 </ns3:criteria>
414 </ns3:definition>
415 <ns3:definition class="inventory" id="oval:ssg-installed_OS_is_part_of_Unix_family:def:1" version="1">
416 <ns3:metadata>
417 <ns3:title>Installed operating system is part of the Unix family</ns3:title>
418 <ns3:affected family="unix">
419 <ns3:product>Firefox</ns3:product>
420 </ns3:affected>
421 <ns3:description>The operating system installed on the system is part of the Unix OS family</ns3:description>
422 <ns3:reference ref_id="installed_OS_is_part_of_Unix_family" source="ssg"/>
423 </ns3:metadata>
424 <ns3:criteria>
425 <ns3:criterion comment="Installed operating system is part of the unix family" test_ref="oval:ssg-test_unix_family:tst:1"/>
426 </ns3:criteria>
427 </ns3:definition>
428 </ns3:definitions>
429 <ns3:tests>
430 <ns6:textfilecontent54_test check="all" comment="Enable Certification verification" id="oval:ssg-test_firefox_preferences-verification:tst:1" version="1">
431 <ns6:object object_ref="oval:ssg-object_firefox_preferences-verification:obj:1"/>
432 </ns6:textfilecontent54_test>
433 <ns6:textfilecontent54_test check="all" comment="Check if TLS is enabled" id="oval:ssg-test_firefox_preferences-ssl_protocol_tls:tst:1" version="1">
434 <ns6:object object_ref="oval:ssg-object_firefox_preferences-ssl_protocol_tls:obj:1"/>
435 </ns6:textfilecontent54_test>
436 <ns6:textfilecontent54_test check="all" comment="Check for disable javaScript context menu is disabled" id="oval:ssg-test_firefox_preferences-javascript_context_menus:tst:1" version="1">
437 <ns6:object object_ref="oval:ssg-object_firefox_preferences-javascript_context_menus:obj:1"/>
438 </ns6:textfilecontent54_test>
439 <ns6:textfilecontent54_test check="all" comment="raise or lower windows is disabled" id="oval:ssg-test_firefox_preferences-javascript_window_changes:tst:1" version="1">
440 <ns6:object object_ref="oval:ssg-object_firefox_preferences-javascript_window_changes:obj:1"/>
441 </ns6:textfilecontent54_test>
442 <ns6:textfilecontent54_test check="all" comment="Check for home page configured" id="oval:ssg-test_firefox_preferences-home_page:tst:1" version="1">
443 <ns6:object object_ref="oval:ssg-object_firefox_preferences-home_page:obj:1"/>
444 <ns6:state state_ref="oval:ssg-state_firefox_preferences-home_page:ste:1"/>
445 </ns6:textfilecontent54_test>
446 <ns6:textfilecontent54_test check="all" comment="Check for pop-up_windows installed" id="oval:ssg-test_firefox_preferences-pop-up_windows:tst:1" version="1">
447 <ns6:object object_ref="oval:ssg-object_firefox_preferences-pop-up_windows:obj:1"/>
448 </ns6:textfilecontent54_test>
449 <ns7:rpminfo_test check="all" check_existence="any_exist" comment="Installed version of firefox is greater than ESR 31.5" id="oval:ssg-test_supported_version_of_firefox:tst:1" version="1">
450 <ns7:object object_ref="oval:ssg-obj_supported_version_of_firefox:obj:1"/>
451 <ns7:state state_ref="oval:ssg-state_supported_version_of_firefox:ste:1"/>
452 </ns7:rpminfo_test>
453 <ns6:textfilecontent54_test check="all" comment="Check search plugin update capability is disabled" id="oval:ssg-test_firefox_preferences-search_update:tst:1" version="1">
454 <ns6:object object_ref="oval:ssg-object_firefox_preferences-search_update:obj:1"/>
455 </ns6:textfilecontent54_test>
456 <ns6:textfilecontent54_test check="all" comment="Check for non-secure page warning configured" id="oval:ssg-test_firefox_preferences-non-secure_page_warning:tst:1" version="1">
457 <ns6:object object_ref="oval:ssg-object_firefox_preferences-non-secure_page_warning:obj:1"/>
458 </ns6:textfilecontent54_test>
459 <ns6:textfilecontent54_test check="all" comment="Check for Auto download Actions installed" id="oval:ssg-test_firefox_preferences-auto-download_actions:tst:1" version="1">
460 <ns6:object object_ref="oval:ssg-object_firefox_preferences-auto-download_actions:obj:1"/>
461 </ns6:textfilecontent54_test>
462 <ns6:textfilecontent54_test check="all" comment="Check for move or resize windows disabled" id="oval:ssg-test_firefox_preferences-javascript_window_resizing:tst:1" version="1">
463 <ns6:object object_ref="oval:ssg-object_firefox_preferences-javascript_window_resizing:obj:1"/>
464 </ns6:textfilecontent54_test>
465 <ns6:textfilecontent54_test check="all" comment="Check that the hell_protocol is disabled" id="oval:ssg-test_firefox_preferences-shell_protocol:tst:1" version="1">
466 <ns6:object object_ref="oval:ssg-object_firefox_preferences-shell_protocol:obj:1"/>
467 </ns6:textfilecontent54_test>
468 <ns6:textfilecontent54_test check="all" comment="Check that the password_store is disabled" id="oval:ssg-test_firefox_preferences-password_store:tst:1" version="1">
469 <ns6:object object_ref="oval:ssg-object_firefox_preferences-password_store:obj:1"/>
470 </ns6:textfilecontent54_test>
471 <ns6:textfilecontent54_test check="all" comment="Check for open_confirmation configured" id="oval:ssg-test_firefox_preferences-open_confirmation:tst:1" version="1">
472 <ns6:object object_ref="oval:ssg-object_firefox_preferences-open_confirmation:obj:1"/>
473 <ns6:state state_ref="oval:ssg-state_firefox_preferences-open_confirmation:ste:1"/>
474 </ns6:textfilecontent54_test>
475 <ns6:textfilecontent54_test check="all" comment="Check for SSL Version 3 preferences" id="oval:ssg-test_firefox_preferences-ssl_version_3:tst:1" version="1">
476 <ns6:object object_ref="oval:ssg-object_firefox_preferences-ssl_version_3:obj:1"/>
477 </ns6:textfilecontent54_test>
478 <ns6:textfilecontent54_test check="all" comment="Check for addons plugin updates" id="oval:ssg-test_firefox_preferences-addons_plugin_updates:tst:1" version="1">
479 <ns6:object object_ref="oval:ssg-object_firefox_preferences-addons_plugin_updates:obj:1"/>
480 </ns6:textfilecontent54_test>
481 <ns6:textfilecontent54_test check="all" comment="Check SSL 2.0 protocol disabled" id="oval:ssg-test_firefox_preferences-ssl_version_2:tst:1" version="1">
482 <ns6:object object_ref="oval:ssg-object_firefox_preferences-ssl_version_2:obj:1"/>
483 </ns6:textfilecontent54_test>
484 <ns6:textfilecontent54_test check="all" comment="Check for autofill_passwords disabled" id="oval:ssg-test_firefox_preferences-autofill_passwords:tst:1" version="1">
485 <ns6:object object_ref="oval:ssg-object_firefox_preferences-autofill_passwords:obj:1"/>
486 </ns6:textfilecontent54_test>
487 <ns6:textfilecontent54_test check="all" comment="Check that hiding or changing status bar is disabled" id="oval:ssg-test_firefox_preferences-javascript_status_bar_changes:tst:1" version="1">
488 <ns6:object object_ref="oval:ssg-object_firefox_preferences-javascript_status_bar_changes:obj:1"/>
489 </ns6:textfilecontent54_test>
490 <ns6:textfilecontent54_test check="all" comment="Check that changing the status bar text is disabled" id="oval:ssg-test_firefox_preferences-javascript_status_bar_text:tst:1" version="1">
491 <ns6:object object_ref="oval:ssg-object_firefox_preferences-javascript_status_bar_text:obj:1"/>
492 </ns6:textfilecontent54_test>
493 <ns6:textfilecontent54_test check="all" comment="Check that auto-update of firefox is disabled" id="oval:ssg-test_firefox_preferences-auto-update_of_firefox:tst:1" version="1">
494 <ns6:object object_ref="oval:ssg-object_firefox_preferences-auto-update_of_firefox:obj:1"/>
495 </ns6:textfilecontent54_test>
496 <ns6:textfilecontent54_test check="all" comment="Check for autofill_forms disabled" id="oval:ssg-test_firefox_preferences-autofill_forms:tst:1" version="1">
497 <ns6:object object_ref="oval:ssg-object_firefox_preferences-autofill_forms:obj:1"/>
498 </ns6:textfilecontent54_test>
499 <ns6:textfilecontent54_test check="all" comment="Check for sanitizeOnShutdown enabled" id="oval:ssg-test_firefox_preferences-cookies_shutdown_sanitize:tst:1" version="1">
500 <ns6:object object_ref="oval:ssg-object_firefox_preferences-cookies_shutdown_sanitize:obj:1"/>
501 </ns6:textfilecontent54_test>
502 <ns6:textfilecontent54_test check="all" comment="Check for promptOnSanitize disabled" id="oval:ssg-test_firefox_preferences-cookies_sanitize_prompt:tst:1" version="1">
503 <ns6:object object_ref="oval:ssg-object_firefox_preferences-cookies_sanitize_prompt:obj:1"/>
504 </ns6:textfilecontent54_test>
505 <ns6:textfilecontent54_test check="all" comment="Check for obscure_value" id="oval:ssg-test_firefox_preferences-obscure_value:tst:1" version="1">
506 <ns6:object object_ref="oval:ssg-object_firefox_preferences-obscure_value:obj:1"/>
507 </ns6:textfilecontent54_test>
508 <ns6:textfilecontent54_test check="all" comment="Check for configuration filename" id="oval:ssg-test_firefox_preferences-config_filename:tst:1" version="2">
509 <ns6:object object_ref="oval:ssg-object_firefox_preferences-config_filename:obj:1"/>
510 </ns6:textfilecontent54_test>
511 <ns7:rpminfo_test check="all" check_existence="at_least_one_exists" comment="Firefox is installed" id="oval:ssg-test_firefox:tst:1" version="1">
512 <ns7:object object_ref="oval:ssg-obj_firefox:obj:1"/>
513 </ns7:rpminfo_test>
514 <ns6:family_test check="all" check_existence="at_least_one_exists" comment="Test installed OS is part of the unix family" id="oval:ssg-test_unix_family:tst:1" version="1">
515 <ns6:object object_ref="oval:ssg-object_unix_family:obj:1"/>
516 <ns6:state state_ref="oval:ssg-state_unix_family:ste:1"/>
517 </ns6:family_test>
518 </ns3:tests>
519 <ns3:objects>
520 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-verification:obj:1" version="1">
521 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
522 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
523 <ns6:pattern operation="pattern match">^lockPref\("security.default_personal_cert",[\s]+"Ask Every Time"\);$</ns6:pattern>
524 <ns6:instance datatype="int">1</ns6:instance>
525 </ns6:textfilecontent54_object>
526 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-ssl_protocol_tls:obj:1" version="1">
527 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
528 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
529 <ns6:pattern operation="pattern match">^lockPref\("security.enable_tls",[\s]+true\);$</ns6:pattern>
530 <ns6:instance datatype="int">1</ns6:instance>
531 </ns6:textfilecontent54_object>
532 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-javascript_context_menus:obj:1" version="1">
533 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
534 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
535 <ns6:pattern operation="pattern match">^lockPref\("dom.event.contextmenu.enabled",[\s]+false\);$</ns6:pattern>
536 <ns6:instance datatype="int">1</ns6:instance>
537 </ns6:textfilecontent54_object>
538 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-javascript_window_changes:obj:1" version="1">
539 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
540 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
541 <ns6:pattern operation="pattern match">^lockPref\("dom.disable_window_flip",[\s]+true\);$</ns6:pattern>
542 <ns6:instance datatype="int">1</ns6:instance>
543 </ns6:textfilecontent54_object>
544 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-home_page:obj:1" version="1">
545 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
546 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
547 <ns6:pattern operation="pattern match">^lockPref\("browser.startup.homepage",[\s]+"(\S+)"\);$</ns6:pattern>
548 <ns6:instance datatype="int">1</ns6:instance>
549 </ns6:textfilecontent54_object>
550 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-pop-up_windows:obj:1" version="1">
551 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
552 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
553 <ns6:pattern operation="pattern match">^lockPref\("dom.disable_window_open_feature.status",[\s]+true\);$</ns6:pattern>
554 <ns6:instance datatype="int">1</ns6:instance>
555 </ns6:textfilecontent54_object>
556 <ns7:rpminfo_object id="oval:ssg-obj_supported_version_of_firefox:obj:1" version="1">
557 <ns7:name>firefox</ns7:name>
558 </ns7:rpminfo_object>
559 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-search_update:obj:1" version="1">
560 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
561 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
562 <ns6:pattern operation="pattern match">^lockPref\("browser.search.update",[\s]+false\);$</ns6:pattern>
563 <ns6:instance datatype="int">1</ns6:instance>
564 </ns6:textfilecontent54_object>
565 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-non-secure_page_warning:obj:1" version="1">
566 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
567 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
568 <ns6:pattern operation="pattern match">^lockPref\("security.warn_leaving_secure",[\s]+true\);$</ns6:pattern>
569 <ns6:instance datatype="int">1</ns6:instance>
570 </ns6:textfilecontent54_object>
571 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-auto-download_actions:obj:1" version="1">
572 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
573 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
574 <ns6:pattern operation="pattern match">^lockPref\("browser.helperApps.alwaysAsk.force",[\s]+true\);$</ns6:pattern>
575 <ns6:instance datatype="int">1</ns6:instance>
576 </ns6:textfilecontent54_object>
577 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-javascript_window_resizing:obj:1" version="1">
578 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
579 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
580 <ns6:pattern operation="pattern match">^lockPref\("dom.disable_window_move_resize",[\s]+true\);$</ns6:pattern>
581 <ns6:instance datatype="int">1</ns6:instance>
582 </ns6:textfilecontent54_object>
583 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-shell_protocol:obj:1" version="1">
584 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
585 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
586 <ns6:pattern operation="pattern match">^lockPref\("network.protocol-handler.external.shell",[\s]+false\);$</ns6:pattern>
587 <ns6:instance datatype="int">1</ns6:instance>
588 </ns6:textfilecontent54_object>
589 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-password_store:obj:1" version="1">
590 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
591 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
592 <ns6:pattern operation="pattern match">^lockPref\("signon.rememberSignons",[\s]+false\);$</ns6:pattern>
593 <ns6:instance datatype="int">1</ns6:instance>
594 </ns6:textfilecontent54_object>
595 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-open_confirmation:obj:1" version="1">
596 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
597 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
598 <ns6:pattern operation="pattern match">^lockPref\("plugin.disable_full_page_plugin_for_types",[\s]+"(\S+)"\);$</ns6:pattern>
599 <ns6:instance datatype="int">1</ns6:instance>
600 </ns6:textfilecontent54_object>
601 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-ssl_version_3:obj:1" version="1">
602 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
603 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
604 <ns6:pattern operation="pattern match">^lockPref\("security.enable_ssl3",[\s]+false\);$</ns6:pattern>
605 <ns6:instance datatype="int">1</ns6:instance>
606 </ns6:textfilecontent54_object>
607 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-addons_plugin_updates:obj:1" version="1">
608 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
609 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
610 <ns6:pattern operation="pattern match">^lockPref\("extensions.update.enabled",[\s]+false\);$</ns6:pattern>
611 <ns6:instance datatype="int">1</ns6:instance>
612 </ns6:textfilecontent54_object>
613 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-ssl_version_2:obj:1" version="1">
614 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
615 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
616 <ns6:pattern operation="pattern match">^lockPref\("security.enable_ssl2",[\s]+false\);$</ns6:pattern>
617 <ns6:instance datatype="int">1</ns6:instance>
618 </ns6:textfilecontent54_object>
619 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-autofill_passwords:obj:1" version="1">
620 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
621 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
622 <ns6:pattern operation="pattern match">^lockPref\("signon.prefillForms",[\s]+false\);$</ns6:pattern>
623 <ns6:instance datatype="int">1</ns6:instance>
624 </ns6:textfilecontent54_object>
625 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-javascript_status_bar_changes:obj:1" version="1">
626 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
627 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
628 <ns6:pattern operation="pattern match">^lockPref\("dom.disable_window_status_change",[\s]+true\);$</ns6:pattern>
629 <ns6:instance datatype="int">1</ns6:instance>
630 </ns6:textfilecontent54_object>
631 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-javascript_status_bar_text:obj:1" version="1">
632 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
633 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
634 <ns6:pattern operation="pattern match">^lockPref\("dom.disable_window_open_feature.status",[\s]+true\);$</ns6:pattern>
635 <ns6:instance datatype="int">1</ns6:instance>
636 </ns6:textfilecontent54_object>
637 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-auto-update_of_firefox:obj:1" version="1">
638 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
639 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
640 <ns6:pattern operation="pattern match">^lockPref\("app.update.enabled",[\s]+false\);$</ns6:pattern>
641 <ns6:instance datatype="int">1</ns6:instance>
642 </ns6:textfilecontent54_object>
643 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-autofill_forms:obj:1" version="1">
644 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
645 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
646 <ns6:pattern operation="pattern match">^lockPref\("browser.formfill.enable",[\s]+false\);$</ns6:pattern>
647 <ns6:instance datatype="int">1</ns6:instance>
648 </ns6:textfilecontent54_object>
649 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-cookies_shutdown_sanitize:obj:1" version="1">
650 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
651 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
652 <ns6:pattern operation="pattern match">^lockPref\("privacy.sanitize.sanitizeOnShutdown",[\s]+true\);$</ns6:pattern>
653 <ns6:instance datatype="int">1</ns6:instance>
654 </ns6:textfilecontent54_object>
655 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-cookies_sanitize_prompt:obj:1" version="1">
656 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ns6:path>
657 <ns6:filename operation="pattern match">^.*\.cfg$</ns6:filename>
658 <ns6:pattern operation="pattern match">^lockPref\("privacy.sanitize.promptOnSanitize",[\s]+false\);$</ns6:pattern>
659 <ns6:instance datatype="int">1</ns6:instance>
660 </ns6:textfilecontent54_object>
661 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-obscure_value:obj:1" version="1">
662 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox\/defaults\/(preferences|pref)</ns6:path>
663 <ns6:filename operation="pattern match">^.*\.js$</ns6:filename>
664 <ns6:pattern operation="pattern match">^pref\("general.config.obscure_value",[\s]+0\);$</ns6:pattern>
665 <ns6:instance datatype="int">1</ns6:instance>
666 </ns6:textfilecontent54_object>
667 <ns6:textfilecontent54_object id="oval:ssg-object_firefox_preferences-config_filename:obj:1" version="1">
668 <ns6:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox\/defaults\/(preferences|pref)</ns6:path>
669 <ns6:filename operation="pattern match">^.*\.js$</ns6:filename>
670 <ns6:pattern operation="pattern match">^pref\("general.config.filename",[\s]+"(\S+)\.cfg"\);$</ns6:pattern>
671 <ns6:instance datatype="int">1</ns6:instance>
672 </ns6:textfilecontent54_object>
673 <ns7:rpminfo_object id="oval:ssg-obj_firefox:obj:1" version="1">
674 <ns7:name>firefox</ns7:name>
675 </ns7:rpminfo_object>
676 <ns6:family_object id="oval:ssg-object_unix_family:obj:1" version="1"/>
677 </ns3:objects>
678 <ns3:states>
679 <ns6:textfilecontent54_state id="oval:ssg-state_firefox_preferences-home_page:ste:1" version="1">
680 <ns6:subexpression datatype="string" operation="equals" var_check="all" var_ref="oval:ssg-var_default_home_page:var:1"/>
681 </ns6:textfilecontent54_state>
682 <ns7:rpminfo_state id="oval:ssg-state_supported_version_of_firefox:ste:1" version="1">
683 <ns7:evr datatype="evr_string" operation="greater than">3.0.0</ns7:evr>
684 </ns7:rpminfo_state>
685 <ns6:textfilecontent54_state id="oval:ssg-state_firefox_preferences-open_confirmation:ste:1" version="1">
686 <ns6:subexpression operation="equals" var_check="all" var_ref="oval:ssg-var_required_file_types:var:1"/>
687 </ns6:textfilecontent54_state>
688 <ns6:family_state id="oval:ssg-state_unix_family:ste:1" version="1">
689 <ns6:family>unix</ns6:family>
690 </ns6:family_state>
691 </ns3:states>
692 <ns3:variables>
693 <ns3:external_variable comment="Expected default home page" datatype="string" id="oval:ssg-var_default_home_page:var:1" version="1"/>
694 <ns3:external_variable comment="Expected file types" datatype="string" id="oval:ssg-var_required_file_types:var:1" version="1"/>
695 </ns3:variables>
696 </ns3:oval_definitions>
697 </ns0:component>
698 <ns0:component id="scap_org.open-scap_comp_ssg-firefox-ocil.xml" timestamp="2020-01-16T13:55:21">
699 <ns8:ocil>
700 <ns8:generator>
701 <ns8:product_name>xccdf-create-ocil.xslt from SCAP Security Guide</ns8:product_name>
702 <ns8:product_version>ssg: 0.1.48</ns8:product_version>
703 <ns8:schema_version>2.0</ns8:schema_version>
704 <ns8:timestamp>2020-01-16T00:00:00Z</ns8:timestamp>
705 </ns8:generator>
706 <ns8:questionnaires>
707 <ns8:questionnaire id="ocil:ssg-firefox_preferences-home_page_ocil:questionnaire:1">
708 <ns8:title>Default Firefox Home Page Configured</ns8:title>
709 <ns8:actions>
710 <ns8:test_action_ref>ocil:ssg-firefox_preferences-home_page_action:testaction:1</ns8:test_action_ref>
711 </ns8:actions>
712 </ns8:questionnaire>
713 <ns8:questionnaire id="ocil:ssg-firefox_preferences-non-secure_page_warning_ocil:questionnaire:1">
714 <ns8:title>Enable Non-Secure Page Warnings</ns8:title>
715 <ns8:actions>
716 <ns8:test_action_ref>ocil:ssg-firefox_preferences-non-secure_page_warning_action:testaction:1</ns8:test_action_ref>
717 </ns8:actions>
718 </ns8:questionnaire>
719 <ns8:questionnaire id="ocil:ssg-firefox_preferences-ssl_version_3_ocil:questionnaire:1">
720 <ns8:title>Disable SSL Version 3.0 in Firefox</ns8:title>
721 <ns8:actions>
722 <ns8:test_action_ref>ocil:ssg-firefox_preferences-ssl_version_3_action:testaction:1</ns8:test_action_ref>
723 </ns8:actions>
724 </ns8:questionnaire>
725 <ns8:questionnaire id="ocil:ssg-firefox_preferences-password_store_ocil:questionnaire:1">
726 <ns8:title>Disable the Firefox Password Store</ns8:title>
727 <ns8:actions>
728 <ns8:test_action_ref>ocil:ssg-firefox_preferences-password_store_action:testaction:1</ns8:test_action_ref>
729 </ns8:actions>
730 </ns8:questionnaire>
731 <ns8:questionnaire id="ocil:ssg-installed_firefox_version_supported_ocil:questionnaire:1">
732 <ns8:title>Supported Version of Firefox Installed</ns8:title>
733 <ns8:actions>
734 <ns8:test_action_ref>ocil:ssg-installed_firefox_version_supported_action:testaction:1</ns8:test_action_ref>
735 </ns8:actions>
736 </ns8:questionnaire>
737 <ns8:questionnaire id="ocil:ssg-firefox_preferences-auto-download_actions_ocil:questionnaire:1">
738 <ns8:title>Disable Automatic Downloads of MIME Types</ns8:title>
739 <ns8:actions>
740 <ns8:test_action_ref>ocil:ssg-firefox_preferences-auto-download_actions_action:testaction:1</ns8:test_action_ref>
741 </ns8:actions>
742 </ns8:questionnaire>
743 <ns8:questionnaire id="ocil:ssg-firefox_preferences-javascript_context_menus_ocil:questionnaire:1">
744 <ns8:title>Disable JavaScript Context Menus</ns8:title>
745 <ns8:actions>
746 <ns8:test_action_ref>ocil:ssg-firefox_preferences-javascript_context_menus_action:testaction:1</ns8:test_action_ref>
747 </ns8:actions>
748 </ns8:questionnaire>
749 <ns8:questionnaire id="ocil:ssg-firefox_preferences-open_confirmation_ocil:questionnaire:1">
750 <ns8:title>Enable Downloading and Opening File Confirmation</ns8:title>
751 <ns8:actions>
752 <ns8:test_action_ref>ocil:ssg-firefox_preferences-open_confirmation_action:testaction:1</ns8:test_action_ref>
753 </ns8:actions>
754 </ns8:questionnaire>
755 <ns8:questionnaire id="ocil:ssg-firefox_preferences-verification_ocil:questionnaire:1">
756 <ns8:title>Enable Certificate Verification</ns8:title>
757 <ns8:actions>
758 <ns8:test_action_ref>ocil:ssg-firefox_preferences-verification_action:testaction:1</ns8:test_action_ref>
759 </ns8:actions>
760 </ns8:questionnaire>
761 <ns8:questionnaire id="ocil:ssg-firefox_preferences-javascript_window_resizing_ocil:questionnaire:1">
762 <ns8:title>Disable JavaScript's Moving Or Resizing Windows Capability</ns8:title>
763 <ns8:actions>
764 <ns8:test_action_ref>ocil:ssg-firefox_preferences-javascript_window_resizing_action:testaction:1</ns8:test_action_ref>
765 </ns8:actions>
766 </ns8:questionnaire>
767 <ns8:questionnaire id="ocil:ssg-firefox_preferences-search_update_ocil:questionnaire:1">
768 <ns8:title>Disable Installed Search Plugins Update Checking</ns8:title>
769 <ns8:actions>
770 <ns8:test_action_ref>ocil:ssg-firefox_preferences-search_update_action:testaction:1</ns8:test_action_ref>
771 </ns8:actions>
772 </ns8:questionnaire>
773 <ns8:questionnaire id="ocil:ssg-firefox_preferences-autofill_forms_ocil:questionnaire:1">
774 <ns8:title>Disable Autofill Form Assistance</ns8:title>
775 <ns8:actions>
776 <ns8:test_action_ref>ocil:ssg-firefox_preferences-autofill_forms_action:testaction:1</ns8:test_action_ref>
777 </ns8:actions>
778 </ns8:questionnaire>
779 <ns8:questionnaire id="ocil:ssg-firefox_preferences-shell_protocol_ocil:questionnaire:1">
780 <ns8:title>Disable Firefox Access to Shell Protocols</ns8:title>
781 <ns8:actions>
782 <ns8:test_action_ref>ocil:ssg-firefox_preferences-shell_protocol_action:testaction:1</ns8:test_action_ref>
783 </ns8:actions>
784 </ns8:questionnaire>
785 <ns8:questionnaire id="ocil:ssg-firefox_preferences-addons_plugin_updates_ocil:questionnaire:1">
786 <ns8:title>Disable Addons Plugin Updates</ns8:title>
787 <ns8:actions>
788 <ns8:test_action_ref>ocil:ssg-firefox_preferences-addons_plugin_updates_action:testaction:1</ns8:test_action_ref>
789 </ns8:actions>
790 </ns8:questionnaire>
791 <ns8:questionnaire id="ocil:ssg-firefox_preferences-autofill_passwords_ocil:questionnaire:1">
792 <ns8:title>Disable User Ability To Autofill Passwords</ns8:title>
793 <ns8:actions>
794 <ns8:test_action_ref>ocil:ssg-firefox_preferences-autofill_passwords_action:testaction:1</ns8:test_action_ref>
795 </ns8:actions>
796 </ns8:questionnaire>
797 <ns8:questionnaire id="ocil:ssg-firefox_preferences-ssl_version_2_ocil:questionnaire:1">
798 <ns8:title>Disable SSL Version 2.0 in Firefox</ns8:title>
799 <ns8:actions>
800 <ns8:test_action_ref>ocil:ssg-firefox_preferences-ssl_version_2_action:testaction:1</ns8:test_action_ref>
801 </ns8:actions>
802 </ns8:questionnaire>
803 <ns8:questionnaire id="ocil:ssg-firefox_preferences-ssl_protocol_tls_ocil:questionnaire:1">
804 <ns8:title>Enable TLS Usage in Firefox</ns8:title>
805 <ns8:actions>
806 <ns8:test_action_ref>ocil:ssg-firefox_preferences-ssl_protocol_tls_action:testaction:1</ns8:test_action_ref>
807 </ns8:actions>
808 </ns8:questionnaire>
809 <ns8:questionnaire id="ocil:ssg-firefox_preferences-javascript_status_bar_text_ocil:questionnaire:1">
810 <ns8:title>Disable JavaScript's Ability To Modify The Browser Appearance</ns8:title>
811 <ns8:actions>
812 <ns8:test_action_ref>ocil:ssg-firefox_preferences-javascript_status_bar_text_action:testaction:1</ns8:test_action_ref>
813 </ns8:actions>
814 </ns8:questionnaire>
815 <ns8:questionnaire id="ocil:ssg-firefox_preferences-javascript_window_changes_ocil:questionnaire:1">
816 <ns8:title>Disable JavaScript's Raise Or Lower Windows Capability</ns8:title>
817 <ns8:actions>
818 <ns8:test_action_ref>ocil:ssg-firefox_preferences-javascript_window_changes_action:testaction:1</ns8:test_action_ref>
819 </ns8:actions>
820 </ns8:questionnaire>
821 <ns8:questionnaire id="ocil:ssg-firefox_preferences-javascript_status_bar_changes_ocil:questionnaire:1">
822 <ns8:title>Disable JavaScript's Ability To Change The Status Bar</ns8:title>
823 <ns8:actions>
824 <ns8:test_action_ref>ocil:ssg-firefox_preferences-javascript_status_bar_changes_action:testaction:1</ns8:test_action_ref>
825 </ns8:actions>
826 </ns8:questionnaire>
827 <ns8:questionnaire id="ocil:ssg-firefox_preferences-auto-update_of_firefox_ocil:questionnaire:1">
828 <ns8:title>Disable Firefox Auto-Update Capability</ns8:title>
829 <ns8:actions>
830 <ns8:test_action_ref>ocil:ssg-firefox_preferences-auto-update_of_firefox_action:testaction:1</ns8:test_action_ref>
831 </ns8:actions>
832 </ns8:questionnaire>
833 <ns8:questionnaire id="ocil:ssg-firefox_preferences-pop-up_windows_ocil:questionnaire:1">
834 <ns8:title>Enable Firefox Pop-up Blocker</ns8:title>
835 <ns8:actions>
836 <ns8:test_action_ref>ocil:ssg-firefox_preferences-pop-up_windows_action:testaction:1</ns8:test_action_ref>
837 </ns8:actions>
838 </ns8:questionnaire>
839 <ns8:questionnaire id="ocil:ssg-firefox_preferences-lock_settings_config_file_ocil:questionnaire:1">
840 <ns8:title>Set Firefox Configuration File Location</ns8:title>
841 <ns8:actions>
842 <ns8:test_action_ref>ocil:ssg-firefox_preferences-lock_settings_config_file_action:testaction:1</ns8:test_action_ref>
843 </ns8:actions>
844 </ns8:questionnaire>
845 <ns8:questionnaire id="ocil:ssg-firefox_preferences-lock_settings_obscure_ocil:questionnaire:1">
846 <ns8:title>Disable Firefox Configuration File ROT-13 Encoding</ns8:title>
847 <ns8:actions>
848 <ns8:test_action_ref>ocil:ssg-firefox_preferences-lock_settings_obscure_action:testaction:1</ns8:test_action_ref>
849 </ns8:actions>
850 </ns8:questionnaire>
851 <ns8:questionnaire id="ocil:ssg-firefox_preferences-enable_ca_trust_ocil:questionnaire:1">
852 <ns8:title>Enable Shared System Certificates</ns8:title>
853 <ns8:actions>
854 <ns8:test_action_ref>ocil:ssg-firefox_preferences-enable_ca_trust_action:testaction:1</ns8:test_action_ref>
855 </ns8:actions>
856 </ns8:questionnaire>
857 <ns8:questionnaire id="ocil:ssg-firefox_preferences-dod_root_certificate_installed_ocil:questionnaire:1">
858 <ns8:title>The DoD Root Certificate Exists</ns8:title>
859 <ns8:actions>
860 <ns8:test_action_ref>ocil:ssg-firefox_preferences-dod_root_certificate_installed_action:testaction:1</ns8:test_action_ref>
861 </ns8:actions>
862 </ns8:questionnaire>
863 <ns8:questionnaire id="ocil:ssg-firefox_preferences-cookies_clear_ocil:questionnaire:1">
864 <ns8:title>Clear Data When Firefox Closes</ns8:title>
865 <ns8:actions>
866 <ns8:test_action_ref>ocil:ssg-firefox_preferences-cookies_clear_action:testaction:1</ns8:test_action_ref>
867 </ns8:actions>
868 </ns8:questionnaire>
869 <ns8:questionnaire id="ocil:ssg-firefox_preferences-cookies_user_notice_ocil:questionnaire:1">
870 <ns8:title>Disable User Prompt When Data Is Cleared</ns8:title>
871 <ns8:actions>
872 <ns8:test_action_ref>ocil:ssg-firefox_preferences-cookies_user_notice_action:testaction:1</ns8:test_action_ref>
873 </ns8:actions>
874 </ns8:questionnaire>
875 </ns8:questionnaires>
876 <ns8:test_actions>
877 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-home_page_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-home_page_question:question:1">
878 <ns8:when_true>
879 <ns8:result>PASS</ns8:result>
880 </ns8:when_true>
881 <ns8:when_false>
882 <ns8:result>FAIL</ns8:result>
883 </ns8:when_false>
884 </ns8:boolean_question_test_action>
885 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-non-secure_page_warning_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-non-secure_page_warning_question:question:1">
886 <ns8:when_true>
887 <ns8:result>PASS</ns8:result>
888 </ns8:when_true>
889 <ns8:when_false>
890 <ns8:result>FAIL</ns8:result>
891 </ns8:when_false>
892 </ns8:boolean_question_test_action>
893 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-ssl_version_3_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-ssl_version_3_question:question:1">
894 <ns8:when_true>
895 <ns8:result>PASS</ns8:result>
896 </ns8:when_true>
897 <ns8:when_false>
898 <ns8:result>FAIL</ns8:result>
899 </ns8:when_false>
900 </ns8:boolean_question_test_action>
901 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-password_store_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-password_store_question:question:1">
902 <ns8:when_true>
903 <ns8:result>PASS</ns8:result>
904 </ns8:when_true>
905 <ns8:when_false>
906 <ns8:result>FAIL</ns8:result>
907 </ns8:when_false>
908 </ns8:boolean_question_test_action>
909 <ns8:boolean_question_test_action id="ocil:ssg-installed_firefox_version_supported_action:testaction:1" question_ref="ocil:ssg-installed_firefox_version_supported_question:question:1">
910 <ns8:when_true>
911 <ns8:result>PASS</ns8:result>
912 </ns8:when_true>
913 <ns8:when_false>
914 <ns8:result>FAIL</ns8:result>
915 </ns8:when_false>
916 </ns8:boolean_question_test_action>
917 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-auto-download_actions_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-auto-download_actions_question:question:1">
918 <ns8:when_true>
919 <ns8:result>PASS</ns8:result>
920 </ns8:when_true>
921 <ns8:when_false>
922 <ns8:result>FAIL</ns8:result>
923 </ns8:when_false>
924 </ns8:boolean_question_test_action>
925 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-javascript_context_menus_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-javascript_context_menus_question:question:1">
926 <ns8:when_true>
927 <ns8:result>PASS</ns8:result>
928 </ns8:when_true>
929 <ns8:when_false>
930 <ns8:result>FAIL</ns8:result>
931 </ns8:when_false>
932 </ns8:boolean_question_test_action>
933 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-open_confirmation_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-open_confirmation_question:question:1">
934 <ns8:when_true>
935 <ns8:result>PASS</ns8:result>
936 </ns8:when_true>
937 <ns8:when_false>
938 <ns8:result>FAIL</ns8:result>
939 </ns8:when_false>
940 </ns8:boolean_question_test_action>
941 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-verification_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-verification_question:question:1">
942 <ns8:when_true>
943 <ns8:result>PASS</ns8:result>
944 </ns8:when_true>
945 <ns8:when_false>
946 <ns8:result>FAIL</ns8:result>
947 </ns8:when_false>
948 </ns8:boolean_question_test_action>
949 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-javascript_window_resizing_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-javascript_window_resizing_question:question:1">
950 <ns8:when_true>
951 <ns8:result>PASS</ns8:result>
952 </ns8:when_true>
953 <ns8:when_false>
954 <ns8:result>FAIL</ns8:result>
955 </ns8:when_false>
956 </ns8:boolean_question_test_action>
957 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-search_update_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-search_update_question:question:1">
958 <ns8:when_true>
959 <ns8:result>PASS</ns8:result>
960 </ns8:when_true>
961 <ns8:when_false>
962 <ns8:result>FAIL</ns8:result>
963 </ns8:when_false>
964 </ns8:boolean_question_test_action>
965 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-autofill_forms_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-autofill_forms_question:question:1">
966 <ns8:when_true>
967 <ns8:result>PASS</ns8:result>
968 </ns8:when_true>
969 <ns8:when_false>
970 <ns8:result>FAIL</ns8:result>
971 </ns8:when_false>
972 </ns8:boolean_question_test_action>
973 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-shell_protocol_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-shell_protocol_question:question:1">
974 <ns8:when_true>
975 <ns8:result>PASS</ns8:result>
976 </ns8:when_true>
977 <ns8:when_false>
978 <ns8:result>FAIL</ns8:result>
979 </ns8:when_false>
980 </ns8:boolean_question_test_action>
981 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-addons_plugin_updates_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-addons_plugin_updates_question:question:1">
982 <ns8:when_true>
983 <ns8:result>PASS</ns8:result>
984 </ns8:when_true>
985 <ns8:when_false>
986 <ns8:result>FAIL</ns8:result>
987 </ns8:when_false>
988 </ns8:boolean_question_test_action>
989 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-autofill_passwords_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-autofill_passwords_question:question:1">
990 <ns8:when_true>
991 <ns8:result>PASS</ns8:result>
992 </ns8:when_true>
993 <ns8:when_false>
994 <ns8:result>FAIL</ns8:result>
995 </ns8:when_false>
996 </ns8:boolean_question_test_action>
997 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-ssl_version_2_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-ssl_version_2_question:question:1">
998 <ns8:when_true>
999 <ns8:result>PASS</ns8:result>
1000 </ns8:when_true>
1001 <ns8:when_false>
1002 <ns8:result>FAIL</ns8:result>
1003 </ns8:when_false>
1004 </ns8:boolean_question_test_action>
1005 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-ssl_protocol_tls_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-ssl_protocol_tls_question:question:1">
1006 <ns8:when_true>
1007 <ns8:result>PASS</ns8:result>
1008 </ns8:when_true>
1009 <ns8:when_false>
1010 <ns8:result>FAIL</ns8:result>
1011 </ns8:when_false>
1012 </ns8:boolean_question_test_action>
1013 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-javascript_status_bar_text_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-javascript_status_bar_text_question:question:1">
1014 <ns8:when_true>
1015 <ns8:result>PASS</ns8:result>
1016 </ns8:when_true>
1017 <ns8:when_false>
1018 <ns8:result>FAIL</ns8:result>
1019 </ns8:when_false>
1020 </ns8:boolean_question_test_action>
1021 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-javascript_window_changes_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-javascript_window_changes_question:question:1">
1022 <ns8:when_true>
1023 <ns8:result>PASS</ns8:result>
1024 </ns8:when_true>
1025 <ns8:when_false>
1026 <ns8:result>FAIL</ns8:result>
1027 </ns8:when_false>
1028 </ns8:boolean_question_test_action>
1029 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-javascript_status_bar_changes_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-javascript_status_bar_changes_question:question:1">
1030 <ns8:when_true>
1031 <ns8:result>PASS</ns8:result>
1032 </ns8:when_true>
1033 <ns8:when_false>
1034 <ns8:result>FAIL</ns8:result>
1035 </ns8:when_false>
1036 </ns8:boolean_question_test_action>
1037 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-auto-update_of_firefox_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-auto-update_of_firefox_question:question:1">
1038 <ns8:when_true>
1039 <ns8:result>PASS</ns8:result>
1040 </ns8:when_true>
1041 <ns8:when_false>
1042 <ns8:result>FAIL</ns8:result>
1043 </ns8:when_false>
1044 </ns8:boolean_question_test_action>
1045 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-pop-up_windows_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-pop-up_windows_question:question:1">
1046 <ns8:when_true>
1047 <ns8:result>PASS</ns8:result>
1048 </ns8:when_true>
1049 <ns8:when_false>
1050 <ns8:result>FAIL</ns8:result>
1051 </ns8:when_false>
1052 </ns8:boolean_question_test_action>
1053 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-lock_settings_config_file_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-lock_settings_config_file_question:question:1">
1054 <ns8:when_true>
1055 <ns8:result>PASS</ns8:result>
1056 </ns8:when_true>
1057 <ns8:when_false>
1058 <ns8:result>FAIL</ns8:result>
1059 </ns8:when_false>
1060 </ns8:boolean_question_test_action>
1061 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-lock_settings_obscure_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-lock_settings_obscure_question:question:1">
1062 <ns8:when_true>
1063 <ns8:result>PASS</ns8:result>
1064 </ns8:when_true>
1065 <ns8:when_false>
1066 <ns8:result>FAIL</ns8:result>
1067 </ns8:when_false>
1068 </ns8:boolean_question_test_action>
1069 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-enable_ca_trust_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-enable_ca_trust_question:question:1">
1070 <ns8:when_true>
1071 <ns8:result>PASS</ns8:result>
1072 </ns8:when_true>
1073 <ns8:when_false>
1074 <ns8:result>FAIL</ns8:result>
1075 </ns8:when_false>
1076 </ns8:boolean_question_test_action>
1077 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-dod_root_certificate_installed_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-dod_root_certificate_installed_question:question:1">
1078 <ns8:when_true>
1079 <ns8:result>PASS</ns8:result>
1080 </ns8:when_true>
1081 <ns8:when_false>
1082 <ns8:result>FAIL</ns8:result>
1083 </ns8:when_false>
1084 </ns8:boolean_question_test_action>
1085 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-cookies_clear_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-cookies_clear_question:question:1">
1086 <ns8:when_true>
1087 <ns8:result>PASS</ns8:result>
1088 </ns8:when_true>
1089 <ns8:when_false>
1090 <ns8:result>FAIL</ns8:result>
1091 </ns8:when_false>
1092 </ns8:boolean_question_test_action>
1093 <ns8:boolean_question_test_action id="ocil:ssg-firefox_preferences-cookies_user_notice_action:testaction:1" question_ref="ocil:ssg-firefox_preferences-cookies_user_notice_question:question:1">
1094 <ns8:when_true>
1095 <ns8:result>PASS</ns8:result>
1096 </ns8:when_true>
1097 <ns8:when_false>
1098 <ns8:result>FAIL</ns8:result>
1099 </ns8:when_false>
1100 </ns8:boolean_question_test_action>
1101 </ns8:test_actions>
1102 <ns8:questions>
1103 <ns8:boolean_question id="ocil:ssg-firefox_preferences-home_page_question:question:1">
1104 <ns8:question_text>To verify that default home page is set,
1105 run the following command:
1106 $ grep 'browser.startup.homepage' FIREFOX_INSTALL_DIR/*.cfg
1107 The output should return:
1108 lockPref("browser.startup.homepage", "");
1109 Is it the case that it is not configured?
1110 </ns8:question_text>
1111 </ns8:boolean_question>
1112 <ns8:boolean_question id="ocil:ssg-firefox_preferences-non-secure_page_warning_question:question:1">
1113 <ns8:question_text>To verify that non-secure page warnings are enabled,
1114 run the following command:
1115 $ grep 'security.warn_leaving_secure' FIREFOX_INSTALL_DIR/*.cfg
1116 The output should return:
1117 lockPref("security.warn_leaving_secure", "true");
1118 Is it the case that it is not enabled?
1119 </ns8:question_text>
1120 </ns8:boolean_question>
1121 <ns8:boolean_question id="ocil:ssg-firefox_preferences-ssl_version_3_question:question:1">
1122 <ns8:question_text>To verify that SSL version 3 is disabled,
1123 run the following command:
1124 $ grep 'security.enable_ssl3' FIREFOX_INSTALL_DIR/*.cfg
1125 The output should return:
1126 lockPref("security.enable_ssl3", "false");
1127 Is it the case that it is not enabled?
1128 </ns8:question_text>
1129 </ns8:boolean_question>
1130 <ns8:boolean_question id="ocil:ssg-firefox_preferences-password_store_question:question:1">
1131 <ns8:question_text>To verify that the password store is disabled,
1132 run the following command:
1133 $ grep 'signon.rememberSignons' FIREFOX_INSTALL_DIR/*.cfg
1134 The output should return:
1135 lockPref("signon.rememberSignons", "false");
1136 Is it the case that it is not disabled?
1137 </ns8:question_text>
1138 </ns8:boolean_question>
1139 <ns8:boolean_question id="ocil:ssg-installed_firefox_version_supported_question:question:1">
1140 <ns8:question_text>If the system is joined to the Red Hat Network, a Red Hat Satellite Server, or
1141 a yum server which provides updates, invoking the following command will
1142 indicate if updates are available:
1143 $ sudo yum check-update
1144 If the system is not configured to update from one of these sources,
1145 run the following command to list when each package was last updated:
1146 $ rpm -qa -last
1147 Compare this to Red Hat Security Advisories (RHSA) listed at
1148
1149 https://access.redhat.com/security/updates/active/https://access.redhat.com/security/updates/active/
1150 to determine if the system is missing applicable updates.
1151 Is it the case that it is not updated?
1152 </ns8:question_text>
1153 </ns8:boolean_question>
1154 <ns8:boolean_question id="ocil:ssg-firefox_preferences-auto-download_actions_question:question:1">
1155 <ns8:question_text>To verify that user interaction is required for the downloading of MIME types,
1156 run the following command:
1157 $ grep 'browser.helperApps.alwaysAsk.force' FIREFOX_INSTALL_DIR/*.cfg
1158 The output should return:
1159 lockPref("browser.helperApps.alwaysAsk.force", "true");
1160 Is it the case that it is not disabled?
1161 </ns8:question_text>
1162 </ns8:boolean_question>
1163 <ns8:boolean_question id="ocil:ssg-firefox_preferences-javascript_context_menus_question:question:1">
1164 <ns8:question_text>To verify that JavaScript cannot change context menus,
1165 run the following command:
1166 $ grep 'dom.event.contextmenu.enabled' FIREFOX_INSTALL_DIR/*.cfg
1167 The output should return:
1168 lockPref("dom.event.contextmenu.enabled", "false");
1169 Is it the case that it is not disabled?
1170 </ns8:question_text>
1171 </ns8:boolean_question>
1172 <ns8:boolean_question id="ocil:ssg-firefox_preferences-open_confirmation_question:question:1">
1173 <ns8:question_text>To verify that downloading and opening file confirmation is enabled,
1174 run the following command:
1175 $ grep 'plugin.disable_full_page_plugin_for_types' FIREFOX_INSTALL_DIR/*.cfg
1176 The output should return:
1177 lockPref("plugin.disable_full_page_plugin_for_types", "");
1178 Is it the case that it is not set or application listing is incorrect?
1179 </ns8:question_text>
1180 </ns8:boolean_question>
1181 <ns8:boolean_question id="ocil:ssg-firefox_preferences-verification_question:question:1">
1182 <ns8:question_text>To verify that certificate verification is enabled, run the following command:
1183 $ grep 'security.default_personal_cert' FIREFOX_INSTALL_DIR/*.cfg
1184 The output should return:
1185 lockPref("security.default_personal_cert", "Ask Every Time");
1186 Is it the case that it is not enabled?
1187 </ns8:question_text>
1188 </ns8:boolean_question>
1189 <ns8:boolean_question id="ocil:ssg-firefox_preferences-javascript_window_resizing_question:question:1">
1190 <ns8:question_text>To verify that JavaScript cannot change windows sizing,
1191 run the following command:
1192 $ grep 'dom.disable_window_move_resize' FIREFOX_INSTALL_DIR/*.cfg
1193 The output should return:
1194 lockPref("dom.disable_window_move_resize", "true");
1195 Is it the case that it is not disabled?
1196 </ns8:question_text>
1197 </ns8:boolean_question>
1198 <ns8:boolean_question id="ocil:ssg-firefox_preferences-search_update_question:question:1">
1199 <ns8:question_text>To verify that search plugins cannot automatically update,
1200 run the following command:
1201 $ grep 'browser.search.update' FIREFOX_INSTALL_DIR/*.cfg
1202 The output should return:
1203 lockPref("browser.search.update", "false");
1204 Is it the case that it is not disabled?
1205 </ns8:question_text>
1206 </ns8:boolean_question>
1207 <ns8:boolean_question id="ocil:ssg-firefox_preferences-autofill_forms_question:question:1">
1208 <ns8:question_text>To verify that Autofill Form Assistance is disabled,
1209 run the following command:
1210 $ grep 'browser.formfill.enable' FIREFOX_INSTALL_DIR/*.cfg
1211 The output should return:
1212 lockPref("browser.formfill.enable", false);
1213 Is it the case that it is not disabled?
1214 </ns8:question_text>
1215 </ns8:boolean_question>
1216 <ns8:boolean_question id="ocil:ssg-firefox_preferences-shell_protocol_question:question:1">
1217 <ns8:question_text>To verify that the shell protocol access is disabled,
1218 run the following command:
1219 $ grep 'network.protocol-handler.external.shell' FIREFOX_INSTALL_DIR/*.cfg
1220 The output should return:
1221 lockPref("network.protocol-handler.external.shell", "false");
1222 Is it the case that it is not disabled?
1223 </ns8:question_text>
1224 </ns8:boolean_question>
1225 <ns8:boolean_question id="ocil:ssg-firefox_preferences-addons_plugin_updates_question:question:1">
1226 <ns8:question_text>To verify that add-ons and plugins cannot automatically update,
1227 run the following command:
1228 $ grep 'extensions.update.enabled' FIREFOX_INSTALL_DIR/*.cfg
1229 The output should return:
1230 lockPref("extensions.update.enabled", false);
1231 Is it the case that it is not disabled?
1232 </ns8:question_text>
1233 </ns8:boolean_question>
1234 <ns8:boolean_question id="ocil:ssg-firefox_preferences-autofill_passwords_question:question:1">
1235 <ns8:question_text>To verify that password autofill is disabled,
1236 run the following command:
1237 $ grep 'signon.prefillForms' FIREFOX_INSTALL_DIR/*.cfg
1238 The output should return:
1239 lockPref("signon.prefillForms", false);
1240 Is it the case that it is not disabled?
1241 </ns8:question_text>
1242 </ns8:boolean_question>
1243 <ns8:boolean_question id="ocil:ssg-firefox_preferences-ssl_version_2_question:question:1">
1244 <ns8:question_text>To verify that SSL version 2.0 is disabled,
1245 run the following command:
1246 $ grep 'security.enable_ssl2' FIREFOX_INSTALL_DIR/*.cfg
1247 The output should return:
1248 lockPref("security.enable_ssl2", "false");
1249 Is it the case that it is not disabled?
1250 </ns8:question_text>
1251 </ns8:boolean_question>
1252 <ns8:boolean_question id="ocil:ssg-firefox_preferences-ssl_protocol_tls_question:question:1">
1253 <ns8:question_text>To verify that TLS is enabled, run the following command:
1254 $ grep 'security.enable_tls' FIREFOX_INSTALL_DIR/*.cfg
1255 The output should return:
1256 lockPref("security.enable_tls", "true");
1257 Is it the case that it is not enabled?
1258 </ns8:question_text>
1259 </ns8:boolean_question>
1260 <ns8:boolean_question id="ocil:ssg-firefox_preferences-javascript_status_bar_text_question:question:1">
1261 <ns8:question_text>To verify that JavaScript cannot change the browser appearance,
1262 run the following command:
1263 $ grep 'dom.disable_window_open_feature.status' FIREFOX_INSTALL_DIR/*.cfg
1264 The output should return:
1265 lockPref("dom.disable_window_open_feature.status", "true");
1266 Is it the case that it is not disabled?
1267 </ns8:question_text>
1268 </ns8:boolean_question>
1269 <ns8:boolean_question id="ocil:ssg-firefox_preferences-javascript_window_changes_question:question:1">
1270 <ns8:question_text>To verify that JavaScript cannot change windows sizing,
1271 run the following command:
1272 $ grep 'dom.disable_window_flip' FIREFOX_INSTALL_DIR/*.cfg
1273 The output should return:
1274 lockPref("dom.disable_window_flip", "true");
1275 Is it the case that it is not disabled?
1276 </ns8:question_text>
1277 </ns8:boolean_question>
1278 <ns8:boolean_question id="ocil:ssg-firefox_preferences-javascript_status_bar_changes_question:question:1">
1279 <ns8:question_text>To verify that JavaScript cannot change the status bar,
1280 run the following command:
1281 $ grep 'dom.disable_window_status_change' FIREFOX_INSTALL_DIR/*.cfg
1282 The output should return:
1283 lockPref("dom.disable_window_status_change", "true");
1284 Is it the case that it is not disabled?
1285 </ns8:question_text>
1286 </ns8:boolean_question>
1287 <ns8:boolean_question id="ocil:ssg-firefox_preferences-auto-update_of_firefox_question:question:1">
1288 <ns8:question_text>To verify that Firefox cannot auto-update,
1289 run the following command:
1290 $ grep 'app.update.enable' FIREFOX_INSTALL_DIR/*.cfg
1291 The output should return:
1292 lockPref("app.update.enable", false);
1293 Is it the case that it is not disabled?
1294 </ns8:question_text>
1295 </ns8:boolean_question>
1296 <ns8:boolean_question id="ocil:ssg-firefox_preferences-pop-up_windows_question:question:1">
1297 <ns8:question_text>To verify that pop-up blocker is enabled,
1298 run the following command:
1299 $ grep 'dom.disable_window_open_feature.status' FIREFOX_INSTALL_DIR/*.cfg
1300 The output should return:
1301 lockPref("dom.disable_window_open_feature.status", "true");
1302 Is it the case that it is not enabled?
1303 </ns8:question_text>
1304 </ns8:boolean_question>
1305 <ns8:boolean_question id="ocil:ssg-firefox_preferences-lock_settings_config_file_question:question:1">
1306 <ns8:question_text>To verify that configuration filename is set, run the following command:
1307 $ grep 'filename' FIREFOX_INSTALL_DIR/defaults/preferences/*.js
1308 The output should return something similar to:
1309 pref("general.config.filename", "mozilla.cfg");
1310 Is it the case that users can change mandatory settings?
1311 </ns8:question_text>
1312 </ns8:boolean_question>
1313 <ns8:boolean_question id="ocil:ssg-firefox_preferences-lock_settings_obscure_question:question:1">
1314 <ns8:question_text>To verify that ROT-13 encoding is disabled, run the following command:
1315 $ grep 'obscure_value' FIREFOX_INSTALL_DIR/defaults/preferences/*.js
1316 The output should return something similar to:
1317 pref("general.config.obscure_value", 0);
1318 Is it the case that users can change mandatory settings?
1319 </ns8:question_text>
1320 </ns8:boolean_question>
1321 <ns8:boolean_question id="ocil:ssg-firefox_preferences-enable_ca_trust_question:question:1">
1322 <ns8:question_text>To verify that the central system cerificate authority store is enabled,
1323 run the following command:
1324 $ ls -l /etc/alternatives/libnssckbi.so.x86_64
1325 The output should return something similar to:
1326 lrwxrwxrwx. 1 root root 34 Apr 30 09:19 /etc/alternatives/libnssckbi.so.x86_64 -&gt; /usr/lib64/pkcs11/p11-kit-trust.so
1327 Is it the case that it is not enabled?
1328 </ns8:question_text>
1329 </ns8:boolean_question>
1330 <ns8:boolean_question id="ocil:ssg-firefox_preferences-dod_root_certificate_installed_question:question:1">
1331 <ns8:question_text>To verify that the DoD root certificate is installed,
1332 list all certificates in /etc/pki/ca-trust/source/anchors
1333 and compare them to the DoD root certificate. If there is a match
1334 to the DoD root certificate, then the DoD root certificate is
1335 installed.
1336 Is it the case that it is not installed?
1337 </ns8:question_text>
1338 </ns8:boolean_question>
1339 <ns8:boolean_question id="ocil:ssg-firefox_preferences-cookies_clear_question:question:1">
1340 <ns8:question_text>To verify that Firefox clears data on exit,
1341 run the following command:
1342 $ grep 'privacy.sanitize.sanitizeOnShutdown' FIREFOX_INSTALL_DIR/*.cfg
1343 The output should return:
1344 lockPref("privacy.sanitize.sanitizeOnShutdown", true);
1345 Is it the case that it is not set to clear?
1346 </ns8:question_text>
1347 </ns8:boolean_question>
1348 <ns8:boolean_question id="ocil:ssg-firefox_preferences-cookies_user_notice_question:question:1">
1349 <ns8:question_text>To verify that Firefox does not prompt users about data being cleared,
1350 run the following command:
1351 $ grep 'privacy.sanitize.promptOnSanitize' FIREFOX_INSTALL_DIR/*.cfg
1352 The output should return:
1353 lockPref("privacy.sanitize.promptOnSanitize", false);
1354 Is it the case that it is not disabled?
1355 </ns8:question_text>
1356 </ns8:boolean_question>
1357 </ns8:questions>
1358 </ns8:ocil>
1359 </ns0:component>
1360 <ns0:component id="scap_org.open-scap_comp_ssg-firefox-xccdf-1.2.xml" timestamp="2020-01-16T13:55:38">
1361 <ns9:Benchmark id="xccdf_org.ssgproject.content_benchmark_FIREFOX" resolved="1" style="SCAP_1.2" xml:lang="en-US">
1362 <ns9:status date="2020-01-16">draft</ns9:status>
1363 <ns9:title xml:lang="en-US">Guide to the Secure Configuration of Firefox</ns9:title>
1364 <ns9:description xml:lang="en-US">This guide presents a catalog of security-relevant
1365 configuration settings for Firefox. It is a rendering of
1366 content structured in the eXtensible Configuration Checklist Description Format (XCCDF)
1367 in order to support security automation. The SCAP content is
1368 is available in the <html:code>scap-security-guide</html:code> package which is developed at
1369
1370 <html:a href="https://www.open-scap.org/security-policies/scap-security-guide">https://www.open-scap.org/security-policies/scap-security-guide</html:a>.
1371 <html:br/><html:br/>
1372 Providing system administrators with such guidance informs them how to securely
1373 configure systems under their control in a variety of network roles. Policy
1374 makers and baseline creators can use this catalog of settings, with its
1375 associated references to higher-level security control catalogs, in order to
1376 assist them in security baseline creation. This guide is a <html:em>catalog, not a
1377 checklist</html:em>, and satisfaction of every item is not likely to be possible or
1378 sensible in many operational scenarios. However, the XCCDF format enables
1379 granular selection and adjustment of settings, and their association with OVAL
1380 and OCIL content provides an automated checking capability. Transformations of
1381 this document, and its associated automated checking content, are capable of
1382 providing baselines that meet a diverse set of policy objectives. Some example
1383 XCCDF <html:em>Profiles</html:em>, which are selections of items that form checklists and
1384 can be used as baselines, are available with this guide. They can be
1385 processed, in an automated fashion, with tools that support the Security
1386 Content Automation Protocol (SCAP). The DISA STIG for Firefox,
1387 which provides required settings for US Department of Defense systems, is
1388 one example of a baseline created from this guidance.
1389 </ns9:description>
1390 <ns9:notice id="terms_of_use" xml:lang="en-US">Do not attempt to implement any of the settings in
1391 this guide without first testing them in a non-operational environment. The
1392 creators of this guidance assume no responsibility whatsoever for its use by
1393 other parties, and makes no guarantees, expressed or implied, about its
1394 quality, reliability, or any other characteristic.
1395 </ns9:notice>
1396 <ns9:front-matter xml:lang="en-US">The SCAP Security Guide Project<html:br/>
1397
1398 <html:a href="https://www.open-scap.org/security-policies/scap-security-guide">https://www.open-scap.org/security-policies/scap-security-guide</html:a>
1399 </ns9:front-matter>
1400 <ns9:rear-matter xml:lang="en-US">Red Hat and Red Hat Enterprise Linux are either registered
1401 trademarks or trademarks of Red Hat, Inc. in the United States and other
1402 countries. All other names are registered trademarks or trademarks of their
1403 respective companies.
1404 </ns9:rear-matter>
1405 <ns9:platform idref="cpe:/a:mozilla:firefox"/>
1406 <ns9:version update="https://github.com/OpenSCAP/scap-security-guide/releases/latest">0.1.48</ns9:version>
1407 <ns9:metadata>
1408 <dc:publisher>SCAP Security Guide Project</dc:publisher>
1409 <dc:creator>SCAP Security Guide Project</dc:creator>
1410 <dc:contributor>Frank J Cameron (CAM1244) &lt;[email protected]&gt;</dc:contributor>
1411 <dc:contributor>0x66656c6978 &lt;[email protected]&gt;</dc:contributor>
1412 <dc:contributor>Gabe Alford &lt;[email protected]&gt;</dc:contributor>
1413 <dc:contributor>Firas AlShafei &lt;[email protected]&gt;</dc:contributor>
1414 <dc:contributor>Christopher Anderson &lt;[email protected]&gt;</dc:contributor>
1415 <dc:contributor>angystardust &lt;[email protected]&gt;</dc:contributor>
1416 <dc:contributor>Chuck Atkins &lt;[email protected]&gt;</dc:contributor>
1417 <dc:contributor>Ryan Ballanger &lt;[email protected]&gt;</dc:contributor>
1418 <dc:contributor>Alex Baranowski &lt;[email protected]&gt;</dc:contributor>
1419 <dc:contributor>Molly Jo Bault &lt;[email protected]&gt;</dc:contributor>
1420 <dc:contributor>Gabriel Becker &lt;[email protected]&gt;</dc:contributor>
1421 <dc:contributor>Alexander Bergmann &lt;[email protected]&gt;</dc:contributor>
1422 <dc:contributor>Jose Luis BG &lt;[email protected]&gt;</dc:contributor>
1423 <dc:contributor>Joseph Bisch &lt;[email protected]&gt;</dc:contributor>
1424 <dc:contributor>Jeffrey Blank &lt;[email protected]&gt;</dc:contributor>
1425 <dc:contributor>Olivier Bonhomme &lt;[email protected]&gt;</dc:contributor>
1426 <dc:contributor>Ted Brunell &lt;[email protected]&gt;</dc:contributor>
1427 <dc:contributor>Blake Burkhart &lt;[email protected]&gt;</dc:contributor>
1428 <dc:contributor>Patrick Callahan &lt;[email protected]&gt;</dc:contributor>
1429 <dc:contributor>Nick Carboni &lt;[email protected]&gt;</dc:contributor>
1430 <dc:contributor>James Cassell &lt;[email protected]&gt;</dc:contributor>
1431 <dc:contributor>Frank Caviggia &lt;[email protected]&gt;</dc:contributor>
1432 <dc:contributor>Eric Christensen &lt;[email protected]&gt;</dc:contributor>
1433 <dc:contributor>Jayson Cofell &lt;[email protected]&gt;</dc:contributor>
1434 <dc:contributor>Caleb Cooper &lt;[email protected]&gt;</dc:contributor>
1435 <dc:contributor>Deric Crago &lt;[email protected]&gt;</dc:contributor>
1436 <dc:contributor>Maura Dailey &lt;[email protected]&gt;</dc:contributor>
1437 <dc:contributor>Klaas Demter &lt;[email protected]&gt;</dc:contributor>
1438 <dc:contributor>dhanushkar-wso2 &lt;[email protected]&gt;</dc:contributor>
1439 <dc:contributor>Andrew DiPrinzio &lt;[email protected]&gt;</dc:contributor>
1440 <dc:contributor>dom &lt;[email protected]&gt;</dc:contributor>
1441 <dc:contributor>Jean-Baptiste Donnette &lt;[email protected]&gt;</dc:contributor>
1442 <dc:contributor>drax &lt;[email protected]&gt;</dc:contributor>
1443 <dc:contributor>Sebastian Dunne &lt;[email protected]&gt;</dc:contributor>
1444 <dc:contributor>Greg Elin &lt;[email protected]&gt;</dc:contributor>
1445 <dc:contributor>Alexis Facques &lt;[email protected]&gt;</dc:contributor>
1446 <dc:contributor>Leah Fisher &lt;[email protected]&gt;</dc:contributor>
1447 <dc:contributor>Alijohn Ghassemlouei &lt;[email protected]&gt;</dc:contributor>
1448 <dc:contributor>ghylock &lt;[email protected]&gt;</dc:contributor>
1449 <dc:contributor>Andrew Gilmore &lt;[email protected]&gt;</dc:contributor>
1450 <dc:contributor>Joshua Glemza &lt;[email protected]&gt;</dc:contributor>
1451 <dc:contributor>Loren Gordon &lt;[email protected]&gt;</dc:contributor>
1452 <dc:contributor>Patrik Greco &lt;[email protected]&gt;</dc:contributor>
1453 <dc:contributor>Steve Grubb &lt;[email protected]&gt;</dc:contributor>
1454 <dc:contributor>Marek Haicman &lt;[email protected]&gt;</dc:contributor>
1455 <dc:contributor>Rebekah Hayes &lt;[email protected]&gt;</dc:contributor>
1456 <dc:contributor>Trey Henefield &lt;[email protected]&gt;</dc:contributor>
1457 <dc:contributor>Henning Henkel &lt;[email protected]&gt;</dc:contributor>
1458 <dc:contributor>hex2a &lt;[email protected]&gt;</dc:contributor>
1459 <dc:contributor>John Hooks &lt;[email protected]&gt;</dc:contributor>
1460 <dc:contributor>Jakub Hrozek &lt;[email protected]&gt;</dc:contributor>
1461 <dc:contributor>De Huo &lt;[email protected]&gt;</dc:contributor>
1462 <dc:contributor>Robin Price II &lt;[email protected]&gt;</dc:contributor>
1463 <dc:contributor>Yasir Imam &lt;[email protected]&gt;</dc:contributor>
1464 <dc:contributor>Jiri Jaburek &lt;[email protected]&gt;</dc:contributor>
1465 <dc:contributor>Keith Jackson &lt;[email protected]&gt;</dc:contributor>
1466 <dc:contributor>Jeremiah Jahn &lt;[email protected]&gt;</dc:contributor>
1467 <dc:contributor>Stephan Joerrens &lt;[email protected]&gt;</dc:contributor>
1468 <dc:contributor>Jono &lt;[email protected]&gt;</dc:contributor>
1469 <dc:contributor>Kai Kang &lt;[email protected]&gt;</dc:contributor>
1470 <dc:contributor>Charles Kernstock &lt;[email protected]&gt;</dc:contributor>
1471 <dc:contributor>Yuli Khodorkovskiy &lt;[email protected]&gt;</dc:contributor>
1472 <dc:contributor>Nathan Kinder &lt;[email protected]&gt;</dc:contributor>
1473 <dc:contributor>Lee Kinser &lt;[email protected]&gt;</dc:contributor>
1474 <dc:contributor>Evgeny Kolesnikov &lt;[email protected]&gt;</dc:contributor>
1475 <dc:contributor>Peter 'Pessoft' Kol&#xED;nek &lt;[email protected]&gt;</dc:contributor>
1476 <dc:contributor>Luke Kordell &lt;[email protected]&gt;</dc:contributor>
1477 <dc:contributor>Malte Kraus &lt;[email protected]&gt;</dc:contributor>
1478 <dc:contributor>kspargur &lt;[email protected]&gt;</dc:contributor>
1479 <dc:contributor>Amit Kumar &lt;[email protected]&gt;</dc:contributor>
1480 <dc:contributor>Fen Labalme &lt;[email protected]&gt;</dc:contributor>
1481 <dc:contributor>Ian Lee &lt;[email protected]&gt;</dc:contributor>
1482 <dc:contributor>Jarrett Lee &lt;[email protected]&gt;</dc:contributor>
1483 <dc:contributor>Jan Lieskovsky &lt;[email protected]&gt;</dc:contributor>
1484 <dc:contributor>&#x160;imon Luka&#x161;&#xED;k &lt;[email protected]&gt;</dc:contributor>
1485 <dc:contributor>Milan Lysonek &lt;[email protected]&gt;</dc:contributor>
1486 <dc:contributor>Fredrik Lys&#xE9;n &lt;[email protected]&gt;</dc:contributor>
1487 <dc:contributor>Matus Marhefka &lt;[email protected]&gt;</dc:contributor>
1488 <dc:contributor>Jamie Lorwey Martin &lt;[email protected]&gt;</dc:contributor>
1489 <dc:contributor>Robert McAllister &lt;[email protected]&gt;</dc:contributor>
1490 <dc:contributor>Michael McConachie &lt;[email protected]&gt;</dc:contributor>
1491 <dc:contributor>Khary Mendez &lt;[email protected]&gt;</dc:contributor>
1492 <dc:contributor>Rodney Mercer &lt;[email protected]&gt;</dc:contributor>
1493 <dc:contributor>Matt Micene &lt;[email protected]&gt;</dc:contributor>
1494 <dc:contributor>Brian Millett &lt;[email protected]&gt;</dc:contributor>
1495 <dc:contributor>Mixer9 &lt;[email protected]&gt;</dc:contributor>
1496 <dc:contributor>mmosel &lt;[email protected]&gt;</dc:contributor>
1497 <dc:contributor>Zbynek Moravec &lt;[email protected]&gt;</dc:contributor>
1498 <dc:contributor>Kazuo Moriwaka &lt;[email protected]&gt;</dc:contributor>
1499 <dc:contributor>Michael Moseley &lt;[email protected]&gt;</dc:contributor>
1500 <dc:contributor>Joe Nall &lt;[email protected]&gt;</dc:contributor>
1501 <dc:contributor>Neiloy &lt;[email protected]&gt;</dc:contributor>
1502 <dc:contributor>Axel Nennker &lt;[email protected]&gt;</dc:contributor>
1503 <dc:contributor>Michele Newman &lt;[email protected]&gt;</dc:contributor>
1504 <dc:contributor>Sean O'Keeffe &lt;[email protected]&gt;</dc:contributor>
1505 <dc:contributor>Ilya Okomin &lt;[email protected]&gt;</dc:contributor>
1506 <dc:contributor>Kaustubh Padegaonkar &lt;[email protected]&gt;</dc:contributor>
1507 <dc:contributor>Michael Palmiotto &lt;[email protected]&gt;</dc:contributor>
1508 <dc:contributor>Max R.D. Parmer &lt;[email protected]&gt;</dc:contributor>
1509 <dc:contributor>Jan Pazdziora &lt;[email protected]&gt;</dc:contributor>
1510 <dc:contributor>pcactr &lt;[email protected]&gt;</dc:contributor>
1511 <dc:contributor>Kenneth Peeples &lt;[email protected]&gt;</dc:contributor>
1512 <dc:contributor>Nathan Peters &lt;[email protected]&gt;</dc:contributor>
1513 <dc:contributor>Frank Lin PIAT &lt;[email protected]&gt;</dc:contributor>
1514 <dc:contributor>Stefan Pietsch &lt;[email protected]&gt;</dc:contributor>
1515 <dc:contributor>Vojtech Polasek &lt;[email protected]&gt;</dc:contributor>
1516 <dc:contributor>Martin Preisler &lt;[email protected]&gt;</dc:contributor>
1517 <dc:contributor>Wesley Ceraso Prudencio &lt;[email protected]&gt;</dc:contributor>
1518 <dc:contributor>Raphael Sanchez Prudencio &lt;[email protected]&gt;</dc:contributor>
1519 <dc:contributor>T.O. Radzy Radzykewycz &lt;[email protected]&gt;</dc:contributor>
1520 <dc:contributor>Kenyon Ralph &lt;[email protected]&gt;</dc:contributor>
1521 <dc:contributor>Mike Ralph &lt;[email protected]&gt;</dc:contributor>
1522 <dc:contributor>Rick Renshaw &lt;[email protected]&gt;</dc:contributor>
1523 <dc:contributor>Chris Reynolds &lt;[email protected]&gt;</dc:contributor>
1524 <dc:contributor>rhayes &lt;[email protected]&gt;</dc:contributor>
1525 <dc:contributor>Pat Riehecky &lt;[email protected]&gt;</dc:contributor>
1526 <dc:contributor>rlucente-se-jboss &lt;[email protected]&gt;</dc:contributor>
1527 <dc:contributor>Jesse Roland &lt;[email protected]&gt;</dc:contributor>
1528 <dc:contributor>Joshua Roys &lt;[email protected]&gt;</dc:contributor>
1529 <dc:contributor>rrenshaw &lt;[email protected]&gt;</dc:contributor>
1530 <dc:contributor>Chris Ruffalo &lt;[email protected]&gt;</dc:contributor>
1531 <dc:contributor>Ray Shaw (Cont ARL/CISD) rvshaw &lt;[email protected]&gt;</dc:contributor>
1532 <dc:contributor>Willy Santos &lt;[email protected]&gt;</dc:contributor>
1533 <dc:contributor>Gautam Satish &lt;[email protected]&gt;</dc:contributor>
1534 <dc:contributor>Watson Sato &lt;[email protected]&gt;</dc:contributor>
1535 <dc:contributor>Satoru SATOH &lt;[email protected]&gt;</dc:contributor>
1536 <dc:contributor>Alexander Scheel &lt;[email protected]&gt;</dc:contributor>
1537 <dc:contributor>Bryan Schneiders &lt;[email protected]&gt;</dc:contributor>
1538 <dc:contributor>shaneboulden &lt;[email protected]&gt;</dc:contributor>
1539 <dc:contributor>Spencer Shimko &lt;[email protected]&gt;</dc:contributor>
1540 <dc:contributor>Mark Shoger &lt;[email protected]&gt;</dc:contributor>
1541 <dc:contributor>Thomas Sj&#xF6;gren &lt;[email protected]&gt;</dc:contributor>
1542 <dc:contributor>Francisco Slavin &lt;[email protected]&gt;</dc:contributor>
1543 <dc:contributor>David Smith &lt;[email protected]&gt;</dc:contributor>
1544 <dc:contributor>Kevin Spargur &lt;[email protected]&gt;</dc:contributor>
1545 <dc:contributor>Kenneth Stailey &lt;[email protected]&gt;</dc:contributor>
1546 <dc:contributor>Leland Steinke &lt;[email protected]&gt;</dc:contributor>
1547 <dc:contributor>Justin Stephenson &lt;[email protected]&gt;</dc:contributor>
1548 <dc:contributor>Brian Stinson &lt;[email protected]&gt;</dc:contributor>
1549 <dc:contributor>Jake Stookey &lt;[email protected]&gt;</dc:contributor>
1550 <dc:contributor>Jonathan Sturges &lt;[email protected]&gt;</dc:contributor>
1551 <dc:contributor>Philippe Thierry &lt;[email protected]&gt;</dc:contributor>
1552 <dc:contributor>Derek Thurston &lt;[email protected]&gt;</dc:contributor>
1553 <dc:contributor>tianzhenjia &lt;[email protected]&gt;</dc:contributor>
1554 <dc:contributor>Paul Tittle &lt;[email protected]&gt;</dc:contributor>
1555 <dc:contributor>tomas.hudik &lt;[email protected]&gt;</dc:contributor>
1556 <dc:contributor>Jeb Trayer &lt;[email protected]&gt;</dc:contributor>
1557 <dc:contributor>Mat&#x11B;j T&#xFD;&#x10D; &lt;[email protected]&gt;</dc:contributor>
1558 <dc:contributor>VadimDor &lt;[email protected]&gt;</dc:contributor>
1559 <dc:contributor>Shawn Wells &lt;[email protected]&gt;</dc:contributor>
1560 <dc:contributor>Daniel E. White &lt;[email protected]&gt;</dc:contributor>
1561 <dc:contributor>Roy Williams &lt;[email protected]&gt;</dc:contributor>
1562 <dc:contributor>Rob Wilmoth &lt;[email protected]&gt;</dc:contributor>
1563 <dc:contributor>Lucas Yamanishi &lt;[email protected]&gt;</dc:contributor>
1564 <dc:contributor>Xirui Yang &lt;[email protected]&gt;</dc:contributor>
1565 <dc:contributor>Kevin Zimmerman &lt;[email protected]&gt;</dc:contributor>
1566 <dc:contributor>Jan &#x10C;ern&#xFD; &lt;[email protected]&gt;</dc:contributor>
1567 <dc:contributor>Michal &#x160;ruba&#x159; &lt;[email protected]&gt;</dc:contributor>
1568 <dc:source>https://github.com/OpenSCAP/scap-security-guide/releases/latest</dc:source>
1569 </ns9:metadata>
1570 <ns9:model system="urn:xccdf:scoring:default"/>
1571 <ns9:Profile id="xccdf_org.ssgproject.content_profile_stig">
1572 <ns9:title override="true" xml:lang="en-US">Upstream Firefox STIG</ns9:title>
1573 <ns9:description override="true" xml:lang="en-US">This profile is developed under the DoD consensus model and DISA FSO Vendor STIG process,
1574 serving as the upstream development environment for the Firefox STIG.
1575
1576 As a result of the upstream/downstream relationship between the SCAP Security Guide project
1577 and the official DISA FSO STIG baseline, users should expect variance between SSG and DISA FSO content.
1578 For official DISA FSO STIG content, refer to https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance.
1579
1580 While this profile is packaged by Red Hat as part of the SCAP Security Guide package, please note
1581 that commercial support of this SCAP content is NOT available. This profile is provided as example
1582 SCAP content with no endorsement for suitability or production readiness. Support for this
1583 profile is provided by the upstream SCAP Security Guide community on a best-effort basis. The
1584 upstream project homepage is https://www.open-scap.org/security-policies/scap-security-guide/.</ns9:description>
1585 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-dod_root_certificate_installed" selected="true"/>
1586 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-enable_ca_trust" selected="true"/>
1587 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-addons_plugin_updates" selected="true"/>
1588 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-auto-download_actions" selected="true"/>
1589 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-autofill_forms" selected="true"/>
1590 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-autofill_passwords" selected="true"/>
1591 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-auto-update_of_firefox" selected="true"/>
1592 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-cookies_clear" selected="true"/>
1593 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-cookies_user_notice" selected="true"/>
1594 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-lock_settings_obscure" selected="true"/>
1595 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-lock_settings_config_file" selected="true"/>
1596 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-open_confirmation" selected="true"/>
1597 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-password_store" selected="true"/>
1598 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-search_update" selected="true"/>
1599 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-shell_protocol" selected="true"/>
1600 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-ssl_version_2" selected="true"/>
1601 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-ssl_protocol_tls" selected="true"/>
1602 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-verification" selected="true"/>
1603 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-ssl_version_3" selected="true"/>
1604 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-home_page" selected="true"/>
1605 <ns9:select idref="xccdf_org.ssgproject.content_rule_installed_firefox_version_supported" selected="true"/>
1606 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_status_bar_text" selected="true"/>
1607 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_context_menus" selected="true"/>
1608 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_status_bar_changes" selected="true"/>
1609 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_window_resizing" selected="true"/>
1610 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_window_changes" selected="true"/>
1611 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-non-secure_page_warning" selected="true"/>
1612 <ns9:select idref="xccdf_org.ssgproject.content_rule_firefox_preferences-pop-up_windows" selected="true"/>
1613 <ns9:select idref="xccdf_org.ssgproject.content_group_remediation_functions" selected="false"/>
1614 <ns9:refine-value idref="xccdf_org.ssgproject.content_value_var_default_home_page" selector="about_blank"/>
1615 </ns9:Profile>
1616 <ns9:Group id="xccdf_org.ssgproject.content_group_remediation_functions">
1617 <ns9:title xml:lang="en-US">Remediation functions used by the SCAP Security Guide Project</ns9:title>
1618 <ns9:description xml:lang="en-US">XCCDF form of the various remediation functions as used by remediation scripts from the SCAP Security Guide Project.</ns9:description>
1619 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_include_merge_files_by_lines" operator="equals" prohibitChanges="true" type="string">
1620 <ns9:title xml:lang="en-US">Remediation function include_merge_files_by_lines</ns9:title>
1621 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
1622 <ns9:value>function include_merge_files_by_lines {
1623 :
1624 }
1625
1626 # 1: Filename of the "master" file
1627 # 2: Filename of the newly created file
1628 function create_empty_file_like {
1629 local lines_count
1630 lines_count=$(cat "$1" | wc -l)
1631 for _ in $(seq 1 "$lines_count"); do
1632 printf '\n' &gt;&gt; "$2"
1633 done
1634 }
1635
1636
1637 # 1: Filename of the "master" file
1638 # 2: Filename of sample flie
1639 function second_file_is_same_except_newlines {
1640 local lines_of_master lines_of_sample len_of_master line_number i
1641 readarray -t lines_of_master &lt; "$1"
1642 readarray -t lines_of_sample &lt; "$2"
1643
1644 len_of_master="${#lines_of_master[@]}"
1645 if test "$len_of_master" != "${#lines_of_sample[@]}"; then
1646 echo "Files '$1' and '$2' have different number of lines, $len_of_master and ${#lines_of_sample[@]} respectively."
1647 return 1
1648 fi
1649
1650 for line_number in $(seq 1 "$len_of_master"); do
1651 i=$((line_number - 1))
1652 test -n "${lines_of_sample[$i]}" || continue
1653 if test "${lines_of_master[$i]}" != "${lines_of_sample[$i]}"; then
1654 echo "Line $line_number is different in files '$1' and '$2'."
1655 return 1
1656 fi
1657 done
1658 }
1659
1660
1661 # 1: Filename of the "master" file
1662 # 2: Filename of sample flie
1663 # 3: List of indices (1-based, space-separated string)
1664 function merge_first_lines_to_second_on_indices {
1665 local lines_of_master lines_of_sample line_number i
1666 test -f "$2" || create_empty_file_like "$1" "$2"
1667
1668 readarray -t lines_of_master &lt; "$1"
1669 readarray -t lines_of_sample &lt; "$2"
1670
1671 error_msg="$(second_file_is_same_except_newlines "$1" "$2")"
1672 if test $? != 0; then
1673 echo "Error merging lines into '$2': $error_msg" &gt;&amp;2
1674 return 1
1675 fi
1676
1677 for line_number in $3; do
1678 i=$((line_number - 1))
1679 lines_of_sample[$i]="${lines_of_master[$i]}"
1680 done
1681
1682 printf "%s\n" "${lines_of_sample[@]}" &gt; "$2"
1683 }</ns9:value>
1684 </ns9:Value>
1685 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_perform_audit_adjtimex_settimeofday_stime_remediation" operator="equals" prohibitChanges="true" type="string">
1686 <ns9:title xml:lang="en-US">Remediation function perform_audit_adjtimex_settimeofday_stime_remediation</ns9:title>
1687 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
1688 <ns9:value># Function to fix syscall audit rule for given system call. It is
1689 # based on example audit syscall rule definitions as outlined in
1690 # /usr/share/doc/audit-2.3.7/stig.rules file provided with the audit
1691 # package. It will combine multiple system calls belonging to the same
1692 # syscall group into one audit rule (rather than to create audit rule per
1693 # different system call) to avoid audit infrastructure performance penalty
1694 # in the case of 'one-audit-rule-definition-per-one-system-call'. See:
1695 #
1696 # https://www.redhat.com/archives/linux-audit/2014-November/msg00009.html
1697 #
1698 # for further details.
1699 #
1700 # Expects five arguments (each of them is required) in the form of:
1701 # * audit tool tool used to load audit rules,
1702 # either 'auditctl', or 'augenrules
1703 # * audit rules' pattern audit rule skeleton for same syscall
1704 # * syscall group greatest common string this rule shares
1705 # with other rules from the same group
1706 # * architecture architecture this rule is intended for
1707 # * full form of new rule to add expected full form of audit rule as to be
1708 # added into audit.rules file
1709 #
1710 # Note: The 2-th up to 4-th arguments are used to determine how many existing
1711 # audit rules will be inspected for resemblance with the new audit rule
1712 # (5-th argument) the function is going to add. The rule's similarity check
1713 # is performed to optimize audit.rules definition (merge syscalls of the same
1714 # group into one rule) to avoid the "single-syscall-per-audit-rule" performance
1715 # penalty.
1716 #
1717 # Example call:
1718 #
1719 # See e.g. 'audit_rules_file_deletion_events.sh' remediation script
1720 #
1721 function fix_audit_syscall_rule {
1722
1723 # Load function arguments into local variables
1724 local tool="$1"
1725 local pattern="$2"
1726 local group="$3"
1727 local arch="$4"
1728 local full_rule="$5"
1729
1730 # Check sanity of the input
1731 if [ $# -ne "5" ]
1732 then
1733 echo "Usage: fix_audit_syscall_rule 'tool' 'pattern' 'group' 'arch' 'full rule'"
1734 echo "Aborting."
1735 exit 1
1736 fi
1737
1738 # Create a list of audit *.rules files that should be inspected for presence and correctness
1739 # of a particular audit rule. The scheme is as follows:
1740 #
1741 # -----------------------------------------------------------------------------------------
1742 # Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
1743 # -----------------------------------------------------------------------------------------
1744 # auditctl | Doesn't matter | /etc/audit/audit.rules |
1745 # -----------------------------------------------------------------------------------------
1746 # augenrules | Yes | /etc/audit/rules.d/*.rules |
1747 # augenrules | No | /etc/audit/rules.d/$key.rules |
1748 # -----------------------------------------------------------------------------------------
1749 #
1750 declare -a files_to_inspect
1751
1752 retval=0
1753
1754 # First check sanity of the specified audit tool
1755 if [ "$tool" != 'auditctl' ] &amp;&amp; [ "$tool" != 'augenrules' ]
1756 then
1757 echo "Unknown audit rules loading tool: $1. Aborting."
1758 echo "Use either 'auditctl' or 'augenrules'!"
1759 return 1
1760 # If audit tool is 'auditctl', then add '/etc/audit/audit.rules'
1761 # file to the list of files to be inspected
1762 elif [ "$tool" == 'auditctl' ]
1763 then
1764 files_to_inspect+=('/etc/audit/audit.rules' )
1765 # If audit tool is 'augenrules', then check if the audit rule is defined
1766 # If rule is defined, add '/etc/audit/rules.d/*.rules' to the list for inspection
1767 # If rule isn't defined yet, add '/etc/audit/rules.d/$key.rules' to the list for inspection
1768 elif [ "$tool" == 'augenrules' ]
1769 then
1770 # Extract audit $key from audit rule so we can use it later
1771 key=$(expr "$full_rule" : '.*-k[[:space:]]\([^[:space:]]\+\)' '|' "$full_rule" : '.*-F[[:space:]]key=\([^[:space:]]\+\)')
1772 readarray -t matches &lt; &lt;(sed -s -n -e "\;${pattern};!d" -e "/${arch}/!d" -e "/${group}/!d;F" /etc/audit/rules.d/*.rules)
1773 if [ $? -ne 0 ]
1774 then
1775 retval=1
1776 fi
1777 for match in "${matches[@]}"
1778 do
1779 files_to_inspect+=("${match}")
1780 done
1781 # Case when particular rule isn't defined in /etc/audit/rules.d/*.rules yet
1782 if [ ${#files_to_inspect[@]} -eq "0" ]
1783 then
1784 file_to_inspect="/etc/audit/rules.d/$key.rules"
1785 files_to_inspect=("$file_to_inspect")
1786 if [ ! -e "$file_to_inspect" ]
1787 then
1788 touch "$file_to_inspect"
1789 chmod 0640 "$file_to_inspect"
1790 fi
1791 fi
1792 fi
1793
1794 #
1795 # Indicator that we want to append $full_rule into $audit_file by default
1796 local append_expected_rule=0
1797
1798 for audit_file in "${files_to_inspect[@]}"
1799 do
1800 # Filter existing $audit_file rules' definitions to select those that:
1801 # * follow the rule pattern, and
1802 # * meet the hardware architecture requirement, and
1803 # * are current syscall group specific
1804 readarray -t existing_rules &lt; &lt;(sed -e "\;${pattern};!d" -e "/${arch}/!d" -e "/${group}/!d" "$audit_file")
1805 if [ $? -ne 0 ]
1806 then
1807 retval=1
1808 fi
1809
1810 # Process rules found case-by-case
1811 for rule in "${existing_rules[@]}"
1812 do
1813 # Found rule is for same arch &amp; key, but differs (e.g. in count of -S arguments)
1814 if [ "${rule}" != "${full_rule}" ]
1815 then
1816 # If so, isolate just '(-S \w)+' substring of that rule
1817 rule_syscalls=$(echo "$rule" | grep -o -P '(-S \w+ )+')
1818 # Check if list of '-S syscall' arguments of that rule is subset
1819 # of '-S syscall' list of expected $full_rule
1820 if grep -q -- "$rule_syscalls" &lt;&lt;&lt; "$full_rule"
1821 then
1822 # Rule is covered (i.e. the list of -S syscalls for this rule is
1823 # subset of -S syscalls of $full_rule =&gt; existing rule can be deleted
1824 # Thus delete the rule from audit.rules &amp; our array
1825 sed -i -e "\;${rule};d" "$audit_file"
1826 if [ $? -ne 0 ]
1827 then
1828 retval=1
1829 fi
1830 existing_rules=("${existing_rules[@]//$rule/}")
1831 else
1832 # Rule isn't covered by $full_rule - it besides -S syscall arguments
1833 # for this group contains also -S syscall arguments for other syscall
1834 # group. Example: '-S lchown -S fchmod -S fchownat' =&gt; group='chown'
1835 # since 'lchown' &amp; 'fchownat' share 'chown' substring
1836 # Therefore:
1837 # * 1) delete the original rule from audit.rules
1838 # (original '-S lchown -S fchmod -S fchownat' rule would be deleted)
1839 # * 2) delete the -S syscall arguments for this syscall group, but
1840 # keep those not belonging to this syscall group
1841 # (original '-S lchown -S fchmod -S fchownat' would become '-S fchmod'
1842 # * 3) append the modified (filtered) rule again into audit.rules
1843 # if the same rule not already present
1844 #
1845 # 1) Delete the original rule
1846 sed -i -e "\;${rule};d" "$audit_file"
1847 if [ $? -ne 0 ]
1848 then
1849 retval=1
1850 fi
1851
1852 # 2) Delete syscalls for this group, but keep those from other groups
1853 # Convert current rule syscall's string into array splitting by '-S' delimiter
1854 IFS_BKP="$IFS"
1855 IFS=$'-S'
1856 read -a rule_syscalls_as_array &lt;&lt;&lt; "$rule_syscalls"
1857 # Reset IFS back to default
1858 IFS="$IFS_BKP"
1859 # Splitting by "-S" can't be replaced by the readarray functionality easily
1860
1861 # Declare new empty string to hold '-S syscall' arguments from other groups
1862 new_syscalls_for_rule=''
1863 # Walk through existing '-S syscall' arguments
1864 for syscall_arg in "${rule_syscalls_as_array[@]}"
1865 do
1866 # Skip empty $syscall_arg values
1867 if [ "$syscall_arg" == '' ]
1868 then
1869 continue
1870 fi
1871 # If the '-S syscall' doesn't belong to current group add it to the new list
1872 # (together with adding '-S' delimiter back for each of such item found)
1873 if grep -q -v -- "$group" &lt;&lt;&lt; "$syscall_arg"
1874 then
1875 new_syscalls_for_rule="$new_syscalls_for_rule -S $syscall_arg"
1876 fi
1877 done
1878 # Replace original '-S syscall' list with the new one for this rule
1879 updated_rule=${rule//$rule_syscalls/$new_syscalls_for_rule}
1880 # Squeeze repeated whitespace characters in rule definition (if any) into one
1881 updated_rule=$(echo "$updated_rule" | tr -s '[:space:]')
1882 # 3) Append the modified / filtered rule again into audit.rules
1883 # (but only in case it's not present yet to prevent duplicate definitions)
1884 if ! grep -q -- "$updated_rule" "$audit_file"
1885 then
1886 echo "$updated_rule" &gt;&gt; "$audit_file"
1887 fi
1888 fi
1889 else
1890 # $audit_file already contains the expected rule form for this
1891 # architecture &amp; key =&gt; don't insert it second time
1892 append_expected_rule=1
1893 fi
1894 done
1895
1896 # We deleted all rules that were subset of the expected one for this arch &amp; key.
1897 # Also isolated rules containing system calls not from this system calls group.
1898 # Now append the expected rule if it's not present in $audit_file yet
1899 if [[ ${append_expected_rule} -eq "0" ]]
1900 then
1901 echo "$full_rule" &gt;&gt; "$audit_file"
1902 fi
1903 done
1904
1905 return $retval
1906
1907 }
1908
1909
1910 # Function to perform remediation for the 'adjtimex', 'settimeofday', and 'stime' audit
1911 # system calls on RHEL, Fedora or OL systems.
1912 # Remediation performed for both possible tools: 'auditctl' and 'augenrules'.
1913 #
1914 # Note: 'stime' system call isn't known at 64-bit arch (see "$ ausyscall x86_64 stime" 's output)
1915 # therefore excluded from the list of time group system calls to be audited on this arch
1916 #
1917 # Example Call:
1918 #
1919 # perform_audit_adjtimex_settimeofday_stime_remediation
1920 #
1921 function perform_audit_adjtimex_settimeofday_stime_remediation {
1922
1923 # Retrieve hardware architecture of the underlying system
1924 [ "$(getconf LONG_BIT)" = "32" ] &amp;&amp; RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
1925
1926 for ARCH in "${RULE_ARCHS[@]}"
1927 do
1928
1929 PATTERN="-a always,exit -F arch=${ARCH} -S .* -k *"
1930 # Create expected audit group and audit rule form for particular system call &amp; architecture
1931 if [ ${ARCH} = "b32" ]
1932 then
1933 # stime system call is known at 32-bit arch (see e.g "$ ausyscall i386 stime" 's output)
1934 # so append it to the list of time group system calls to be audited
1935 GROUP="\(adjtimex\|settimeofday\|stime\)"
1936 FULL_RULE="-a always,exit -F arch=${ARCH} -S adjtimex -S settimeofday -S stime -k audit_time_rules"
1937 elif [ ${ARCH} = "b64" ]
1938 then
1939 # stime system call isn't known at 64-bit arch (see "$ ausyscall x86_64 stime" 's output)
1940 # therefore don't add it to the list of time group system calls to be audited
1941 GROUP="\(adjtimex\|settimeofday\)"
1942 FULL_RULE="-a always,exit -F arch=${ARCH} -S adjtimex -S settimeofday -k audit_time_rules"
1943 fi
1944 # Perform the remediation for both possible tools: 'auditctl' and 'augenrules'
1945 fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
1946 fix_audit_syscall_rule "augenrules" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
1947 done
1948
1949 }</ns9:value>
1950 </ns9:Value>
1951 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_fix_audit_watch_rule" operator="equals" prohibitChanges="true" type="string">
1952 <ns9:title xml:lang="en-US">Remediation function fix_audit_watch_rule</ns9:title>
1953 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
1954 <ns9:value># Function to fix audit file system object watch rule for given path:
1955 # * if rule exists, also verifies the -w bits match the requirements
1956 # * if rule doesn't exist yet, appends expected rule form to $files_to_inspect
1957 # audit rules file, depending on the tool which was used to load audit rules
1958 #
1959 # Expects four arguments (each of them is required) in the form of:
1960 # * audit tool tool used to load audit rules,
1961 # either 'auditctl', or 'augenrules'
1962 # * path value of -w audit rule's argument
1963 # * required access bits value of -p audit rule's argument
1964 # * key value of -k audit rule's argument
1965 #
1966 # Example call:
1967 #
1968 # fix_audit_watch_rule "auditctl" "/etc/localtime" "wa" "audit_time_rules"
1969 #
1970 function fix_audit_watch_rule {
1971
1972 # Load function arguments into local variables
1973 local tool="$1"
1974 local path="$2"
1975 local required_access_bits="$3"
1976 local key="$4"
1977
1978 # Check sanity of the input
1979 if [ $# -ne "4" ]
1980 then
1981 echo "Usage: fix_audit_watch_rule 'tool' 'path' 'bits' 'key'"
1982 echo "Aborting."
1983 exit 1
1984 fi
1985
1986 # Create a list of audit *.rules files that should be inspected for presence and correctness
1987 # of a particular audit rule. The scheme is as follows:
1988 #
1989 # -----------------------------------------------------------------------------------------
1990 # Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
1991 # -----------------------------------------------------------------------------------------
1992 # auditctl | Doesn't matter | /etc/audit/audit.rules |
1993 # -----------------------------------------------------------------------------------------
1994 # augenrules | Yes | /etc/audit/rules.d/*.rules |
1995 # augenrules | No | /etc/audit/rules.d/$key.rules |
1996 # -----------------------------------------------------------------------------------------
1997 declare -a files_to_inspect
1998 files_to_inspect=()
1999
2000 # Check sanity of the specified audit tool
2001 if [ "$tool" != 'auditctl' ] &amp;&amp; [ "$tool" != 'augenrules' ]
2002 then
2003 echo "Unknown audit rules loading tool: $1. Aborting."
2004 echo "Use either 'auditctl' or 'augenrules'!"
2005 exit 1
2006 # If the audit tool is 'auditctl', then add '/etc/audit/audit.rules'
2007 # into the list of files to be inspected
2008 elif [ "$tool" == 'auditctl' ]
2009 then
2010 files_to_inspect+=('/etc/audit/audit.rules')
2011 # If the audit is 'augenrules', then check if rule is already defined
2012 # If rule is defined, add '/etc/audit/rules.d/*.rules' to list of files for inspection.
2013 # If rule isn't defined, add '/etc/audit/rules.d/$key.rules' to list of files for inspection.
2014 elif [ "$tool" == 'augenrules' ]
2015 then
2016 readarray -t matches &lt; &lt;(grep -P "[\s]*-w[\s]+$path" /etc/audit/rules.d/*.rules)
2017
2018 # For each of the matched entries
2019 for match in "${matches[@]}"
2020 do
2021 # Extract filepath from the match
2022 rulesd_audit_file=$(echo $match | cut -f1 -d ':')
2023 # Append that path into list of files for inspection
2024 files_to_inspect+=("$rulesd_audit_file")
2025 done
2026 # Case when particular audit rule isn't defined yet
2027 if [ "${#files_to_inspect[@]}" -eq "0" ]
2028 then
2029 # Append '/etc/audit/rules.d/$key.rules' into list of files for inspection
2030 local key_rule_file="/etc/audit/rules.d/$key.rules"
2031 # If the $key.rules file doesn't exist yet, create it with correct permissions
2032 if [ ! -e "$key_rule_file" ]
2033 then
2034 touch "$key_rule_file"
2035 chmod 0640 "$key_rule_file"
2036 fi
2037
2038 files_to_inspect+=("$key_rule_file")
2039 fi
2040 fi
2041
2042 # Finally perform the inspection and possible subsequent audit rule
2043 # correction for each of the files previously identified for inspection
2044 for audit_rules_file in "${files_to_inspect[@]}"
2045 do
2046
2047 # Check if audit watch file system object rule for given path already present
2048 if grep -q -P -- "[\s]*-w[\s]+$path" "$audit_rules_file"
2049 then
2050 # Rule is found =&gt; verify yet if existing rule definition contains
2051 # all of the required access type bits
2052
2053 # Escape slashes in path for use in sed pattern below
2054 local esc_path=${path//$'/'/$'\/'}
2055 # Define BRE whitespace class shortcut
2056 local sp="[[:space:]]"
2057 # Extract current permission access types (e.g. -p [r|w|x|a] values) from audit rule
2058 current_access_bits=$(sed -ne "s/$sp*-w$sp\+$esc_path$sp\+-p$sp\+\([rxwa]\{1,4\}\).*/\1/p" "$audit_rules_file")
2059 # Split required access bits string into characters array
2060 # (to check bit's presence for one bit at a time)
2061 for access_bit in $(echo "$required_access_bits" | grep -o .)
2062 do
2063 # For each from the required access bits (e.g. 'w', 'a') check
2064 # if they are already present in current access bits for rule.
2065 # If not, append that bit at the end
2066 if ! grep -q "$access_bit" &lt;&lt;&lt; "$current_access_bits"
2067 then
2068 # Concatenate the existing mask with the missing bit
2069 current_access_bits="$current_access_bits$access_bit"
2070 fi
2071 done
2072 # Propagate the updated rule's access bits (original + the required
2073 # ones) back into the /etc/audit/audit.rules file for that rule
2074 sed -i "s/\($sp*-w$sp\+$esc_path$sp\+-p$sp\+\)\([rxwa]\{1,4\}\)\(.*\)/\1$current_access_bits\3/" "$audit_rules_file"
2075 else
2076 # Rule isn't present yet. Append it at the end of $audit_rules_file file
2077 # with proper key
2078
2079 echo "-w $path -p $required_access_bits -k $key" &gt;&gt; "$audit_rules_file"
2080 fi
2081 done
2082 }</ns9:value>
2083 </ns9:Value>
2084 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_set_faillock_option_to_value_in_pam_file" operator="equals" prohibitChanges="true" type="string">
2085 <ns9:title xml:lang="en-US">Remediation function set_faillock_option_to_value_in_pam_file</ns9:title>
2086 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2087 <ns9:value>function set_faillock_option_to_value_in_pam_file {
2088 # If invoked with no arguments, exit. This is an intentional behavior.
2089 [ $# -gt 1 ] || return 0
2090 [ $# -ge 3 ] || die "$0 requires exactly zero, three, or four arguments"
2091 [ $# -le 4 ] || die "$0 requires exactly zero, three, or four arguments"
2092 local _pamFile="$1" _option="$2" _value="$3" _insert_lines_callback="$4"
2093 # pam_faillock.so already present?
2094 if grep -q "^auth.*pam_faillock.so.*" "$_pamFile"; then
2095
2096 # pam_faillock.so present, is the option present?
2097 if grep -q "^auth.*[default=die].*pam_faillock.so.*authfail.*$_option=" "$_pamFile"; then
2098
2099 # both pam_faillock.so &amp; option present, just correct option to the right value
2100 sed -i --follow-symlinks "s/\(^auth.*required.*pam_faillock.so.*preauth.*silent.*\)\($_option *= *\).*/\1\2$_value/" "$_pamFile"
2101 sed -i --follow-symlinks "s/\(^auth.*[default=die].*pam_faillock.so.*authfail.*\)\($_option *= *\).*/\1\2$_value/" "$_pamFile"
2102
2103 # pam_faillock.so present, but the option not yet
2104 else
2105
2106 # append correct option value to appropriate places
2107 sed -i --follow-symlinks "/^auth.*required.*pam_faillock.so.*preauth.*silent.*/ s/$/ $_option=$_value/" "$_pamFile"
2108 sed -i --follow-symlinks "/^auth.*[default=die].*pam_faillock.so.*authfail.*/ s/$/ $_option=$_value/" "$_pamFile"
2109 fi
2110
2111 # pam_faillock.so not present yet
2112 else
2113 test -z "$_insert_lines_callback" || "$_insert_lines_callback" "$_option" "$_value" "$_pamFile"
2114 # insert pam_faillock.so preauth &amp; authfail rows with proper value of the option in question
2115 fi
2116 }</ns9:value>
2117 </ns9:Value>
2118 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_create_audit_remediation_unsuccessful_file_modification_detailed" operator="equals" prohibitChanges="true" type="string">
2119 <ns9:title xml:lang="en-US">Remediation function create_audit_remediation_unsuccessful_file_modification_detailed</ns9:title>
2120 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2121 <ns9:value>function create_audit_remediation_unsuccessful_file_modification_detailed {
2122 mkdir -p "$(dirname "$1")"
2123 # The - option to mark a here document limit string (&lt;&lt;-EOF) suppresses leading tabs (but not spaces) in the output.
2124 cat &lt;&lt;-EOF &gt; "$1"
2125 ## This content is a section of an Audit config snapshot recommended for RHEL8 sytems that target OSPP compliance.
2126 ## The following content has been retreived on 2019-03-11 from: https://github.com/linux-audit/audit-userspace/blob/master/rules/30-ospp-v42.rules
2127
2128 ## The purpose of these rules is to meet the requirements for Operating
2129 ## System Protection Profile (OSPP)v4.2. These rules depends on having
2130 ## 10-base-config.rules, 11-loginuid.rules, and 43-module-load.rules installed.
2131
2132 ## Unsuccessful file creation (open with O_CREAT)
2133 -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&amp;0100 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2134 -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&amp;0100 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2135 -a always,exit -F arch=b32 -S open -F a1&amp;0100 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2136 -a always,exit -F arch=b64 -S open -F a1&amp;0100 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2137 -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&amp;0100 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2138 -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&amp;0100 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2139 -a always,exit -F arch=b32 -S open -F a1&amp;0100 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2140 -a always,exit -F arch=b64 -S open -F a1&amp;0100 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2141 -a always,exit -F arch=b32 -S creat -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2142 -a always,exit -F arch=b64 -S creat -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2143 -a always,exit -F arch=b32 -S creat -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2144 -a always,exit -F arch=b64 -S creat -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-create
2145
2146 ## Unsuccessful file modifications (open for write or truncate)
2147 -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&amp;01003 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2148 -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&amp;01003 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2149 -a always,exit -F arch=b32 -S open -F a1&amp;01003 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2150 -a always,exit -F arch=b64 -S open -F a1&amp;01003 -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2151 -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&amp;01003 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2152 -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&amp;01003 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2153 -a always,exit -F arch=b32 -S open -F a1&amp;01003 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2154 -a always,exit -F arch=b64 -S open -F a1&amp;01003 -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2155 -a always,exit -F arch=b32 -S truncate,ftruncate -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2156 -a always,exit -F arch=b64 -S truncate,ftruncate -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2157 -a always,exit -F arch=b32 -S truncate,ftruncate -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2158 -a always,exit -F arch=b64 -S truncate,ftruncate -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-modification
2159
2160 ## Unsuccessful file access (any other opens) This has to go last.
2161 -a always,exit -F arch=b32 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-access
2162 -a always,exit -F arch=b64 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EACCES -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-access
2163 -a always,exit -F arch=b32 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-access
2164 -a always,exit -F arch=b64 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EPERM -F auid&gt;=1000 -F auid!=unset -F key=unsuccesful-access
2165 EOF
2166 }</ns9:value>
2167 </ns9:Value>
2168 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_perform_audit_rules_privileged_commands_remediation" operator="equals" prohibitChanges="true" type="string">
2169 <ns9:title xml:lang="en-US">Remediation function perform_audit_rules_privileged_commands_remediation</ns9:title>
2170 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2171 <ns9:value># Function to perform remediation for 'audit_rules_privileged_commands' rule
2172 #
2173 # Expects two arguments:
2174 #
2175 # audit_tool tool used to load audit rules
2176 # One of 'auditctl' or 'augenrules'
2177 #
2178 # min_auid Minimum original ID the user logged in with
2179 # '500' for RHEL-6 and before, '1000' for RHEL-7 and after.
2180 #
2181 # Example Call(s):
2182 #
2183 # perform_audit_rules_privileged_commands_remediation "auditctl" "500"
2184 # perform_audit_rules_privileged_commands_remediation "augenrules" "1000"
2185 #
2186 function perform_audit_rules_privileged_commands_remediation {
2187 #
2188 # Load function arguments into local variables
2189 local tool="$1"
2190 local min_auid="$2"
2191
2192 # Check sanity of the input
2193 if [ $# -ne "2" ]
2194 then
2195 echo "Usage: perform_audit_rules_privileged_commands_remediation 'auditctl | augenrules' '500 | 1000'"
2196 echo "Aborting."
2197 exit 1
2198 fi
2199
2200 declare -a files_to_inspect=()
2201
2202 # Check sanity of the specified audit tool
2203 if [ "$tool" != 'auditctl' ] &amp;&amp; [ "$tool" != 'augenrules' ]
2204 then
2205 echo "Unknown audit rules loading tool: $1. Aborting."
2206 echo "Use either 'auditctl' or 'augenrules'!"
2207 exit 1
2208 # If the audit tool is 'auditctl', then:
2209 # * add '/etc/audit/audit.rules'to the list of files to be inspected,
2210 # * specify '/etc/audit/audit.rules' as the output audit file, where
2211 # missing rules should be inserted
2212 elif [ "$tool" == 'auditctl' ]
2213 then
2214 files_to_inspect=("/etc/audit/audit.rules")
2215 output_audit_file="/etc/audit/audit.rules"
2216 #
2217 # If the audit tool is 'augenrules', then:
2218 # * add '/etc/audit/rules.d/*.rules' to the list of files to be inspected
2219 # (split by newline),
2220 # * specify /etc/audit/rules.d/privileged.rules' as the output file, where
2221 # missing rules should be inserted
2222 elif [ "$tool" == 'augenrules' ]
2223 then
2224 readarray -t files_to_inspect &lt; &lt;(find /etc/audit/rules.d -maxdepth 1 -type f -name '*.rules' -print)
2225 output_audit_file="/etc/audit/rules.d/privileged.rules"
2226 fi
2227
2228 # Obtain the list of SUID/SGID binaries on the particular system (split by newline)
2229 # into privileged_binaries array
2230 readarray -t privileged_binaries &lt; &lt;(find / -xdev -type f -perm -4000 -o -type f -perm -2000 2&gt;/dev/null)
2231
2232 # Keep list of SUID/SGID binaries that have been already handled within some previous iteration
2233 declare -a sbinaries_to_skip=()
2234
2235 # For each found sbinary in privileged_binaries list
2236 for sbinary in "${privileged_binaries[@]}"
2237 do
2238
2239 # Check if this sbinary wasn't already handled in some of the previous sbinary iterations
2240 # Return match only if whole sbinary definition matched (not in the case just prefix matched!!!)
2241 if [[ $(sed -ne "\|${sbinary}|p" &lt;&lt;&lt; "${sbinaries_to_skip[*]}") ]]
2242 then
2243 # If so, don't process it second time &amp; go to process next sbinary
2244 continue
2245 fi
2246
2247 # Reset the counter of inspected files when starting to check
2248 # presence of existing audit rule for new sbinary
2249 local count_of_inspected_files=0
2250
2251 # Define expected rule form for this binary
2252 expected_rule="-a always,exit -F path=${sbinary} -F perm=x -F auid&gt;=${min_auid} -F auid!=unset -k privileged"
2253
2254 # If list of audit rules files to be inspected is empty, just add new rule and move on to next binary
2255 if [[ ${#files_to_inspect[@]} -eq 0 ]]; then
2256 echo "$expected_rule" &gt;&gt; "$output_audit_file"
2257 continue
2258 fi
2259
2260 # Replace possible slash '/' character in sbinary definition so we could use it in sed expressions below
2261 sbinary_esc=${sbinary//$'/'/$'\/'}
2262
2263 # For each audit rules file from the list of files to be inspected
2264 for afile in "${files_to_inspect[@]}"
2265 do
2266
2267 # Search current audit rules file's content for match. Match criteria:
2268 # * existing rule is for the same SUID/SGID binary we are currently processing (but
2269 # can contain multiple -F path= elements covering multiple SUID/SGID binaries)
2270 # * existing rule contains all arguments from expected rule form (though can contain
2271 # them in arbitrary order)
2272
2273 base_search=$(sed -e '/-a always,exit/!d' -e '/-F path='"${sbinary_esc}"'/!d' \
2274 -e '/-F path=[^[:space:]]\+/!d' -e '/-F perm=.*/!d' \
2275 -e '/-F auid&gt;='"${min_auid}"'/!d' -e '/-F auid!=\(4294967295\|unset\)/!d' \
2276 -e '/-k \|-F key=/!d' "$afile")
2277
2278 # Increase the count of inspected files for this sbinary
2279 count_of_inspected_files=$((count_of_inspected_files + 1))
2280
2281 # Require execute access type to be set for existing audit rule
2282 exec_access='x'
2283
2284 # Search current audit rules file's content for presence of rule pattern for this sbinary
2285 if [[ $base_search ]]
2286 then
2287
2288 # Current audit rules file already contains rule for this binary =&gt;
2289 # Store the exact form of found rule for this binary for further processing
2290 concrete_rule=$base_search
2291
2292 # Select all other SUID/SGID binaries possibly also present in the found rule
2293
2294 readarray -t handled_sbinaries &lt; &lt;(grep -o -e "-F path=[^[:space:]]\+" &lt;&lt;&lt; "$concrete_rule")
2295 handled_sbinaries=("${handled_sbinaries[@]//-F path=/}")
2296
2297 # Merge the list of such SUID/SGID binaries found in this iteration with global list ignoring duplicates
2298 readarray -t sbinaries_to_skip &lt; &lt;(for i in "${sbinaries_to_skip[@]}" "${handled_sbinaries[@]}"; do echo "$i"; done | sort -du)
2299
2300 # Separate concrete_rule into three sections using hash '#'
2301 # sign as a delimiter around rule's permission section borders
2302 concrete_rule="$(echo "$concrete_rule" | sed -n "s/\(.*\)\+\(-F perm=[rwax]\+\)\+/\1#\2#/p")"
2303
2304 # Split concrete_rule into head, perm, and tail sections using hash '#' delimiter
2305
2306 rule_head=$(cut -d '#' -f 1 &lt;&lt;&lt; "$concrete_rule")
2307 rule_perm=$(cut -d '#' -f 2 &lt;&lt;&lt; "$concrete_rule")
2308 rule_tail=$(cut -d '#' -f 3 &lt;&lt;&lt; "$concrete_rule")
2309
2310 # Extract already present exact access type [r|w|x|a] from rule's permission section
2311 access_type=${rule_perm//-F perm=/}
2312
2313 # Verify current permission access type(s) for rule contain 'x' (execute) permission
2314 if ! grep -q "$exec_access" &lt;&lt;&lt; "$access_type"
2315 then
2316
2317 # If not, append the 'x' (execute) permission to the existing access type bits
2318 access_type="$access_type$exec_access"
2319 # Reconstruct the permissions section for the rule
2320 new_rule_perm="-F perm=$access_type"
2321 # Update existing rule in current audit rules file with the new permission section
2322 sed -i "s#${rule_head}\(.*\)${rule_tail}#${rule_head}${new_rule_perm}${rule_tail}#" "$afile"
2323
2324 fi
2325
2326 # If the required audit rule for particular sbinary wasn't found yet, insert it under following conditions:
2327 #
2328 # * in the "auditctl" mode of operation insert particular rule each time
2329 # (because in this mode there's only one file -- /etc/audit/audit.rules to be inspected for presence of this rule),
2330 #
2331 # * in the "augenrules" mode of operation insert particular rule only once and only in case we have already
2332 # searched all of the files from /etc/audit/rules.d/*.rules location (since that audit rule can be defined
2333 # in any of those files and if not, we want it to be inserted only once into /etc/audit/rules.d/privileged.rules file)
2334 #
2335 elif [ "$tool" == "auditctl" ] || [[ "$tool" == "augenrules" &amp;&amp; $count_of_inspected_files -eq "${#files_to_inspect[@]}" ]]
2336 then
2337
2338 # Check if this sbinary wasn't already handled in some of the previous afile iterations
2339 # Return match only if whole sbinary definition matched (not in the case just prefix matched!!!)
2340 if [[ ! $(sed -ne "\|${sbinary}|p" &lt;&lt;&lt; "${sbinaries_to_skip[*]}") ]]
2341 then
2342 # Current audit rules file's content doesn't contain expected rule for this
2343 # SUID/SGID binary yet =&gt; append it
2344 echo "$expected_rule" &gt;&gt; "$output_audit_file"
2345 fi
2346
2347 continue
2348 fi
2349
2350 done
2351
2352 done
2353 }</ns9:value>
2354 </ns9:Value>
2355 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_fix_audit_syscall_rule" operator="equals" prohibitChanges="true" type="string">
2356 <ns9:title xml:lang="en-US">Remediation function fix_audit_syscall_rule</ns9:title>
2357 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2358 <ns9:value># Function to fix syscall audit rule for given system call. It is
2359 # based on example audit syscall rule definitions as outlined in
2360 # /usr/share/doc/audit-2.3.7/stig.rules file provided with the audit
2361 # package. It will combine multiple system calls belonging to the same
2362 # syscall group into one audit rule (rather than to create audit rule per
2363 # different system call) to avoid audit infrastructure performance penalty
2364 # in the case of 'one-audit-rule-definition-per-one-system-call'. See:
2365 #
2366 # https://www.redhat.com/archives/linux-audit/2014-November/msg00009.html
2367 #
2368 # for further details.
2369 #
2370 # Expects five arguments (each of them is required) in the form of:
2371 # * audit tool tool used to load audit rules,
2372 # either 'auditctl', or 'augenrules
2373 # * audit rules' pattern audit rule skeleton for same syscall
2374 # * syscall group greatest common string this rule shares
2375 # with other rules from the same group
2376 # * architecture architecture this rule is intended for
2377 # * full form of new rule to add expected full form of audit rule as to be
2378 # added into audit.rules file
2379 #
2380 # Note: The 2-th up to 4-th arguments are used to determine how many existing
2381 # audit rules will be inspected for resemblance with the new audit rule
2382 # (5-th argument) the function is going to add. The rule's similarity check
2383 # is performed to optimize audit.rules definition (merge syscalls of the same
2384 # group into one rule) to avoid the "single-syscall-per-audit-rule" performance
2385 # penalty.
2386 #
2387 # Example call:
2388 #
2389 # See e.g. 'audit_rules_file_deletion_events.sh' remediation script
2390 #
2391 function fix_audit_syscall_rule {
2392
2393 # Load function arguments into local variables
2394 local tool="$1"
2395 local pattern="$2"
2396 local group="$3"
2397 local arch="$4"
2398 local full_rule="$5"
2399
2400 # Check sanity of the input
2401 if [ $# -ne "5" ]
2402 then
2403 echo "Usage: fix_audit_syscall_rule 'tool' 'pattern' 'group' 'arch' 'full rule'"
2404 echo "Aborting."
2405 exit 1
2406 fi
2407
2408 # Create a list of audit *.rules files that should be inspected for presence and correctness
2409 # of a particular audit rule. The scheme is as follows:
2410 #
2411 # -----------------------------------------------------------------------------------------
2412 # Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
2413 # -----------------------------------------------------------------------------------------
2414 # auditctl | Doesn't matter | /etc/audit/audit.rules |
2415 # -----------------------------------------------------------------------------------------
2416 # augenrules | Yes | /etc/audit/rules.d/*.rules |
2417 # augenrules | No | /etc/audit/rules.d/$key.rules |
2418 # -----------------------------------------------------------------------------------------
2419 #
2420 declare -a files_to_inspect
2421
2422 retval=0
2423
2424 # First check sanity of the specified audit tool
2425 if [ "$tool" != 'auditctl' ] &amp;&amp; [ "$tool" != 'augenrules' ]
2426 then
2427 echo "Unknown audit rules loading tool: $1. Aborting."
2428 echo "Use either 'auditctl' or 'augenrules'!"
2429 return 1
2430 # If audit tool is 'auditctl', then add '/etc/audit/audit.rules'
2431 # file to the list of files to be inspected
2432 elif [ "$tool" == 'auditctl' ]
2433 then
2434 files_to_inspect+=('/etc/audit/audit.rules' )
2435 # If audit tool is 'augenrules', then check if the audit rule is defined
2436 # If rule is defined, add '/etc/audit/rules.d/*.rules' to the list for inspection
2437 # If rule isn't defined yet, add '/etc/audit/rules.d/$key.rules' to the list for inspection
2438 elif [ "$tool" == 'augenrules' ]
2439 then
2440 # Extract audit $key from audit rule so we can use it later
2441 key=$(expr "$full_rule" : '.*-k[[:space:]]\([^[:space:]]\+\)' '|' "$full_rule" : '.*-F[[:space:]]key=\([^[:space:]]\+\)')
2442 readarray -t matches &lt; &lt;(sed -s -n -e "\;${pattern};!d" -e "/${arch}/!d" -e "/${group}/!d;F" /etc/audit/rules.d/*.rules)
2443 if [ $? -ne 0 ]
2444 then
2445 retval=1
2446 fi
2447 for match in "${matches[@]}"
2448 do
2449 files_to_inspect+=("${match}")
2450 done
2451 # Case when particular rule isn't defined in /etc/audit/rules.d/*.rules yet
2452 if [ ${#files_to_inspect[@]} -eq "0" ]
2453 then
2454 file_to_inspect="/etc/audit/rules.d/$key.rules"
2455 files_to_inspect=("$file_to_inspect")
2456 if [ ! -e "$file_to_inspect" ]
2457 then
2458 touch "$file_to_inspect"
2459 chmod 0640 "$file_to_inspect"
2460 fi
2461 fi
2462 fi
2463
2464 #
2465 # Indicator that we want to append $full_rule into $audit_file by default
2466 local append_expected_rule=0
2467
2468 for audit_file in "${files_to_inspect[@]}"
2469 do
2470 # Filter existing $audit_file rules' definitions to select those that:
2471 # * follow the rule pattern, and
2472 # * meet the hardware architecture requirement, and
2473 # * are current syscall group specific
2474 readarray -t existing_rules &lt; &lt;(sed -e "\;${pattern};!d" -e "/${arch}/!d" -e "/${group}/!d" "$audit_file")
2475 if [ $? -ne 0 ]
2476 then
2477 retval=1
2478 fi
2479
2480 # Process rules found case-by-case
2481 for rule in "${existing_rules[@]}"
2482 do
2483 # Found rule is for same arch &amp; key, but differs (e.g. in count of -S arguments)
2484 if [ "${rule}" != "${full_rule}" ]
2485 then
2486 # If so, isolate just '(-S \w)+' substring of that rule
2487 rule_syscalls=$(echo "$rule" | grep -o -P '(-S \w+ )+')
2488 # Check if list of '-S syscall' arguments of that rule is subset
2489 # of '-S syscall' list of expected $full_rule
2490 if grep -q -- "$rule_syscalls" &lt;&lt;&lt; "$full_rule"
2491 then
2492 # Rule is covered (i.e. the list of -S syscalls for this rule is
2493 # subset of -S syscalls of $full_rule =&gt; existing rule can be deleted
2494 # Thus delete the rule from audit.rules &amp; our array
2495 sed -i -e "\;${rule};d" "$audit_file"
2496 if [ $? -ne 0 ]
2497 then
2498 retval=1
2499 fi
2500 existing_rules=("${existing_rules[@]//$rule/}")
2501 else
2502 # Rule isn't covered by $full_rule - it besides -S syscall arguments
2503 # for this group contains also -S syscall arguments for other syscall
2504 # group. Example: '-S lchown -S fchmod -S fchownat' =&gt; group='chown'
2505 # since 'lchown' &amp; 'fchownat' share 'chown' substring
2506 # Therefore:
2507 # * 1) delete the original rule from audit.rules
2508 # (original '-S lchown -S fchmod -S fchownat' rule would be deleted)
2509 # * 2) delete the -S syscall arguments for this syscall group, but
2510 # keep those not belonging to this syscall group
2511 # (original '-S lchown -S fchmod -S fchownat' would become '-S fchmod'
2512 # * 3) append the modified (filtered) rule again into audit.rules
2513 # if the same rule not already present
2514 #
2515 # 1) Delete the original rule
2516 sed -i -e "\;${rule};d" "$audit_file"
2517 if [ $? -ne 0 ]
2518 then
2519 retval=1
2520 fi
2521
2522 # 2) Delete syscalls for this group, but keep those from other groups
2523 # Convert current rule syscall's string into array splitting by '-S' delimiter
2524 IFS_BKP="$IFS"
2525 IFS=$'-S'
2526 read -a rule_syscalls_as_array &lt;&lt;&lt; "$rule_syscalls"
2527 # Reset IFS back to default
2528 IFS="$IFS_BKP"
2529 # Splitting by "-S" can't be replaced by the readarray functionality easily
2530
2531 # Declare new empty string to hold '-S syscall' arguments from other groups
2532 new_syscalls_for_rule=''
2533 # Walk through existing '-S syscall' arguments
2534 for syscall_arg in "${rule_syscalls_as_array[@]}"
2535 do
2536 # Skip empty $syscall_arg values
2537 if [ "$syscall_arg" == '' ]
2538 then
2539 continue
2540 fi
2541 # If the '-S syscall' doesn't belong to current group add it to the new list
2542 # (together with adding '-S' delimiter back for each of such item found)
2543 if grep -q -v -- "$group" &lt;&lt;&lt; "$syscall_arg"
2544 then
2545 new_syscalls_for_rule="$new_syscalls_for_rule -S $syscall_arg"
2546 fi
2547 done
2548 # Replace original '-S syscall' list with the new one for this rule
2549 updated_rule=${rule//$rule_syscalls/$new_syscalls_for_rule}
2550 # Squeeze repeated whitespace characters in rule definition (if any) into one
2551 updated_rule=$(echo "$updated_rule" | tr -s '[:space:]')
2552 # 3) Append the modified / filtered rule again into audit.rules
2553 # (but only in case it's not present yet to prevent duplicate definitions)
2554 if ! grep -q -- "$updated_rule" "$audit_file"
2555 then
2556 echo "$updated_rule" &gt;&gt; "$audit_file"
2557 fi
2558 fi
2559 else
2560 # $audit_file already contains the expected rule form for this
2561 # architecture &amp; key =&gt; don't insert it second time
2562 append_expected_rule=1
2563 fi
2564 done
2565
2566 # We deleted all rules that were subset of the expected one for this arch &amp; key.
2567 # Also isolated rules containing system calls not from this system calls group.
2568 # Now append the expected rule if it's not present in $audit_file yet
2569 if [[ ${append_expected_rule} -eq "0" ]]
2570 then
2571 echo "$full_rule" &gt;&gt; "$audit_file"
2572 fi
2573 done
2574
2575 return $retval
2576
2577 }</ns9:value>
2578 </ns9:Value>
2579 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_populate" operator="equals" prohibitChanges="true" type="string">
2580 <ns9:title xml:lang="en-US">Remediation function populate</ns9:title>
2581 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2582 <ns9:value># The populate function isn't directly used by SSG at the moment but it can be
2583 # used for testing purposes and will be used in SSG Testsuite in the future.
2584
2585 function populate {
2586 # code to populate environment variables needed (for unit testing)
2587 if [ -z "${!1}" ]; then
2588 echo "$1 is not defined. Exiting."
2589 exit
2590 fi
2591 }</ns9:value>
2592 </ns9:Value>
2593 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_include_mount_options_functions" operator="equals" prohibitChanges="true" type="string">
2594 <ns9:title xml:lang="en-US">Remediation function include_mount_options_functions</ns9:title>
2595 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2596 <ns9:value>function include_mount_options_functions {
2597 :
2598 }
2599
2600 # $1: type of filesystem
2601 # $2: new mount point option
2602 # $3: filesystem of new mount point (used when adding new entry in fstab)
2603 # $4: mount type of new mount point (used when adding new entry in fstab)
2604 function ensure_mount_option_for_vfstype {
2605 local _vfstype="$1" _new_opt="$2" _filesystem=$3 _type=$4 _vfstype_points=()
2606 readarray -t _vfstype_points &lt; &lt;(grep -E "[[:space:]]${_vfstype}[[:space:]]" /etc/fstab | awk '{print $2}')
2607
2608 for _vfstype_point in "${_vfstype_points[@]}"
2609 do
2610 ensure_mount_option_in_fstab "$_vfstype_point" "$_new_opt" "$_filesystem" "$_type"
2611 done
2612 }
2613
2614 # $1: mount point
2615 # $2: new mount point option
2616 # $3: device or virtual string (used when adding new entry in fstab)
2617 # $4: mount type of mount point (used when adding new entry in fstab)
2618 function ensure_mount_option_in_fstab {
2619 local _mount_point="$1" _new_opt="$2" _device=$3 _type=$4
2620 local _mount_point_match_regexp="" _previous_mount_opts=""
2621 _mount_point_match_regexp="$(get_mount_point_regexp "$_mount_point")"
2622
2623 if [ "$(grep -c "$_mount_point_match_regexp" /etc/fstab)" -eq 0 ]; then
2624 # runtime opts without some automatic kernel/userspace-added defaults
2625 _previous_mount_opts=$(grep "$_mount_point_match_regexp" /etc/mtab | head -1 | awk '{print $4}' \
2626 | sed -E "s/(rw|defaults|seclabel|${_new_opt})(,|$)//g;s/,$//")
2627 [ "$_previous_mount_opts" ] &amp;&amp; _previous_mount_opts+=","
2628 echo "${_device} ${_mount_point} ${_type} defaults,${_previous_mount_opts}${_new_opt} 0 0" &gt;&gt; /etc/fstab
2629 elif [ "$(grep "$_mount_point_match_regexp" /etc/fstab | grep -c "$_new_opt")" -eq 0 ]; then
2630 _previous_mount_opts=$(grep "$_mount_point_match_regexp" /etc/fstab | awk '{print $4}')
2631 sed -i "s|\(${_mount_point_match_regexp}.*${_previous_mount_opts}\)|\1,${_new_opt}|" /etc/fstab
2632 fi
2633 }
2634
2635 # $1: mount point
2636 function get_mount_point_regexp {
2637 printf "[[:space:]]%s[[:space:]]" "$1"
2638 }
2639
2640 # $1: mount point
2641 function assert_mount_point_in_fstab {
2642 local _mount_point_match_regexp
2643 _mount_point_match_regexp="$(get_mount_point_regexp "$1")"
2644 grep "$_mount_point_match_regexp" -q /etc/fstab \
2645 || { echo "The mount point '$1' is not even in /etc/fstab, so we can't set up mount options" &gt;&amp;2; return 1; }
2646 }
2647
2648 # $1: mount point
2649 function remove_defaults_from_fstab_if_overriden {
2650 local _mount_point_match_regexp
2651 _mount_point_match_regexp="$(get_mount_point_regexp "$1")"
2652 if grep "$_mount_point_match_regexp" /etc/fstab | grep -q "defaults,"
2653 then
2654 sed -i "s|\(${_mount_point_match_regexp}.*\)defaults,|\1|" /etc/fstab
2655 fi
2656 }
2657
2658 # $1: mount point
2659 function ensure_partition_is_mounted {
2660 local _mount_point="$1"
2661 mkdir -p "$_mount_point" || return 1
2662 if mountpoint -q "$_mount_point"; then
2663 mount -o remount --target "$_mount_point"
2664 else
2665 mount --target "$_mount_point"
2666 fi
2667 }</ns9:value>
2668 </ns9:Value>
2669 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_replace_or_append" operator="equals" prohibitChanges="true" type="string">
2670 <ns9:title xml:lang="en-US">Remediation function replace_or_append</ns9:title>
2671 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2672 <ns9:value># Function to replace configuration setting in config file or add the configuration setting if
2673 # it does not exist.
2674 #
2675 # Expects arguments:
2676 #
2677 # config_file: Configuration file that will be modified
2678 # key: Configuration option to change
2679 # value: Value of the configuration option to change
2680 # cce: The CCE identifier or '@CCENUM@' if no CCE identifier exists
2681 # format: The printf-like format string that will be given stripped key and value as arguments,
2682 # so e.g. '%s=%s' will result in key=value subsitution (i.e. without spaces around =)
2683 #
2684 # Optional arugments:
2685 #
2686 # format: Optional argument to specify the format of how key/value should be
2687 # modified/appended in the configuration file. The default is key = value.
2688 #
2689 # Example Call(s):
2690 #
2691 # With default format of 'key = value':
2692 # replace_or_append '/etc/sysctl.conf' '^kernel.randomize_va_space' '2' '@CCENUM@'
2693 #
2694 # With custom key/value format:
2695 # replace_or_append '/etc/sysconfig/selinux' '^SELINUX=' 'disabled' '@CCENUM@' '%s=%s'
2696 #
2697 # With a variable:
2698 # replace_or_append '/etc/sysconfig/selinux' '^SELINUX=' $var_selinux_state '@CCENUM@' '%s=%s'
2699 #
2700 function replace_or_append {
2701 local default_format='%s = %s' case_insensitive_mode=yes sed_case_insensitive_option='' grep_case_insensitive_option=''
2702 local config_file=$1
2703 local key=$2
2704 local value=$3
2705 local cce=$4
2706 local format=$5
2707
2708 if [ "$case_insensitive_mode" = yes ]; then
2709 sed_case_insensitive_option="i"
2710 grep_case_insensitive_option="-i"
2711 fi
2712 [ -n "$format" ] || format="$default_format"
2713 # Check sanity of the input
2714 [ $# -ge "3" ] || { echo "Usage: replace_or_append &lt;config_file_location&gt; &lt;key_to_search&gt; &lt;new_value&gt; [&lt;CCE number or literal '@CCENUM@' if unknown&gt;] [printf-like format, default is '$default_format']" &gt;&amp;2; exit 1; }
2715
2716 # Test if the config_file is a symbolic link. If so, use --follow-symlinks with sed.
2717 # Otherwise, regular sed command will do.
2718 sed_command=('sed' '-i')
2719 if test -L "$config_file"; then
2720 sed_command+=('--follow-symlinks')
2721 fi
2722
2723 # Test that the cce arg is not empty or does not equal @CCENUM@.
2724 # If @CCENUM@ exists, it means that there is no CCE assigned.
2725 if [ -n "$cce" ] &amp;&amp; [ "$cce" != '@CCENUM@' ]; then
2726 cce="${cce}"
2727 else
2728 cce="CCE"
2729 fi
2730
2731 # Strip any search characters in the key arg so that the key can be replaced without
2732 # adding any search characters to the config file.
2733 stripped_key=$(sed 's/[\^=\$,;+]*//g' &lt;&lt;&lt; "$key")
2734
2735 # shellcheck disable=SC2059
2736 printf -v formatted_output "$format" "$stripped_key" "$value"
2737
2738 # If the key exists, change it. Otherwise, add it to the config_file.
2739 # We search for the key string followed by a word boundary (matched by \&gt;),
2740 # so if we search for 'setting', 'setting2' won't match.
2741 if LC_ALL=C grep -q -m 1 $grep_case_insensitive_option -e "${key}\\&gt;" "$config_file"; then
2742 "${sed_command[@]}" "s/${key}\\&gt;.*/$formatted_output/g$sed_case_insensitive_option" "$config_file"
2743 else
2744 # \n is precaution for case where file ends without trailing newline
2745 printf '\n# Per %s: Set %s in %s\n' "$cce" "$formatted_output" "$config_file" &gt;&gt; "$config_file"
2746 printf '%s\n' "$formatted_output" &gt;&gt; "$config_file"
2747 fi
2748 }</ns9:value>
2749 </ns9:Value>
2750 <ns9:Value hidden="true" id="xccdf_org.ssgproject.content_value_function_die" operator="equals" prohibitChanges="true" type="string">
2751 <ns9:title xml:lang="en-US">Remediation function die</ns9:title>
2752 <ns9:description xml:lang="en-US">Shared bash remediation function. Not intended to be changed by tailoring.</ns9:description>
2753 <ns9:value># Print a message to stderr and exit the shell
2754 # $1: The message to print.
2755 # $2: The error code (optional, default is 1)
2756 function die {
2757 local _message="$1" _rc="${2:-1}"
2758 printf '%s\n' "$_message" &gt;&amp;2
2759 exit "$_rc"
2760 }</ns9:value>
2761 </ns9:Value>
2762 </ns9:Group>
2763 <ns9:Group id="xccdf_org.ssgproject.content_group_firefox">
2764 <ns9:title xml:lang="en-US">Firefox</ns9:title>
2765 <ns9:description xml:lang="en-US">Firefox is an open-source web browser and developed by Mozilla.
2766 Web browsers such as Firefox are used for a number of reasons. This section
2767 provides settings for configuring Firefox policies to meet compliance
2768 settings for Firefox running on Red Hat Enterprise Linux systems.
2769
2770 <html:ul>Refer to <html:li><html:a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries">http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries</html:a></html:li>
2771 for a list of currently supported Firefox settings.</html:ul></ns9:description>
2772 <ns9:Value id="xccdf_org.ssgproject.content_value_var_required_file_types" type="string">
2773 <ns9:title xml:lang="en-US">The Default Required Firefox File Types</ns9:title>
2774 <ns9:description xml:lang="en-US">The default required file types that need to request usage
2775 confirmation in Firefox.</ns9:description>
2776 <ns9:value>application/pdf,application/doc,application/xls,application/bat,application/ppt,application/mdb,application/mde,application/fdf,application/xfdf,application/lsl,application/lso,appliation/lss,application/iqy,application/rqy,application/xlk,application/pot,application/pps,application/dot,application/wbk,application/ps,application/eps,application/wch,application/wcm,application/wbi,application/wb1,application/wb3,application/rtf,application/wch,application/wcm,application/ad,application/adp,application/xlt,application/dos,application/wks</ns9:value>
2777 </ns9:Value>
2778 <ns9:Value id="xccdf_org.ssgproject.content_value_var_default_home_page" type="string">
2779 <ns9:title xml:lang="en-US">The Default Firefox Home Page</ns9:title>
2780 <ns9:description xml:lang="en-US">The default home page for Firefox users.</ns9:description>
2781 <ns9:value selector="about_blank">about:blank</ns9:value>
2782 <ns9:value>None</ns9:value>
2783 </ns9:Value>
2784 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-home_page" selected="false" severity="medium">
2785 <ns9:title xml:lang="en-US">Default Firefox Home Page Configured</ns9:title>
2786 <ns9:description xml:lang="en-US">The default home page is set to a vendor's defined website or
2787 Firefox's own website. This can be changed to an organizationally defined website
2788 or <html:code>about:blank</html:code>. To set the default home page, set
2789 <html:code>browser.startup.homepage</html:code> to <html:code><ns9:sub idref="xccdf_org.ssgproject.content_value_var_default_home_page" use="legacy"/></html:code>.</ns9:description>
2790 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
2791 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF017</ns9:reference>
2792 <ns9:rationale xml:lang="en-US">The browser home page parameter specifies the web page that is to be
2793 displayed when the browser is started explicitly and when product-specific
2794 buttons or key sequences for the home page are accessed. This helps to
2795 mitigate the possibility of automatic inadvertent execution of scripts
2796 added to a previously safe site.</ns9:rationale>
2797 <ns9:fix id="firefox_preferences-home_page" system="urn:xccdf:fix:script:sh">
2798 var_default_home_page="<ns9:sub idref="xccdf_org.ssgproject.content_value_var_default_home_page" use="legacy"/>"
2799
2800
2801 firefox_cfg="stig.cfg"
2802 value="\"${var_default_home_page}\""
2803 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
2804
2805 # Check the possible Firefox install directories
2806 for firefox_dir in ${firefox_dirs}; do
2807 # If the Firefox directory exists, then Firefox is installed
2808 if [ -d "${firefox_dir}" ]; then
2809 # Make sure the Firefox .cfg file exists and has the appropriate permissions
2810 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
2811 touch "${firefox_dir}/${firefox_cfg}"
2812 chmod 644 "${firefox_dir}/${firefox_cfg}"
2813 fi
2814
2815 # If the key exists, change it. Otherwise, add it to the config_file.
2816 if LC_ALL=C grep -m 1 -q '^lockPref("browser.startup.homepage", ' "${firefox_dir}/${firefox_cfg}"; then
2817 sed -i 's/lockPref("browser.startup.homepage".*/lockPref("browser.startup.homepage", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
2818 else
2819 echo 'lockPref("browser.startup.homepage", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
2820 fi
2821 fi
2822 done
2823 </ns9:fix>
2824 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
2825 <ns9:check-export export-name="oval:ssg-var_default_home_page:var:1" value-id="xccdf_org.ssgproject.content_value_var_default_home_page"/>
2826 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-home_page:def:1"/>
2827 </ns9:check>
2828 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
2829 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-home_page_ocil:questionnaire:1"/>
2830 </ns9:check>
2831 </ns9:Rule>
2832 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-non-secure_page_warning" selected="false" severity="medium">
2833 <ns9:title xml:lang="en-US">Enable Non-Secure Page Warnings</ns9:title>
2834 <ns9:description xml:lang="en-US">When users browse websites, web pages can switch in between secure and
2835 non-secure protocols. Users can be warned each time by
2836 setting <html:code>security.warn_leaving_secure</html:code> to <html:code>true</html:code>.</ns9:description>
2837 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
2838 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF130</ns9:reference>
2839 <ns9:rationale xml:lang="en-US">Users may not be aware that the information being viewed under secure
2840 conditions in a previous page are not currently being viewed under
2841 the same security settings.</ns9:rationale>
2842 <ns9:fix id="firefox_preferences-non-secure_page_warning" system="urn:xccdf:fix:script:sh">
2843
2844 firefox_cfg="stig.cfg"
2845 value="true"
2846 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
2847
2848 # Check the possible Firefox install directories
2849 for firefox_dir in ${firefox_dirs}; do
2850 # If the Firefox directory exists, then Firefox is installed
2851 if [ -d "${firefox_dir}" ]; then
2852 # Make sure the Firefox .cfg file exists and has the appropriate permissions
2853 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
2854 touch "${firefox_dir}/${firefox_cfg}"
2855 chmod 644 "${firefox_dir}/${firefox_cfg}"
2856 fi
2857
2858 # If the key exists, change it. Otherwise, add it to the config_file.
2859 if LC_ALL=C grep -m 1 -q '^lockPref("security.warn_leaving_secure", ' "${firefox_dir}/${firefox_cfg}"; then
2860 sed -i 's/lockPref("security.warn_leaving_secure".*/lockPref("security.warn_leaving_secure", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
2861 else
2862 echo 'lockPref("security.warn_leaving_secure", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
2863 fi
2864 fi
2865 done
2866 </ns9:fix>
2867 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
2868 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-non-secure_page_warning:def:1"/>
2869 </ns9:check>
2870 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
2871 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-non-secure_page_warning_ocil:questionnaire:1"/>
2872 </ns9:check>
2873 </ns9:Rule>
2874 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-ssl_version_3" selected="false" severity="medium">
2875 <ns9:title xml:lang="en-US">Disable SSL Version 3.0 in Firefox</ns9:title>
2876 <ns9:description xml:lang="en-US">SSL version 3.0 is vulnerable and should be disabled by setting
2877 <html:code>security.enable_ssl3</html:code> to <html:code>false</html:code>.</ns9:description>
2878 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
2879 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF020</ns9:reference>
2880 <ns9:rationale xml:lang="en-US">Earlier versions of SSL have known security vulnerabilities and are not
2881 authorized for use in DOD.</ns9:rationale>
2882 <ns9:fix id="firefox_preferences-ssl_version_3" system="urn:xccdf:fix:script:sh">
2883
2884 firefox_cfg="stig.cfg"
2885 value="false"
2886 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
2887
2888 # Check the possible Firefox install directories
2889 for firefox_dir in ${firefox_dirs}; do
2890 # If the Firefox directory exists, then Firefox is installed
2891 if [ -d "${firefox_dir}" ]; then
2892 # Make sure the Firefox .cfg file exists and has the appropriate permissions
2893 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
2894 touch "${firefox_dir}/${firefox_cfg}"
2895 chmod 644 "${firefox_dir}/${firefox_cfg}"
2896 fi
2897
2898 # If the key exists, change it. Otherwise, add it to the config_file.
2899 if LC_ALL=C grep -m 1 -q '^lockPref("security.enable_ssl3", ' "${firefox_dir}/${firefox_cfg}"; then
2900 sed -i 's/lockPref("security.enable_ssl3".*/lockPref("security.enable_ssl3", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
2901 else
2902 echo 'lockPref("security.enable_ssl3", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
2903 fi
2904 fi
2905 done
2906 </ns9:fix>
2907 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
2908 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-ssl_version_3:def:1"/>
2909 </ns9:check>
2910 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
2911 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-ssl_version_3_ocil:questionnaire:1"/>
2912 </ns9:check>
2913 </ns9:Rule>
2914 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-password_store" selected="false" severity="medium">
2915 <ns9:title xml:lang="en-US">Disable the Firefox Password Store</ns9:title>
2916 <ns9:description xml:lang="en-US">Firefox allows users to store passwords whether or not a master password
2917 is set for the password store. To disable the storing of passwords, set
2918 <html:code>signon.rememberSignons</html:code> to <html:code>false</html:code>.</ns9:description>
2919 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
2920 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF160</ns9:reference>
2921 <ns9:rationale xml:lang="en-US">Autofill of a password can be enabled when a site is visited. This feature could also
2922 be used to autofill the certificate pin which could lead to compromise of DoD information.</ns9:rationale>
2923 <ns9:fix id="firefox_preferences-password_store" system="urn:xccdf:fix:script:sh">
2924
2925 firefox_cfg="stig.cfg"
2926 value="false"
2927 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
2928
2929 # Check the possible Firefox install directories
2930 for firefox_dir in ${firefox_dirs}; do
2931 # If the Firefox directory exists, then Firefox is installed
2932 if [ -d "${firefox_dir}" ]; then
2933 # Make sure the Firefox .cfg file exists and has the appropriate permissions
2934 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
2935 touch "${firefox_dir}/${firefox_cfg}"
2936 chmod 644 "${firefox_dir}/${firefox_cfg}"
2937 fi
2938
2939 # If the key exists, change it. Otherwise, add it to the config_file.
2940 if LC_ALL=C grep -m 1 -q '^lockPref("signon.rememberSignons", ' "${firefox_dir}/${firefox_cfg}"; then
2941 sed -i 's/lockPref("signon.rememberSignons".*/lockPref("signon.rememberSignons", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
2942 else
2943 echo 'lockPref("signon.rememberSignons", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
2944 fi
2945 fi
2946 done
2947 </ns9:fix>
2948 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
2949 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-password_store:def:1"/>
2950 </ns9:check>
2951 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
2952 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-password_store_ocil:questionnaire:1"/>
2953 </ns9:check>
2954 </ns9:Rule>
2955 <ns9:Rule id="xccdf_org.ssgproject.content_rule_installed_firefox_version_supported" selected="false" severity="high">
2956 <ns9:title xml:lang="en-US">Supported Version of Firefox Installed</ns9:title>
2957 <ns9:description xml:lang="en-US">If the system is joined to the Red Hat Network, a Red Hat Satellite Server,
2958 or a yum server, run the following command to install updates:
2959 <html:pre>$ sudo yum update</html:pre>
2960 If the system is not configured to use one of these sources, updates (in the form of RPM packages)
2961 can be manually downloaded and installed using <html:code>rpm</html:code>.</ns9:description>
2962 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">DCMC-1</ns9:reference>
2963 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF003</ns9:reference>
2964 <ns9:rationale xml:lang="en-US">Use of versions of an application which are not supported by the vendor
2965 are not permitted. Vendors respond to security flaws with updates and
2966 patches. These updates are not available for unsupported version which
2967 can leave the application vulnerable to attack.</ns9:rationale>
2968 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
2969 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-installed_firefox_version_supported:def:1"/>
2970 </ns9:check>
2971 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
2972 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-installed_firefox_version_supported_ocil:questionnaire:1"/>
2973 </ns9:check>
2974 </ns9:Rule>
2975 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-auto-download_actions" selected="false" severity="medium">
2976 <ns9:title xml:lang="en-US">Disable Automatic Downloads of MIME Types</ns9:title>
2977 <ns9:description xml:lang="en-US">MIME type files are automatically downloaded or executed in Firefox. This
2978 can be disabled by setting <html:code>browser.helperApps.alwaysAsk.force</html:code> to
2979 <html:code>true</html:code>.</ns9:description>
2980 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">DCMC-1</ns9:reference>
2981 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF100</ns9:reference>
2982 <ns9:rationale xml:lang="en-US">The default action for file types for which a plugin is installed is to
2983 automatically download and execute the file using the associated plugin.
2984 Firefox allows users to change the specified download action so that the
2985 file is opened with a selected external application or saved to disk
2986 instead.</ns9:rationale>
2987 <ns9:fix id="firefox_preferences-auto-download_actions" system="urn:xccdf:fix:script:sh">
2988
2989 firefox_cfg="stig.cfg"
2990 value="true"
2991 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
2992
2993 # Check the possible Firefox install directories
2994 for firefox_dir in ${firefox_dirs}; do
2995 # If the Firefox directory exists, then Firefox is installed
2996 if [ -d "${firefox_dir}" ]; then
2997 # Make sure the Firefox .cfg file exists and has the appropriate permissions
2998 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
2999 touch "${firefox_dir}/${firefox_cfg}"
3000 chmod 644 "${firefox_dir}/${firefox_cfg}"
3001 fi
3002
3003 # If the key exists, change it. Otherwise, add it to the config_file.
3004 if LC_ALL=C grep -m 1 -q '^lockPref("browser.helperApps.alwaysAsk.force", ' "${firefox_dir}/${firefox_cfg}"; then
3005 sed -i 's/lockPref("browser.helperApps.alwaysAsk.force".*/lockPref("browser.helperApps.alwaysAsk.force", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3006 else
3007 echo 'lockPref("browser.helperApps.alwaysAsk.force", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3008 fi
3009 fi
3010 done
3011 </ns9:fix>
3012 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3013 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-auto-download_actions:def:1"/>
3014 </ns9:check>
3015 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3016 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-auto-download_actions_ocil:questionnaire:1"/>
3017 </ns9:check>
3018 </ns9:Rule>
3019 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_context_menus" selected="false" severity="medium">
3020 <ns9:title xml:lang="en-US">Disable JavaScript Context Menus</ns9:title>
3021 <ns9:description xml:lang="en-US">JavaScript can configure and make changes to the web browser's appearance by
3022 specifically disabling or replacing context menus. This can be disabled by
3023 setting <html:code>dom.event.contextmenu.enabled</html:code> to <html:code>false</html:code>.</ns9:description>
3024 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3025 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF183</ns9:reference>
3026 <ns9:rationale xml:lang="en-US">A website may execute JavaScript that can make changes to these
3027 context menus. This can help disguise an attack.</ns9:rationale>
3028 <ns9:fix id="firefox_preferences-javascript_context_menus" system="urn:xccdf:fix:script:sh">
3029
3030 firefox_cfg="stig.cfg"
3031 value="false"
3032 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3033
3034 # Check the possible Firefox install directories
3035 for firefox_dir in ${firefox_dirs}; do
3036 # If the Firefox directory exists, then Firefox is installed
3037 if [ -d "${firefox_dir}" ]; then
3038 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3039 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3040 touch "${firefox_dir}/${firefox_cfg}"
3041 chmod 644 "${firefox_dir}/${firefox_cfg}"
3042 fi
3043
3044 # If the key exists, change it. Otherwise, add it to the config_file.
3045 if LC_ALL=C grep -m 1 -q '^lockPref("dom.event.contextmenu.enabled", ' "${firefox_dir}/${firefox_cfg}"; then
3046 sed -i 's/lockPref("dom.event.contextmenu.enabled".*/lockPref("dom.event.contextmenu.enabled", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3047 else
3048 echo 'lockPref("dom.event.contextmenu.enabled", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3049 fi
3050 fi
3051 done
3052 </ns9:fix>
3053 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3054 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-javascript_context_menus:def:1"/>
3055 </ns9:check>
3056 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3057 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-javascript_context_menus_ocil:questionnaire:1"/>
3058 </ns9:check>
3059 </ns9:Rule>
3060 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-open_confirmation" selected="false" severity="medium">
3061 <ns9:title xml:lang="en-US">Enable Downloading and Opening File Confirmation</ns9:title>
3062 <ns9:description xml:lang="en-US">To have an action dialog box appear promping users what action to take when
3063 certain types of files are downloaded or opened, set
3064 <html:code>plugin.disable_full_page_plugin_for_types</html:code> to
3065 <html:code><ns9:sub idref="xccdf_org.ssgproject.content_value_var_required_file_types" use="legacy"/></html:code>.</ns9:description>
3066 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3067 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF110</ns9:reference>
3068 <ns9:rationale xml:lang="en-US">When the user receives a dialog box asking if they want to save the file
3069 or open it with a specified application, this indicates that a plugin does
3070 not exist. Also, the user has not previously selected a download action or helper
3071 application to automatically use for that type of file. When prompted, if the user
3072 checks the option to 'Do this automatically for files like this from now on', then
3073 an entry will appear for that type of file in the plugins listing, and this file
3074 type is automatically opened in the future. This can be a security issue. New file
3075 types cannot be added directly to the Application plugin listing.</ns9:rationale>
3076 <ns9:fix id="firefox_preferences-open_confirmation" system="urn:xccdf:fix:script:sh">
3077 var_required_file_types="<ns9:sub idref="xccdf_org.ssgproject.content_value_var_required_file_types" use="legacy"/>"
3078
3079
3080 firefox_cfg="stig.cfg"
3081 value="\"${var_required_file_types}\""
3082 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3083
3084 # Check the possible Firefox install directories
3085 for firefox_dir in ${firefox_dirs}; do
3086 # If the Firefox directory exists, then Firefox is installed
3087 if [ -d "${firefox_dir}" ]; then
3088 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3089 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3090 touch "${firefox_dir}/${firefox_cfg}"
3091 chmod 644 "${firefox_dir}/${firefox_cfg}"
3092 fi
3093
3094 # If the key exists, change it. Otherwise, add it to the config_file.
3095 if LC_ALL=C grep -m 1 -q '^lockPref("plugin.disable_full_page_plugin_for_types", ' "${firefox_dir}/${firefox_cfg}"; then
3096 sed -i 's|lockPref("plugin.disable_full_page_plugin_for_types".*|lockPref("plugin.disable_full_page_plugin_for_types", '"$value)"';|g' "${firefox_dir}/${firefox_cfg}"
3097 else
3098 echo 'lockPref("plugin.disable_full_page_plugin_for_types", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3099 fi
3100 fi
3101 done
3102 </ns9:fix>
3103 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3104 <ns9:check-export export-name="oval:ssg-var_required_file_types:var:1" value-id="xccdf_org.ssgproject.content_value_var_required_file_types"/>
3105 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-open_confirmation:def:1"/>
3106 </ns9:check>
3107 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3108 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-open_confirmation_ocil:questionnaire:1"/>
3109 </ns9:check>
3110 </ns9:Rule>
3111 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-verification" selected="false" severity="medium">
3112 <ns9:title xml:lang="en-US">Enable Certificate Verification</ns9:title>
3113 <ns9:description xml:lang="en-US">Firefox can be configured to prompt the user to choose a certificate
3114 to present to a website when asked. To enable certificate verification,
3115 set <html:code>security.default_personal_cert</html:code> to <html:code>Ask Every Time</html:code>.</ns9:description>
3116 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3117 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF050</ns9:reference>
3118 <ns9:rationale xml:lang="en-US">Websites within DoD require user authentication for access which increases
3119 security for DoD information. Access will be denied to the user if
3120 certificate management is not configured.</ns9:rationale>
3121 <ns9:fix id="firefox_preferences-verification" system="urn:xccdf:fix:script:sh">
3122
3123 firefox_cfg="stig.cfg"
3124 value="\"Ask Every Time\""
3125 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3126
3127 # Check the possible Firefox install directories
3128 for firefox_dir in ${firefox_dirs}; do
3129 # If the Firefox directory exists, then Firefox is installed
3130 if [ -d "${firefox_dir}" ]; then
3131 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3132 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3133 touch "${firefox_dir}/${firefox_cfg}"
3134 chmod 644 "${firefox_dir}/${firefox_cfg}"
3135 fi
3136
3137 # If the key exists, change it. Otherwise, add it to the config_file.
3138 if LC_ALL=C grep -m 1 -q '^lockPref("security.default_personal_cert", ' "${firefox_dir}/${firefox_cfg}"; then
3139 sed -i 's/lockPref("security.default_personal_cert".*/lockPref("security.default_personal_cert", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3140 else
3141 echo 'lockPref("security.default_personal_cert", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3142 fi
3143 fi
3144 done
3145 </ns9:fix>
3146 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3147 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-verification:def:1"/>
3148 </ns9:check>
3149 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3150 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-verification_ocil:questionnaire:1"/>
3151 </ns9:check>
3152 </ns9:Rule>
3153 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_window_resizing" selected="false" severity="medium">
3154 <ns9:title xml:lang="en-US">Disable JavaScript's Moving Or Resizing Windows Capability</ns9:title>
3155 <ns9:description xml:lang="en-US">JavaScript can configure and make changes to the web browser's appearance by
3156 specifically moving and resizing browser windows. This can be disabled by
3157 setting <html:code>dom.disable_window_move_resize</html:code> to <html:code>true</html:code>.</ns9:description>
3158 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3159 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF181</ns9:reference>
3160 <ns9:rationale xml:lang="en-US">JavaScript can make changes to the browser&#x2019;s appearance. This activity
3161 can help disguise an attack taking place in a minimized background window.</ns9:rationale>
3162 <ns9:fix id="firefox_preferences-javascript_window_resizing" system="urn:xccdf:fix:script:sh">
3163
3164 firefox_cfg="stig.cfg"
3165 value="true"
3166 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3167
3168 # Check the possible Firefox install directories
3169 for firefox_dir in ${firefox_dirs}; do
3170 # If the Firefox directory exists, then Firefox is installed
3171 if [ -d "${firefox_dir}" ]; then
3172 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3173 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3174 touch "${firefox_dir}/${firefox_cfg}"
3175 chmod 644 "${firefox_dir}/${firefox_cfg}"
3176 fi
3177
3178 # If the key exists, change it. Otherwise, add it to the config_file.
3179 if LC_ALL=C grep -m 1 -q '^lockPref("dom.disable_window_move_resize", ' "${firefox_dir}/${firefox_cfg}"; then
3180 sed -i 's/lockPref("dom.disable_window_move_resize".*/lockPref("dom.disable_window_move_resize", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3181 else
3182 echo 'lockPref("dom.disable_window_move_resize", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3183 fi
3184 fi
3185 done
3186 </ns9:fix>
3187 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3188 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-javascript_window_resizing:def:1"/>
3189 </ns9:check>
3190 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3191 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-javascript_window_resizing_ocil:questionnaire:1"/>
3192 </ns9:check>
3193 </ns9:Rule>
3194 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-search_update" selected="false" severity="medium">
3195 <ns9:title xml:lang="en-US">Disable Installed Search Plugins Update Checking</ns9:title>
3196 <ns9:description xml:lang="en-US">Firefox automatically checks for updated versions of search plugins.
3197 To disable the automatic updates of plugins, set
3198 <html:code>browser.search.update</html:code> to <html:code>false</html:code>.</ns9:description>
3199 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3200 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF085</ns9:reference>
3201 <ns9:rationale xml:lang="en-US">Updates need to be controlled and installed from authorized and trusted servers.
3202 This setting overrides a number of other settings which may direct the application
3203 to access external URLs.</ns9:rationale>
3204 <ns9:fix id="firefox_preferences-search_update" system="urn:xccdf:fix:script:sh">
3205
3206 firefox_cfg="stig.cfg"
3207 value="false"
3208 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3209
3210 # Check the possible Firefox install directories
3211 for firefox_dir in ${firefox_dirs}; do
3212 # If the Firefox directory exists, then Firefox is installed
3213 if [ -d "${firefox_dir}" ]; then
3214 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3215 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3216 touch "${firefox_dir}/${firefox_cfg}"
3217 chmod 644 "${firefox_dir}/${firefox_cfg}"
3218 fi
3219
3220 # If the key exists, change it. Otherwise, add it to the config_file.
3221 if LC_ALL=C grep -m 1 -q '^lockPref("browser.search.update", ' "${firefox_dir}/${firefox_cfg}"; then
3222 sed -i 's/lockPref("browser.search.update".*/lockPref("browser.search.update", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3223 else
3224 echo 'lockPref("browser.search.update", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3225 fi
3226 fi
3227 done
3228 </ns9:fix>
3229 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3230 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-search_update:def:1"/>
3231 </ns9:check>
3232 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3233 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-search_update_ocil:questionnaire:1"/>
3234 </ns9:check>
3235 </ns9:Rule>
3236 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-autofill_forms" selected="false" severity="medium">
3237 <ns9:title xml:lang="en-US">Disable Autofill Form Assistance</ns9:title>
3238 <ns9:description xml:lang="en-US">Firefox provides tools to auto-fill forms from prefilled information.
3239 This can be disabled by setting <html:code>browser.formfill.enable</html:code> to
3240 <html:code>false</html:code>.</ns9:description>
3241 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3242 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF140</ns9:reference>
3243 <ns9:rationale xml:lang="en-US">In order to protect privacy and sensitive data, Firefox provides
3244 the ability to configure Firefox such that data entered into forms
3245 is not saved. This mitigates the risk of a website gleaning private
3246 information from prefilled information.</ns9:rationale>
3247 <ns9:fix id="firefox_preferences-autofill_forms" system="urn:xccdf:fix:script:sh">
3248
3249 firefox_cfg="stig.cfg"
3250 value="false"
3251 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3252
3253 # Check the possible Firefox install directories
3254 for firefox_dir in ${firefox_dirs}; do
3255 # If the Firefox directory exists, then Firefox is installed
3256 if [ -d "${firefox_dir}" ]; then
3257 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3258 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3259 touch "${firefox_dir}/${firefox_cfg}"
3260 chmod 644 "${firefox_dir}/${firefox_cfg}"
3261 fi
3262
3263 # If the key exists, change it. Otherwise, add it to the config_file.
3264 if LC_ALL=C grep -m 1 -q '^lockPref("browser.formfill.enable", ' "${firefox_dir}/${firefox_cfg}"; then
3265 sed -i 's/lockPref("browser.formfill.enable".*/lockPref("browser.formfill.enable", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3266 else
3267 echo 'lockPref("browser.formfill.enable", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3268 fi
3269 fi
3270 done
3271 </ns9:fix>
3272 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3273 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-autofill_forms:def:1"/>
3274 </ns9:check>
3275 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3276 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-autofill_forms_ocil:questionnaire:1"/>
3277 </ns9:check>
3278 </ns9:Rule>
3279 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-shell_protocol" selected="false" severity="medium">
3280 <ns9:title xml:lang="en-US">Disable Firefox Access to Shell Protocols</ns9:title>
3281 <ns9:description xml:lang="en-US">Access to the shell is disabled by default but can be changed.
3282 To prevent shell access from being enabled, set
3283 <html:code>network.protocol-handler.external.shell</html:code> to <html:code>false</html:code>.</ns9:description>
3284 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3285 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF105</ns9:reference>
3286 <ns9:rationale xml:lang="en-US">If enabled, this setting would allow the browser to access the Windows shell.
3287 This could allow access to the underlying system.</ns9:rationale>
3288 <ns9:fix id="firefox_preferences-shell_protocol" system="urn:xccdf:fix:script:sh">
3289
3290 firefox_cfg="stig.cfg"
3291 value="false"
3292 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3293
3294 # Check the possible Firefox install directories
3295 for firefox_dir in ${firefox_dirs}; do
3296 # If the Firefox directory exists, then Firefox is installed
3297 if [ -d "${firefox_dir}" ]; then
3298 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3299 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3300 touch "${firefox_dir}/${firefox_cfg}"
3301 chmod 644 "${firefox_dir}/${firefox_cfg}"
3302 fi
3303
3304 # If the key exists, change it. Otherwise, add it to the config_file.
3305 if LC_ALL=C grep -m 1 -q '^lockPref("network.protocol-handler.external.shell", ' "${firefox_dir}/${firefox_cfg}"; then
3306 sed -i 's/lockPref("network.protocol-handler.external.shell".*/lockPref("network.protocol-handler.external.shell", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3307 else
3308 echo 'lockPref("network.protocol-handler.external.shell", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3309 fi
3310 fi
3311 done
3312 </ns9:fix>
3313 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3314 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-shell_protocol:def:1"/>
3315 </ns9:check>
3316 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3317 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-shell_protocol_ocil:questionnaire:1"/>
3318 </ns9:check>
3319 </ns9:Rule>
3320 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-addons_plugin_updates" selected="false" severity="medium">
3321 <ns9:title xml:lang="en-US">Disable Addons Plugin Updates</ns9:title>
3322 <ns9:description xml:lang="en-US">Firefox automatically updates installed add-ons and plugins which
3323 can be disabled by setting <html:code>extensions.update.enabled</html:code> to
3324 <html:code>false</html:code>.</ns9:description>
3325 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3326 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF090</ns9:reference>
3327 <ns9:rationale xml:lang="en-US">Automatic updates from untrusted sites puts the enclave at
3328 risk of attack and may override security settings.</ns9:rationale>
3329 <ns9:fix id="firefox_preferences-addons_plugin_updates" system="urn:xccdf:fix:script:sh">
3330
3331 firefox_cfg="stig.cfg"
3332 value="false"
3333 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3334
3335 # Check the possible Firefox install directories
3336 for firefox_dir in ${firefox_dirs}; do
3337 # If the Firefox directory exists, then Firefox is installed
3338 if [ -d "${firefox_dir}" ]; then
3339 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3340 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3341 touch "${firefox_dir}/${firefox_cfg}"
3342 chmod 644 "${firefox_dir}/${firefox_cfg}"
3343 fi
3344
3345 # If the key exists, change it. Otherwise, add it to the config_file.
3346 if LC_ALL=C grep -m 1 -q '^lockPref("extensions.update.enabled", ' "${firefox_dir}/${firefox_cfg}"; then
3347 sed -i 's/lockPref("extensions.update.enabled".*/lockPref("extensions.update.enabled", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3348 else
3349 echo 'lockPref("extensions.update.enabled", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3350 fi
3351 fi
3352 done
3353 </ns9:fix>
3354 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3355 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-addons_plugin_updates:def:1"/>
3356 </ns9:check>
3357 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3358 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-addons_plugin_updates_ocil:questionnaire:1"/>
3359 </ns9:check>
3360 </ns9:Rule>
3361 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-autofill_passwords" selected="false" severity="medium">
3362 <ns9:title xml:lang="en-US">Disable User Ability To Autofill Passwords</ns9:title>
3363 <ns9:description xml:lang="en-US">Firefox automatically allows users to save passwords to be auto-filled
3364 into password forms. This can be disabled by setting
3365 <html:code>signon.prefillForms</html:code> to <html:code>false</html:code>.</ns9:description>
3366 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3367 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF150</ns9:reference>
3368 <ns9:rationale xml:lang="en-US">While on the internet, it may be possible for an attacker to view
3369 the saved password files and gain access to the user's accounts on
3370 various hosts.</ns9:rationale>
3371 <ns9:fix id="firefox_preferences-autofill_passwords" system="urn:xccdf:fix:script:sh">
3372
3373 firefox_cfg="stig.cfg"
3374 value="false"
3375 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3376
3377 # Check the possible Firefox install directories
3378 for firefox_dir in ${firefox_dirs}; do
3379 # If the Firefox directory exists, then Firefox is installed
3380 if [ -d "${firefox_dir}" ]; then
3381 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3382 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3383 touch "${firefox_dir}/${firefox_cfg}"
3384 chmod 644 "${firefox_dir}/${firefox_cfg}"
3385 fi
3386
3387 # If the key exists, change it. Otherwise, add it to the config_file.
3388 if LC_ALL=C grep -m 1 -q '^lockPref("signon.prefillForms", ' "${firefox_dir}/${firefox_cfg}"; then
3389 sed -i 's/lockPref("signon.prefillForms".*/lockPref("signon.prefillForms", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3390 else
3391 echo 'lockPref("signon.prefillForms", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3392 fi
3393 fi
3394 done
3395 </ns9:fix>
3396 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3397 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-autofill_passwords:def:1"/>
3398 </ns9:check>
3399 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3400 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-autofill_passwords_ocil:questionnaire:1"/>
3401 </ns9:check>
3402 </ns9:Rule>
3403 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-ssl_version_2" selected="false" severity="medium">
3404 <ns9:title xml:lang="en-US">Disable SSL Version 2.0 in Firefox</ns9:title>
3405 <ns9:description xml:lang="en-US">SSL version 2 is not enabled by default and should not be enabled.
3406 To prevent SSL version 2 from being enabled set
3407 <html:code>security.enable_ssl2</html:code> to <html:code>false</html:code>.</ns9:description>
3408 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3409 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF010</ns9:reference>
3410 <ns9:rationale xml:lang="en-US">Use of versions prior to TLS 1.0 are not permitted because these versions are
3411 non-standard. SSL 2.0 and SSL 3.0 contain a number of security flaws.</ns9:rationale>
3412 <ns9:fix id="firefox_preferences-ssl_version_2" system="urn:xccdf:fix:script:sh">
3413
3414 firefox_cfg="stig.cfg"
3415 value="false"
3416 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3417
3418 # Check the possible Firefox install directories
3419 for firefox_dir in ${firefox_dirs}; do
3420 # If the Firefox directory exists, then Firefox is installed
3421 if [ -d "${firefox_dir}" ]; then
3422 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3423 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3424 touch "${firefox_dir}/${firefox_cfg}"
3425 chmod 644 "${firefox_dir}/${firefox_cfg}"
3426 fi
3427
3428 # If the key exists, change it. Otherwise, add it to the config_file.
3429 if LC_ALL=C grep -m 1 -q '^lockPref("security.enable_ssl2", ' "${firefox_dir}/${firefox_cfg}"; then
3430 sed -i 's/lockPref("security.enable_ssl2".*/lockPref("security.enable_ssl2", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3431 else
3432 echo 'lockPref("security.enable_ssl2", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3433 fi
3434 fi
3435 done
3436 </ns9:fix>
3437 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3438 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-ssl_version_2:def:1"/>
3439 </ns9:check>
3440 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3441 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-ssl_version_2_ocil:questionnaire:1"/>
3442 </ns9:check>
3443 </ns9:Rule>
3444 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-ssl_protocol_tls" selected="false" severity="medium">
3445 <ns9:title xml:lang="en-US">Enable TLS Usage in Firefox</ns9:title>
3446 <ns9:description xml:lang="en-US">To enable TLS, set <html:code>security.enable_tls</html:code> to <html:code>true</html:code>.</ns9:description>
3447 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3448 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF030</ns9:reference>
3449 <ns9:rationale xml:lang="en-US">Earlier versions of SSL have known security vulnerabilities and are not
3450 authorized for use in DOD environments.</ns9:rationale>
3451 <ns9:fix id="firefox_preferences-ssl_protocol_tls" system="urn:xccdf:fix:script:sh">
3452
3453 firefox_cfg="stig.cfg"
3454 value="true"
3455 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3456
3457 # Check the possible Firefox install directories
3458 for firefox_dir in ${firefox_dirs}; do
3459 # If the Firefox directory exists, then Firefox is installed
3460 if [ -d "${firefox_dir}" ]; then
3461 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3462 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3463 touch "${firefox_dir}/${firefox_cfg}"
3464 chmod 644 "${firefox_dir}/${firefox_cfg}"
3465 fi
3466
3467 # If the key exists, change it. Otherwise, add it to the config_file.
3468 if LC_ALL=C grep -m 1 -q '^lockPref("security.enable_tls", ' "${firefox_dir}/${firefox_cfg}"; then
3469 sed -i 's/lockPref("security.enable_tls".*/lockPref("security.enable_tls", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3470 else
3471 echo 'lockPref("security.enable_tls", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3472 fi
3473 fi
3474 done
3475 </ns9:fix>
3476 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3477 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-ssl_protocol_tls:def:1"/>
3478 </ns9:check>
3479 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3480 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-ssl_protocol_tls_ocil:questionnaire:1"/>
3481 </ns9:check>
3482 </ns9:Rule>
3483 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_status_bar_text" selected="false" severity="medium">
3484 <ns9:title xml:lang="en-US">Disable JavaScript's Ability To Modify The Browser Appearance</ns9:title>
3485 <ns9:description xml:lang="en-US">JavaScript can configure and make changes to the web browser's appearance by
3486 specifically hiding the status bar from view. This can disabled by
3487 setting <html:code>dom.disable_window_open_feature.status</html:code> to <html:code>true</html:code>.</ns9:description>
3488 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3489 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF185</ns9:reference>
3490 <ns9:rationale xml:lang="en-US">JavaScript can make changes to the browser&#x2019;s appearance. This activity
3491 can help disguise an attack taking place in a minimized background window.
3492 Webpage authors can disable many features of a popup window that they open.
3493 This setting prevents the status bar from being hidden.</ns9:rationale>
3494 <ns9:fix id="firefox_preferences-javascript_status_bar_text" system="urn:xccdf:fix:script:sh">
3495
3496
3497 firefox_cfg="stig.cfg"
3498 value="true"
3499 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3500
3501 # Check the possible Firefox install directories
3502 for firefox_dir in ${firefox_dirs}; do
3503 # If the Firefox directory exists, then Firefox is installed
3504 if [ -d "${firefox_dir}" ]; then
3505 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3506 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3507 touch "${firefox_dir}/${firefox_cfg}"
3508 chmod 644 "${firefox_dir}/${firefox_cfg}"
3509 fi
3510
3511 # If the key exists, change it. Otherwise, add it to the config_file.
3512 if LC_ALL=C grep -m 1 -q '^lockPref("dom.disable_window_open_feature.status", ' "${firefox_dir}/${firefox_cfg}"; then
3513 sed -i 's/lockPref("dom.disable_window_open_feature.status".*/lockPref("dom.disable_window_open_feature.status", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3514 else
3515 echo 'lockPref("dom.disable_window_open_feature.status", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3516 fi
3517 fi
3518 done
3519 </ns9:fix>
3520 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3521 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-javascript_status_bar_text:def:1"/>
3522 </ns9:check>
3523 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3524 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-javascript_status_bar_text_ocil:questionnaire:1"/>
3525 </ns9:check>
3526 </ns9:Rule>
3527 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_window_changes" selected="false" severity="medium">
3528 <ns9:title xml:lang="en-US">Disable JavaScript's Raise Or Lower Windows Capability</ns9:title>
3529 <ns9:description xml:lang="en-US">JavaScript can configure and make changes to the web browser's appearance by
3530 specifically raising and lowering windows. This can be disabled by
3531 setting <html:code>dom.disable_window_flip</html:code> to <html:code>true</html:code>.</ns9:description>
3532 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3533 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF182</ns9:reference>
3534 <ns9:rationale xml:lang="en-US">JavaScript can make changes to the browser&#x2019;s appearance. Allowing a website
3535 to use JavaScript to raise and lower browser windows may disguise an attack.</ns9:rationale>
3536 <ns9:fix id="firefox_preferences-javascript_window_changes" system="urn:xccdf:fix:script:sh">
3537
3538 firefox_cfg="stig.cfg"
3539 value="true"
3540 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3541
3542 # Check the possible Firefox install directories
3543 for firefox_dir in ${firefox_dirs}; do
3544 # If the Firefox directory exists, then Firefox is installed
3545 if [ -d "${firefox_dir}" ]; then
3546 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3547 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3548 touch "${firefox_dir}/${firefox_cfg}"
3549 chmod 644 "${firefox_dir}/${firefox_cfg}"
3550 fi
3551
3552 # If the key exists, change it. Otherwise, add it to the config_file.
3553 if LC_ALL=C grep -m 1 -q '^lockPref("dom.disable_window_flip", ' "${firefox_dir}/${firefox_cfg}"; then
3554 sed -i 's/lockPref("dom.disable_window_flip".*/lockPref("dom.disable_window_flip", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3555 else
3556 echo 'lockPref("dom.disable_window_flip", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3557 fi
3558 fi
3559 done
3560 </ns9:fix>
3561 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3562 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-javascript_window_changes:def:1"/>
3563 </ns9:check>
3564 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3565 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-javascript_window_changes_ocil:questionnaire:1"/>
3566 </ns9:check>
3567 </ns9:Rule>
3568 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-javascript_status_bar_changes" selected="false" severity="medium">
3569 <ns9:title xml:lang="en-US">Disable JavaScript's Ability To Change The Status Bar</ns9:title>
3570 <ns9:description xml:lang="en-US">JavaScript can configure and make changes to the web browser's appearance by
3571 specifically hiding or changing the status bar. This can be disabled by
3572 setting <html:code>dom.disable_window_status_change</html:code> to <html:code>true</html:code>.</ns9:description>
3573 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3574 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF184</ns9:reference>
3575 <ns9:rationale xml:lang="en-US">When a user visits some webpages, JavaScript can hide or make changes
3576 to the browser&#x2019;s appearance to hide unauthorized activity. This activity
3577 can help disguise an attack taking place in a minimized background window.</ns9:rationale>
3578 <ns9:fix id="firefox_preferences-javascript_status_bar_changes" system="urn:xccdf:fix:script:sh">
3579
3580 firefox_cfg="stig.cfg"
3581 value="true"
3582 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3583
3584 # Check the possible Firefox install directories
3585 for firefox_dir in ${firefox_dirs}; do
3586 # If the Firefox directory exists, then Firefox is installed
3587 if [ -d "${firefox_dir}" ]; then
3588 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3589 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3590 touch "${firefox_dir}/${firefox_cfg}"
3591 chmod 644 "${firefox_dir}/${firefox_cfg}"
3592 fi
3593
3594 # If the key exists, change it. Otherwise, add it to the config_file.
3595 if LC_ALL=C grep -m 1 -q '^lockPref("dom.disable_window_status_change", ' "${firefox_dir}/${firefox_cfg}"; then
3596 sed -i 's/lockPref("dom.disable_window_status_change".*/lockPref("dom.disable_window_status_change", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3597 else
3598 echo 'lockPref("dom.disable_window_status_change", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3599 fi
3600 fi
3601 done
3602 </ns9:fix>
3603 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3604 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-javascript_status_bar_changes:def:1"/>
3605 </ns9:check>
3606 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3607 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-javascript_status_bar_changes_ocil:questionnaire:1"/>
3608 </ns9:check>
3609 </ns9:Rule>
3610 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-auto-update_of_firefox" selected="false" severity="medium">
3611 <ns9:title xml:lang="en-US">Disable Firefox Auto-Update Capability</ns9:title>
3612 <ns9:description xml:lang="en-US">Firefox can be set to automatically update as new updates. This can be
3613 disabled by setting <html:code>app.update.enable</html:code> to <html:code>false</html:code>.</ns9:description>
3614 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3615 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF080</ns9:reference>
3616 <ns9:rationale xml:lang="en-US">Allowing software updates from non-trusted sites can introduce settings
3617 that will override a secured installation of the application. This can
3618 place DoD information at risk. If this setting is enabled, then there are
3619 many other default settings which point to untrusted sites which must be
3620 changed to point to an authorized update site that is not publicly accessible.</ns9:rationale>
3621 <ns9:fix id="firefox_preferences-auto-update_of_firefox" system="urn:xccdf:fix:script:sh">
3622
3623 firefox_cfg="stig.cfg"
3624 value="false"
3625 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3626
3627 # Check the possible Firefox install directories
3628 for firefox_dir in ${firefox_dirs}; do
3629 # If the Firefox directory exists, then Firefox is installed
3630 if [ -d "${firefox_dir}" ]; then
3631 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3632 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3633 touch "${firefox_dir}/${firefox_cfg}"
3634 chmod 644 "${firefox_dir}/${firefox_cfg}"
3635 fi
3636
3637 # If the key exists, change it. Otherwise, add it to the config_file.
3638 if LC_ALL=C grep -m 1 -q '^lockPref("app.update.enabled", ' "${firefox_dir}/${firefox_cfg}"; then
3639 sed -i 's/lockPref("app.update.enabled".*/lockPref("app.update.enabled", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3640 else
3641 echo 'lockPref("app.update.enabled", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3642 fi
3643 fi
3644 done
3645 </ns9:fix>
3646 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3647 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-auto-update_of_firefox:def:1"/>
3648 </ns9:check>
3649 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3650 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-auto-update_of_firefox_ocil:questionnaire:1"/>
3651 </ns9:check>
3652 </ns9:Rule>
3653 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-pop-up_windows" selected="false" severity="medium">
3654 <ns9:title xml:lang="en-US">Enable Firefox Pop-up Blocker</ns9:title>
3655 <ns9:description xml:lang="en-US">The pop-up blocker can be enabled by setting
3656 <html:code>dom.disable_window_open_feature.status</html:code> to <html:code>true</html:code>.</ns9:description>
3657 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3658 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF180</ns9:reference>
3659 <ns9:rationale xml:lang="en-US">Popup windows may be used to launch an attack within a new browser window
3660 with altered settings.</ns9:rationale>
3661 <ns9:fix id="firefox_preferences-pop-up_windows" system="urn:xccdf:fix:script:sh">
3662
3663 firefox_cfg="stig.cfg"
3664 value="true"
3665 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3666
3667 # Check the possible Firefox install directories
3668 for firefox_dir in ${firefox_dirs}; do
3669 # If the Firefox directory exists, then Firefox is installed
3670 if [ -d "${firefox_dir}" ]; then
3671 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3672 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3673 touch "${firefox_dir}/${firefox_cfg}"
3674 chmod 644 "${firefox_dir}/${firefox_cfg}"
3675 fi
3676
3677 # If the key exists, change it. Otherwise, add it to the config_file.
3678 if LC_ALL=C grep -m 1 -q '^lockPref("dom.disable_window_open_feature.status", ' "${firefox_dir}/${firefox_cfg}"; then
3679 sed -i 's/lockPref("dom.disable_window_open_feature.status".*/lockPref("dom.disable_window_open_feature.status", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3680 else
3681 echo 'lockPref("dom.disable_window_open_feature.status", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3682 fi
3683 fi
3684 done
3685 </ns9:fix>
3686 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3687 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-pop-up_windows:def:1"/>
3688 </ns9:check>
3689 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3690 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-pop-up_windows_ocil:questionnaire:1"/>
3691 </ns9:check>
3692 </ns9:Rule>
3693 <ns9:Group id="xccdf_org.ssgproject.content_group_firefox_preferences-lock_settings">
3694 <ns9:title xml:lang="en-US">Prevent Users from Changing Firefox Configuration Settings</ns9:title>
3695 <ns9:description xml:lang="en-US">Firefox required security preferences cannot be changed by users.</ns9:description>
3696 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-lock_settings_config_file" selected="false" severity="medium">
3697 <ns9:title xml:lang="en-US">Set Firefox Configuration File Location</ns9:title>
3698 <ns9:description xml:lang="en-US">Specify the Firefox configuration file location by setting
3699 <html:code>general.config.filename</html:code> to the configuration (i.e. <html:code>mozilla.cfg</html:code>)
3700 filename that contains the Firefox security preferences.</ns9:description>
3701 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3702 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF070</ns9:reference>
3703 <ns9:rationale xml:lang="en-US">Locked settings prevents users from accessing about:config and changing
3704 the security settings set by the system administrator.</ns9:rationale>
3705 <ns9:fix id="firefox_preferences-lock_settings_config_file" system="urn:xccdf:fix:script:sh">
3706
3707 value="\"stig.cfg\""
3708 firefox_js="stig_settings.js"
3709 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3710 firefox_pref="/defaults/pref"
3711 firefox_preferences="/defaults/preferences"
3712
3713 # Check the possible Firefox install directories
3714 for firefox_dir in ${firefox_dirs}; do
3715 # If the Firefox directory exists, then Firefox is installed
3716 if [ -d "${firefox_dir}" ]; then
3717 # Different versions of Firefox have different preferences directories, check for them and set the right one
3718 if [ -d "${firefox_dir}/${firefox_pref}" ] ; then
3719 firefox_pref_dir="${firefox_dir}/${firefox_pref}"
3720 elif [ -d "${firefox_dir}/${firefox_preferences}" ] ; then
3721 firefox_pref_dir="${firefox_dir}/${firefox_preferences}"
3722 else
3723 mkdir -m 755 -p "${firefox_dir}/${firefox_preferences}"
3724 firefox_pref_dir="${firefox_dir}/${firefox_preferences}"
3725 fi
3726
3727 # Make sure the Firefox .js file exists and has the appropriate permissions
3728 if ! [ -f "${firefox_pref_dir}/${firefox_js}" ] ; then
3729 touch "${firefox_pref_dir}/${firefox_js}"
3730 chmod 644 "${firefox_pref_dir}/${firefox_js}"
3731 fi
3732
3733 # If the key exists, change it. Otherwise, add it to the config_file.
3734 if LC_ALL=C grep -m 1 -q '^pref("general.config.filename", ' "${firefox_pref_dir}/${firefox_js}"; then
3735 sed -i 's/pref("general.config.filename".*/pref("general.config.filename", '"$value)"';/g' "${firefox_pref_dir}/${firefox_js}"
3736 else
3737 echo 'pref("general.config.filename", '"$value"');' &gt;&gt; "${firefox_pref_dir}/${firefox_js}"
3738 fi
3739 fi
3740 done
3741 </ns9:fix>
3742 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3743 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-lock_settings_config_file:def:1"/>
3744 </ns9:check>
3745 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3746 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-lock_settings_config_file_ocil:questionnaire:1"/>
3747 </ns9:check>
3748 </ns9:Rule>
3749 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-lock_settings_obscure" selected="false" severity="medium">
3750 <ns9:title xml:lang="en-US">Disable Firefox Configuration File ROT-13 Encoding</ns9:title>
3751 <ns9:description xml:lang="en-US">Disable ROT-13 encoding by setting <html:code>general.config.obscure_value</html:code>
3752 to <html:code>0</html:code>.</ns9:description>
3753 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3754 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF070</ns9:reference>
3755 <ns9:rationale xml:lang="en-US">ROT-13 encoded prevents system adminstrators from easily configuring
3756 and deploying Firefox configuration settings. It also prevents validating
3757 settings easily from automated security tools.</ns9:rationale>
3758 <ns9:fix id="firefox_preferences-lock_settings_obscure" system="urn:xccdf:fix:script:sh">
3759
3760 value="0"
3761 firefox_js="stig_settings.js"
3762 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3763 firefox_pref="/defaults/pref"
3764 firefox_preferences="/defaults/preferences"
3765
3766 # Check the possible Firefox install directories
3767 for firefox_dir in ${firefox_dirs}; do
3768 # If the Firefox directory exists, then Firefox is installed
3769 if [ -d "${firefox_dir}" ]; then
3770 # Different versions of Firefox have different preferences directories, check for them and set the right one
3771 if [ -d "${firefox_dir}/${firefox_pref}" ] ; then
3772 firefox_pref_dir="${firefox_dir}/${firefox_pref}"
3773 elif [ -d "${firefox_dir}/${firefox_preferences}" ] ; then
3774 firefox_pref_dir="${firefox_dir}/${firefox_preferences}"
3775 else
3776 mkdir -m 755 -p "${firefox_dir}/${firefox_preferences}"
3777 firefox_pref_dir="${firefox_dir}/${firefox_preferences}"
3778 fi
3779
3780 # Make sure the Firefox .js file exists and has the appropriate permissions
3781 if ! [ -f "${firefox_pref_dir}/${firefox_js}" ] ; then
3782 touch "${firefox_pref_dir}/${firefox_js}"
3783 chmod 644 "${firefox_pref_dir}/${firefox_js}"
3784 fi
3785
3786 # If the key exists, change it. Otherwise, add it to the config_file.
3787 if LC_ALL=C grep -m 1 -q '^pref("general.config.obscure_value", ' "${firefox_pref_dir}/${firefox_js}"; then
3788 sed -i 's/pref("general.config.obscure_value".*/pref("general.config.obscure_value", '"$value)"';/g' "${firefox_pref_dir}/${firefox_js}"
3789 else
3790 echo 'pref("general.config.obscure_value", '"$value"');' &gt;&gt; "${firefox_pref_dir}/${firefox_js}"
3791 fi
3792 fi
3793 done
3794 </ns9:fix>
3795 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3796 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-lock_settings_obscure:def:1"/>
3797 </ns9:check>
3798 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3799 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-lock_settings_obscure_ocil:questionnaire:1"/>
3800 </ns9:check>
3801 </ns9:Rule>
3802 </ns9:Group>
3803 <ns9:Group id="xccdf_org.ssgproject.content_group_firefox_preferences-dod_root_certificate">
3804 <ns9:title xml:lang="en-US">The DoD Root Certificate Is Required</ns9:title>
3805 <ns9:description xml:lang="en-US">The Shared System Certificates store contains certificates that
3806 applications can access for a single certificate repository.
3807 If enabled, Firefox can access that single system certificate
3808 repository. If the DoD root certificate is also installed into
3809 the shared system certificate repository, Firefox will see and
3810 use the DoD root certificate as a valid certificate authority.</ns9:description>
3811 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-enable_ca_trust" selected="false" severity="medium">
3812 <ns9:title xml:lang="en-US">Enable Shared System Certificates</ns9:title>
3813 <ns9:description xml:lang="en-US">The Shared System Certificates store makes NSS, GnuTLS, OpenSSL, and Java
3814 share a default source for retrieving system certificate anchors and blacklist
3815 information. Firefox has the capability of using this centralized store for its
3816 CA certificates. If the Shared System Certificates store is disabled, it can
3817 be enabled by running the following command:
3818 <html:pre>$ sudo update-ca-trust enable</html:pre></ns9:description>
3819 <ns9:reference href="https://public.cyber.mil/stigs/cci/">CCI-000054</ns9:reference>
3820 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-10</ns9:reference>
3821 <ns9:rationale xml:lang="en-US">The DOD root certificate will ensure that the trust chain is
3822 established for server certificates issued from the DOD CA.</ns9:rationale>
3823 <ns9:ident system="https://nvd.nist.gov/cce/index.cfm">CCE-82057-1</ns9:ident>
3824 <ns9:fix id="firefox_preferences-enable_ca_trust" system="urn:xccdf:fix:script:sh">P11=$(readlink /etc/alternatives/libnssckbi.so*)
3825 P11LIB="/usr/lib/pkcs11/p11-kit-trust.so"
3826 P11LIB64="/usr/lib64/pkcs11/p11-kit-trust.so"
3827
3828 if ! [[ ${P11} == "${P11LIB64}" ]] || ! [[ ${P11} == "${P11LIB}" ]] ; then
3829 /usr/bin/update-ca-trust enable
3830 fi
3831 </ns9:fix>
3832 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3833 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-enable_ca_trust_ocil:questionnaire:1"/>
3834 </ns9:check>
3835 </ns9:Rule>
3836 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-dod_root_certificate_installed" selected="false" severity="medium">
3837 <ns9:title xml:lang="en-US">The DoD Root Certificate Exists</ns9:title>
3838 <ns9:description xml:lang="en-US">The DoD root certificate should be installed in the Shared System Certificates store
3839 for Firefox to be able to access the DoD certificate. To install the root certificated
3840 into the Shared System Certificates store, copy the DoD root certificate into
3841 <html:code>/etc/pki/ca-trust/source/anchors</html:code>. Once the file is copied, run the following
3842 command:
3843 <html:pre>$ sudo update-ca-trust extract</html:pre></ns9:description>
3844 <ns9:reference href="https://public.cyber.mil/stigs/cci/">CCI-000054</ns9:reference>
3845 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-10</ns9:reference>
3846 <ns9:rationale xml:lang="en-US">The DOD root certificate will ensure that the trust chain is
3847 established for server certificates issued from the DOD CA.</ns9:rationale>
3848 <ns9:ident system="https://nvd.nist.gov/cce/index.cfm">CCE-82056-3</ns9:ident>
3849 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3850 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-dod_root_certificate_installed_ocil:questionnaire:1"/>
3851 </ns9:check>
3852 </ns9:Rule>
3853 </ns9:Group>
3854 <ns9:Group id="xccdf_org.ssgproject.content_group_firefox_preferences-cookies">
3855 <ns9:title xml:lang="en-US">Clearing Cookies And Other Data</ns9:title>
3856 <ns9:description xml:lang="en-US">Browser preferences should be set to perform a Clear Private Data
3857 operation when closing the browser in order to clear cookies and other
3858 data installed by websites visited during the session.</ns9:description>
3859 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-cookies_clear" selected="false" severity="medium">
3860 <ns9:title xml:lang="en-US">Clear Data When Firefox Closes</ns9:title>
3861 <ns9:description xml:lang="en-US">When a user browses to a website, cookies and other types of data
3862 get stored on the system. This can be disabled by setting
3863 <html:code>privacy.sanitize.sanitizeOnShutdown</html:code> to <html:code>true</html:code>.</ns9:description>
3864 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3865 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF170</ns9:reference>
3866 <ns9:rationale xml:lang="en-US">Cookies can help websites perform better but can also be part of spyware.
3867 To mitigate this risk, set browser preferences to perform a Clear Private
3868 Data operation when closing the browser in order to clear cookies and
3869 other data installed by websites visited during the session.</ns9:rationale>
3870 <ns9:fix id="firefox_preferences-cookies_clear" system="urn:xccdf:fix:script:sh">
3871
3872 firefox_cfg="stig.cfg"
3873 value="true"
3874 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3875
3876 # Check the possible Firefox install directories
3877 for firefox_dir in ${firefox_dirs}; do
3878 # If the Firefox directory exists, then Firefox is installed
3879 if [ -d "${firefox_dir}" ]; then
3880 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3881 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3882 touch "${firefox_dir}/${firefox_cfg}"
3883 chmod 644 "${firefox_dir}/${firefox_cfg}"
3884 fi
3885
3886 # If the key exists, change it. Otherwise, add it to the config_file.
3887 if LC_ALL=C grep -m 1 -q '^lockPref("privacy.sanitize.sanitizeOnShutdown", ' "${firefox_dir}/${firefox_cfg}"; then
3888 sed -i 's/lockPref("privacy.sanitize.sanitizeOnShutdown".*/lockPref("privacy.sanitize.sanitizeOnShutdown", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3889 else
3890 echo 'lockPref("privacy.sanitize.sanitizeOnShutdown", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3891 fi
3892 fi
3893 done
3894 </ns9:fix>
3895 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3896 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-cookies_clear:def:1"/>
3897 </ns9:check>
3898 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3899 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-cookies_clear_ocil:questionnaire:1"/>
3900 </ns9:check>
3901 </ns9:Rule>
3902 <ns9:Rule id="xccdf_org.ssgproject.content_rule_firefox_preferences-cookies_user_notice" selected="false" severity="medium">
3903 <ns9:title xml:lang="en-US">Disable User Prompt When Data Is Cleared</ns9:title>
3904 <ns9:description xml:lang="en-US">By default, users are asked if it is okay to clear out cookies and data
3905 when Firefox closes. This can be disabled by
3906 setting <html:code>privacy.sanitize.promptOnSanitize</html:code> to <html:code>false</html:code>.</ns9:description>
3907 <ns9:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">ECSC-1</ns9:reference>
3908 <ns9:reference href="https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=app-security%2Cbrowser-guidance">FIREFOX-DTBF170</ns9:reference>
3909 <ns9:rationale xml:lang="en-US">Cookies can help websites perform better but can also be part of spyware.
3910 To mitigate this risk, set browser preferences to perform a Clear Private
3911 Data operation when closing the browser in order to clear cookies and
3912 other data installed by websites visited during the session.</ns9:rationale>
3913 <ns9:fix id="firefox_preferences-cookies_user_notice" system="urn:xccdf:fix:script:sh">
3914
3915 firefox_cfg="stig.cfg"
3916 value="false"
3917 firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
3918
3919 # Check the possible Firefox install directories
3920 for firefox_dir in ${firefox_dirs}; do
3921 # If the Firefox directory exists, then Firefox is installed
3922 if [ -d "${firefox_dir}" ]; then
3923 # Make sure the Firefox .cfg file exists and has the appropriate permissions
3924 if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
3925 touch "${firefox_dir}/${firefox_cfg}"
3926 chmod 644 "${firefox_dir}/${firefox_cfg}"
3927 fi
3928
3929 # If the key exists, change it. Otherwise, add it to the config_file.
3930 if LC_ALL=C grep -m 1 -q '^lockPref("privacy.sanitize.promptOnSanitize", ' "${firefox_dir}/${firefox_cfg}"; then
3931 sed -i 's/lockPref("privacy.sanitize.promptOnSanitize".*/lockPref("privacy.sanitize.promptOnSanitize", '"$value)"';/g' "${firefox_dir}/${firefox_cfg}"
3932 else
3933 echo 'lockPref("privacy.sanitize.promptOnSanitize", '"$value"');' &gt;&gt; "${firefox_dir}/${firefox_cfg}"
3934 fi
3935 fi
3936 done
3937 </ns9:fix>
3938 <ns9:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
3939 <ns9:check-content-ref href="ssg-firefox-oval.xml" name="oval:ssg-firefox_preferences-cookies_user_notice:def:1"/>
3940 </ns9:check>
3941 <ns9:check system="http://scap.nist.gov/schema/ocil/2">
3942 <ns9:check-content-ref href="ssg-firefox-ocil.xml" name="ocil:ssg-firefox_preferences-cookies_user_notice_ocil:questionnaire:1"/>
3943 </ns9:check>
3944 </ns9:Rule>
3945 </ns9:Group>
3946 </ns9:Group>
3947 </ns9:Benchmark>
3948 </ns0:component>
3949 <ns0:component id="scap_org.open-scap_comp_ssg-firefox-cpe-oval.xml" timestamp="2020-01-16T13:51:05">
3950 <ns3:oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd">
3951 <ns3:generator>
3952 <ns5:product_name>combine_ovals.py from SCAP Security Guide</ns5:product_name>
3953 <ns5:product_version>ssg: [0, 1, 48], python: 3.7.6</ns5:product_version>
3954 <ns5:schema_version>5.11</ns5:schema_version>
3955 <ns5:timestamp>2020-01-16T13:51:04</ns5:timestamp>
3956 </ns3:generator>
3957 <ns3:definitions>
3958 <ns3:definition class="inventory" id="oval:ssg-installed_app_is_firefox:def:1" version="2">
3959 <ns3:metadata>
3960 <ns3:title>Mozilla Firefox</ns3:title>
3961 <ns3:affected family="unix">
3962 <ns3:product>Firefox</ns3:product>
3963 </ns3:affected>
3964 <ns3:reference ref_id="cpe:/a:mozilla:firefox" source="CPE"/>
3965 <ns3:description>The application installed on the system is firefox.</ns3:description>
3966 </ns3:metadata>
3967 <ns3:criteria operator="AND">
3968 <ns3:extend_definition comment="Installed OS is part of the Unix family" definition_ref="oval:ssg-installed_OS_is_part_of_Unix_family:def:1"/>
3969 <ns3:criterion comment="Firefox is installed" test_ref="oval:ssg-test_firefox:tst:1"/>
3970 </ns3:criteria>
3971 </ns3:definition>
3972 <ns3:definition class="inventory" id="oval:ssg-installed_OS_is_part_of_Unix_family:def:1" version="1">
3973 <ns3:metadata>
3974 <ns3:title>Installed operating system is part of the Unix family</ns3:title>
3975 <ns3:affected family="unix">
3976 <ns3:product>Firefox</ns3:product>
3977 </ns3:affected>
3978 <ns3:description>The operating system installed on the system is part of the Unix OS family</ns3:description>
3979 </ns3:metadata>
3980 <ns3:criteria>
3981 <ns3:criterion comment="Installed operating system is part of the unix family" test_ref="oval:ssg-test_unix_family:tst:1"/>
3982 </ns3:criteria>
3983 </ns3:definition>
3984 </ns3:definitions>
3985 <ns3:tests>
3986 <ns7:rpminfo_test check="all" check_existence="at_least_one_exists" comment="Firefox is installed" id="oval:ssg-test_firefox:tst:1" version="1">
3987 <ns7:object object_ref="oval:ssg-obj_firefox:obj:1"/>
3988 </ns7:rpminfo_test>
3989 <ns6:family_test check="all" check_existence="at_least_one_exists" comment="Test installed OS is part of the unix family" id="oval:ssg-test_unix_family:tst:1" version="1">
3990 <ns6:object object_ref="oval:ssg-object_unix_family:obj:1"/>
3991 <ns6:state state_ref="oval:ssg-state_unix_family:ste:1"/>
3992 </ns6:family_test>
3993 </ns3:tests>
3994 <ns3:objects>
3995 <ns7:rpminfo_object id="oval:ssg-obj_firefox:obj:1" version="1">
3996 <ns7:name>firefox</ns7:name>
3997 </ns7:rpminfo_object>
3998 <ns6:family_object id="oval:ssg-object_unix_family:obj:1" version="1"/>
3999 </ns3:objects>
4000 <ns3:states>
4001 <ns6:family_state id="oval:ssg-state_unix_family:ste:1" version="1">
4002 <ns6:family>unix</ns6:family>
4003 </ns6:family_state>
4004 </ns3:states>
4005 </ns3:oval_definitions>
4006 </ns0:component>
4007 <ns0:component id="scap_org.open-scap_comp_ssg-firefox-cpe-dictionary.xml" timestamp="2020-01-16T13:51:05">
4008 <ns12:cpe-list xsi:schemaLocation="http://cpe.mitre.org/dictionary/2.0 http://cpe.mitre.org/files/cpe-dictionary_2.1.xsd">
4009 <ns12:cpe-item name="cpe:/a:mozilla:firefox">
4010 <ns12:title xml:lang="en-us">Mozilla Firefox</ns12:title>
4011 <ns12:check href="ssg-firefox-cpe-oval.xml" system="http://oval.mitre.org/XMLSchema/oval-definitions-5">oval:ssg-installed_app_is_firefox:def:1</ns12:check>
4012 </ns12:cpe-item>
4013 </ns12:cpe-list>
4014 </ns0:component>
4015 </ns0:data-stream-collection>