OBLYTECH Logo
OBLYTECH Logo

Handle unmatched Security Operations email events

An unmatched Security Operations email event is an email from an external detection tool that no email parser has turned into a record, so its Matched flag stays unset. To work one, open the Unmatched Emails list, read the sender, recipients, subject and body, create or adjust an email parser that fits the message, then click Reprocess Email Event.

Why an email event ends up unmatched

Security Operations takes in emails from external detection systems, such as malware detection, vulnerability detection, firewalls and threat intelligence feeds, and uses Email Parsing to create records from them. Each inbound email is tested against the email parsers you have defined. If none of them fits, the event is kept, its Matched flag stays unset, and it appears in the Unmatched Emails list.

Treat that list as a diagnostic view as well as a cleanup queue. It shows which external systems are sending mail that no parser handles yet. A new alert template or a changed subject line from a tool you already receive from can add rows, so a growing list is a reason to check your parsers.

The same list helps you maintain the filters you rely on. Reviewing Unmatched Emails for discontinued filters, or for candidates for a new filter, helps you keep up the rate at which email threats are caught.

Roles and prerequisites for this work

Reviewing and reprocessing events and building parsers need different roles, so confirm each one before you start.

  • Reviewing the Unmatched Emails list and reprocessing an email event: sn_sec_cmn.read.
  • Creating or editing email parsers under Email Parsing: sn_sec_cmn.admin.
  • Email event records created from the mailbox: the mailbox user account needs security access controls that allow it to create and update email event records.

The address your detection tools send to is set in Security Operations properties. Each Security Operations plugin has an email_to property that defines where external integrations should send email. Mail sent to any of those addresses is stored in an email events table and checked against your parsers, so a parser only ever sees messages that reach one of them.

Before you build a parser, have a copy of a real email from the detection tool in front of you. Exact wording matters in the match conditions. Also decide what kind of record the email should produce, such as a security incident, a vulnerability record or a task, because that choice sets the destination table on the parser.

For help planning this work, see ServiceNow implementation.

Reviewing the event in the Unmatched Emails list

Navigate to All > Security Operations > Unmatched Emails. If unmatched emails have been found, they are listed. Open an event to read its fields. From shows the sender’s email address, To shows the recipient addresses, Subject shows the subject line, Body shows the message contents, and Matched shows whether the event was matched.

Those content fields are the raw material for your parser. The sender and subject usually identify the tool that produced the alert. The body shows whether one email carries a single finding or several items, which decides whether the Record Separator matters to you.

Several events from the same sender with a similar subject pattern can often be handled by one parser, so group them before you act on any of them.

Building an email parser that fits the event

Create the parser under All > Security Operations > Email Parsing by selecting New. The form includes Name, Email is from, Email is to, Email subject contains, Duplication rule, Order, Destination table, Active, Record Separator and Description.

Choosing the match conditions

The three message conditions are Email is from, Email is to and Email subject contains. Fill in only the conditions that identify the message. When more than one field is filled in, all of them must match the email before a record is created. A sender address on its own can be broad enough to pick up unrelated mail from the same system, while a subject phrase narrows the match. A subject phrase that changes with every alert, such as one containing a count or a timestamp, is likely to stop the parser from matching.

Use the Description field to record which tool the parser works with and what it is for. Other people will review the parser later, and a short description saves them from reverse engineering the conditions.

Setting order, duplication and activation

The Order field decides which parser runs first, because the first matching email parser is used. Put the most specific parsers at lower numbers, with fallback parsers after them, and give catch-all parsers higher numbers so they run only when nothing else matches. The default is 100.

The Duplication rule decides what happens when the same issue arrives in more than one email. The rule can take no action and create no new record, create the new record as a child of the existing one, or update the existing record, and when it updates, it names the fields in the existing record that change. Set it on purpose when the same incident reaches you in several emails.

The Active checkbox controls whether the parser runs. When it is unchecked, no emails are transformed with that parser. If a tool has been switched off, deactivating its parser keeps the definition on file, and any mail that still arrives from that tool will land back in the Unmatched Emails list.

Mapping email content to fields with Field Transforms

Save the parser and a Field Transforms tab appears. Select New in that tab to define how each destination field is filled from the email. The Store value in a field or a related list option offers three choices: store the value in a field in the new record, link to the value in a related list, or link to the value and create a new record when no matching record exists.

For choice fields, the incoming text is matched to existing choices by label or value. If no match is found, the field is still set, but no new entry is added to the choice list. Reference fields are set only when the value matches the display name of a record or a valid sys_id. Test the mapping with a real email, then read the resulting record field by field.

Reprocessing the event and reading the result

Once the parser is saved, return to the event and click Reprocess Email Event. You can start the reprocess from the event form or from the list. The platform returns you to the main Unmatched Emails list.

If the new parser matches, the event no longer appears in the list, and a message tells you whether the event was matched. An event that stays in the list with a not matched message means the parser’s conditions, active state or order need another look.

Reprocess one event at a time while you build the parser, and run the same email again after each change so you can see which condition is causing the miss. Then test a second email from the same sender, because a parser that matched the first sample may miss a later message if the subject changes between alerts.

Checking the parser against the rest of the mail flow

Order is often the reason a parser appears to be ignored. A broad parser with a low order number takes messages before a specific parser gets the chance. Review order against every parser that shares the same sender, not only the one you just built, and confirm that the catch-all parsers sit at higher numbers.

Check the steps against your own instance and release before you follow them, because menu names and field layouts can differ between releases.

Keeping the unmatched list short over time

Once the main tools have parsers, the list becomes a monitoring view rather than a backlog. Review it on a regular schedule to spot new senders, deactivate parsers for tools you no longer run, and look at rows that came from discontinued filters. Keep parser descriptions current so the next review does not start from zero.

The Security Operations hub is the place to start for the wider picture of how external detection data reaches the platform. If you are still deciding which feeds should reach the mailbox, the SIEM event ingestion integrations page is the next read. For the Field Transforms detail, the field mapping transforms guide is the place to go, and the Security Operations best practices page is the next stop for the wider set of review habits.

Questions about parser order, matching and record output

Does reprocessing create a record when no parser matches?

No. Reprocessing creates a record only when a parser matches the email. When nothing matches, the event stays in the Unmatched Emails list and the message reports that it was not matched, which tells you the parser conditions need work.

Which condition should I fill in first?

Start with the sender address and a subject phrase that stays the same from one alert to the next, since those two are usually the most stable parts of an automated message. Add the recipient condition only if the same sender writes to more than one inbox and the difference matters.

Why did a parser not run even though the sender matches?

Check three things in order. First, confirm the Active checkbox is selected. Second, confirm that every condition you filled in matches the email. Third, compare the Order value with other parsers that could match the same message, because the first match wins.

Can one email create more than one record?

Yes. The Record Separator applies when a parser’s emails create multiple records, and it holds the separator between the information for each record. Set it to match the layout of the email body before you test. When a separator is set, Search for value can be limited to the current section, while header or footer details that apply to every record are searched across the whole body.