]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Add rule for identifying mail sent by eval()'d PHP code 864/head
authorAndrew Lewis <nerf@judo.za.org>
Fri, 19 Aug 2016 14:57:58 +0000 (16:57 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 19 Aug 2016 14:57:58 +0000 (16:57 +0200)
rules/regexp/headers.lua

index afd0633cd90a8e078fce3f1cfd80aa7bb80a5b6c..8f6e47ee9ba1d28df9adf8e37c7fd318a349d99a 100644 (file)
@@ -434,3 +434,10 @@ reconf['FORGED_GENERIC_RECEIVED4'] =       'Received=/^\\s*(.+\\n)*from localhost by \
 reconf['FORGED_GENERIC_RECEIVED5'] = 'Received=/\\s*from \\[(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})\\].*\\n(.+\\n)*\\s*from \\1 by \\S+;\\s+\\w{3}, \\d+ \\w{3} 20\\d\\d \\d\\d\\:\\d\\d\\:\\d\\d [+-]\\d\\d\\d0$/X'
 
 reconf['INVALID_POSTFIX_RECEIVED'] =   'Received=/ \\(Postfix\\) with ESMTP id [A-Z\\d]+([\\s\\r\\n]+for <\\S+?>)?;[\\s\\r\\n]*[A-Z][a-z]{2}, \\d{1,2} [A-Z][a-z]{2} \\d\\d\\d\\d \\d\\d:\\d\\d:\\d\\d [\\+\\-]\\d\\d\\d\\d$/X'
+
+reconf['X_PHP_EVAL'] = {
+  re = "X-PHP-Originating-Script=/\\s:\\seval\\(\\)'d code$/X",
+  score = 4.0,
+  description = "Message sent by eval()'d php code",
+  group = 'header'
+}