Security/Download Protection: Difference between revisions
< Security
Jump to navigation
Jump to search
m (Fmarier moved page Security/Application Reputation to Security/Download Protection) |
(→Documentation: link to API documentation on intranet) |
||
| Line 56: | Line 56: | ||
== Documentation == | == Documentation == | ||
* [[Security/Features/Application_Reputation_Design_Doc]] ( | * [[Security/Features/Application_Reputation_Design_Doc]] | ||
* [https://intranet.mozilla.org/ApplicationReputation Google API documentation] (internal access only) | |||
* [http://www.internetsociety.org/doc/camp-content-agnostic-malware-protection Content-Agnostic Malware Protection] (paper describing how the whole system is implemented) | * [http://www.internetsociety.org/doc/camp-content-agnostic-malware-protection Content-Agnostic Malware Protection] (paper describing how the whole system is implemented) | ||
* [https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/safe_browsing/csd.proto&q=csd&sq=package:chromium&l=229 Chromium source code] | * [https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/safe_browsing/csd.proto&q=csd&sq=package:chromium&l=229 Chromium source code] | ||
* [http://monica-at-mozilla.blogspot.co.nz/2014/07/download-files-more-safely-with-firefox.html Announcement blog post] | * [http://monica-at-mozilla.blogspot.co.nz/2014/07/download-files-more-safely-with-firefox.html Announcement blog post] | ||
Revision as of 22:07, 24 October 2016
Description
This feature protects users against malware downloads. It is based on Safe Browsing.
See Security/Features/Application_Reputation_Design_Doc for implementation details.
Prefs
- browser.safebrowsing.downloads.enabled: enables application reputation checks for downloaded files
- browser.safebrowsing.downloads.remote.enabled: enables remote lookups (requires the previous pref)
- browser.safebrowsing.downloads.remote.timeout_ms: timeout for the remote lookups
- browser.safebrowsing.malware.enabled: enables malware checks (required by application reputation)
- browser.safebrowsing.provider.google.lists: list of tables coming from the Google Safe Browsing service
- urlclassifier.downloadAllowTable: list of trusted certificates which suppress remote lookups (Windows-only)
- urlclassifier.downloadBlockTable: list of URLs serving malware binaries
Firefox 45 and earlier:
- browser.safebrowsing.appRepURL: server endpoint for remote lookups
Firefox 46 and later:
- browser.safebrowsing.downloads.remote.url: server endpoint for remote lookups
Engineering
Product/Component: Toolkit/Safe Browsing
Most of the code lives in toolkit/components/downloads/ApplicationReputation.cpp.
Upstream list of file extensions:
- Shipped to Chrome via a "File Type Policies" Chrome extension (see chrome://components)
- Binary protobuf extractor
- Source protobuf
QA
To turn on debugging output, export the following environment variable:
MOZ_LOG_FILE=/tmp/apprep.log MOZ_LOG="ApplicationReputation:5"
Telemetry
- APPLICATION_REPUTATION_COUNT: number of download lookups through the application reputation code
- APPLICATION_REPUTATION_LOCAL: results of the local checks (whitelist and blacklist)
- APPLICATION_REPUTATION_SERVER: whether the response from the remote server was valid, invalid (failed to parse as a protobuf) or failed in some other way
- APPLICATION_REPUTATION_SERVER_VERDICT: results (verdict) we got back from the remote server lookup
- APPLICATION_REPUTATION_SHOULD_BLOCK: whether or not a download has been blocked due to an application reputation lookup (local or remote)
- APPLICATION_REPUTATION_REMOTE_LOOKUP_TIMEOUT: whether or not a client timed out while contacting the remote lookup server
Documentation
- Security/Features/Application_Reputation_Design_Doc
- Google API documentation (internal access only)
- Content-Agnostic Malware Protection (paper describing how the whole system is implemented)
- Chromium source code
- Announcement blog post