Questions on campaign-level Phishing workflow in Tines

Hello Everyone,

I am curious as to what people do to handle the more advanced aspects of Phishing within Tines. The obvious of it checks for misaligned SPF/DKIM/DMARC or malicious links is certain, but once that is all done.
How do we handle things on a campaign level.
How do we determine if a single sender is sending multiple users (one to many) or many senders are sending to a single user (many to one) and what about if there’s different subjects and bodies within each?
I had a campaign against a single user who received about 10 different senders with 6 different subjects. I was able to manually cross-check these and find the overlap of sender + subjects and it exposed the various combinations of senders.

Right now, my workflow is only assessing against emails that are reported, so I’m thinking the first step is to get it integrated even deeper and analyze ALL emails, but before going down that road I was hoping someone has any experience and what kind of ROI was achieved and if it was as effective as I’d be hoping.

Hey Ryan! Good to hear from you - I’m gonna ask around and get someone to chime in here, you know we know phishing!

The way I would approach this is to stop treating every reported email as its own incident.

Each reported email is another data point. Store what we know about it, then start looking for relationships across everything we’ve already seen. We don’t necessarily need to ingest every email in the organization to get value from this.

Store the observations first

I’d create a Tines Record type for something like email_observation.

Every reported email creates a record with the things we may want to pivot on later:

  • Sender address and domain

  • Display name

  • Reply-To and Return-Path

  • Recipient

  • Normalized subject

  • URLs and domains

  • Attachment hashes

  • Sending IP

  • Message ID

  • Body hash or fingerprint

  • Timestamp

  • Verdict

  • Campaign ID

For the subject, I’d normalize it before storing it. Lowercase it, remove things like RE: and FW:, and possibly strip numbers or other values that attackers may be changing between messages.

The important part is that we now have something persistent that we can search against every time another email gets reported.

Don’t correlate on one thing

This is where I think it gets interesting.

The example we found manually with 10 different senders and 6 different subjects probably wouldn’t have been caught if we were only looking for an exact sender or subject match.

That is really more of a graph problem.

Two messages might share a URL. Another might use the same Reply-To. Another may come from different senders but use the same infrastructure. Another might have a very similar body.

The individual emails look different, but once you start connecting those observations, the campaign starts to show itself.

I’d consider things like URLs, attachment hashes, sending infrastructure, Reply-To values and body fingerprints stronger pivots.

Subject, display name and recipient are useful too, but I probably wouldn’t create a campaign based on one of those alone. They add confidence to the correlation.

Every time a new report comes in, I’d query the existing Records over some reasonable window, maybe 7–30 days, and look for matching pivots.

If we find matches, associate the new email with that campaign.

If the new email happens to connect two campaigns we previously thought were separate, merge them.

Then recalculate what we know about the campaign.

Now we can look at the shape of the campaign

This is another place where the stored observations become useful.

Instead of asking, “Is this email malicious?”, we can start asking, “What is happening across all of these emails?”

For example:

One sender → many recipients

That looks like a traditional phishing campaign or bulk delivery.

Many senders → one recipient

That is closer to what we saw. Now I’m thinking about something targeted: spearphishing, harassment, mailbox bombing, or possibly credential-reset flooding.

Many senders → many recipients

Now we may be looking at a broader campaign where the attacker is rotating infrastructure or identities.

We don’t need AI to determine that. This can just be aggregation over the records we already have. Tines formulas like GROUP_BY, UNIQ, and SIZE should be enough for a lot of this.

Respond to the campaign, not every individual email

Once we know these emails are related, I don’t want ten alerts for ten emails.

I want one campaign that keeps getting updated.

If another sender appears, update the campaign.

If another user gets targeted, update the campaign.

If it crosses some threshold that matters to us, escalate it.

Now we can also take actions against everything we know about the campaign. Search for the other messages, quarantine or purge them, block domains or URLs where appropriate, and warn the user if this appears to be a targeted attack.

The case itself can also become much more useful.

Instead of just dumping individual email details into it, we can generate a campaign summary showing things like the senders, subjects, recipients, domains and indicators we have connected so far.

