commit e484b31: [Minor] Incorporate additional bad attachments from Microsoft

twesterhever 40121680+twesterhever at users.noreply.github.com
Wed Oct 25 17:56:04 UTC 2023


Author: twesterhever
Date: 2023-10-22 20:19:25 +0000
URL: https://github.com/rspamd/rspamd/commit/e484b311bb57ab9843684db33738c9829bdbba6e

[Minor] Incorporate additional bad attachments from Microsoft
These are as follows:
- htc: HTML Component File
- pyc: Compiled Python Script
- pyo: Optimized Compiled Python Module
- pyw: Python Script To Be Executed With Suppressed Terminal Window
- pyz: Python Zip Application
- pyzw: Python Zip Application
- vhd: Virtual Hard Disk
- vhdx: Virtual Hard Disk Extended
- wsf: Windows Script File

Note that the Python file types remain unscored in archives, so
distribution of these in source tarballs and the like is not affected by
this commit.

Source: https://support.microsoft.com/en-us/office/blocked-attachments-in-outlook-434752e1-02d3-4e90-9124-8b81e49a8519?ui=en-us&rs=en-us&ad=us

---
 src/plugins/lua/mime_types.lua | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 19de9a751..d6a9ff06f 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -111,6 +111,7 @@ local settings = {
     hlp = 4,
     hpj = 4,
     hta = 4,
+    htc = 4,
     inf = 4,
     its = 4,
     jnlp = 4,
@@ -157,6 +158,11 @@ local settings = {
     psd1 = 4,
     psdm1 = 4,
     pst = 4,
+    pyc = 4,
+    pyo = 4,
+    pyw = 4,
+    pyz = 4,
+    pyzw = 4,
     reg = 4,
     scf = 4,
     scr = 4,
@@ -164,11 +170,14 @@ local settings = {
     theme = 4,
     url = 4,
     vbp = 4,
+    vhd = 4,
+    vhdx = 4,
     vsmacros = 4,
     vsw = 4,
     webpnp = 4,
     website = 4,
     ws = 4,
+    wsf = 4,
     xbap = 4,
     xll = 4,
     xnk = 4,


More information about the Commits mailing list