/usr/share/sanitizer/testcases/results.def/sanitizer.filenames.ok is in sanitizer 1.76-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | From xxx@example.com Thu Aug 3 07:32:10 2000
Return-Path: <xxx@example.com>
Received: from example.com (root@example.com [149.144.245.5])
by example.com (8.9.3/8.9.3) with ESMTP id HAA01305
for <bre@example.com>; Thu, 3 Aug 2000 07:32:03 GMT
From: xxx@example.com
Date: Thu, 3 Aug 2000 06:39:59 GMT
Message-Id: <200008030639.GAA23780@example.com>
Sender: xxx@example.com
Subject: DEFANGED[99] very very very very very very very very very very very very very long subject which looks a bit like a file name.txt with more than one extension.exe
To: fake@example.com
X-Sanitizer: This message has been sanitized!
X-Sanitizer-URL: http://mailtools.anomy.net/
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV"
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: text/plain; charset="iso-8859-1"; name="DEFANGED-100.txt"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; name="DEFANGED-100.txt"
****
NOTE: An attachment was deleted from this part of the message,
because it failed one or more checks by the virus scanning system.
See the attached sanitization log for more details or contact your
system administrator.
The removed attachment's name was:
winmail.dat (evaluated as winmail.dat)
It might be a good idea to contact the sender and warn them that
their system is infected.
****
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-101; charset="iso-8859-1"; name="=?iso-8859-1?Q?yell=F3w=5Ftxt.DEFANGED-101?="
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment
this is an unnamed file, which should be treated as if it were yellow
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-102; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaa_vbs_txt.DEFANGED-102"
this is also a very evil file.
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
****
NOTE: An attachment was deleted from this part of the message,
because it failed one or more checks by the virus scanning system.
The file has been quarantined on the mail server, with the following
file name:
.tmp.GHI
The removed attachment's original name was:
red.txt (evaluated as red.txt)
It is recommended that you contact your system administrator if you
need access to the file. It might also be a good idea to contact the
sender, and warn them that their system may be infected.
****
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-1000104; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="BLACKLISTED.DEFANGED-1000104"
this file is pretty yucky
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-1000105; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="=?iso-8859-1?Q?yell=F3w=5Ftxt.DEFANGED-1000105?="
this file is somewhat suspicious
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: attachment; filename="green.txt"
Content-Transfer-Encoding: 8bit
this file is nice
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="strange.txt"
this file is strange
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-1000107; charset="iso-8859-1"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="scan me silly_txt.DEFANGED-1000107"
L2Jpbi9mYWxzZSBtZSE=
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-2000108; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="scan me happy_txt.DEFANGED-2000108"
Yeah baby.
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: text/replacement; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="replace_me.REPLACEMENT.txt"
This is a simple replacement file.
Oogabooga. This should get encoded: =DE=E6=F6=F0!
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: application/DEFANGED-3000110; charset="iso-8859-1"; name="fee_boo.DEFANGED-3000110"; filename="fee_boo.DEFANGED-3000110"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="fee_boo.DEFANGED-3000110"; name="fee_boo.DEFANGED-3000110"
Content-Description: Renamed from 'fee.boo' to 'fee_boo.DEFANGED-3000110'
Content-ID: <DEFANGED-3000110>
This file should get renamed, and since it has two name/filename
attributes, both should get modified.
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV
Content-Type: text/sanitizer-log; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="sanitizer.log"
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
Sanitizer (start="0"):
Truncated long subject line:
>>this is a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long subject which looks a bit like a file name.txt with more than one extension.exe<<
Writer (pos="1098"):
Total modifications so far: 12
Part (pos="1137"):
SanitizeFile (filename="winmail.dat", mimetype="application/ms-tnef"):
No attachment name found, using default (winmail.dat).
Match (names="winmail.dat", rule="6"):
Enforced policy: drop
Replaced mime type with: text/plain
Replaced file name with: DEFANGED-100.txt
Part (pos="1318"):
SanitizeFile (filename="yellów.txt", mimetype="application/x-snort-snort"):
No attachment name found, using default (yellów.txt).
Match (names="yellów.txt", rule="1"):
ScanFile (file="./.tmp.ABC"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="yellów.txt", rule="10"):
Enforced policy: unknown
Match (names="yellów.txt", rule="4"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-101
Replaced file name with: yellów_txt.DEFANGED-101
Part (pos="1555"):
SanitizeFile (filename="aaaaaaaaa0aaaaaaaaa1aaaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaa.vbs.txt", mimetype="text/plain"):
Match (names="aaaaaaaaa0aaaaaaaaa1aaaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaa.vbs.txt", rule="1"):
ScanFile (file="./.tmp.DEF"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="aaaaaaaaa0aaaaaaaaa1aaaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaa.vbs.txt", rule="10"):
Enforced policy: unknown
Match (names="aaaaaaaaa0aaaaaaaaa1aaaaaaaaa2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaa.vbs.txt", rule="9"):
Enforced policy: unknown
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-102
Replaced file name with: 2aaaaaaaaa3aaaaaaaaa4aaaaaaaaa5aaaaaaaaa6aaaaaaaaa7aaaaaaaa_vbs_txt.DEFANGED-102
Part (pos="1848"):
SanitizeFile (filename="red.txt", mimetype="text/plain"):
Match (names="red.txt", rule="1"):
ScanFile (file="./.tmp.GHI"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="red.txt", rule="10"):
Enforced policy: unknown
Match (names="red.txt", rule="2"):
Enforced policy: save
Replaced file name with: DEFANGED-1000103.txt
Part (pos="2045"):
SanitizeFile (filename="orange.txt", mimetype="text/plain"):
Match (names="orange.txt", rule="1"):
ScanFile (file="./.tmp.JKL"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="orange.txt", rule="10"):
Enforced policy: unknown
Match (names="orange.txt", rule="3"):
Enforced policy: mangle
Replaced mime type with: application/DEFANGED-1000104
Replaced file name with: BLACKLISTED.DEFANGED-1000104
Part (pos="2246"):
SanitizeFile (filename="yellów.txt", mimetype="text/plain"):
Match (names="yellów.txt", rule="1"):
ScanFile (file="./.tmp.MNO"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="yellów.txt", rule="10"):
Enforced policy: unknown
Match (names="yellów.txt", rule="4"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-1000105
Replaced file name with: yellów_txt.DEFANGED-1000105
Part (pos="2454"):
SanitizeFile (filename="green.txt", mimetype="text/plain"):
Match (names="green.txt", rule="1"):
ScanFile (file="./.tmp.PQR"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="green.txt", rule="10"):
Enforced policy: unknown
Match (names="green.txt", rule="5"):
Enforced policy: accept
Part (pos="2646"):
SanitizeFile (filename="strange.txt", mimetype="text/plain"):
Match (names="strange.txt", rule="1"):
ScanFile (file="./.tmp.STU"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="strange.txt", rule="10"):
Enforced policy: unknown
Match (names="strange.txt", rule="7"):
Enforced policy: warn
Match (names="strange.txt", rule="8"):
Enforced policy: accept
Part (pos="2843"):
SanitizeFile (filename="scan me silly.txt", mimetype="text/plain"):
Match (names="scan me silly.txt", rule="1"):
ScanFile (file="./.tmp.VWX"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="scan me silly.txt", rule="10"):
Enforced policy: unknown
Match (names="scan me silly.txt", rule="9"):
Enforced policy: unknown
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-1000107
Replaced file name with: scan me silly_txt.DEFANGED-1000107
Part (pos="3048"):
SanitizeFile (filename="scan me happy.txt", mimetype="text/plain"):
Match (names="scan me happy.txt", rule="1"):
ScanFile (file="./.tmp.YZ0"):
File was infected, the virus checker couldn't fix it.
Enforced policy: unknown
Match (names="scan me happy.txt", rule="10"):
Enforced policy: unknown
Match (names="scan me happy.txt", rule="9"):
Enforced policy: unknown
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-2000108
Replaced file name with: scan me happy_txt.DEFANGED-2000108
Part (pos="3241"):
SanitizeFile (filename="replace.me", mimetype="text/plain"):
Match (names="replace.me", rule="9"):
Enforced policy: unknown
Match (names="replace.me", rule="11"):
ScanFile (file="./.tmp.123"):
Scan succeeded, file is clean.
Enforced policy: accept
Replaced mime type with: text/replacement
Replaced file name with: replace_me.REPLACEMENT.txt
Part (pos="3427"):
SanitizeFile (filename="fee.boo, other.name.boo, rah.boo, some.other.name.blrg, Some fake filename .boo, Alphabet.blrg", mimetype="text/plain"):
Match (names="fee.boo, other.name.boo, rah.boo, some.other.name.blrg, Some fake filename .boo, Alphabet.blrg", rule="9"):
Enforced policy: unknown
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-3000110
Replaced file name with: fee_boo.DEFANGED-3000110
--=ABACAB:=_0006@@UtD0uere5ZCIrVlOp0vV--
*** Exit code was 1 ***
./.tmp.123 ./.tmp.GHI
|