aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-22 13:02:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-22 13:02:32 +0100
commit2fa03199e4bcf3d323d5c94ec7a16bb2890e0354 (patch)
tree0d9a6b89da87a23d8283fb14cb42ca3b43d79f5d /conf
parente6db532ad5c6bab2480bd6bea6bf91e6ef1cc555 (diff)
downloadrspamd-2fa03199e4bcf3d323d5c94ec7a16bb2890e0354.tar.gz
rspamd-2fa03199e4bcf3d323d5c94ec7a16bb2890e0354.zip
[Minor] Add rules that observes limits in pdf files
Diffstat (limited to 'conf')
-rw-r--r--conf/scores.d/content_group.conf40
1 files changed, 25 insertions, 15 deletions
diff --git a/conf/scores.d/content_group.conf b/conf/scores.d/content_group.conf
index b53ec31d0..6a011b938 100644
--- a/conf/scores.d/content_group.conf
+++ b/conf/scores.d/content_group.conf
@@ -18,20 +18,30 @@
description = "Content rules";
symbols = {
- "PDF_ENCRYPTED" {
- weight = 0.3;
- description = "There is an encrypted PDF in the message";
- one_shot = true;
- }
- "PDF_JAVASCRIPT" {
- weight = 0.1;
- description = "There is an PDF with JavaScript in the message";
- one_shot = true;
- }
- "PDF_SUSPICIOUS" {
- weight = 4.5;
- description = "There is an PDF with suspicious properties in the message";
- one_shot = true;
- }
+ "PDF_ENCRYPTED" {
+ weight = 0.3;
+ description = "There is an encrypted PDF in the message";
+ one_shot = true;
+ }
+ "PDF_JAVASCRIPT" {
+ weight = 0.1;
+ description = "There is an PDF with JavaScript in the message";
+ one_shot = true;
+ }
+ "PDF_SUSPICIOUS" {
+ weight = 4.5;
+ description = "There is an PDF with suspicious properties in the message";
+ one_shot = true;
+ }
+ "PDF_LONG_TRAILER" {
+ weight = 0.2;
+ description = "There is an PDF with a long trailer";
+ one_shot = true;
+ }
+ "PDF_MANY_OBJECTS" {
+ weight = 0;
+ description = "There is a PDF file with too many objects";
+ one_shot = true;
+ }
}