FlitDocs

Why slowing down does not work

A limit on one event tells an attacker exactly how to behave: stay under it. Flit does not judge an event alone. It judges everything the same origin did in the last hour, so each careful step is added to the ones before it.

What an origin is

The device, when you send a visit_token. Otherwise the IP address. A session is every event of every kind from that origin in the last 60 minutes, across all the accounts it touched.

The same login, a different answer

In the last few minutes one address has signed in to four accounts, each time with a different HTTP client: curl, okhttp, Go, node-fetch. Each was refused. Now it tries a fifth account, and this time the user agent is an ordinary Chrome:

POST /api/v1/applications/$APP/audit-authentication
curl -s -X POST "$FLIT/api/v1/applications/$APP/audit-authentication" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "login_405",
    "client_id": "user_405",
    "action": "login",
    "status": "success",
    "ip_address": "154.113.16.4",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
  }'
200 Answer the fields this page talks about
{
  "data": {
    "audit_id": "25b58a04-9d50-4f3c-81df-a34980bdf3f3",
    "verdict": "block",
    "risk_score": 0.8983333333333334,
    "risk_level": "critical",
    "factors": [
      "machine_session",
      "agent_session",
      "block_streak"
    ],
    "block_streak": 5,
    "reasons": [
      {
        "code": "machine_session",
        "path": "ip",
        "context": {
          "rule": "SessionShapeRule",
          "severity": 1.0,
          "origin": {
            "key": "ip",
            "value": "154.113.16.4"
          },
          "signals": {
            "many_accounts": 0.67,
            "rotating_clients": 1.0,
            "machine_cadence": 1.0,
            "adaptive_retry": 1.0
          },
          "features": {
            "burst_ratio": 1.0,
            "think_gaps": 0,
            "adaptive_retries": 4,
            "agent_clients": 0,
            "rate_limited": 0,
            "events": 5,
            "accounts": 5,
            "client_families": 5,
            "action_kinds": 1,
            "path_templates": 0,
            "registrations": 0,
            "credential_accounts_not_registered": 5,
            "credential_motifs": 0,
            "takeover_motifs": 0,
            "median_gap_seconds": 0.0,
            "gap_regularity": 0.89,
            "span_seconds": 0
          },
          "baseline": {
            "accounts_p95": 3,
            "client_families_p95": 1,
            "median_gap_p05": 20.0,
            "burst_ratio_p95": 0.1,
            "sessions": 0
          }
        },
        "text": "Session from this ip looks automated: adaptive_retry, machine_cadence, many_accounts, rotating_clients"
      },
      {
        "code": "agent_session",
        "path": "ip",
        "context": {
          "rule": "SessionShapeRule",
          "severity": 1.0,
          "origin": {
            "key": "ip",
            "value": "154.113.16.4"
          },
          "signals": {
            "adaptive_retry": 1.0
          },
          "burst_ratio": 1.0,
          "think_gaps": 0,
          "adaptive_retries": 4,
          "agent_clients": 0
        },
        "text": "Session from this ip looks agent-driven: adaptive_retry"
      },
      {
        "code": "block_streak",
        "path": "ip_address",
        "context": {
          "rule": "BlockStreakRule",
          "severity": 1.0,
          "consecutive": 4,
          "total_24h": 4,
          "origin": "ip:154.113.16.4"
        },
        "text": "This origin has been blocked 4 times in a row"
      }
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "25b58a04-9d50-4f3c-81df-a34980bdf3f3",
    "device_id": null,
    "identity": {
      "rungs": [
        "ip"
      ],
      "coverage": 0.15,
      "missing": [
        "device",
        "email_root",
        "asn"
      ],
      "strongest": "ip"
    },
    "risk_score": 0.8983333333333334,
    "risk_level": "critical",
    "rules": [
      "IPReputationRule",
      "BotSignalRule",
      "NetworkReputationRule",
      "ChallengeEvasionRule",
      "ChallengePassedRule",
      "MultiAccountingRule",
      "AccountSharingRule",
      "AccountFarmingRule",
      "ResetToLoginRule",
      "AutomatedCredentialActionRule",
      "CredentialResetStormRule",
      "SessionShapeRule",
      "BlockStreakRule",
      "ProbingSessionRule",
      "CredentialSprayRule"
    ],
    "reasons": [
      {
        "code": "machine_session",
        "path": "ip",
        "context": {
          "rule": "SessionShapeRule",
          "severity": 1.0,
          "origin": {
            "key": "ip",
            "value": "154.113.16.4"
          },
          "signals": {
            "many_accounts": 0.67,
            "rotating_clients": 1.0,
            "machine_cadence": 1.0,
            "adaptive_retry": 1.0
          },
          "features": {
            "burst_ratio": 1.0,
            "think_gaps": 0,
            "adaptive_retries": 4,
            "agent_clients": 0,
            "rate_limited": 0,
            "events": 5,
            "accounts": 5,
            "client_families": 5,
            "action_kinds": 1,
            "path_templates": 0,
            "registrations": 0,
            "credential_accounts_not_registered": 5,
            "credential_motifs": 0,
            "takeover_motifs": 0,
            "median_gap_seconds": 0.0,
            "gap_regularity": 0.89,
            "span_seconds": 0
          },
          "baseline": {
            "accounts_p95": 3,
            "client_families_p95": 1,
            "median_gap_p05": 20.0,
            "burst_ratio_p95": 0.1,
            "sessions": 0
          }
        },
        "text": "Session from this ip looks automated: adaptive_retry, machine_cadence, many_accounts, rotating_clients"
      },
      {
        "code": "agent_session",
        "path": "ip",
        "context": {
          "rule": "SessionShapeRule",
          "severity": 1.0,
          "origin": {
            "key": "ip",
            "value": "154.113.16.4"
          },
          "signals": {
            "adaptive_retry": 1.0
          },
          "burst_ratio": 1.0,
          "think_gaps": 0,
          "adaptive_retries": 4,
          "agent_clients": 0
        },
        "text": "Session from this ip looks agent-driven: adaptive_retry"
      },
      {
        "code": "block_streak",
        "path": "ip_address",
        "context": {
          "rule": "BlockStreakRule",
          "severity": 1.0,
          "consecutive": 4,
          "total_24h": 4,
          "origin": "ip:154.113.16.4"
        },
        "text": "This origin has been blocked 4 times in a row"
      }
    ],
    "enforcement": "enforcing",
    "verdict": "block",
    "should_block": true,
    "should_challenge": false,
    "should_review": true,
    "would_block": true,
    "would_challenge": false,
    "recommendation": "BLOCK: High-risk activity detected. Recommend blocking transaction and triggering manual review.",
    "confidence": 0.8,
    "coverage": 0.15,
    "factors": [
      "machine_session",
      "agent_session",
      "block_streak"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {},
    "block_streak": 5,
    "shadow": [],
    "hook": null,
    "challenge": null,
    "step_up_method": null,
    "agent": null
  },
  "errors": []
}

Sent by itself, this request is the allowed login from Your first decision: a browser, a successful sign-in, nothing else. Here it is refused, and none of the three findings is about the event. They are about the origin:

  • machine_session: the session looks automated. context.signals says in what way, and context.features gives the counts behind it: five events, five accounts, five different clients.
  • agent_session: it changed what it was doing straight after being refused, which is how software that adapts behaves.
  • block_streak: this origin's last four decisions were all blocks.

What Flit reads from a session

SignalWhat it meansDoes going slowly hide it?
many_accountsMore accounts from one origin than is normal for you.No. It is a count over the hour.
rotating_clientsThree or more different kinds of client from one origin.No.
takeover_motifReset, then login, then a credential change or a payout, on more than one account.No. The order matters, not the gaps.
others_credentialsAn origin that created several accounts now using the credentials of one it did not create.No.
adaptive_retryRefused, and within 45 seconds trying a different action or account.Only by waiting out every refusal.
machine_cadenceFive or more events closer together, and more evenly spaced, than your traffic normally is.Yes. This is the one that pace alone avoids.
bimodal_cadenceBursts faster than a person, separated by pauses: software doing a step, then thinking.Partly.
rate_limitedYou told Flit you rate-limited this origin.No.

"Normal for you" is measured. Flit keeps a baseline of your own sessions over the last seven days and compares against that. Until it has seen 30 of your sessions it uses defaults: more than three accounts from one origin is many, and a median gap under 20 seconds is fast. context.baseline shows which numbers were used.

The attacker who waits

Take the reset-then-login rule from Stop account takeover. It looks at 90 seconds. An attacker who knows that waits two and a half minutes between the reset and the login, and that rule says nothing.

The session still has a reset, then a login, then money leaving, on one account after another from one origin. On the second account Flit reports campaign_motif, and with a few more accounts and a changing client, machine_session. Waiting made each step look fine and left the shape of the hour unchanged.

Where this stops

A session is an hour. An attacker who touches one account a day from one origin is outside it, and is left to slower counts instead: how many accounts a device or an address has been seen on over 30 days (multi_accounting), and what other Flit customers have confirmed about it (network_fraud_history, in live mode).

Block streaks

block_streak in every answer is how many decisions in a row this origin has now had blocked. One block is an event. Three in a row is someone working at it:

  • from the second, the streak counts as a finding of its own, which makes the next attempt harder to pass;
  • at the third, Flit sends the campaign.detected webhook, once, and raises the case's priority;
  • everything sent to review from one origin within 24 hours goes into one case, not one each.

Anything other than a block resets the count.

What a session needs from you

Session scoring is only as good as the events in it.

  • Send every kind of event, with the user's ip_address each time: signups, logins and resets, changes, payments.
  • Send what you refused. A failed login is login_failed. A request your API turned away goes to audit-client with the action access_denied or request_error.
  • Send a device when you can, so that an attacker changing address is still one origin.

See the session

The session around any decision can be read back: GET /api/v1/applications/$APP/decisions/{audit_id}/replay returns the origin's events in order, with what Flit made of them at the time. The API reference has the fields.