27.11.2012 Views

IronPort - advanced configuration guide

IronPort - advanced configuration guide

IronPort - advanced configuration guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6 Using Message Filters to Enforce Email Policies<br />

Body Scanning<br />

OL-25137-01<br />

When AsyncOS performs body scanning, it scans the body text and attachments for the regular<br />

expression. You can assign a minimum threshold value for the expression, and if the scanning engine<br />

encounters the regular expression the minimum number of times, the expression evaluates to true.<br />

AsyncOS evaluates the different MIME parts of the message, and it scans any MIME part that is textual.<br />

AsyncOS identifies the text parts if the MIME type specifies text in the first part. AsyncOS determines<br />

the encoding based on the encoding specified in the message, and it converts the text to Unicode. It then<br />

searches for the regular expression in Unicode space. If no encoding is specified in the message,<br />

AsyncOS uses the encoding you specify in the scanconfig command.<br />

For more information about how AsyncOS evaluates MIME parts when scanning messages, see Message<br />

Bodies vs. Message Attachments, page 6-5.<br />

If the MIME part is not textual, AsyncOS extract files from a .zip or .tar archive or decompresses<br />

compressed files. After extracting the data, a scanning engine identifies the encoding for the file and<br />

returns the data from the file in Unicode. AsyncOS then searches for the regular expression in Unicode<br />

space.<br />

The following example searches the body text and attachment for the phrase “Company Confidential.”<br />

The example specifies a minimum threshold of two instances, so if the scanning engine finds two or more<br />

instances of the phrase, it bounces any matching messages, and notifies the legal department of the<br />

attempt:<br />

ConfidentialFilter:<br />

Encryption Detection Rule<br />

if (body-contains('Company Confidential',2)) {<br />

}<br />

To scan only the body of the message, use only-body-contains:<br />

disclaimer:<br />

notify ('legaldept@example.domain');<br />

bounce();<br />

if (not only-body-contains('[dD]isclaimer',1) ) {<br />

}<br />

notify('hresource@example.com');<br />

The encrypted rule examines the contents of a message for encrypted data. It does not attempt to decode<br />

the encrypted data, but merely examines the contents of the message for the existence of encrypted data.<br />

This can be useful for preventing users from sending encrypted email.<br />

Note The encrypted rule can only detect encrypted data in the content of messages. It does not detect<br />

encrypted attachments.<br />

Cisco <strong>IronPort</strong> AsyncOS 7.6 for Email Advanced Configuration Guide<br />

6-29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!