
Implementing SOAR Playbook for Phishing
FreeAutomate phishing incident response with Splunk SOAR.
Free · Opens the source repo
What Implementing SOAR Playbook for Phishing does
The Implementing SOAR Playbook for Phishing skill automates the process of responding to phishing incidents by leveraging the Splunk SOAR (formerly Phantom) REST API. This skill is designed for security professionals who need to streamline their incident response workflows. By integrating with Splunk SOAR, the skill allows users to create containers for phishing incidents, attach relevant artifacts, and trigger automated investigation playbooks, thereby enhancing the efficiency of phishing incident management.
When a suspected phishing email is reported, the skill parses the email to extract critical information such as headers, URLs, and IP addresses. It then creates a SOAR container to represent the incident and attaches artifacts that include indicators of compromise. This structured approach not only helps in organizing the incident data but also facilitates the execution of automated response actions through predefined playbooks, allowing security teams to respond quickly and effectively to phishing threats.
This skill is particularly useful for organizations looking to implement or enhance their phishing incident response capabilities. It is suitable for security teams that need to comply with regulatory requirements or improve their security architecture. By automating the containment and triage processes, the skill helps reduce the time and effort required to manage phishing incidents, enabling teams to focus on more strategic security initiatives.
However, users should ensure they have the necessary prerequisites in place, including a Splunk SOAR instance and appropriate API access, to fully utilize this skill. It is an effective tool for those who are already using Splunk SOAR and need to automate their phishing incident response workflows.
When to use it
Use this skill when integrating phishing incident management into your Splunk SOAR environment or when automating phishing containment and triage.
When not to use it
This skill is not suitable for environments without a Splunk SOAR instance or where phishing incident response is not a priority.
What you can build with it
Integrating Phishing Response
Use this skill to integrate automated phishing response capabilities into your existing Splunk SOAR setup.
Enhancing Security Architecture
Deploy this skill to improve your security architecture by automating phishing incident management.
Compliance and Reporting
Utilize this skill to ensure compliance with security regulations by maintaining detailed incident reports.
How to install Implementing SOAR Playbook for Phishing
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/implementing-soar-playbook-for-phishing --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mukul975Implementing SOAR Playbook for Phishing
Overview
This skill implements a phishing incident response workflow using the Splunk SOAR (formerly Phantom) REST API. When a suspected phishing email is reported, the agent parses email headers and body, creates a SOAR container representing the incident, attaches artifacts containing indicators of compromise (sender address, URLs, IP addresses, file hashes), triggers an automated investigation playbook, and polls for action results.
Splunk SOAR orchestrates and automates security operations through playbooks that chain together investigative and response actions. The REST API at /rest/container, /rest/artifact, and /rest/playbook_run enables programmatic incident creation and automation triggering from external tools, email gateways, and SIEM alerts.
When to Use
- When deploying or configuring implementing soar playbook for phishing capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Python 3.9 or later with
requestsandemailmodules - Splunk SOAR instance (Cloud or On-Premises) with REST API access
- SOAR API token with permissions to create containers and trigger playbooks
- Network connectivity to SOAR instance on port 443
- A configured phishing investigation playbook in SOAR
Steps
-
Parse the phishing email: Read the email file (.eml format) and extract headers including From, To, Subject, Reply-To, Return-Path, Received, Message-ID, X-Mailer, and authentication results (SPF, DKIM, DMARC). Extract URLs and IP addresses from the email body.
-
Authenticate to SOAR REST API: Use the API token in the
ph-auth-tokenheader to authenticate all REST API requests to the SOAR instance. -
Create a container: POST to
/rest/containerwith the incident label, name, description, severity, and status. The container represents the phishing incident and receives a container ID in the response. -
Add email header artifacts: POST to
/rest/artifactwithcontainer_idand CEF (Common Event Format) fields containing sender address (fromAddress), recipient (toAddress), subject, originating IP (sourceAddress), and Message-ID. Setrun_automationto False for all but the last artifact. -
Add URL artifacts: For each URL extracted from the email body, create an artifact with CEF field
requestURLand typeurl. These artifacts feed into URL reputation checks in the playbook. -
Trigger the playbook: POST to
/rest/playbook_runwith the playbook ID or name and the container ID. This initiates the automated investigation workflow. -
Poll action results: GET
/rest/action_runfiltered by container ID to monitor playbook progress. Poll until all actions reach a terminal state (success, failed, or cancelled). -
Compile response report: Aggregate playbook action results into a summary report with verdicts from URL reputation, domain reputation, IP geolocation, and email header analysis.
Expected Output
{
"incident": {
"container_id": 1542,
"status": "new",
"severity": "high",
"artifacts_created": 5
},
"playbook": {
"name": "phishing_investigate",
"run_id": 892,
"status": "success",
"actions_completed": 8
},
"verdict": "malicious",
"indicators": {
"sender_domain_reputation": "malicious",
"urls_flagged": 2,
"spf_result": "fail",
"dkim_result": "fail"
}
}
Frequently asked questions about Implementing SOAR Playbook for Phishing
Similar skills
Asset Criticality Scoring for Vulns
Prioritize vulnerabilities based on asset criticality.
Performing Alert Triage with Elastic SIEM
Streamline alert triage processes in Elastic Security.
Active Directory Vulnerability Assessment
Secure your Active Directory with comprehensive assessments.
Active Directory Investigation
Streamline your Active Directory compromise investigations.
Parsing Artifacts with Eric Zimmerman Tools
Efficiently parse Windows forensic artifacts for analysis.
Operationalizing MISP Threat Feeds
Enhance threat detection with curated MISP feeds.
