How Shuffle automates phishing triage for reported mail
A Shuffle phishing playbook takes a message that an employee reported, parses it, checks its authentication and content, and only purges matching messages from mailboxes after an analyst approves the verdict. The SOC team's problem is volume: a reported-mail mailbox fills with messages that analysts open one at a time to read headers, inspect links and decide whether anyone else received the same mail. Shuffle's SOAR model lets the team write those steps once as a workflow and run them repeatedly. Each action runs in a versioned app container started by the runtime, and the mailbox, threat intelligence and sandbox credentials sit in Shuffle's encrypted storage rather than in individual analysts' notes or scripts.
Automate this job first when reported mail is frequent, the verdict steps are the same for most messages, and analysts spend more time collecting evidence than deciding. Those conditions usually hold before other SOC jobs are automated, which makes phishing a practical first playbook. The team should confirm early which mail platform and reporting add-in will deliver the reports, whether the mailbox API can search for and remove matching messages across users, and whether the purge step can be limited to a named approver. Confirm also that the Shuffle apps for those systems exist in the catalog or need building. Shuffle's documented app model supports OpenAPI-based apps and Python apps, so a missing integration is an app project, not a blocker, but it changes the schedule.
Which stages a phishing triage playbook covers
A reported-mail playbook in Shuffle runs as a chain of stages, each reading the output of the one before it. The stages below show where the work sits and where your mail, threat intelligence and sandbox choices change the design.
Ingesting the reported message
The playbook starts when a user reports a suspicious email, so the first stage pulls the original .eml file from the reporting mailbox and passes it forward intact. Confirm which mail platform your organization uses, whether it exposes reported messages through an API, and whether the playbook can read the original message rather than a forwarded copy. A forwarded copy often loses the headers that the later checks depend on.
Parsing headers and body
This stage extracts sender addresses, return paths, reply-to fields, subjects, links and attachment metadata from the message. Header parsing is where display-name spoofing and mismatched domains are first visible, so the parser should keep the raw header values. Check how your mail platform exposes these fields and test the parser on messages with unusual encodings before relying on its output.
Evaluating SPF, DKIM and DMARC
The playbook reads the authentication results your receiving mail server already recorded, rather than re-validating the sender from scratch. Treat a failed or missing result as a signal to raise scrutiny, not as proof of phishing, because legitimate senders misconfigure records. Confirm that your mail gateway writes these results into the headers and that the parser reads the correct header from the chain.
Scoring URLs and attachments
Links and files are scored either by lookups against reputation services or by detonation in a sandbox, and the two options have different cost, data exposure and latency. Detonation keeps files and links inside a controlled environment but needs its own infrastructure and approvals. Confirm which sandbox or reputation services your organization already licenses, and where submitted samples may be sent under your data handling rules.
Correlating indicators across messages
Correlation checks whether the sender, domains, hashes or URLs also appear in other reported messages, mailbox rules or threat intelligence. This is where a single report becomes a campaign view, which is what justifies a purge across many inboxes. The matching logic needs an agreed indicator store, and an analyst should review how many messages a match would affect before any action follows.
Approval gate before purge
Purging matching messages from user mailboxes is the step with the most business impact, so it should wait for an analyst decision. The gate presents the matched messages, recipients and indicators, then either proceeds or closes the case with notes. Confirm who may approve, how approvals are logged, and whether your mail platform retains purged messages for recovery.
Scoring and detonation options and when each fits
This table compares four ways to score URLs and attachments from reported mail: reputation lookup, internal sandbox detonation, an external sandbox service and a MISP lookup for known indicators. Read each row against your data residency rules, the staff who will maintain the integration and the mail volume you expect. The main takeaway is that the option sending the least data outside your perimeter is not always the one that gives the strongest verdict.
| Option | Data sent outside the perimeter | Maintenance effort | Best suited to |
|---|---|---|---|
| Reputation lookup only | URL or file hash sent to the reputation service you configure | Low: API key rotation and app version updates | Fast first-pass scoring where verdicts only need to flag known bad senders or domains |
| Internal sandbox detonation | None beyond what your own sandbox stores, provided it runs inside your network | High: sandbox hosts, guest images, patching and capacity planning | Organizations that cannot send attachments or links outside the perimeter and have staff to run a detonation environment |
| External sandbox service | Full attachment or URL content and metadata sent to the vendor | Medium: API integration, quota monitoring and vendor terms review | Teams that accept vendor handling of suspicious samples and need broader detonation coverage than they can run themselves |
| MISP lookup for known indicators | Only indicator values queried against your MISP instance, which may be self-hosted | Medium: MISP upkeep, feed selection and sharing-group rules | Matching against indicators your team or trusted communities already share, with control over what leaves your network |
| Combined scoring with human approval | Depends on which of the above you enable | Highest overall, since each source needs its own mapping and tests | Purge decisions where a score informs an analyst but does not delete messages automatically |
How a reported message moves through the playbook
A reported message starts in the mailbox trigger and reaches the Shuffle backend, which stores the workflow run. Orborus polls the backend for the job and starts a worker, and the worker launches app containers for parsing, authentication checks, scoring and the MISP lookup. The analyst approval gate sits before the purge action, so no message is removed until a person approves it. Check that external lookups and detonation services receive only the indicators they need, and that the purge runs only on approved matches.
Reported mail flows through Shuffle's runtime, with external services and the approval gate marked.
Building the phishing playbook step by step
This sequence takes a reported-mail mailbox from a working Shuffle install to a playbook that parses messages, scores them, asks for approval and purges only what was approved, with a check at every stage.
Confirm version and deployment architecture
The engineer responsible for the platform confirms the Shuffle version in use and the deployment architecture it runs on, whether single-server Docker Compose, Docker Swarm, a hybrid with a local Orborus, or Kubernetes with Helm. Shuffle v2.3.0 is the release named in the supplied facts, so the team records the exact tag it runs and checks that the version is supported, since versions older than v2.1.1 are no longer supported. The step is done when the version, architecture and runtime location are written into the build notes and a test workflow runs end to end on the target Orborus.
Configure mailbox app credentials and encryption key
Before any credential is saved, the team confirms the SHUFFLE_ENCRYPTION_MODIFIER value is set, stored in a secrets manager and backed up, because Shuffle encrypts saved app credentials in OpenSearch with it and losing or changing it breaks every saved app authentication. The reported-mail mailbox app is then authenticated with a dedicated service account that has read access to the reporting folder and the permissions needed to move or delete messages. Done means a test action returns the folder listing, and the team repeats that test after a restart to confirm the saved credential still decrypts.
Build the .eml parsing step
The playbook fetches a reported message as a raw .eml file and passes it to a parsing action that extracts headers, the sender envelope, the reply-to address, the subject, body text, URLs and attachment metadata. The parsed output is stored as named variables so later steps reference fixed fields instead of raw strings. The check is a seeded sample set of known-good and known-bad test messages, with the parser output compared field by field against what the team expects for each one.
Add SPF, DKIM and DMARC header checks
A conditional branch reads the Authentication-Results header and the sending domain, then records the result of each SPF, DKIM and DMARC check as a separate field. Messages that fail or are missing results are flagged for scoring rather than discarded, because some legitimate mail is misconfigured. The team confirms the branch against the seeded samples: a message from a correctly authenticated sender, one with a spoofed From domain, and one with no authentication headers should each produce the expected result field.
Add URL and attachment scoring
The playbook sends extracted URLs and attachment hashes to the threat intelligence and sandbox apps the organization has approved, then combines their verdicts with the header results into a single score. Scoring thresholds are written down in the workflow and reviewed by the SOC lead, since the thresholds decide what reaches a human. Detonation output is stored, not just the verdict, so an analyst can check it later. The step is verified when the seeded malicious samples score above the threshold and the benign samples stay below it, and when a sandbox timeout produces a logged error instead of a silent pass.
Wire the human approval step
Before any message is removed, the workflow pauses and sends the analyst a summary containing the sender, subject, header results, score and the list of matching messages found across mailboxes. The analyst approves or rejects the action through the chosen approval channel, and the decision is written into the case record with the user identity. Done means a test run stops at the approval point, takes no deletion action without an approval, and records a rejected decision as a clean stop.
Set the purge action last
The purge action is added only after the approval step is proven, so it is the final node and runs only on an approved decision. The action targets messages that match the approved sender, subject or hash, and it logs each message identifier it removes. Before enabling it on the live mailbox, the team runs the purge against the seeded sample mailbox and confirms that only the intended messages are removed and that the audit entries list them. The step closes when the purge has been tested on the sample set and the approval path is confirmed on the live runtime.
Why approval comes before any purge
Purging a message from user mailboxes is the one destructive step in a phishing playbook, and it touches every recipient of that message at once. The playbook should therefore keep scoring and action in separate stages. The parsing, SPF, DKIM and DMARC checks, and URL and attachment verdicts all run without changing anything. Only a human decision, recorded in Shuffle, should lead to a purge step. A purge that runs on a score alone can remove legitimate mail from many inboxes if a sender is misjudged or a threshold is set too loosely.
In Shuffle, the approval step is a workflow pause that waits for an analyst to accept or reject the proposed purge before the next action runs. The mechanics of how approval requests are sent and answered are covered on the Shuffle features page, so this section concerns the design choice: which playbook branch can reach the purge action, who is allowed to approve it, and what the approval record must show, such as the message identifiers, the matching criteria and the analyst's decision. Confirm in your own environment that the approver's identity is logged, because that record is what your incident review will rely on.
Before the first purge runs in production, document a rollback or restoration process. Confirm with your mail platform's administrators which retention, recovery or deleted-items options apply to the mailboxes in scope, how long removed messages remain recoverable, and whose role it is to restore them. Those platform settings, not the playbook, determine whether a mistaken purge can be reversed. Test the restoration path with a harmless message before relying on it, and write down the steps an analyst follows so recovery does not depend on one person's memory.
Security and operational risks to design for
A phishing playbook touches mailbox credentials, untrusted attachments, third-party lookups and analyst decisions, so each of these needs a control before it goes live. The cards below cover the risks that most often surprise teams after the first successful run.
Protect the encryption modifier
Shuffle encrypts saved app credentials, including mailbox and API keys, in OpenSearch using the SHUFFLE_ENCRYPTION_MODIFIER secret. Losing or changing this value breaks every saved app authentication, so the phishing workflow stops until each credential is re-entered. Store the value in your secrets manager, back it up with the database, and record it in your change process before the first mailbox is connected.
Shuffle configuration docsScope the mailbox purge account
The account that reads reported mail and deletes matching messages defines the blast radius of a bad playbook. Give it access only to the reported-mail folder and the purge permission it needs, rather than a broad tenant-wide mailbox role. Confirm with your mail platform's administrators which permissions allow deletion across other users' mailboxes, and test the purge against a controlled set of messages first.
Review data sent to outside services
Sandbox detonation and reputation lookups send URLs, file hashes and sometimes file content to third parties. Before enabling each service, decide which data classes may leave your perimeter, check the provider's data retention and sharing terms, and confirm whether a private or on-premises sandbox is available for sensitive mail. Record the decision so analysts know which indicators were shared.
Isolate app containers from the host
Shuffle runs app actions as Docker containers, and the runtime needs access to the Docker socket to start them. Access to that socket is effectively root on the host, so restrict which hosts run Orborus, keep the socket off untrusted workloads, and limit network reach from app containers to your mail and management networks. Confirm the isolation model against the deployment guidance for your chosen architecture before production use.
Shuffle architecture docsKeep attachments out of analyst hands
Suspicious attachments should be detonated or parsed only inside an isolated environment, never opened on an analyst workstation as part of triage. The playbook should pass hashes and file metadata to scoring steps and send the file itself only to the sandbox. Ask whether your sandbox runs on a separate network segment and whether file copies are deleted after the verdict is recorded.
Log every analyst decision
The approval step that authorizes a purge is the control auditors and incident leads will ask about. Record who approved or rejected each action, the evidence shown at that moment, the message identifiers affected, and the time of the purge. Make sure these records survive workflow edits and are retained for the period your incident process requires, and test that you can reconstruct a purge from logs alone.
Questions teams ask before automating phishing triage
How much effort does a Shuffle phishing playbook take to build?
Effort depends mostly on how many moving parts the playbook touches, not on Shuffle itself. The main drivers are the mail platform that delivers reported messages, the sandbox or URL and attachment scoring services you choose, how many approval steps the purge action needs, and how much testing the team requires before it runs against live mail. A playbook that only parses .eml files and checks SPF, DKIM and DMARC is a small build. Adding detonation, scoring from several sources, case creation and a purge step that touches user mailboxes adds design, error handling and review work at each step. Ask any partner to split the quote by these components so you can see which parts are fixed and which depend on your environment.
Can an internal team build a phishing playbook in Shuffle alone?
A team with working knowledge of mail authentication, incident response and REST-based integrations can build the core playbook, and the open-source edition includes the features it needs. The skills that usually decide whether it succeeds are email security (reading SPF, DKIM and DMARC results correctly), mailbox administration on the platform you use, Shuffle workflow design such as loops, data formatting and error handling, and secrets handling for API keys. Most gaps appear in the approval and purge logic, where a mistake can remove legitimate mail. Teams that build in-house often still want an outside review of the purge path and the test plan before go-live.
What do we need to provide before the phishing playbook work starts?
The work needs access and material that only your organization holds. Typically this includes mailbox administrator access or a delegated role with the rights to search, quarantine and delete messages in the reported-mail mailbox, a set of sample reported messages that include both real phishing and legitimate mail, named approvers who can authorize a purge, and a test tenant or isolated mailbox where workflows can run without touching production users. You also need API credentials for the sandbox, threat intelligence or scoring services you plan to use, stored under your own secrets process. Confirm each item with your mail and security teams early, since access approvals often set the schedule more than the build does.
How long does a Shuffle phishing triage build take?
The duration follows from scope, which is why no fixed figure belongs on this page. A narrow scope covering one mailbox, one scoring source and a manual approval step is shorter than a build that adds multiple URL and attachment scoring services, deduplication across reporters, case creation and purge across several mail tenants. Access lead time, the number of approval owners and the amount of sample data available also change the calendar. Ask for a timeline that lists the phases, what each one depends on from your side, and which items are outside the estimate, so you can compare it with your own build plan.
Why does the purge step need an approval gate?
A purge step removes messages from user mailboxes, and a wrong match can delete legitimate business mail or messages that other staff still need as evidence. An approval gate lets an analyst review the matched messages, sender, subject and scoring results before anything is removed. Design questions include who approves, how long an approval stays valid, what happens if the approver does not respond, and whether the purge is scoped to the exact message identifiers rather than a broad search. Each of these choices changes the workflow logic and the testing you need before go-live, so settle them before building the purge branch.
What recurs after a phishing playbook goes live?
Some costs are one-time, such as the initial build and test cycle. Others recur. Plan for updates to the Shuffle version and the apps the playbook uses, since the platform publishes releases and apps are versioned Docker containers that need maintenance. Credentials for mail, sandbox and scoring services need rotation under your policy, and the Shuffle encryption secret must be protected because changing it breaks saved app authentications. Detection tuning also recurs: false positives, new phishing patterns and changes in reporting habits all require adjustments to scoring thresholds and approval rules. Ask any provider to state which of these are included in a support arrangement and which are billed separately.
Which parts of the phishing workflow should we test before production?
Test each stage against messages you have labeled in advance: parsing malformed or nested .eml files, the SPF, DKIM and DMARC evaluation for both passing and failing mail, URL and attachment scoring responses including timeouts and error codes, and the approval path for approve, reject and no response. The purge branch deserves its own test set that confirms only the approved message identifiers are removed in a test mailbox. Run the workflow against a copy of your reported-mail volume, review the results with the security team, and keep the test cases so they can be rerun after each Shuffle or app update.
Where to confirm Shuffle and MISP details
Before you build this playbook, confirm the platform details against the sources that own them. The Shuffle configuration docs are the place to check the settings this workflow depends on, such as the encryption modifier that protects the saved mailbox and threat intelligence credentials, the OpenSearch and backend requirements for your deployment size, and the version support window. The Shuffle apps docs explain how apps are built and versioned, which matters when you need an email, sandbox or URL reputation integration that the catalog does not ship. Check the app list and version of each app in your own Shuffle instance, because the catalog changes and your environment may pin older app images.
For the release you plan to run, use the Shuffle GitHub releases page to confirm the current stable version and the changes that affect workflow execution, app runs or licensing. Pin the version you tested. For MISP, the MISP features page describes how correlation works, which exact matches and advanced patterns it supports, and how the restSearch API and the bundled PyMISP library behave. Use it to design the lookup step, then test the query results against your own sample events, since correlation settings and sharing groups in your MISP instance decide what the playbook can see. The MISP support page lists where to get help when a lookup or sync behaves unexpectedly.
Confirm the mail-side behavior in your live environment. How your mail platform exposes reported messages, whether SPF, DKIM and DMARC results appear in the headers you receive, how it handles message deletion or purge requests, and what permissions the mailbox service account needs are all decisions for your mail administrators and your own tenant, not for the docs. Run the playbook against a test mailbox with messages you control, and record which headers arrived and which actions succeeded before you approve purging in production.
How DeployOpen scopes and delivers phishing triage automation
DeployOpen approaches phishing triage automation in Shuffle as a written, fixed-scope build inside your own infrastructure. The work starts with your reporting mailbox, your mail and identity sources and your approval rules, then moves through tested playbooks to a handover your security team can run without us.
How we scope
- Confirm the reported-mail mailbox, its message format and how users submit suspicious mail today.
- Agree which checks run automatically (SPF, DKIM, DMARC, URL and attachment scoring) and which require analyst approval.
- Define the purge and quarantine actions, approval owners and the written scope before any build work begins.
How we build
- Build the Shuffle workflow for .eml parsing, authentication checks and indicator extraction in a non-production instance first.
- Store mailbox, sandbox and threat intelligence credentials in Shuffle's encrypted app authentication, with the encryption secret kept under your control.
- Test with a labelled set of benign and malicious sample messages, covering failed authentication and lookalike domains, before any live purge step is enabled.
How we hand over
- Deliver the workflow export, app versions, configuration values and a runbook describing each branch and approval step.
- Document the purge approval path, rollback steps and the audit trail your analysts will review.
- Walk your security engineers through the workflow, test results and known limits so they can change it confidently.
How we support
- Offer ongoing support, Shuffle version upgrades and continuous testing as a retainer after handover.
- Re-run the phishing test set after Shuffle upgrades, app updates or changes to your mail platform.
- Agree in writing who owns app maintenance, credential rotation and workflow changes once the engagement closes.