Basically, automate the table we ended up building manually.

I would not start by ingesting every email

I don’t have real ROI numbers that would justify saying full email ingestion is worth it. I’d want actual data from the environment or feedback from other teams doing this before making that claim.

I also don’t think we need full ingestion to prove whether the idea works.

I’d start with the emails users are already reporting.

When we confirm that one belongs to a campaign, then use the indicators we discovered to retro-hunt the mail platform.

If we are on Microsoft 365 or Google Workspace, search for other messages containing the same senders, URLs, subjects, hashes, or other indicators.

That gives us a lot of the benefit without continuously pulling every email into Tines.

Full ingestion starts making more sense if the goal changes from response to detection.

If we want to identify these campaigns before somebody reports the first email, then we need a much larger telemetry source. At that point I’d probably look at the email security gateway or SIEM rather than making Tines the place where every email gets stored.

Tines can consume the alerts or interesting telemetry from those systems and do the correlation, investigation and response.

There is also a middle ground.

We could ingest suspicious-but-unreported email events instead of everything. For example, messages that fail authentication, originate from newly registered domains, contain suspicious URLs, or have already been scored by the email gateway.

That gives us more visibility without turning this into a project to ingest the entire mail system.

How I’d roll it out

I’d add the Records store and correlation logic to the reported-email workflow first.

Then add the retro-hunt so that once we identify a campaign, we can search for the emails nobody reported.

Then measure what actually happens.

How long did it take us to recognize the campaign?

How many additional emails did we find?

How many messages were we able to purge?

How much analyst work did the correlation remove?

Once we have that data, then we can make an informed decision about whether pulling in more email telemetry is actually worth the cost and complexity.

The main thing I want to prove first is that we can go from:

“Someone reported a suspicious email.”

to:

“This is part of a larger campaign, here is everything connected to it, and here is what we should do about it.”

Here is a prompt to give to Story Workbench to build it for you.
You can also add MS Graph or Gmail Workspace to the flow to search back to the last

I got this from Tines Workbench :slight_smile:

I want to build a phishing campaign correlation workflow in Tines. It should extend my existing phishing-triage story, which handles reported emails. Please build it in stages and wait for my confirmation after each one.

## Goal
For each reported email, store normalized indicators, cluster it with related emails into a campaign, classify the campaign's shape, and alert once per campaign instead of once per email.

## Stage 1: Records
Create a record type called `email_observation` with these fields:
- message_id (TEXT)
- received_at (TIMESTAMP)
- sender_address (TEXT)
- sender_domain (TEXT)
- display_name (TEXT)
- reply_to (TEXT)
- return_path (TEXT)
- recipient (TEXT)
- subject_raw (TEXT)
- subject_normalized (TEXT)  // lowercased, with RE:/FW:/FWD: prefixes and digits stripped
- body_hash (TEXT)
- url_domains (TEXT)  // comma-separated
- attachment_hashes (TEXT)  // comma-separated
- sending_ip (TEXT)
- verdict (TEXT_ENUM: malicious, suspicious, benign)
- campaign_id (TEXT)

Set ttl_days to 90. Ask me for the team ID if you need it.

## Stage 2: Normalization
Add an event transform action after my existing triage verdict. It should produce the fields above from the reported email. Write the formulas for subject normalization, sender domain extraction, and URL domain extraction, and validate each one against a sample payload before showing it to me.

## Stage 3: Correlation
Add logic that does the following for each new observation:
1. Query the existing `email_observation` records from the last 14 days.
2. Match on STRONG pivots: url_domains, attachment_hashes, sending_ip, reply_to, and body_hash.
3. Treat subject_normalized, display_name, and recipient as WEAK pivots. Use them only to raise confidence, never to cluster on their own.
4. If there are matches, reuse their campaign_id. If the matches span several campaign_ids, merge them into the oldest one. If there are no matches, generate a new campaign_id.
5. Write the record with the campaign_id.

Note: if a Records tool isn't enabled in Workbench, tell me exactly which MCP tools to enable.

