Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: How do I use Special Characters in Text Censor Scripts?

Expand / Collapse


This article applies to:

  • Trustwave ECM/MailMarshal Exchange
    • This article does not apply to supported versions of Trustwave MailMarshal (SEG).

Question:

  • How do I use Special Characters in Text Censor Scripts?

Procedure:

Basic scripts can handle alphanumeric characters only, but we can add other characters to our script, such as $:!-%@. However these have to be explicitly declared in each specific script in which they are to be used.

Suppose we want to scan for the following string, an email address: user@mydomain.com
  1. Declare the special characters @ and.
    Edit your Text Censor Script. Check "Enable matching of Special Characters". Add the two special characters: @.
  2. Step 2 Create your new Text Censor item.
    Edit your Text Censor Script. Click "New" and in the "Words and Phrases" field add: user@mydomain.com

Some characters have special meaning in Text Censor Scripts
* is a wildcard
() are used in building more complex censor statements such as cat AND (dog OR mouse).
= The equals sign can also be used with some operators such as INSTANCES=7.

What if we want to simply search for these characters, rather than use them in the above manner? In that case we need first to declare the special character, and then use that character within quotation marks in our script.

Suppose we want the Text Censor to detect the string "subject=unsubscribe"
  1. First we declare = as a special character.
  2. Second we create a Text Censor item as follows - note the use of the quotes: subject"="unsubscribe

Note:

Trustwave MailMarshal (SEG) TextCensor Scripts use an updated engine that does not require entry of "special characters". For information about reserved characters in SEG, see the User Guide.

This article was previously published as:
NETIQKB29179
Marshal KB130

To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.