commit 8a11648: [Minor] Fix detection rules

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 21 12:49:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-01-21 12:47:42 +0000
URL: https://github.com/rspamd/rspamd/commit/8a11648daff5460cbaf387afb898d7cea34c4fd4 (HEAD -> master)

[Minor] Fix detection rules

---
 rules/content.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/content.lua b/rules/content.lua
index fb7a0ad58..1f591c2d7 100644
--- a/rules/content.lua
+++ b/rules/content.lua
@@ -24,9 +24,9 @@ local function process_pdf_specific(task, part, specific)
     end
   end
 
-  if specific.openaction and #specific.openaction > 10 then
+  if specific.scripts then
     task:insert_result('PDF_JAVASCRIPT', 1.0, part:get_filename())
-    suspicious_factor = suspicious_factor + 0.5
+    suspicious_factor = suspicious_factor + 0.1
   end
 
   if specific.suspicious then


More information about the Commits mailing list