Hi all,
a new ASSP_AFC.pm plugin version 3.02 is available. It supports now the
content parsing of compressed attachments.
Special thanks goes to the International Bridge, Inc./Devonshire
Networking Group (Peter Hinman) for there sponsoring and there
relinquishment of the copyright.
ATTENTION:
Before you can use the plugin - you have to:
- install the Perl module File::Type
- install the Perl module IO::Compress:Lzma
- install at least assp.pl 2.3.4 build 13302 (13306 is available)
- configure 'UserAttach' using the 'file:...' option (eg.:
file:files/userattachment.txt)
check that the following Perl modules are installed - which should be
already the case
Archive::Zip
Archive::Extract
IO::Compress::Base
IO::Compress::Bzip2
IO::Compress::Deflate
IO::Compress::Gzip
IO::Compress::Lzma
IO::Compress::RawDeflate
IO::Compress::Xz
IO::Compress::Zip
The general behavior of the plugin is unchanged (block/replace). There are
two new parameters available:
'ASSP_AFCblockEncryptedZIP','Block Encrypted Compressed Attachments',
'If set, encrypted or password protected compressed attachments will be
blocked or replaced according to ASSP_AFCSelect and ASSP_AFCReplBadAttach
.
To define a user based check of compressed attachments, configure
'UserAttach'. This plugin enhance the definiton options for UserAttach. In
addition to the existing options, the following syntax could be used:
For example:
zip:[email protected] => good => ai|asc|bhx|dat|doc|eps|zip
zip:*@domain.tld => good => ai|asc|bhx , good-out => eps|gif , good-in =>
htm|html , block => pdf|ppt , block-out => rar|rpt , block-in =>
xls|exe\-bin|crypt\-zip|encrypt
Those definitions (leading zip:) are only used inside compressed files.
The extension 'crypt-zip' could be used to allow or deni encrypted
compressed attachments for users at any compression level.
The extension 'encrypt' could be used to allow or deni encrypted (eg. aes)
for users.
The following compression formats/extensions are supported:
tar.gz,tgz,gz,tar,zip,jar,ear,war,par,tbz,tbz2,tar.bz,tar.bz2,bz2,Z,lzma,txz,tar.xz,xz.
The detection of compressed files is done content based not filename
extension based.
Depending on your Perl distribution, it could be possible that you must
install additionaly 'IO::Compress::...' (for example: IO::Compress:Lzma)
modules to support the compression methodes.'
'ASSP_AFCMaxZIPLevel',Maximum Decompression Level,
'The maximum decompression cycles use on a compressed attachment (eg: zip
in zip in zip ...). Default value is 10 - zero is not allowed to be used!'
you should also read
User based Good and Bad Attachments* (UserAttach)
Now configure 'UserAttach' to your needs. Only the most exact matching
line will be used.
zip:*@domain.tld=>block-in=>exe-bin
zip:[email protected]=>block-in=>crypt-zip|encrypt|exe-bin
zip:*[email protected]=>block-in=>encrypt|exe-bin|ppd
For '[email protected]' only the second line will be used. For addresses
were the name ends on a 'r' the third line is used. for all other users in
the '@domain.tld' domain the first line will be used.
So, the order of the definition in this files makes no difference. If two
identical email address definitions are found, the last one will be used.
The lines starting with 'zip:' are only used for compressed attachments
and compressed attachments are only checked if 'zip:'is used (except
(ASSP_AFCblockEncryptedZIP) is enabled).
If a 'zip:' prefix is found for a user/domain, the setting of
(ASSP_AFCblockEncryptedZIP)will be ignored.
A line without the 'zip:' prefix will override the global definitions in
the attachment sections for the user/domain (this was not changed)
Thomas
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test