Use Sequences and Graphs Without Inventing Causality

Use Sequences and Graphs Without Inventing Causality

Model ordered behavior and entity relationships while resisting unsafe joins and compelling but false stories.

Approx. 4 min reading · Includes diagrams; allow extra time for reflection and linked resources.

Start reading ↓
About this learning content and editorial review
About this learning content: Courses, lessons, assessments, explanations and illustrations may be created with the help of artificial intelligence. We review and check the material and do our best to avoid incorrect or outdated information, but mistakes, omissions or ambiguous questions may remain. Please verify information before relying on it for professional, security, legal or operational decisions. Read the full notice or report an issue.

Your focus

What you’ll learn

  • Explain the reasoning developed in Use Sequences and Graphs Without Inventing Causality without relying on product syntax.
  • Distinguish observed evidence, analytical interpretation, assumptions, and limitations.

Model ordered behavior and entity relationships while resisting unsafe joins and compelling but false stories.

Relationships become evidence only when identity and time support them

Imagine three records: a new account is created, an account is added to an administrator group, and an administrator signs in from a new device. If all three concern the same identity and occur in that order, the relationship may support a useful investigation. If the username was reused across tenants or the events arrived out of order, the same query can manufacture a story.

A sequence is an ordered relationship among events within a defined time. The order should come from the behavior, not from the order records happened to arrive. You need trustworthy event time, a policy for late records, and a grouping key that represents the same entity across sources. A five-minute window is not a neutral default. It claims that relevant steps occur and arrive closely enough for that window to capture them.

Sequences can also contain alternatives. An attacker may create an account directly or reactivate a dormant one before adding privilege. Modeling those paths does not mean stuffing every possibility into one rule. It means understanding which state transition matters and deciding whether several narrow sequences, a broader state machine, or analyst context best communicates the evidence.

A graph represents entities as nodes and relationships as edges. Graph reasoning becomes useful when the path itself matters: one application is consented by several users, uses a service identity, reaches multiple resources, and shares data with an external account. A table can store each event, but the graph makes shared relationships visible.

Graphs introduce a particular danger. A path in data is not automatically a causal path. Two identities can share an address because of a proxy. A process can connect to a destination used by thousands of services. An account can belong to a group without using its privilege. Each edge needs a type, source, time range, and confidence. Otherwise the visual coherence of the graph can make uncertain relationships look proven.

Using Attack Flow to Design Multi-Step Detections helps you describe actions, assets, conditions, and branches before choosing implementation. The value of the model is not that every attack becomes one enormous correlation. It lets you see where independent observations could strengthen a claim and where one missing join would collapse it.

Use sequences when order is essential and the entity relationship is defensible. Use graphs when several typed relationships explain the behavior better than one timeline. In both cases, preserve the records behind the relationship so an analyst can inspect the evidence rather than trust the shape of the analytic.

Resources