🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Inside the SOC: SIEM Detection, Triage and Hunting

Security OperationsđŸŸĸ Free Lesson

Security Operations Center

A security operations center is not a room full of screens; it is a set of promises about time. The SOC promises that meaningful activity will be seen, judged and acted on within a defined window — and every design decision, from log coverage to alert thresholds to staffing tiers, exists to keep that promise. Tools are interchangeable; the workflow is what makes the difference between a team that reduces risk and a team that generates tickets nobody reads.

How a SOC is actually staffed

Most SOCs run a tiered model. Tier 1 analysts work from a queue of alerts, applying playbooks to separate true positives from noise and escalating what looks real. Tier 2 investigates: pivoting across logs, scoping the affected assets, determining whether an alert is part of a larger pattern. Tier 3 hunts proactively, builds detections, reverse-engineers malware and handles the incidents that need deep expertise. Detection engineers and threat intelligence analysts support all three.

TierPrimary jobEscalates whenCore skill
Tier 1Alert triage against playbooksAlert matches escalation criteriaFast, consistent judgment
Tier 2Investigation and scopingIntrusion confirmed or scope unclearPivoting across data sources
Tier 3Hunting, detection engineering, complex incidentsAlways, into IR or leadershipAdversary thinking
Detection engineerTurns investigations into rulesRule quality degradesQuery and sigma authorship
Threat intelligenceCurates indicators and actor contextActor activity observedSource evaluation

Watch for the two classic failure modes. Tier 1 becomes a rubber stamp when playbooks say "escalate anything with a critical severity" — the queue floods and analysts learn to click through. And the SOC becomes a ticket factory for IT when nobody measures whether alerts led to reduced risk. Metrics in the last section exist to prevent both.

Log sources: coverage before cleverness

Detection quality is bounded by what you ingest. The essential sources are identity (directory authentication, VPN, single sign-on), network (firewall, proxy, DNS, flow), endpoint (process creation, script execution, persistence), cloud control plane (API calls, console sign-ins) and email (delivery, clicks, submissions). Gaps here cannot be compensated for with better queries — you cannot detect a technique whose telemetry you never collect.

Order matters, too. Process creation with command lines catches living-off-the-land activity that network logs show only as encrypted traffic. DNS logs catch beaconing before a connection is ever established. Cloud control-plane logs catch privilege escalation that leaves no host artifact at all.

Writing detections in a SIEM

A detection is a hypothesis expressed as a query: "if an attacker does X, this is what the telemetry will look like." Start from a technique — credential dumping, lateral movement via remote services, persistence through scheduled tasks — and write the smallest query that isolates it, then tune the threshold against a baseline of normal.

-- Splunk: bursts of failed logins followed by a success from the same source
index=auth earliest=-15m
| stats count AS fails, values(user) AS users, dc(user) AS distinct_users by src_ip
| where fails > 10 AND distinct_users > 3
| join type=inner src_ip
    [ search index=auth earliest=-15m action=success
      | stats latest(_time) AS success_time by src_ip, user ]
| table src_ip, users, fails, success_time
{
  "query": {
    "bool": {
      "must": [
        { "term": { "event.action": "process_created" } },
        { "terms": { "process.name": ["powershell.exe", "pwsh.exe"] } },
        { "match": { "process.command_line": "encodedcommand OR -enc OR frombase64string" } }
      ],
      "filter": { "range": { "@timestamp": { "gte": "now-15m" } } }
    }
  },
  "aggs": {
    "by_host": { "terms": { "field": "host.name", "size": 20 } },
    "by_user": { "terms": { "field": "user.name", "size": 20 } }
  }
}

Both queries share a discipline: filter early, aggregate to make the decision easy, and surface the fields an analyst needs to act (source, host, user, time) without a second lookup. Encode the technique, not the specific tool name, wherever you can — encodedcommand catches families of PowerShell abuse, while one suspicious script name catches one script.

Triage: the human judgment layer

Every alert arrives as a claim that needs context. Good triage asks four questions in order: Is this real (does the event exist and match the rule's intent)? Is it benign (a vulnerability scanner, an admin's approved maintenance)? Is it contained (did anything succeed after the first failure)? And what is the blast radius (which assets, accounts and data are involved)?

python
from datetime import datetime, timedelta, timezone

def triage(alert: dict, asset_ctx: dict) -> dict:
    """Apply the playbook consistently so two analysts reach similar verdicts."""
    verdict = {"severity": alert["severity"], "action": "monitor", "reasons": []}

    if alert["type"] == "failed_logins":
        if alert["fail_count"] > 50 and alert["distinct_users"] > 10:
            verdict["action"] = "escalate"
            verdict["reasons"].append("password spraying pattern across accounts")

    if alert.get("succeeded_after_failures"):
        verdict["action"] = "escalate"
        verdict["reasons"].append("successful authentication after failures")

    # Business context overrides raw severity: a scan box is noisy by design
    if asset_ctx.get("asset_type") == "vulnerability_scanner":
        verdict["action"] = "close_benign"
        verdict["reasons"].append("source is an approved scanner window")

    # Crown-jewel assets escalate regardless of the alert's own score
    if asset_ctx.get("criticality") == "tier_1":
        verdict["severity"] = "critical"
        verdict["reasons"].append("tier-1 asset involved")

    verdict["analyst"] = None
    verdict["opened_at"] = datetime.now(timezone.utc).isoformat()
    verdict["sla_minutes"] = {"critical": 15, "high": 60, "medium": 240}.get(
        verdict["severity"], 1440
    )
    return verdict


sample = triage(
    {"type": "failed_logins", "severity": "medium", "fail_count": 87,
     "distinct_users": 14, "succeeded_after_failures": False},
    {"asset_type": "public_web", "criticality": "tier_1"},
)
print(sample["action"], sample["sla_minutes"], sample["reasons"])

