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.

mime_types_group.conf 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Mime types rules scores
  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 = "Mime attachments rules";
  18. max_score = 10.0;
  19. symbols = {
  20. "MIME_GOOD" {
  21. weight = -0.1;
  22. description = "Known content-type";
  23. one_shot = true;
  24. }
  25. "MIME_BAD" {
  26. weight = 1.0;
  27. description = "Known bad content-type";
  28. one_shot = true;
  29. }
  30. "MIME_UNKNOWN" {
  31. weight = 0.1;
  32. description = "Missing or unknown content-type";
  33. one_shot = true;
  34. }
  35. "MIME_BAD_ATTACHMENT" {
  36. weight = 4.0;
  37. description = "Invalid attachment mime type";
  38. one_shot = true;
  39. }
  40. "MIME_ENCRYPTED_ARCHIVE" {
  41. weight = 2.0;
  42. description = "Encrypted archive in a message";
  43. one_shot = true;
  44. }
  45. "MIME_OBFUSCATED_ARCHIVE" {
  46. weight = 8.0;
  47. description = "Archive has files with clear obfuscation signs";
  48. one_shot = true;
  49. }
  50. "MIME_EXE_IN_GEN_SPLIT_RAR" {
  51. weight = 5.0;
  52. description = "EXE file in RAR archive with generic split extension (e.g. .001)";
  53. one_shot = true;
  54. }
  55. "MIME_ARCHIVE_IN_ARCHIVE" {
  56. weight = 5.0;
  57. description = "Archive within another archive";
  58. one_shot = true;
  59. }
  60. "MIME_DOUBLE_BAD_EXTENSION" {
  61. weight = 3.0; # This rule has dynamic weight up to 4.0
  62. description = "Bad extension cloaking";
  63. one_shot = true;
  64. }
  65. "MIME_BAD_EXTENSION" {
  66. weight = 2.0; # This rule has dynamic weight up to 4.0
  67. description = "Bad extension";
  68. one_shot = true;
  69. }
  70. "MIME_BAD_UNICODE" {
  71. weight = 8.0;
  72. description = "Filename with known obscured unicode characters";
  73. one_shot = true;
  74. }
  75. }