home *** CD-ROM | disk | FTP | other *** search
/ ftp.f-secure.com / 2014.06.ftp.f-secure.com.tar / ftp.f-secure.com / support / hotfix / fsis / IS-SpamControl.fsfix / iufssc / rules / 25_replace.cf < prev    next >
Text File  |  2006-11-29  |  8KB  |  224 lines

  1. # SpamAssassin - ReplaceTags configuration
  2. #
  3. # Please don't modify this file as your changes will be overwritten with
  4. # the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead.
  5. # See 'perldoc Mail::SpamAssassin::Conf' for details.
  6. #
  7. # <@LICENSE>
  8. # Copyright 2004 Apache Software Foundation
  9. #
  10. # Licensed under the Apache License, Version 2.0 (the "License");
  11. # you may not use this file except in compliance with the License.
  12. # You may obtain a copy of the License at
  13. #
  14. #     http://www.apache.org/licenses/LICENSE-2.0
  15. #
  16. # Unless required by applicable law or agreed to in writing, software
  17. # distributed under the License is distributed on an "AS IS" BASIS,
  18. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # See the License for the specific language governing permissions and
  20. # limitations under the License.
  21. # </@LICENSE>
  22. #
  23. ###########################################################################
  24.  
  25. # Requires the Mail::SpamAssassin::Plugin::ReplaceTags plugin be loaded.
  26.  
  27. ifplugin Mail::SpamAssassin::Plugin::ReplaceTags
  28.  
  29. replace_tag    A    [gra\@\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xe4\xe3\xe2\xe0\xe1\xe2\xe3\xe4\xe5\xe60o]
  30. replace_tag    B    [b8]
  31. replace_tag    C    [ck\xc7\xe7@]
  32. replace_tag    D    [d\xd0]
  33. replace_tag    E    [e3\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\xa4]
  34. replace_tag    F    f
  35. replace_tag    G    [gk]
  36. replace_tag    H    h
  37. replace_tag    I    [il|!1y?\xcc\xcd\xce\xcf\xec\xed\xee\xef]
  38. replace_tag    J    j
  39. replace_tag    K    k
  40. replace_tag    L    [il|!1\xa3]
  41. replace_tag    M    (?:m|rn)
  42. replace_tag    N    [n\xd1\xf1]
  43. replace_tag    O    [go0\xd2\xd3\xd4\xd5\xd6\xd8\xf0\xf2\xf3\xf4\xf5\xf6\xf8]
  44. replace_tag    P    [p\xfe]
  45. replace_tag    Q    q
  46. replace_tag    R    r
  47. replace_tag    S    [sz\xa6\xa7]
  48. replace_tag    T    t
  49. replace_tag    U    [uv\xb5\xd9\xda\xdb\xdc\xfc\xfb\xfa\xf9\xfd]
  50. replace_tag    V    (?:[vu]|\\\/)
  51. replace_tag    W    [wv]
  52. replace_tag    X    (?:[x\xd7]|><)
  53. replace_tag    Y    [y\xff\xfd\xa5j]
  54. replace_tag    Z    [zs]
  55. replace_tag    IMG    (?:jpe?g|gif|png)
  56. replace_tag    SP    [\s\d_*\$\%(),.:;?!}{\[\]|\/?^\#~\xa1`'+-]
  57. replace_tag    CUR    [\$\xa5\xa3\xa4\xa2]
  58.  
  59. replace_inter    SP    [\s\d_*\$\%(),.:;?!}{\[\]|\/?^\#~\xa1`'+-]
  60. replace_inter    W1    \W?
  61. replace_inter    W2    \W{0,2}
  62. replace_inter    W3    \W{0,3}
  63.  
  64. replace_post    P2    {1,2}
  65. replace_post    P3    {1,3}
  66.  
  67. ###########################################################################
  68. # fuzzy header tests
  69.  
  70. header SUBJECT_FUZZY_MEDS    Subject =~ /<M><E><D><S>/i
  71. describe SUBJECT_FUZZY_MEDS    Attempt to obfuscate words in Subject:
  72. replace_rules SUBJECT_FUZZY_MEDS
  73.  
  74. header __SUBJECT_FUZZY_VPILL    Subject =~ /<inter W2><post P3>(?!viagra)<V><I><A><G><R><A>/i
  75. replace_rules __SUBJECT_FUZZY_VPILL
  76. meta SUBJECT_FUZZY_VPILL    __SUBJECT_FUZZY_VPILL && !FUZZY_VPILL
  77. describe SUBJECT_FUZZY_MEDS    Attempt to obfuscate words in Subject:
  78.  
  79. header SUBJECT_FUZZY_CHEAP    Subject =~ /<inter W2><post P3>\b(?!cheap)<C><H><E><A><P>(?:\b|<E>)/i
  80. describe SUBJECT_FUZZY_CHEAP    Attempt to obfuscate words in Subject:
  81. replace_rules SUBJECT_FUZZY_CHEAP
  82.  
  83. header SUBJECT_FUZZY_PENIS    Subject =~ /<inter W3><post P3>\b(?!penis)<P><E><N><I><S>/i
  84. describe SUBJECT_FUZZY_PENIS    Attempt to obfuscate words in Subject:
  85. replace_rules SUBJECT_FUZZY_PENIS
  86.  
  87. header SUBJECT_FUZZY_TION    Subject =~ /<post P3>(?!tion)<T><I><O><N>/i
  88. describe SUBJECT_FUZZY_TION    Attempt to obfuscate words in Subject:
  89. replace_rules SUBJECT_FUZZY_TION
  90.  
  91. ###########################################################################
  92. # fuzzy body tests
  93.  
  94. body FUZZY_AFFORDABLE    /<inter W1><post P2>(?!affordable)<A><F><F><O><R><D><A><B><L><E>/i
  95. describe FUZZY_AFFORDABLE    Attempt to obfuscate words in spam
  96. replace_rules FUZZY_AFFORDABLE
  97.  
  98. body FUZZY_AMBIEN    /<inter W1><post P2>(?!ambien)<A><M><B><I><E><N>/i
  99. describe FUZZY_AMBIEN    Attempt to obfuscate words in spam
  100. replace_rules FUZZY_AMBIEN
  101.  
  102. body FUZZY_BILLION    /(?!billion)<B><I><L><L><I><O><N>/i
  103. describe FUZZY_BILLION    Attempt to obfuscate words in spam
  104. replace_rules FUZZY_BILLION
  105.  
  106. body FUZZY_CELEBREX    /<inter W1><post P2>(?!celebrex)<C><E><L><E><B><R><E><X>/i
  107. describe FUZZY_CELEBREX    Attempt to obfuscate words in spam
  108. replace_rules FUZZY_CELEBREX
  109.  
  110. body FUZZY_CPILL    /(?!ciali[sz])<C><I><A><L><I><S>/i
  111. describe FUZZY_CPILL    Attempt to obfuscate words in spam
  112. replace_rules FUZZY_CPILL
  113.  
  114. body FUZZY_CREDIT    /<inter W1>(?!credit)<C><R><E><D><I><T>/i
  115. describe FUZZY_CREDIT    Attempt to obfuscate words in spam
  116. replace_rules FUZZY_CREDIT
  117.  
  118. body FUZZY_ERECT    /<inter W2><post P3>(?!erection)<E><R><E><C><T><I><O><N>/i
  119. describe FUZZY_ERECT    Attempt to obfuscate words in spam
  120. replace_rules FUZZY_ERECT
  121.  
  122. body FUZZY_FOLLOW    /(?!follow)<F><O><L><L><O><W>/i
  123. describe FUZZY_FOLLOW    Attempt to obfuscate words in spam
  124. replace_rules FUZZY_FOLLOW
  125.  
  126. body FUZZY_GUARANTEE    /<inter W1><post P2>(?!guarantee)<G><U><A><R><A><N><T><E><E>/i
  127. describe FUZZY_GUARANTEE    Attempt to obfuscate words in spam
  128. replace_rules FUZZY_GUARANTEE
  129.  
  130. body FUZZY_MEDICATION    /<inter W1><post P2>(?!medication)<M><E><D><I><C><A><T><I><O><N>/i
  131. describe FUZZY_MEDICATION    Attempt to obfuscate words in spam
  132. replace_rules FUZZY_MEDICATION
  133.  
  134. body FUZZY_MILF        /<inter SP>(?!milf)\b<M><I><L><F>/i
  135. describe FUZZY_MILF    Attempt to obfuscate words in spam
  136. replace_rules FUZZY_MILF
  137.  
  138. body FUZZY_MILLION    /(?!million)<M><I><L><L><I><O><N>/i
  139. describe FUZZY_MILLION    Attempt to obfuscate words in spam
  140. replace_rules FUZZY_MILLION
  141.  
  142. body FUZZY_MONEY    /(?!money)<M><O><N><E><Y>/i
  143. describe FUZZY_MONEY    Attempt to obfuscate words in spam
  144. replace_rules FUZZY_MONEY
  145.  
  146. body FUZZY_MORTGAGE    /<inter W1><post P2>(?!mortgage)<M><O><R><T><G><A><G><E>/i
  147. describe FUZZY_MORTGAGE    Attempt to obfuscate words in spam
  148. replace_rules FUZZY_MORTGAGE
  149.  
  150. body FUZZY_OBLIGATION    /<inter W1><post P2>(?!obligation)<O><B><L><I><G><A><T><I><O><N>/i
  151. describe FUZZY_OBLIGATION    Attempt to obfuscate words in spam
  152. replace_rules FUZZY_OBLIGATION
  153.  
  154. body FUZZY_OFFERS    /(?!offers)<O><F><F><E><R><S>/i
  155. describe FUZZY_OFFERS    Attempt to obfuscate words in spam
  156. replace_rules FUZZY_OFFERS
  157.  
  158. body FUZZY_PHARMACY    /<inter W2><post P2>(?!pharmacy)<P><H><A><R><M><A><C><Y>/i
  159. describe FUZZY_PHARMACY    Attempt to obfuscate words in spam
  160. replace_rules FUZZY_PHARMACY
  161.  
  162. body FUZZY_PHENT    /<inter W1><post P2>(?!phentermine)<P><H><E><N><T><E><R><M><I><N><E>/i
  163. describe FUZZY_PHENT    Attempt to obfuscate words in spam
  164. replace_rules FUZZY_PHENT
  165.  
  166. body FUZZY_PLEASE    /(?!please)<P><L><E><A><S><E>/i
  167. describe FUZZY_PLEASE    Attempt to obfuscate words in spam
  168. replace_rules FUZZY_PLEASE
  169.  
  170. body FUZZY_PRESCRIPT    /<inter W2><post P2>(?!prescription)<P><R><E><S><C><R><I><P><T><I><O><N>/i
  171. describe FUZZY_PRESCRIPT    Attempt to obfuscate words in spam
  172. replace_rules FUZZY_PRESCRIPT
  173.  
  174. # left S off of negative look-ahead on purpose
  175. body FUZZY_PRICES    /<inter W2><post P2>(?!price)<P><R><I><C><E><S>/i
  176. describe FUZZY_PRICES    Attempt to obfuscate words in spam
  177. replace_rules FUZZY_PRICES
  178.  
  179. body FUZZY_REFINANCE    /<inter W2><post P2>(?!refinance)<R><E><F><I><N><A><N><C><E>/i
  180. describe FUZZY_REFINANCE    Attempt to obfuscate words in spam
  181. replace_rules FUZZY_REFINANCE
  182.  
  183. body FUZZY_REMOVE    /(?!remove)<R><E><M><O><V><E>/i
  184. describe FUZZY_REMOVE    Attempt to obfuscate words in spam
  185. replace_rules FUZZY_REMOVE
  186.  
  187. body FUZZY_ROLEX    /(?!rolex)<R><O><L><E><X>/i
  188. describe FUZZY_ROLEX    Attempt to obfuscate words in spam
  189. replace_rules FUZZY_ROLEX
  190.  
  191. body FUZZY_SOFTWARE    /(?!software)<S><O><F><T><W><A><R><E>/i
  192. describe FUZZY_SOFTWARE    Attempt to obfuscate words in spam
  193. replace_rules FUZZY_SOFTWARE
  194.  
  195. body FUZZY_THOUSANDS    /(?!thousands)<T><H><O><U><S><A><N><D><S>/i
  196. describe FUZZY_THOUSANDS    Attempt to obfuscate words in spam
  197. replace_rules FUZZY_THOUSANDS
  198.  
  199. body FUZZY_TRAMADOL    /<inter W1><post P2>(?!tramadol)<T><R><A><M><A><D><O><L>/i
  200. describe FUZZY_TRAMADOL    Attempt to obfuscate words in spam
  201. replace_rules FUZZY_TRAMADOL
  202.  
  203. body FUZZY_VLIUM    /<inter W1><post P2>(?!valium)<V><A><L><I><U><M>/i
  204. describe FUZZY_VLIUM    Attempt to obfuscate words in spam
  205. replace_rules FUZZY_VLIUM
  206.  
  207. body FUZZY_VICODIN    /<inter W1><post P2>(?!vicodin)<V><I><C><O><D><I><N>/i
  208. describe FUZZY_VICODIN    Attempt to obfuscate words in spam
  209. replace_rules FUZZY_VICODIN
  210.  
  211. body FUZZY_VIOXX    /<inter W1><post P2>(?!vioxx)<V><I><O><X><X>/i
  212. describe FUZZY_VIOXX    Attempt to obfuscate words in spam
  213. replace_rules FUZZY_VIOXX
  214.  
  215. body FUZZY_VPILL    /(?!viagra)<V><I><A><G><R><A>/i
  216. describe FUZZY_VPILL    Attempt to obfuscate words in spam
  217. replace_rules FUZZY_VPILL
  218.  
  219. body FUZZY_XPILL    /<inter W3><post P2>(?!xanax)<X><A><N><A><X>/i
  220. describe FUZZY_XPILL    Attempt to obfuscate words in spam
  221. replace_rules FUZZY_XPILL
  222.  
  223. endif   # Mail::SpamAssassin::Plugin::ReplaceTags
  224.