Docs / Decision policy

Decision policy

FraudLens scores the session. You choose green / yellow / red — in the cabinet → Decision policy tab or via API.

Custom bands = your risk Presets are calibrated on live relay catches. You may move the sliders — looser green lets more dirty exits through; tighter green increases false step-ups. The cabinet shows a live band preview and explains why each preset is recommended.

Cabinet UI

Open /dashboard/ → Decision policy:

  1. Pick a preset: Balanced (recommended), Strict, or Softer.
  2. Or edit allow_min / challenge_min / email weight yourself.
  3. Optional quick rules: block hard relay stack, challenge VPN-ish codes.
  4. Save — applies to the next assess (per-request policy can still override the preset name).

Why we recommend the presets

PresetBandsWhy
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.

BandConditionAction
Greenscore ≥ allow_minallow
Yellowscore ≥ challenge_minchallenge
Redbelow challengeblock
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.

Open cabinet → Assess response →