A ServiceNow detection playbook connects a security incident to a defined investigation flow. For email domain spoofing, set up the flow, check its trigger fields, prepare tagged domain observables, and review the threshold decision. Then distinguish a manual response task from a spoofing tag and worknote before deciding what investigation follows.
Prepare the ServiceNow detection playbook setup
Start with Email Domain Spoofing Detection when the question is whether a phishing sender’s domain resembles a trusted domain. Endpoint Detection investigates malware alerts on a host. Repeat Detection checks whether a phishing report resembles one already investigated. Choose the investigation question before changing a flow; these playbooks do different work.
The setup prerequisites for these three playbooks list sn_si.admin and flow_designer. Their setup procedures specify logging in with sn_si.user and flow_designer. Distinguish those requirements when arranging access. The walkthroughs for using the playbooks list sn_si.admin and flow_designer. Do not assume that permission to view an incident establishes permission to configure its flow.
For setup, install Security Operations Spoke, whose identifier is sn_sec_spoke. These steps reflect the Brazil release of Security Operations. Check them against your own instance and release before relying on them. For broader context before configuring a detection workflow, see the Security Operations overview.
As a preparation exercise, write down the chosen playbook, the incident information available, the expected investigation outcome, and the person responsible for reviewing it. Use this as a handover record for the test. It makes testing concrete: a reviewer should know whether the test is checking flow association, a similarity decision, or a response task.
Configure Email Domain Spoofing Detection
- Navigate to All > Flow Designer and select Email Domain Spoofing Detection.
- If customization is needed, use Copy flow to create a copy and make the required changes. Copying is optional.
- Activate the main flow to use the base system playbook, or activate the copied flow after its changes are complete.
- Set the Trigger Condition. The email spoofing playbook is triggered and associated with the security incident when From is not empty and Security incident is not empty.
Separate activation from trigger testing. An activated flow and a record containing the required values answer different checks. For a test incident, inspect both fields rather than treating the presence of an email subject or attachment as a substitute. The trigger conditions above concern From and Security incident.
Before testing a copied flow, record what was changed and why. For example, distinguish a change to the investigation logic from a change intended to narrow which records qualify. This change record gives the reviewer a clear comparison point when a test produces an unexpected result.
For help planning this work, see ServiceNow implementation.
Follow the domain comparison and its two outcomes
The flow begins by extracting the domain from the phishing email. It then retrieves domain or email address observables carrying the security tag Domain Spoofing Candidate. These tagged observables provide the comparison material. As a test preparation step, inspect the candidate records and decide whether they represent the trusted domains you intended to compare.
The similarity calculation uses the Levenshtein algorithm to compare the tagged domain with the email domain. The flow then looks up the System Property record for sn_sec_spoke.domain_spoof_threshold. Avoid choosing a numerical threshold simply to make a demonstration succeed; agree on the test cases and the acceptable interpretation of similarity first.
The next decision checks whether similarity exceeds the threshold. If it does not exceed the threshold, the flow creates a manual response task and ends. If similarity exceeds the threshold, the flow adds the Email Domain Spoofing security tag to the security incident, adds a worknote link to the context using the script option, and ends.
These outcomes require different review questions. For the manual branch, assign someone to evaluate the response task rather than treating the ended flow as a completed investigation. For the tagged branch, review the comparison evidence before deciding what response is justified. A domain resemblance result should inform the analyst’s judgment about the report.
Use two deliberately contrasting test cases: one expected to exceed the configured threshold and one expected not to exceed it. Record the extracted domain, candidate observable, expected branch, and actual outcome. This test worksheet helps distinguish an incorrect expectation from missing comparison data without changing several settings together.
Adapt the checks for Endpoint Detection
Endpoint Detection follows the same setup pattern of selecting the flow, optionally copying it, making changes, and activating the appropriate flow. Its trigger conditions differ: Category is Malicious code activity and Short description is CrowdStrike Detection Alerts. Do not carry the email spoofing trigger into an endpoint test.
The endpoint investigation begins by reviewing Threat lookup results in Security Incident Response (SIR) and gathering threat intelligence to assess the file or hash. It then asks whether the file or hash is malicious. Subsequent tasks distinguish the detected application or process, its source, and the intended response. Follow the decision actually reached rather than jumping directly to a prevention action.
For the trusted-source application branch, the workflow includes taking action on CrowdStrike Falcon alerts. The path is CrowdStrike Falcon > Detections, then the selected alert’s Execution Details tab, with Edit Hash under Hash Prevention Action. Treat Never Block carefully: a business justification may apply to particular hosts while other hosts still need additional alerting.
A separate branch considers releasing a quarantined file locally. In Quarantined Files, filter by device name, select the file, and select Release. The file can run on that endpoint while detection and quarantine continue on other hosts. If a local waiver is not wanted, the workflow directs the user toward IT Support for approved application installation.
When the file or hash is assessed as not malicious, the flow next evaluates risk using the user’s role, application type, and impact. Its high-risk work includes threat intelligence review, a malware scan, forensic analysis, and response based on that analysis. For the low-risk branch, open CrowdStrike Falcon’s Configurations tab and go to Prevention Hashes, then Upload Hash and Add the Hash. Select the operating system and Always Block. A post-incident review response task appears before task closure. Separate these endpoint decisions from upstream SIEM event ingestion into SIR when planning investigation tests.
Check Repeat Detection without confusing similarity with resolution
Set up Repeat Detection through All > Flow Designer, optionally copy the flow for customization, and activate the appropriate flow. Its trigger is Security Incident is not empty.
The investigation first retrieves the incident’s relative date using the day configuration. It searches Task Observable records in sn_ti_m2m_task_observable by Message ID, then compares Task Observables and the email body using Levenshtein similarity. A match leads to a worknote stating that Repeat Detection automation found a match, and that branch ends.
If that search does not find a match, the flow searches by Subject and performs the comparison again. If necessary, it then searches by Address and compares again. A successful match at either stage also produces a worknote and ends that branch. Review the matching route when investigating why two similar-looking reports received different outcomes.
For acceptance testing, prepare examples that exercise the Message ID, Subject, and Address routes separately. Retain the earlier report for comparison and record which evidence made the match credible. This testing approach does not prove that a matching worknote removes the need for further analyst review.
Handover and test evidence practices
A shift handover identifies the incident and the open decision
Hand over the incident reference, the playbook under test or review, the observed outcome, the open question, and the next owner. Include the reason a decision remains open. A note such as “candidate domain needs validation” gives the next analyst a clearer starting point than “playbook checked.”
Inconclusive tests need preserved inputs
Preserve the input and the expected result before changing configuration. Then investigate one uncertainty at a time: record selection, comparison material, or interpretation of the branch. For wider diagnostic planning, use the Security Operations troubleshooting guide.
Business exceptions need explicit approval
As a team practice, define who can approve an exception, its intended scope, and the evidence needed to review it. Record that approval decision explicitly, especially where the operational consequence involves allowing an application or releasing a file on a particular endpoint.
Acceptance records support an operational review
As a team practice, pair representative inputs with observed decisions, named reviewers, and unresolved exceptions in an acceptance record. Include both automated outcomes and manual handoffs. That gives the operations team something concrete to review when deciding whether the investigation process is ready to adopt.