A sightings search counts how often an attack shows up in your own environment. In Security Incident Response, an email search looks up a phishing message by sender, message ID or subject and lists the users who received it. An observable search checks a suspicious URL or IP address against web traffic logs.
Two terms that separate recipients from people who clicked
Two terms carry much of the analysis. A phished user is a user who has received a phishing email. A victim user is a user who has interacted with the phishing URL, usually by clicking a link in the message, which can expose credentials to the attacker. Keep the two groups in separate lists on the incident. Recipients need a warning and a mailbox check, while victims may also need a credential review, so mixing the groups slows the response for the people who need it most. After an observable search, the Affected Users page shows a User Interaction column set to true or false, depending on whether the user clicked the malicious link or IP, which helps you sort the two groups.
Who can run a sightings search
Both the email search and the observable search list sn_si.analyst as the required role. Because the two searches share that role, one check on your user record covers both. Confirm it before the incident is active, so you learn about a missing role before the triage clock is running.
Preparing the log store before the first search
Sightings searches for observables must be configured for your log stores or security information and event management (SIEM) before you run them. Saved sighting search configurations depend on that setup too. Saved searches and in-place queries are supported for the Splunk integration only.
The email search has been tested only with Splunk Enterprise as the log store. Splunk events must follow the Common Information Model (CIM) for the query to return accurate results. If your environment uses another log store, decide on the approach before an incident starts, not during one.
Once the connection works, create the sighting search configuration records you expect to reuse. Creating them requires the sn_si.admin role, and the CIM add-on must be installed on the Splunk instance. The saved search name and parameters on Splunk must match the configuration record exactly, and the saved search needs Sharing set to App rather than Private, with Read permission for Everyone, or it can return no results. On the record, select Generate Sightings Search Test Query and enter a few known observable values to check the generated query before you rely on it. For help planning this work, see ServiceNow implementation.
Running an email sightings search step by step
Use this path when a reported phishing email is your starting point. It assumes the Splunk log store is connected.
Open the incident and review the overview
Go to Workspaces > Security Incident Response Workspace, then use a Quick Filter such as phishing emails to narrow the list. Open the incident. The Overview tab lists the observables, the affected users and similar incidents, so check those before you search. Then select the Explore tab.
Menu labels vary by release, and the older Security Incident Response UI is no longer deployed, enhanced or supported, so use the workspace on your instance.
Enter the email search criteria
Under Incident Data, go to Investigation > Search Email & Observables and expand Search Criteria. Select Email Search as the search type. Set Integrations to Log Store. Then fill in the criteria: From takes the full email address of the sender, Message ID takes the message ID from the log store, Subject takes the subject line of the phishing message, and Search Window sets the time window, such as the last 24 hours.
Read the Email Search Results tab
From the Select Action list, choose Search, then click Run. The log store is queried with your criteria. The Email Search Results tab shows the users targeted by the phishing attack, the total number of phishing emails, and each message’s date received, recipient and message ID. To list the recipients for a given date, click the > symbol in the Search Date column.
Turn the recipient list into child incidents
Go to Users > Affected Users to see the Phished User column. That page shows only user records that exist on your ServiceNow instance, so a recipient with no matching record appears in the search results but not on this page. Select the users to investigate, choose Create Child Security Incident from the list, and click Run. Check the result under Incidents > Child Security Incidents on the Explore tab. For the response steps that follow, see how user-reported phishing is handled in Security Incident Response.
Running an observable sightings search from an incident
An observable search answers a different question from the email search. It shows how many users visited a malicious or suspicious website within a period you set, which gives you the web exposure for one indicator. The steps start from the incident that holds the observable, and they need the sn_si.analyst role described above.
- Go to Security Incidents > Show All Incidents and open the security incident.
- Click Show IoC under Related Links to list the observables.
- Select an observable, then open the Actions list.
- Choose Run Web Traffic Sightings Search to check web visits, or Run Email Traffic Sightings Search to check email traffic for that observable.
- Specify the time frame, then click Search.
Set the time frame around the event you are investigating. A window that starts before the first known click gives a fuller count. A narrow window isolates one wave of activity, which helps when a campaign ran in bursts. Note the window next to the count, because a number without its window cannot be compared with another run. If the indicators come from a MISP feed, start with the page on threat intelligence sightings for MISP observables.
Building a sighting timeline for the incident
Sightings results are easier to act on when they sit on a timeline. Put four points in order: first delivery of the phishing email, first click recorded in the logs, the time the affected users were identified, and the time containment was completed. Each sighting search then adds a dated point to the same timeline, so you can see whether the count grew after a point you thought was contained.
Keep the timeline in the incident notes rather than in a separate document. Anyone who picks up the incident later can then see which search produced which count, and which window it used.
Reading email and web results together
An email search and a web observable search can point at the same campaign from different angles. The email search starts from the message and lists recipients. The web search starts from the indicator and lists visits. A user who appears in both lists is typically the clearest case of exposure and should be reviewed first, while a user who appears in only one list needs a closer look before you assign work to that person.
Differences in the counts are normal. Messages may reach people through routes the web search does not cover, and the web search reflects only the traffic your log store records. Treat each count as the number of sightings your log store returned for those criteria and that window, not as a full census of the organization. For a sighting search run from threat intelligence records, see sighting search in threat intelligence.
Checks to run before you act on sighting results
- Confirm the time window starts before the first delivery you can document. A window that begins after delivery undercounts.
- Compare the Email Search Results tab with the Affected Users list, and note any recipients that lack a user record on your instance.
- Separate phished users from victim users before you assign follow-up work.
- Record the search criteria, the search window and the role used in the incident notes, so another analyst can repeat the search.
Questions about handling results and repeat searches
How should a user who received and clicked the link be handled?
Treat that person as a victim user, since clicking the link potentially exposes credentials to the attacker. Put the account on the priority list for a credential review, and keep the user in the same parent incident as the other recipients so the timeline stays in one place.
How wide should the first search window be?
Start from the earliest delivery time you can confirm, then add a margin on both sides. A window that is too narrow misses late recipients, and a very wide one pulls in unrelated mail from the same sender. Widen the window when results reach its edges.
When should a sightings search run again?
Run it again after containment, after you add a new observable to the incident, and when a new message with the same sender or subject turns up. Each run gives a count you can compare with the previous one, which shows whether activity has stopped.
What does a zero result mean?
A zero result means the criteria matched nothing in the log store for that window. It does not prove the message never arrived. Check the sender address, the message ID format and the search window first, since a mistyped field or a window that is too short is a common cause.