OBLYTECH Logo
OBLYTECH Logo

Track persistent observable sightings

The Persistent Observable Sightings activity is a workflow activity that retrieves observables from a third-party integration. It is one step in the sightings search flow, which measures how often observables appear in your log data. This page covers its inputs and outputs, its two results, the queries and records that feed it, and how to test a run.

How the sightings search flow starts

Sightings search answers one question: how often does this indicator appear in our environment? Each match is one sighting. Security Operations provides a high-level flow for this, named Security Operations Integration – Sightings Search Flow. It runs the configured queries against whichever integrations support the sightings search capability, so the same design serves Splunk, Elasticsearch, QRadar, McAfee ESM and HPE ArcSight Logger.

To start the flow from a security incident, open the Show IoC related link, select the observables in the Observables related list, and choose Run Sightings Search from the Actions on selected rows drop-down menu. Running this flow requires the sn_si.analyst role. Three activities do most of the work. Sightings Search – Determine Observables decides which observables enter the workflow. Get Observable Sightings Queries loads the queries. Persistent Observable Sightings retrieves observables from the third-party integration, and it is the subject of this page.

Inputs and outputs of the Persistent Observable Sightings activity

The activity declares two input variables, sightingsResponse and taskId. taskId is the task identifier. Confirm both are populated before the activity runs in a workflow you have built yourself.

The activity returns one output variable, named response, which later activities in the workflow read. Inspect a real response value in a test run before you write logic that depends on particular fields inside it.

Reading the success and failure results

Success means observables were retrieved. Failure means an error occurred while the activity tried to gather observables, and the details are written to the activity output error. When a run fails, start with that output rather than the overall workflow status.

Build the workflow branch on those two results so each path has a clear owner. The success path continues the analysis. The failure path stops, records the error, and passes it to someone who can review the integration.

Queries that feed the activity

Get Observable Sightings Queries retrieves queries from the integration configuration. These are the search strings sent to the specified implementation, and the activity is designed to work with the Parallel Flow Launcher. It takes two inputs: observables, the filtered list of observables, and capabilities, the list of supported capabilities. It returns two outputs: queries, the search string, and queryCount, the number of queries to run.

Compare queryCount with the number of configuration records you expect before you trust a run. Success means queries were found. Failure means an error occurred while getting them, with details in the activity output error.

Setting up the sightings search configuration records

Create configuration records under Security Operations, then Integrations, then Sightings Search Configuration. Creating them requires the sn_si.admin role. The form includes Name, Is saved search, Sightings search source, Active, Observable type, Maximum observables per search and Search. The source selects the log store, so for Splunk you select the Splunk log store. Only an active configuration can perform a sightings search.

Observable type can be an IP address, a hash value, a URL, a domain name and so on. Maximum observables per search caps how many observables the search returns, so set it to a figure you can realistically review. The Search field defaults to the observable placeholder, and you can replace it with a query that uses parameters the log store supports.

Saved searches and inplace queries are supported for the Splunk integration only. Selecting Is saved search creates a saved search configuration. Splunk needs the Common Information Model add-on installed, and its log data must be CIM compliant. The name and parameters in the ServiceNow record must match the saved search defined on the Splunk instance. The base system includes a sample configuration named Default Saved Search – Emails. If the names or parameters differ, results may be inaccurate.

Two Splunk checks help avoid empty results. In Splunk, open Settings, then Searches, Reports, and Alerts, set App Context to All, and confirm the saved search is listed. Then open its Permissions page, choose All Apps, and enable Read for Everyone. This changes the Sharing value from Private to App. A private saved search may return no results.

After you define the query, select Generate Sightings Search Test Query and supply a list of observable values to build a test query from that configuration. Results from an incident sightings search are included in the Security Incident Observables related list, with aggregate detail on the Sightings Search Results and Sightings Search Details tabs.

Choosing an integration for sightings search

