Correlating threat campaigns

From yanacuti1121/Yana-AI · View interactive version

Correlating threat campaigns is an AI agent skill from the GitHub repository yanacuti1121/Yana-AI. Correlates disparate security incidents, IOCs, and adversary behaviors across time and organizations to identify unified threat campaigns, attribute them to common threat actors, and extract shared indicators for improved detection. Use when multiple incidents exhibit overlapping indicators, when se

How to use this skill

Skill file

Correlating Threat Campaigns

When to Use

Use this skill when:

Do not use this skill to force correlation based on weak signals — false campaign attribution misleads defenders and wastes resources on incorrect threat models.

Prerequisites

Workflow

Step 1: Collect and Normalize Events

Gather all candidate events for correlation from:

Normalize all events to STIX 2.1 schema with consistent timestamp (UTC), indicator types, and confidence scores. Ensure all indicators have source attribution and collection date.

Step 2: Identify Correlation Pivot Points

Apply systematic pivot analysis across four dimensions:

Infrastructure pivots:

Capability pivots:

Temporal pivots:

Victimology pivots:

Step 3: Calculate Correlation Confidence

Apply weighted scoring for campaign attribution:

def calculate_campaign_confidence(events: list) -> float:
    scores = []

    # Infrastructure overlap (highest weight — most discriminating)
    infra_overlap = count_shared_infra(events) / len(events)
    scores.append(infra_overlap * 40)

    # Capability overlap (high weight — TTPs are durable)
    capability_overlap = count_shared_ttps(events) / len(events)
    scores.append(capability_overlap * 35)

    # Temporal proximity (moderate weight)
    temporal_score = assess_temporal_clustering(events)
    scores.append(temporal_score * 15)

    # Victimology alignment (lower weight — many actors target same sector)
    victim_score = assess_victim_pattern(events)
    scores.append(victim_score * 10)

    total = sum(scores)
    if total >= 70: return "HIGH"
    elif total >= 45: return "MEDIUM"
    else: return "LOW"

Step 4: Build Campaign Graph

In OpenCTI or Maltego, construct campaign graph:

Label each relationship with evidence reference and confidence.

Step 5: Produce Campaign Intelligence Report

Structure the campaign report:

  1. Campaign name: Assign descriptive codename based on targeting theme or tooling
  2. Timeline: First/last observed dates with activity phases
  3. Attribution: Suspected threat actor with confidence level
  4. Target profile: Industry verticals, geographies, organization sizes
  5. TTPs summary: ATT&CK Navigator heatmap for campaign-specific techniques
  6. Shared indicators: IOCs that span multiple incidents (highest confidence for blocking)
  7. Detection guidance: Sigma/YARA rules specific to this campaign

Key Concepts

| Term | Definition |

|------|-----------|

| Campaign | STIX object representing a grouping of adversarial behaviors with common objectives over a defined time period |

| Intrusion Set | STIX object grouping related intrusion activity by common objectives, even when actor identity is uncertain |

| Pivot | Using a single data point (IOC, infrastructure, TTP) to discover related events or adversary artifacts |

| Clustering | Machine learning or manual grouping of incidents based on feature similarity to identify campaign boundaries |

| False Correlation | Incorrect linking of unrelated incidents due to shared infrastructure (CDNs, shared hosting) or common tools |

Tools & Systems

Common Pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.