Graph-Based Bot Detection: Modeling Adaptive Threats

Zusammenfassung

This Neo4j community discussion explores advanced strategies for detecting adaptive bots using graph-based data modeling. It covers how to structure IP, ASN, and behavioral data to identify evolving threats that bypass traditional SQL-based defenses. The thread provides a framework for entity resolution and temporal tracking to help developers build resilient, long-term detection systems against mutating bot clusters.

happybeacon-37 OP

I'd love to hear how people think about designing the right data structure for this problem.

We have a high-traffic website. For each visitor, I can collect things like:
ASN, IP address, user agent
Number of pages visited, and which actions they took
Retention signals — how often do they come back, and when do they show up?
Given that IP A shows up, what's the probability IP B shows up immediately after?
So: fairly standard web traffic telemetry, all stored in sql db.

Now the problem is that a meaningful share of this traffic is bots, and we are not sure how to systematically detect them.

The issue is compounded by the fact that the bots are adaptive. When you block one behavior, they don't disappear — they mutate. For example, we put up a Cloudflare challenge one day, and an entire cluster vanished overnight. But it didn't stay gone; it came back with a different strategy. Where the group previously ran many actions per IP, it switched to one action per IP across a much wider IP pool.

In other words, the features that identified the group are exactly the features they change once you act on them. Any schema I build around today's signature seems to have a short shelf life.

Would love to get some thoughts on:

(1) How would you model this, or add data structure to it: entity-centric (per IP / per fingerprint), session-centric, or graph-based (IPs, ASNs, UAs, and behaviors as nodes with co-occurrence edges)?
(2) What's the right way to represent time, given that the same actor persists across identifier changes?
(3) How do you version or structure the data so that your labels and features survive an adversary that reacts to your defenses? (Related: how do you keep a record of "this cluster died the day we deployed X" as a first-class signal rather than a footnote?)
(4) Are there established patterns here — entity resolution, behavioral fingerprinting, graph clustering — that I should be reading up on before I invent something worse?

Das Neueste von Neo4j