Decision policy
FraudLens scores the session. You choose green / yellow / red — in the cabinet → Decision policy tab or via API.
Cabinet UI
Open /dashboard/ → Decision policy:
- Pick a preset: Balanced (recommended), Strict, or Softer.
- Or edit
allow_min/challenge_min/ email weight yourself. - Optional quick rules: block hard relay stack, challenge VPN-ish codes.
- Save — applies to the next assess (per-request
policycan still override the preset name).
Why we recommend the presets
| Preset | Bands | Why |
|---|---|---|
balanced |
allow ≥ 60 · challenge ≥ 35 | Consumer VPN alone stays yellow; hard relays (DNS geo leak, SYN≠UA, PPTP) fall red. Default for most shops. |
strict |
allow ≥ 75 · challenge ≥ 45 | Gift cards, payouts, fintech — tighter green, more step-ups, same red for hard stacks. |
soft |
allow ≥ 50 · challenge ≥ 25 | SaaS trials / freemium — fewer false blocks at signup. Hard relays still red. |
Score bands (API)
PUT /v1/account/decision-policy with secret key.
| Band | Condition | Action |
|---|---|---|
| Green | score ≥ allow_min | allow |
| Yellow | score ≥ challenge_min | challenge |
| Red | below challenge | block |
curl -s https://fraudlens.io/v1/account/decision-policy \
-X PUT -H "X-Api-Key: fk_sk_…" -H "Content-Type: application/json" \
-d '{
"preset": "soft",
"allow_min": 50,
"challenge_min": 25,
"email_weight": 0.36,
"note": "SaaS trial — softer green"
}'
Rules (first match)
After score→action, rules can force a different action. Up to 40 rules. Cabinet has one-click starters.
{
"rules": [
{
"id": "hard_relay",
"when": { "codes": ["dns_geo_leak", "syn_os_mismatch", "exit_risky_ports"] },
"then": "block",
"plain": "Live relay stack"
},
{
"id": "vpn_only_soft",
"when": { "code": "vpn_exit", "min_score": 45 },
"then": "challenge",
"plain": "Clean VPN → step-up"
}
]
}
when keys: code, codes (any), min_score, max_score, action_is. then: allow · challenge · block · review (=challenge).
Pillar weights
Nine live pillars. Send partial overrides — unspecified keep preset share, then we renormalize to 1.0.
{
"preset": "strict",
"network_weights": {
"dns_graph": 0.28,
"stack_link": 0.22,
"reputation": 0.18
}
}
Pillars: reputation · dns_graph · stack_link · webrtc_ice · trust · path · browser · personality · geo.
email_weight (0–1) balances email vs network; network_weight = 1 − email_weight.
Shadow mode
PUT /v1/account/shadow { "enabled": true }
Production action becomes allow; raw_action still shows what you would have done. Use while tuning bands.