You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

content_group.conf 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Content matching rules
  2. #
  3. # Please don't modify this file as your changes might be overwritten with
  4. # the next update.
  5. #
  6. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  7. # parameters defined on the top level
  8. #
  9. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  10. # parameters defined on the top level
  11. #
  12. # For specific modules or configuration you can also modify
  13. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  14. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  15. #
  16. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  17. description = "Content rules";
  18. symbols = {
  19. "PDF_ENCRYPTED" {
  20. weight = 0.3;
  21. description = "There is an encrypted PDF in the message";
  22. one_shot = true;
  23. }
  24. "PDF_JAVASCRIPT" {
  25. weight = 0.1;
  26. description = "There is an PDF with JavaScript in the message";
  27. one_shot = true;
  28. }
  29. "PDF_SUSPICIOUS" {
  30. weight = 4.5;
  31. description = "There is an PDF with suspicious properties in the message";
  32. one_shot = true;
  33. }
  34. "PDF_LONG_TRAILER" {
  35. weight = 0.2;
  36. description = "There is an PDF with a long trailer";
  37. one_shot = true;
  38. }
  39. "PDF_MANY_OBJECTS" {
  40. weight = 0;
  41. description = "There is a PDF file with too many objects";
  42. one_shot = true;
  43. }
  44. "PDF_TIMEOUT" {
  45. weight = 0;
  46. description = "There is a PDF file that caused timeout in processing";
  47. one_shot = true;
  48. }
  49. }