Before you start with detection tuning for particular cases, please make sure you performed the steps outlined in the Authentication section below. A proper authentication setup significantly reduces false positives in at least three categories.
Authentication
Goal: Make sure all emails sent by your organization (“guarded sender”) are marked as authentic. Symptoms of a wrong authentication configuration: Legitimate emails sent by your organization are marked as IMPERSONATION, POLICY, or PHISHING. Required know-how: Trusted MTAs Actions:- List all domains that belong to your organization using the search query in xorlab Security Platform:
messages AND NOT(status:pending) from:matches:*@*example* #inc, whereexampleis the root domain name used by your organization, e.g.,xorlab. This way, you can find new domains that should be added to the list of Guarded Tenant Domains. Follow step #4 in Basic settings to make these domains guarded. - List all unauthenticated emails sent by your organization using another search query in XSP:
rule:TAG_sender_is_guarded #noauth. - For every unique sender address in the results, open up a sample in a new tab using Ctrl+click.
- Have a look at every sample in the detail view.
- Open the HEADERS tab and read the “Received” headers to understand where the email came from.
- If the email came from an external source that you trust, we recommend that you set up SPF or DKIM for this location. If this is not possible, continue with the next step.
- Extend the trusted MTA configuration as described in Trusted MTAs with another entry that specifies the sender domain of this email in
whitelistedDomains. This instructs XSP to mark every email that passes through this server specified intrustedas authentic. Note: make sure that this server is trusted and no malicious emails can go through it.
whitelistedDomains.
If you have external web forms that send emails to you with your domain, add them to one of the contact form lists. This will prevent XSP from marking those emails as POLICY or IMPERSONATION.
False positive tuning
General tuning
Goal: Reduce the number of false positives in the quarantine (i.e., legitimate emails that were put into quarantine). Symptoms: Many false positives especially in spam and phishing quarantine. Required know-how:- Create a deliver campaign—a tailored whitelist for specific emails, e.g., a whitelist based on sender’s address and recipient’s address.
- If certain senders send recurring legitimate emails detected as spam, phishing, or extortion, you can add them to the Low trusted sender addresses or Low trusted sender domains list. This will prevent aggressive spam or phishing rules to quarantine those emails, but basic malware filtering will still be active. This is usually used for newsletters or similar emails where no trust has been established due to missing outgoing emails.
- If you have public email addresses where you receive many important emails (e.g., a billing address for invoices), consider adding those to the Exposed public contacts list. They will be subject to less aggressive spam and phishing filtering.
-
Use whitelists:
- Sender domain whitelist, Sender address whitelist (see Safe senders).
-
Registered domains whitelist: you can add domains to this list if
- you own domains that are not guarded by xorlab Security Platform
- or you are using external, third-party services sending messages from other domains than the guarded ones (e.g.,
yourDomain.attlassian.net).
- Envelope FROM domain whitelist, Envelope FROM sender whitelist (see Safe SMTP Senders).
- Link domain whitelist: this ensures that a specific domain (as part of a URL) will not be seen as suspicious. It is not a guarantee that emails with this URL will be let through (see Accepted links).
- Activate ADAPT rules (if some passive adapt rules are found under the MATCHED RULES tab in the Message Detail view)—see Phishing below.
Phishing
Query:verdict:phishing #quarantine
-
Evaluate the following passive rules to see which one of them reduces the number of false positives:
You can do this by using the following query for each rule—just replace the rule name after
passiveRulewith the rule you would like to evaluate:If you find a rule that matches mostly false positives, you can activate it in thelocal.propertiesfile like this: -
If you would like to generally reduce the number of false positives in this result, configure the
fp_sensitive.propertiesprofile as described in Actions, Rules and Profiles. We generally recommend using this profile for deployments bigger than a few hundred seats. -
If you spot many document-based false positives (indicated with the paperclip icon), run this query:
If this matches mostly legitimate emails, add the following line to the
local.propertiesfile: - Use the low trusted sender list as described in General tuning for recurring senders.
- Report remaining important messages as false positives using the Report misclassification feature.
Spam
Query:verdict:spam #quarantine
- Use the low-trusted sender list as described in General tuning for recurring senders.
- Report important false positives using the Report misclassification feature.
Malware
Query:verdict:malware #quarantine
- If you see frequent false positives with encrypted Office or archive files, you can add the following lines to the
local.propertiesfile:Note: these properties are also set through thefp_sensitive.propertiesprofile. - If you see frequent false positives with Office files that contain ActiveX (indicator: “Office document contains ActiveX object”), you can add the following line to the
local.propertiesfile:Note: this property is also set through thefp_sensitive.propertiesprofile. - If you see recurring Office false positives due to a specific macro, you can add the file hash of the macro embedding to the Macro file whitelist.
- If you see recurring false positives due to a network connection attempt to a specific domain during dynamic analysis (sandbox), you can add this domain to the Dynamic DNS request whitelist. If you see many false positives with connection attempts to a
*.localdomain, you can whitelist all those requests by adding(?i)\.local$to the Dynamic DNS request whitelist (regex). Also, adding(?i)\.loc$and(?i)\.intra$would work. - Report important false positives using the Report misclassification feature.
Extortion
Query:verdict:extortion #quarantine
- Add the following two lines to the
local.propertiesfile:Note: these properties are also set through thefp_sensitive.propertiesprofile. - Use the low-trusted sender list as described in General tuning for recurring senders.
- Report important false positives using the Report misclassification feature.
Impersonation
Query:(verdict:impersonation or verdict:vipfraud) #quarantine
- If you see VIP Fraud false positives where the email is legitimate and coming from a private address of a VIP, you can add the sender address to the VIP sender email whitelist.
- If you see other Impersonation false positives, they are often due to a wrong authentication configuration from the previous section.
Filter (Policy)
Query:verdict:policy #quarantine
- Filters are policies enforced by xorlab Security Platform. For every email in this result, you can find the corresponding Filter rule under MATCHED RULE starting with
FILTER_, like, for example,FILTER_sender_forged_guarded. If you would like to disable one of the default filters, find its name in the MATCHED RULE tab, append_state=PASSIVE, and add it tolocal.propertieslike this:FILTER_sender_forged_guarded_state=PASSIVE.
BEC
Query:verdict:bec #quarantine
- Report important false positives using the Report misclassification feature.
False negative tuning
Goal: Reduce the number of malicious emails that were let through and not put into quarantine. Symptoms:- Malicious email let through and is shown as benign in xorlab Security Platform (green verdict).
- Malicious email let through even though it is shown as malicious in xorlab Security Platform (red verdict).
ADAPT_ is listed. If yes, check if its decision UNDECIDED on the right is shown in blue (and not in grey). If both are true, this email has been let through due to an ADAPT rule that lowered the confidence from high to low to prevent false positives. It is now possible to disable this adapt rule to prevent such false negatives:
-
Copy the name of the
ADAPTrule and search for it withrule:rule-name(see Search). -
Go through the results to assess the impact of this
ADAPTrule. -
Disable it by adding its name appended with
_state=PASSIVEtolocal.properties, for example:ADAPT_phishing_confidence_high_state=PASSIVEBesides this, report the message as false negative using the Report misclassification feature.
General tuning
- If you have public email addresses where you receive a lot of commodity spam and phishing emails (e.g., a
jobs@orinfo@email address), consider adding those to the Exposed accounts list. They will be subject to more aggressive spam and phishing filtering. - If VIP fraud emails are let through, make sure that you add the name of the impersonated VIP to the VIP names list.