Bug 1542149 - Add some MacOS file extensions to to the list of executable extensions in download protection. r=Gijs

Here are the file extensions are added to the list:
1. action
2. caction
3. configprofile
4. definition
5. dylib
6. internetconnect
7. networkconnect
8. service
9. wflow
10.workflow

Differential Revision: https://phabricator.services.mozilla.com/D26284

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dimi Lee 2019-04-05 12:04:49 +00:00
Родитель 33e3a6dedd
Коммит fe3a1447b2
3 изменённых файлов: 94 добавлений и 76 удалений

Просмотреть файл

@ -162,7 +162,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
//".001",
//".7z",
//".ace",
//".action", // Mac script
".action", // Mac script
//".ad", exec // Windows
//".ade", exec // MS Access
//".adp", exec // MS Access
@ -193,6 +193,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
".bz2", // Linux archive (bzip2)
".bzip2", // Linux archive (bzip2)
".cab", // Windows archive
".caction", // Automator action
".cdr", // Mac disk image
".cfg", // Windows
".chi", // Windows Help
@ -200,10 +201,11 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
".class", // Java
//".cmd", exec // Windows executable
//".com", exec // Windows executable
".command", // Mac script
".cpgz", // Mac archive
".cpi", // Control Panel Item. Executable used for adding icons
// to Control Panel
".command", // Mac script
".configprofile", // Configuration file for Apple systems
".cpgz", // Mac archive
".cpi", // Control Panel Item. Executable used for adding icons
// to Control Panel
//".cpio",
//".cpl", exec // Windows executable
//".crt", exec // Windows signed certificate
@ -213,6 +215,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
".dart", // Mac disk image
".dc42", // Apple DiskCopy Image
".deb", // Linux package
".definition", // Automator action
".desktop", // A shortcut that runs other files
".dex", // Android
".dht", // HTML
@ -232,6 +235,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
".dotx", // MS Word
".drv", // Windows driver
".dvdr", // Mac Disk image
".dylib", // Mach object dynamic library file
".efi", // Firmware
".eml", // MS Outlook
//".exe", exec // Windows executable
@ -255,6 +259,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
//".inf", exec // Windows installer
".ini", // Generic config file
//".ins", exec // IIS config
".internetconnect", // Configuration file for Apple system
//".inx", // InstallShield
".iso", // CD image
//".isp", exec // IIS config
@ -315,7 +320,8 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
//".msi", exec // Windows installer
//".msp", exec // Windows installer
//".mst", exec // Windows installer
".ndif", // Mac disk image
".ndif", // Mac disk image
".networkconnect", // Configuration file for Apple systems
//".ntfs", // 7z
".ocx", // ActiveX
//".ops", exec // MS Office
@ -411,6 +417,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
//".sct", exec // Windows shell
".search-ms", // Windows
".seplugin", // AppleScript
".service", // Systemd service unit file
//".settingcontent-ms", exec // Windows settings
".sh", // Linux shell
".shar", // Linux shell
@ -474,9 +481,10 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = {
//".vtx", exec // MS Visio
//".wav",
//".webp",
".website", // Windows
".wim", // Windows Imaging
//".workflow", // Mac Automator
".website", // Windows
".wflow", // Automator action
".wim", // Windows Imaging
".workflow", // Mac Automator
//".wrc", // FreeArc archive
//".ws", exec // Windows script
//".wsc", exec // Windows script

Просмотреть файл

@ -29,9 +29,9 @@ class ApplicationReputationService final
public:
static const char* const kNonBinaryExecutables[2];
#ifdef XP_WIN
static const char* const kBinaryFileExtensions[176];
static const char* const kBinaryFileExtensions[186];
#else
static const char* const kBinaryFileExtensions[175];
static const char* const kBinaryFileExtensions[185];
#endif
static already_AddRefed<ApplicationReputationService> GetSingleton();

Просмотреть файл

@ -9,12 +9,13 @@
// PLEASE read the comment in ApplicationReputation.cpp before modifying this
// list.
static const char* const kTestFileExtensions[] = {
".ad", // Windows (ignored for app rep)
".ade", // MS Access
".adp", // MS Access
".air", // Adobe Air (ignored for app rep)
".apk", // Android package
".app", // Executable application
".action", // Nac script
".ad", // Windows (ignored for app rep)
".ade", // MS Access
".adp", // MS Access
".air", // Adobe Air (ignored for app rep)
".apk", // Android package
".app", // Executable application
".applescript",
".application", // MS ClickOnce
".appref-ms", // MS ClickOnce
@ -25,65 +26,69 @@ static const char* const kTestFileExtensions[] = {
".bash", // Linux shell
".bat", // Windows shell
".bin",
".btapp", // uTorrent and Transmission
".btinstall", // uTorrent and Transmission
".btkey", // uTorrent and Transmission
".btsearch", // uTorrent and Transmission
".btskin", // uTorrent and Transmission
".bz", // Linux archive (bzip)
".bz2", // Linux archive (bzip2)
".bzip2", // Linux archive (bzip2)
".cab", // Windows archive
".cdr", // Mac disk image
".cfg", // Windows
".chi", // Windows Help
".chm", // Windows Help
".class", // Java
".cmd", // Windows executable
".com", // Windows executable
".command", // Mac script
".cpgz", // Mac archive
".cpi", // Control Panel Item. Executable used for adding icons
// to Control Panel
".cpl", // Windows executable
".crt", // Windows signed certificate
".crx", // Chrome extensions
".csh", // Linux shell
".dart", // Mac disk image
".dc42", // Apple DiskCopy Image
".deb", // Linux package
".desktop", // A shortcut that runs other files
".dex", // Android
".dht", // HTML
".dhtm", // HTML
".dhtml", // HTML
".diskcopy42", // Apple DiskCopy Image
".dll", // Windows executable
".dmg", // Mac disk image
".dmgpart", // Mac disk image
".doc", // MS Office
".docb", // MS Office
".docm", // MS Word
".docx", // MS Word
".dot", // MS Word
".dotm", // MS Word
".dott", // MS Office
".dotx", // MS Word
".drv", // Windows driver
".dvdr", // Mac Disk image
".efi", // Firmware
".eml", // MS Outlook
".exe", // Windows executable
".fon", // Windows font
".fxp", // MS FoxPro
".gadget", // Windows
".grp", // Windows
".gz", // Linux archive (gzip)
".gzip", // Linux archive (gzip)
".hfs", // Mac disk image
".hlp", // Windows Help
".hqx", // Mac archive
".hta", // HTML trusted application
".btapp", // uTorrent and Transmission
".btinstall", // uTorrent and Transmission
".btkey", // uTorrent and Transmission
".btsearch", // uTorrent and Transmission
".btskin", // uTorrent and Transmission
".bz", // Linux archive (bzip)
".bz2", // Linux archive (bzip2)
".bzip2", // Linux archive (bzip2)
".cab", // Windows archive
".caction", // Automator action
".cdr", // Mac disk image
".cfg", // Windows
".chi", // Windows Help
".chm", // Windows Help
".class", // Java
".cmd", // Windows executable
".com", // Windows executable
".command", // Mac script
".configprofile", // Configuration file for Apple systems
".cpgz", // Mac archive
".cpi", // Control Panel Item. Executable used for adding icons
// to Control Panel
".cpl", // Windows executable
".crt", // Windows signed certificate
".crx", // Chrome extensions
".csh", // Linux shell
".dart", // Mac disk image
".dc42", // Apple DiskCopy Image
".deb", // Linux package
".definition", // Automator action
".desktop", // A shortcut that runs other files
".dex", // Android
".dht", // HTML
".dhtm", // HTML
".dhtml", // HTML
".diskcopy42", // Apple DiskCopy Image
".dll", // Windows executable
".dmg", // Mac disk image
".dmgpart", // Mac disk image
".doc", // MS Office
".docb", // MS Office
".docm", // MS Word
".docx", // MS Word
".dot", // MS Word
".dotm", // MS Word
".dott", // MS Office
".dotx", // MS Word
".drv", // Windows driver
".dvdr", // Mac Disk image
".dylib", // Mach object dynamic library file
".efi", // Firmware
".eml", // MS Outlook
".exe", // Windows executable
".fon", // Windows font
".fxp", // MS FoxPro
".gadget", // Windows
".grp", // Windows
".gz", // Linux archive (gzip)
".gzip", // Linux archive (gzip)
".hfs", // Mac disk image
".hlp", // Windows Help
".hqx", // Mac archive
".hta", // HTML trusted application
".htm", ".html",
".htt", // MS HTML template
".img", // Mac disk image
@ -91,6 +96,7 @@ static const char* const kTestFileExtensions[] = {
".inf", // Windows installer
".ini", // Generic config file
".ins", // IIS config
".internetconnect", // Configuration file for Apple system
".iso", // CD image
".isp", // IIS config
".jar", // Java
@ -137,6 +143,7 @@ static const char* const kTestFileExtensions[] = {
".msp", // Windows installer
".mst", // Windows installer
".ndif", // Mac disk image
".networkconnect", // Configuration file for Apple system
".ocx", // ActiveX
".ops", // MS Office
".osas", // AppleScript
@ -188,6 +195,7 @@ static const char* const kTestFileExtensions[] = {
".sct", // Windows shell
".search-ms", // Windows
".seplugin", // AppleScript
".service", // Systemd service unit file
".settingcontent-ms", // Windows settings
".sh", // Linux shell
".shar", // Linux shell
@ -242,7 +250,9 @@ static const char* const kTestFileExtensions[] = {
".vsx", // MS Visio
".vtx", // MS Visio
".website", // Windows
".wflow", // Automator action
".wim", // Windows Imaging
".workflow", // Mac Automator
".ws", // Windows script
".wsc", // Windows script
".wsf", // Windows script