VoIP Fraud Detection with CDR Analysis: Signals, Thresholds, and Alerts
You can detect most VoIP fraud from call detail records alone by watching for deviations from each account's normal behavior in destination, volume, timing, and cost. CDRs are cheap, already collected, and difficult for an attacker to avoid generating.
The CDR Fields That Matter
From the full record structure described in call detail records explained, fraud analysis leans on:
- Calling and called number, and the destination country or rate prefix
- Start time and duration
- Account or trunk identifier and source IP
- Hangup cause, which shows failures and rejections
- Cost or rate applied
Fraud Signals
| Signal | Why it matters |
|---|---|
| Sudden new destination country | Typical of stolen credentials used for premium routes |
| Many short calls to the same prefix | Number-range pumping to generate termination revenue |
| High concurrent calls from one account | Automated abuse, not human calling |
| Calls outside the account's usual hours | Attackers favor nights, weekends, holidays |
| Many failed authentications then success | Brute-force that succeeded |
| Unusual source IP or country for an account | Credentials used from a new location |
| Very long calls to unusual numbers | Revenue-share abuse |
Baselines Beat Fixed Rules
A fixed rule like "alert above 100 calls per hour" will either fire constantly on busy accounts or miss attacks on quiet ones. Compute a per-account baseline from the past few weeks (typical hours, destinations, volume) and alert on deviation. Even simple rolling averages catch a lot.
Building the Pipeline
- Stream CDRs into a database or message queue as calls finish, not in a nightly batch.
- Aggregate by account over short windows such as 5, 15, and 60 minutes.
- Evaluate rules against the baseline and static caps.
- Act in tiers: notify at a soft threshold, throttle at a harder one, block at a hard one.
- Review false positives weekly and tune thresholds.
Prevention controls that complement detection are in VoIP toll fraud prevention. For caller-level analysis, voice-based approaches are in voice biometrics for fraud detection.
Real-Time vs Near-Real-Time
A CDR is written when a call ends. A long fraudulent call is invisible until it finishes. Pair CDRs with live call state (active calls per account, spend so far) so you can stop an in-progress attack. Your signaling layer is the right enforcement point (see Kamailio routing and rate limiting).
Data Handling
CDRs contain personal data. Apply retention limits, access controls, and encryption, and align with any regulatory requirements for your sector.
Want fraud detection built into your billing and routing? Our telecom API and middleware team builds the data pipelines and enforcement logic that connect call records to real-time action.
Related Services
Keep Reading
Discussion
0Join the conversation
Sign in with your preferred account to comment, reply, and keep the discussion useful for other engineers.
Takes a few seconds. No separate password required.
Controva LLC
Engineering Team
We build digital empires that scale. Specializing in high-performance web architecture, AI automation, and headless commerce.
Work with us