diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-10-25 18:55:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 18:55:43 +0100 |
commit | 6491804e19f1771bb1b4146420a2a3b98939d516 (patch) | |
tree | e70027d2460077e27a92ace49cba4e580a7e7112 | |
parent | b48547358dfc8aed59c7c69b1718595c41f65c43 (diff) | |
parent | b135022759cc30b4ee71f6aab833461cb604f6e4 (diff) | |
download | rspamd-6491804e19f1771bb1b4146420a2a3b98939d516.tar.gz rspamd-6491804e19f1771bb1b4146420a2a3b98939d516.zip |
Merge pull request #4656 from twesterhever/temp-tighten-attachment-policy
Tighten rspamd's attachment policy
-rw-r--r-- | src/plugins/lua/mime_types.lua | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index bfe0d6327..ebd8a8028 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -52,16 +52,10 @@ local settings = { }, bad_extensions = { - bat = 2, - chm = 4, - com = 2, cue = 2, exe = 1, - hta = 2, iso = 4, jar = 2, - lnk = 4, - scr = 4, -- In contrast to HTML MIME parts, dedicated HTML attachments are considered harmful htm = 1, html = 1, @@ -70,11 +64,21 @@ local settings = { -- Have you ever seen that in legit email? ace = 4, arj = 2, + aspx = 1, asx = 2, cab = 3, + dll = 4, + dqy = 2, + iqy = 2, + mht = 2, + mhtml = 2, + oqy = 2, + rqy = 2, sfx = 2, + slk = 2, vst = 2, vss = 2, + wim = 2, -- Additional bad extensions from Gmail ade = 4, adp = 4, @@ -105,7 +109,10 @@ local settings = { app = 4, asp = 4, bas = 4, + bat = 4, + chm = 4, cnt = 4, + com = 4, csh = 4, diagcab = 4, fxp = 4, @@ -113,9 +120,12 @@ local settings = { grp = 4, hlp = 4, hpj = 4, + hta = 4, + htc = 4, inf = 4, its = 4, jnlp = 4, + lnk = 4, ksh = 4, mad = 4, maf = 4, @@ -158,17 +168,26 @@ local settings = { psd1 = 4, psdm1 = 4, pst = 4, + pyc = 4, + pyo = 4, + pyw = 4, + pyz = 4, + pyzw = 4, reg = 4, scf = 4, + scr = 4, shs = 4, 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, |