Skip to content

Enable Saving the Browser History

An XCCDF Rule

Description

Users can enable or disable the saving of browser history in Chromium. Browser history should be retained by setting SavingBrowserHistoryDisabled to false in the Chromium policy file.

Rationale

Best practice requires that browser history is retained.

ID
xccdf_org.ssgproject.content_rule_chromium_enable_browser_history
Severity
Unknown
References
Updated

Remediation Templates

A Shell Script

if ! grep -q SavingBrowserHistoryDisabled /etc/chromium/policies/managed/chrome_stig_policy.json; then
   sed -i -e '/{/a \  "'SavingBrowserHistoryDisabled'": 'false',' /etc/chromium/policies/managed/chrome_stig_policy.json
else
   sed -i -e 's/\"'SavingBrowserHistoryDisabled'.*/\"'SavingBrowserHistoryDisabled'\": 'false',/g' /etc/chromium/policies/managed/chrome_stig_policy.json
fi