Elasticsearch and Splunk both enrich observables with sightings from log data. Elasticsearch adds sightings directly to observables. The Splunk sighting search integration is downloaded from the ServiceNow Store. CrowdStrike NextGen SIEM can also be configured with Falcon API credentials, so analysts can search its log data for activity that matches an observable. Elasticsearch and CrowdStrike are both configured from Threat Intelligence Security Center under the sn_sec_tisc.admin role, and the Elasticsearch integration also requires that plugin to be installed and activated.

The flow library includes both a Splunk implementation and an ArcSight Logger implementation, so confirm which one your configuration launches. Similar names are an easy place to pick the wrong one. Keeping one configuration per log store means a failure points to a single integration. For the threat intelligence side of sightings, including MISP observables, read the guide on threat intelligence sightings and MISP observables.

Running a sightings search from a case

Observables on a case use the case procedure, which is separate from the incident flow. The Threat Intelligence plugin must be active, and the procedure requires the sn_ti.case_user_write role. Navigate to All, then Threat Intelligence, then Case Management, then All Cases. Open the case, click the Case Artifacts related link, and open the Observables tab.

Select the observables, open the Actions on selected items drop-down list, and choose Run sightings search. In the Run Sighting Search dialog box, enter a number of days or hours, or select a date range, and then click Search. Use the case procedure for case observables and the incident flow for observables attached to a security incident.

The incident dialog counts back from the incident creation date, defaults to 7 days, and accepts up to 99 hours or days. Start with a short window. It returns fewer sightings to review, and you can widen it once the first results look right.

Testing a sightings run before you rely on it

Work through these checks in order before you use the results in a decision.

  1. Confirm the plugin status and the role for the path you are using: sn_si.analyst for the incident flow, or sn_ti.case_user_write for a case.
  2. Confirm the configuration record is active, the observable type is correct, and the search matches the saved search on the log store.
  3. Run Generate Sightings Search Test Query with one observable whose result you already know.
  4. Run the flow or case search against that same observable. For an incident, check the Sightings Search Results and Sightings Search Details tabs for the expected sightings.
  5. If the run fails, open the activity output error before you change anything else.

Testing with one known observable separates configuration problems from data problems. If it returns a sighting, the configuration is probably sound and the gap is in the data. If it returns nothing, check the configuration, the saved search and the permissions. For help planning this work, see ServiceNow implementation.

Sightings searches also serve to test remediation or eradication efforts, because a run shows whether an observable still appears after a fix. For the remediation side, the page on patch management in ServiceNow is the next read. Other risk topics sit in the ServiceNow risk area.

Release differences to check before you copy field names

The Persistent Observable Sightings activity has the same inputs, output variable and two results in the Brazil, Australia, Zurich and Yokohama releases. Confirm field names, roles and menu labels for the queries, the configuration records and the case procedure on your own release before you copy them into a runbook. A changed menu label can leave a written procedure out of step with the screen.

Questions about the activity and its prerequisites

Can the Persistent Observable Sightings activity run outside the sightings flow?

Yes. The activity can be used with any workflow to record observables found in the third-party integration. A custom workflow that needs the same retrieval can include it, provided the inputs are set and both the success and failure branches are handled.

Does the incident flow need the Threat Intelligence plugin?

The incident flow needs the sn_si.analyst role. The case procedure is the one that requires the Threat Intelligence plugin to be active and the sn_ti.case_user_write role. If a case run is blocked, check the plugin status first.

What is the difference between an observable and a sighting?

An observable is the indicator itself, such as an IP address, a hash value, a URL or a domain name. A sighting is one occurrence of that indicator in your log data. A single observable can have many sightings, and the time window you choose decides which occurrences a run includes.

Which roles configure and run sightings searches?

Creating Sightings Search Configuration records requires sn_si.admin. Elasticsearch and CrowdStrike NextGen SIEM are configured in Threat Intelligence Security Center under sn_sec_tisc.admin. Running a search from an incident requires sn_si.analyst, and a search from a case requires sn_ti.case_user_write.