Device intelligence, payment fingerprinting and cluster risk
How Bicrypto's self-hosted fraud and sybil-cluster engine correlates devices, hardware traits, network subnets, Tor exits, and normalized payment rails across accounts — without third-party APIs.
Scam rings rarely stop at one account. Operators of fraudulent P2P desks and withdrawal-abuse rings routinely register fresh throwaway accounts after a ban, farm fake positive trades and ratings against a primary account, and rotate browsers or clear cookies while keeping the same physical hardware and payout rails.
Bicrypto includes a 100 % self-hosted device intelligence, payment-rail fingerprinting, and cluster risk engine backed solely by your own MySQL database and Redis instance — no external commercial fingerprinting API keys or SaaS calls are required.
Core platform routes capture device, network, and withdrawal signals on every install. When the P2P addon is active, the same risk engine feeds P2P Risk Radar, inline collusion alerts on offers/trades/disputes, high-risk offer auto-hold, and wash-trade detection.
How the four signal layers work
The engine never relies on a single brittle identifier such as an IP address or
browser User-Agent alone. Instead, it scores multi-layer evidence across four
independent surfaces:
1. Client browser and cross-browser hardware telemetry
Signed-in browser sessions collect an encrypted/encoded x-device-signals
telemetry header and send lightweight heartbeats alongside sensitive actions:
Protected behind the deviceSignalIngest rate limiter (30 requests per
minute), the telemetry pipeline tracks:
- HTTP-only
bdiddevice cookie (365days,HttpOnly,SameSite=Lax,Securein production) issued and verified server-side. - Persistent client token (
clientToken) mirrored inlocalStorageandIndexedDB, letting the server catch cookie clearing (COOKIE_CLEARED_EVASION) or mismatched storage resets (STORAGE_RECOVERED). - Browser hash (
browserHash) combining canvas, WebGL, AudioContext, fonts, GPU renderer, screen profile, concurrency/memory, timezone, and locale. - Cross-browser hardware hash (
hardwareHash) derived from system-level GPU renderer, CPU/memory geometry, screen ratio, OS/platform, and touch capabilities so switching from Chrome to Firefox or Edge on the same machine remains visible. - Transport HTTP fingerprint (
httpFp) hashed server-side from normalizedUser-Agent,Accept-Language,Accept-Encoding, andSec-CH-UA*headers.
Millions of legitimate phones and laptops share identical hardware profiles
(such as identical GPU/RAM/resolution specs). Matching only hardwareHash
carries a weight of 12 and is intentionally flagged as lowConfidenceOnly —
by itself, it cannot place two strangers into a confirmed cluster or push an
account above LOW risk without corroborating signals (such as a shared IP
subnet, P2P counterparty overlap, payment detail, cookie, or fuzzy browser
upgrade match).
2. Self-hosted IP, subnet, hosting and Tor intelligence
Incoming IPs are enriched locally without paid GeoIP/VPN APIs:
- Subnet normalization: collapses client IPs into IPv4
/24and IPv6/48subnets (ipSubnet), ignoring private/loopback addresses during matching. - Cloud/VPN hosting classification: checks built-in CIDR ranges (AWS, GCP,
Azure, DigitalOcean, Oracle, Linode, Vultr, Hetzner, OVH) and common hosting
ASN patterns (
isHosting), plus CDN geolocation headers when present. - Tor exit node directory: checked against a Redis set (
ip_intel:tor_exits) refreshed every 6 hours by thesyncIpIntelligencescheduled task (listed under thenormalcategory on/admin/system/cron). - Automated evasion and tamper checks: flags
WEBDRIVER_DETECTED,WEBDRIVER_AUTOMATION,PROTOTYPE_TAMPERING,HEADLESS_BROWSER,UA_PLATFORM_MISMATCH/UA_OS_MISMATCH,ANOMALOUS_SCREEN_SIZE, andTIMEZONE_IP_MISMATCH.
3. Normalized HMAC-SHA256 payment-rail fingerprinting
Bank numbers, wallet addresses, and payout handles often expose repeat scammers even when they switch devices, VPNs, and browsers completely.
Before persistence in user_payment_fingerprint, sensitive values are
normalized and keyed-HMAC-SHA256 hashed server-side alongside a short masked
preview — raw bank account numbers, emails, phones, and handles are never
copied into plaintext risk tables:
| Kind | Normalization rules before hashing |
|---|---|
IBAN |
Uppercased with spaces and hyphens stripped |
ACCOUNT_NUMBER |
Punctuation stripped; obvious test/sequential placeholders filtered out |
EMAIL |
Lowercased; Gmail/googlemail.com dots and +aliases normalized away |
PHONE |
Leading 00 converted to +; digits canonicalized |
HANDLE |
Lowercased @ / whitespace normalized for peer transfer handles |
CRYPTO_ADDRESS |
Lowercased for EVM (0x…) addresses; case preserved for Base58 chains (SOL, TRON) |
HOLDER_NAME |
Accents stripped, whitespace collapsed, lowercased (SHARED_BENEFICIARY_NAME only adds +20 weight on its own) |
4. Where signals are captured automatically
Signals and fingerprints are persisted non-destructively (failures never block normal traffic) across:
- Authentication: registration, login, and OTP login.
- Browser session heartbeats (
POST /api/user/device-signal). - Money out & internal transfers: wallet transfers, spot withdrawals, fiat
withdrawals, and ecosystem withdrawals (capturing
WITHDRAW_ADDRESS). - P2P lifecycle (when enabled): creating/editing personal payment methods, creating offers, initiating trades, confirming payment, releasing escrow, and submitting reviews.
System/treasury accounts and Super Admin accounts are automatically excluded from telemetry exposure, clustering, and enforcement actions.
Cluster discovery and risk scoring
The matcher runs a 2-hop cluster expansion (A ↔ B ↔ C) over recent device
signals (180-day window), payment fingerprints, P2P trades, and internal
transfers, deduplicating each signal category per account pair:
| Signal kind | Weight | Meaning |
|---|---|---|
SHARED_PAYMENT_DETAIL |
70 | Same hashed P2P bank/wallet/handle detail |
EXACT_COOKIE_TOKEN |
65 | Same HttpOnly bdid cookie across accounts |
EXACT_CLIENT_TOKEN |
65 | Same persistent localStorage/IndexedDB token |
SHARED_WITHDRAWAL_ADDRESS |
65 | Same destination crypto withdrawal address |
EXACT_BROWSER_HASH |
60 | Identical browser fingerprint hash |
HARDWARE_HASH_PLUS_P2P_OVERLAP |
55 | Same cross-browser hardware signature plus direct P2P trades |
UPGRADED_BROWSER_FUZZY |
52 | Matched at least 6 of 8 stable browser/GPU traits after an upgrade or cookie reset |
HARDWARE_HASH_PLUS_SUBNET |
45 | Same cross-browser hardware signature on the same /24 or /48 IP subnet |
EXACT_IP_MATCH |
28 | Identical public IP address seen across accounts |
INTERNAL_TRANSFER_LINK |
25 | Direct internal transfer between accounts |
SHARED_BENEFICIARY_NAME |
20 | Identical normalized account holder name |
HARDWARE_HASH_ONLY |
12 | Coarse hardware signature overlap alone (marked low-confidence) |
Accounts linked at confidence 45+ (and not lowConfidenceOnly) share a
deterministic 16-character clusterKey.
Composite 0–100 account risk score
Each user's materialized snapshot (user_risk_snapshot) folds together cluster
links, linked account statuses, spoof/network signals, and P2P wash-trade
findings:
- Strong linked accounts (
confidence >= 60):+25for one, up to+45across larger clusters; medium non-low-confidence links (45–59):+12up to+20; low-confidence-only hardware overlap: capped at+6(total score never exceeds12without other signals). - Guilt by strong association:
+25if any strongly/medium linked account in the cluster isBANNED,SUSPENDED, or financially restricted. - P2P wash-trade component: adds
round(washTradeScore * 0.45)(see P2P Risk Radar). - Evasion and network flags:
+20for automation/headless/tampering,+15for cookie/storage clearing,+15for Tor exit traffic (+10when>= 70 %of sessions come from cloud/VPN hosting),+10for UA/platform mismatch, and+10for browser timezone vs IP country conflict.
Levels map against your configured High Risk Score Threshold (threshold,
default 65):
| Level | Score range (at default threshold 65) |
|---|---|
LOW |
< 35 |
MEDIUM |
35–64 (35 up to threshold - 1) |
HIGH |
65–79 (>= threshold) |
CRITICAL |
80–100 (>= min(95, threshold + 15)) |
Platform settings
Configure the core engine in Admin → System → Platform Settings → Security → Protection:
P2P-specific controls (riskAutoHoldP2pOffers and
riskDiscountRepeatCounterpartyReviews) live in
P2P settings.
Investigating and acting on a cluster
Every customer's profile at /admin/crm/user/{id} includes a Risk & Devices
tab (and header summary badges) backed by two endpoints:
Cluster action safeguards and effects
Select one or more linked accounts on the Risk & Devices tab and choose one of four actions (requires a 1–500 character reason and works only from an interactive admin browser session — API keys are refused, and Super Admin, system/treasury, and your own account are automatically skipped, max 50 targets per request):
| Action | Effect across selected cluster accounts |
|---|---|
RESTRICT_MONEY |
Sets withdrawalsDisabled = true and transfersDisabled = true with a [Cluster Risk] note |
PAUSE_P2P_OFFERS |
Moves all ACTIVE and PENDING_APPROVAL P2P offers to PAUSED |
SUSPEND |
Creates a temporary block (1–8760 hours, default 168h), sets status SUSPENDED, revokes active sessions, and pauses P2P offers |
BLOCK |
Creates a permanent block (BANNED), revokes all sessions, and pauses all open/pending P2P offers |
Database tables and cron jobs
| Artifact | Purpose |
|---|---|
user_device_signal |
Persisted device/hardware/network observations, spoof flags, and hit counters |
user_payment_fingerprint |
Peppered HMAC-SHA256 payment and withdrawal hashes with masked previews |
user_risk_snapshot |
Materialized latest score, level, clusterKey, counts, and top reasons |
syncIpIntelligence |
Runs every 6 hours (normal cron category on /admin/system/cron) to refresh the Redis Tor exit set (ip_intel:tor_exits, 48h TTL) |