Case Study

AI Activity Detection

A real-time detection engine that scores every user event against normal behaviour to catch account takeovers, fake sign-ups and API probing.

Industry

SaaS platforms

Service

AI Implementation

AI model

Anthropic Claude

Platform

AWS Lambda

The challenge

Client applications send a constant stream of events: logins, password changes, withdrawals. Hidden inside are hijacked accounts, fake sign-ups and attackers probing the APIs. Fixed rules miss them, because normal looks different for every user, role and application.

Stolen accounts still look like valid, ordinary logins

Normal behaviour differs by user, role and application

Fake sign-ups and API probes blend into traffic

The solution

We built a detection engine that learns how each profile normally behaves, checks every event against that history and platform-wide activity, and returns one risk score with the reasons behind it, so client security teams can act fast.

Per-profile baselines for location, device, activity and timing

Around 80 signals across twelve families of checks

One 0–100 risk score with every reason listed

Fixed rules vs. behavioural detection

Why checking each event against that user's normal beats one rule for everyone.

Before

Fixed rules alone

Same thresholds applied to every user
Stolen logins pass as valid sessions
API probing hides in normal traffic
Alerts arrive with no clear reason
Each new application needs new rules
After

AI Activity Detection

Baselines learned for each individual profile
Takeover sequences scored as they happen
Probing patterns caught across shared IPs
Every score lists its contributing signals
New applications are configured, not rebuilt

How it works

Every event passes through four steps in real time.

1

Capture and enrich

The client app sends the event with profile, IP address and user agent. IP becomes country and network; user agent becomes device and browser.

2

Compare to normal

The event is set against the profile's usual locations, devices, hours and amounts, its role, and what that same IP address is doing elsewhere.

3

Run the checks

Twelve families of checks run side by side, from impossible travel and credential stuffing to takeover sequences, bulk sign-ups, API probing and unusual payments.

4

Score and flag

Signals combine into one 0–100 risk score, with related signals capped and sensitive actions weighted higher. Suspicious events are flagged with every reason attached.

What it detects

The main threats the engine scores, from first sign-up to final cash-out.

Account Takeover

Spots login, password change and withdrawal sequences that signal a stolen account.

Credential Stuffing

Flags one IP address trying many accounts with repeated failed login attempts.

Impossible Travel

Catches logins from locations too far apart for one person to travel.

Fake Sign-ups

Detects bursts of new accounts created from shared devices, networks or patterns.

API Probing

Recognises automated tools testing endpoints, scanning for weaknesses or scraping user data.

Unusual Transactions

Highlights amounts, timing or frequency that break from the user's normal pattern.

A takeover, step by step

How separate signals build into one risk score within minutes.

Step 1 · 09:02

Login

Usual city, usual device.

Matches baseline
4
/ 100
Step 2 · 09:41

Login

Another country, new browser.

Impossible travel
46
/ 100
Step 3 · 09:43

Password change

Sensitive action after a risky login.

Takeover sequence
78
/ 100
Step 4 · 09:45

Withdrawal

Amount far above the usual.

Unusual transaction
96
/ 100
Flagged
Illustrative example only. Not real client data.

Technology stack

Serverless, so it scales with event volume and costs nothing when idle.

Runtime
Ruby on AWS Lambda, one event per invocation
AI model
Anthropic Claude, built into the detection layer
Data store
Low-latency store for user history and counters
Enrichment
IP geolocation, network and anonymiser detection
Parsing
User agent split into device, OS and browser
Configuration
Per-application event names, roles, thresholds and weights

Data privacy

The engine works from behaviour, not identity, so personal details stay out.

Users tracked by profile ID, not name
No passwords or payment details are collected
User agents and sensitive values stored hashed
History is kept short and expires automatically
Each client's events are kept fully separate
Only needed context is shared with Claude
Why Claude

The right model for detection

Why we built Anthropic's Claude into the detection layer.

01

Reasons over patterns

Claude can look at a sequence of events and reason about whether the pattern looks suspicious.

02

Explains its thinking

It can describe in plain language why an event was flagged, so teams understand each alert.

03

Works alongside rules

Behavioural rules handle the fast scoring, while Claude adds judgement where simple thresholds are not enough.

How we work

From Idea to Operation

A clear, repeatable path; so you always know where a project stands and what comes next.

01
Discover

We map the problem, validate feasibility, and define the architecture before any commitment to build.

02
Design

UI/UX and technical design together; prototyping the experience and the system that powers it.

03
Build

Development in tight iterations, with security and scalability engineered in from the first commit.

04
Harden

Security review, automated testing, and load testing across every environment before release.

05
Launch

Deployment to production on AWS, provisioned as code, with low-risk, repeatable rollouts.

06
Operate

Round-the-clock monitoring, maintenance, and iterative improvement as the product scales.

What we do

Four ways we engage

Cloud Modernisation

Move legacy and offline systems onto modern AWS architecture — cutting cost, automating manual work, and widening what your business can do.

Learn more
Infrastructure Management

Bespoke AWS infrastructure, hardened and automated — provisioned as code, monitored around the clock, and tuned for cost and availability.

Learn more
How We Build

Five Engineering Pillars

Scalability

Systems that grow smoothly as demand rises.

Efficiency

Every dollar works hard across the stack.

Security

Protection is engineered into every single layer.

Availability

Stay online through anything unexpected.

Observability

You can see exactly what's happening everywhere.