## Stage 4: Campaign shape
After correlation, load all records for the campaign_id. Compute these values with formulas:
- distinct_senders, distinct_recipients, distinct_subjects
- shape = "one_to_many" if senders = 1 and recipients > 1; "many_to_one" if senders > 1 and recipients = 1; "many_to_many" if both > 1; otherwise "single"
- A sender × subject matrix as a markdown table

Validate all formulas against sample data.

## Stage 5: Action
- Create or update ONE case per campaign_id, with the summary table and the shape in the description. Do not create a new case for every email.
- Escalate the priority when the campaign crosses a threshold (for example, 5 or more distinct senders or 10 or more recipients). Put the thresholds in a Tines text resource so I can change them.
- Add a disabled placeholder action for a retro-hunt (search Microsoft 365 or Google Workspace for the campaign's indicators) and for a purge. Don't enable them.

## Constraints
- Use Tines formula syntax only. Avoid nesting where possible.
- Add a note on the story canvas explaining each stage.
- Don't hardcode credentials. Use credential or resource placeholders.
- Start with Stage 1 and tell me what you plan to create before you create it.

Hi Ryan, I wouldn’t recommend ingesting all incoming emails directly into Tines. You’ll burn through action runs and hit API rate limits fast. Let your email gateway/filter handle the inline mail stream, and keep Tines event-driven.

Here’s a good ROI approach for handling those randomized 1-to-many / many-to-one campaigns:

  1. On-demand sweeps: Keep Tines listening to user reports or SEG alerts, but have your story dynamically query email logs (like M365 Message Trace) when a report fires.

  2. Correlate beyond exact match: When senders and subjects are randomized:

    • Unfurl URLs: Look at the final destination domain, IP, or SSL cert. 10 different senders usually point to the same phishing kit.

    • Tines AI / LLM actions: Group emails by intent (e.g. “Fake Payroll”) instead of exact text.

    • Fuzzy matching: Use Python or Event Transforms for similarity.

  3. Master cases & auto-purge: Save campaign anchors to Records. When a new report comes in, search Records and use Linked Cases to tie them to a Master Campaign Case. Then run a story to sweep and quarantine those matching emails across all inboxes.

Tactically it would look like this:

  1. When ingesting the alert, do a records and case search for IOCs to see if any of the indicators have been seen before in your environment. Save data from the case or phishing email to records. Utilize as many fields as needed to capture the relevant raw data.

The next section is going to stem off the case notification webhook.

Use case metadata to include details of the phishing email. You can create a flow that updates the cases metadata as its worked. This makes it easier when searching.

Add relevant tags to the case. You can create a flow that views the case data and applies tags which you could use later to filter and link cases.

Use the linked cases function in Tines to correlate easier. Create a flow that auto links relevant cases. Create and link cases from ingested alerts | Stories | Library

Now you can either add a tag or field etc to correlated cases in a dashboard or Tines App.
You could then have another agent that reviews the correlated cases and provide insight or recommendations. Workbench will also be able to help with correlation with all the linked data.

Wow. This is an amazing explanation. Thank you for this. I really like the idea of focusing on what is already being reported and then pivoting to the broader investigation if needed/interested. I think I was mixing up response and detection and at this stage I would be happy sticking int he response territory until getting this sorted out the way I imagine.
I think this will take me some time to fully wrap my head around, but you definitely fully understand what I’m trying to achieve with this flow.

I will definitely use this, and the prompt you gave to try to build something on this front and see if I can focus on the goal to get something working.

Thank you for getting someone to help out. Definitely some good advice

Thank you Ksalman! I appreciate this, I also appreciate the workflow images.
You definitely have a good point about hitting the API limits fast, that is not something I thought about.
I also didn’t even know about linked cases function so thank you fort he link to the story. I think that will also be able to help me organize things and may have been a missing knowledge for my own attempts. By having cases linked, I’ll be able to use that to help sort out a campaign and what is part of it. So this is defiantly something I will be looking into.

@sif-baksh help you out?

Brilliant documentation on a potential workflow logic!

@sif-baksh Does it again!