Note what the function encodes: context beats raw severity, crown-jewel assets get a faster clock, and known-noisy sources are closed with a recorded reason rather than silently dismissed. Documented reasons also make tuning reviews possible six months later.

Triage quality also depends on what the analyst can see in the first screen. Enrichment should attach the asset owner, criticality, recent changes, related alerts and any known-maintenance window automatically, because an analyst who must open four consoles to answer "is this expected?" will answer "escalate" more often than the evidence warrants. Conversely, when enrichment shows the host was rebuilt by the pipeline an hour ago, the alert closes in seconds and the queue stays short.

Threat hunting: working without an alert

Hunting inverts the model: instead of waiting for telemetry to match a rule, the hunter starts from a hypothesis about adversary behavior and searches for evidence. A productive hypothesis names the technique, the data source and the time window — "adversaries may create scheduled tasks for persistence; search endpoint telemetry for tasks created outside change windows by non-admin accounts".

python
import json
from collections import defaultdict

# Hypothesis: rare parent-child process pairs often reveal LOLBin abuse
TRANSITIONS = defaultdict(int)
with open("process_telemetry.jsonl") as fh:
    for line in fh:
        ev = json.loads(line)
        TRANSITIONS[(ev["parent"], ev["child"])] += 1

total = sum(TRANSITIONS.values())
rare = [(p, c, n) for (p, c), n in TRANSITIONS.items() if n <= 5 and n / total < 0.0001]
for parent, child, count in sorted(rare, key=lambda x: x[2]):
    print(f"{count:4d}  {parent} -> {child}")

# Validate against known-bad technique mappings before filing a detection
TECHNIQUE_HINTS = {
    "word.exe -> powershell.exe": "T1059.001 PowerShell",
    "excel.exe -> cmd.exe": "T1204.002 malicious macro",
    "services.exe -> cmd.exe": "T1569.002 service execution",
}

Hunts end in artifacts, not anecdotes: either a new detection rule, a coverage gap ticket (we have no telemetry for this technique), or a documented negative result. Keep a hunt backlog and a calendar slot; teams that hunt "when quiet" never hunt.

Playbooks and automation

A playbook is a decision tree an analyst can follow at 3am: steps, thresholds, who to notify, what to collect, when to contain. For a phishing alert, that might be isolate endpoint, collect the message and headers, check whether any recipient clicked or submitted credentials, block sender and lookalike domains, hunt for the same campaign across the mailbox estate, and notify users if it landed.

phishing_report:
  trigger: user_report OR secure_email_gateway_alert
  steps:
    - action: enrich
      with: [sender_reputation, url_scan, attachment_sandbox]
      timeout: 120
    - action: check_recipients
      query: "same campaign delivered to other mailboxes"
    - action: isolate_endpoint
      when: attachment_executed OR credentials_submitted
    - action: force_password_reset
      when: credentials_submitted
    - action: block_indicator
      targets: [email_gateway, proxy, dns]
    - action: hunt
      query: "related senders, domains, attachments across 30 days"
    - action: notify
      to: [affected_users, security_lead]
      template: phishing_exposure_notice
  sla:
    acknowledge: 15m
    contain: 60m

Automation should handle enrichment and containment while humans make the verdict. Auto-blocking a well-correlated indicator saves minutes that matter; auto-closing an alert on a single benign indicator teaches adversaries which signals to mimic.

Measuring whether any of it works

Vanity metrics count alerts and dashboards. Useful metrics describe outcomes and latency: mean time to acknowledge, mean time to contain, true-positive rate by detection source, percentage of incidents detected by SOC rather than reported externally, and coverage of high-priority adversary techniques. Dwell time — how long an adversary was present before detection — remains the most honest single number, because it integrates detection quality, coverage and analyst performance into one figure leadership can track quarter over quarter.

Feed every investigation back: new rules from confirmed incidents, tuned thresholds from noisy ones, and content retired when it produces nothing but noise. A SOC that does not change its detections is a monitoring system slowly becoming a logging system.

Common Mistakes

Deploying a SIEM before deciding which log sources matter

Fix: Start from the techniques you must detect, then collect the telemetry that reveals them, in that order.

Escalating on severity alone

Fix: Apply asset criticality, business context and success-after-failure patterns before deciding severity.

Writing detections tied to one tool name

Fix: Encode the behavior — encoded commands, unusual parent-child pairs — so variants still match.

Letting hunting be an ad-hoc activity

Fix: Keep a hypothesis backlog and a scheduled hunt slot; close each hunt with a rule, a gap ticket or a documented negative.

Reporting alert volume as SOC performance

Fix: Measure true-positive rate, time to acknowledge and contain, and external-detection share instead.

Best Practices

  • Version playbooks in source control and review them after every significant incident.
  • Enrich automatically before analyst attention; humans should see context, not raw fields.
  • Separate detection engineering from shift work so rules get deliberate improvement.
  • Track technique coverage against a framework so gaps are visible, not assumed closed.
  • Keep detection logic and thresholds reviewable, with owners and change history.

Key Takeaways

  • A SOC is a time-bound promise: detection quality and staffing design both serve the response window.
  • Coverage beats cleverness — no query detects telemetry you never collected.
  • Good triage asks whether the event is real, benign, contained and how far it reaches, in that order.
  • Hunting starts from a technique hypothesis and must end in a rule, a gap ticket or a documented negative result.
  • Playbooks make 3am decisions consistent; automation should enrich and contain while humans judge.
  • Dwell time and true-positive rate tell you if the SOC reduces risk; alert counts do not.
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-12

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert Cybersecurity Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement