Quasr continuously tracks and scores the IP addresses interacting with your tenant, and will temporarily or permanently block an IP address once it accumulates too high a score.
Quasr starts tracking an IP address as soon as it triggers one of following events (successful events never trigger tracking):
If an IP has no further qualifying activity within a tenant-configured amount of time (see Expires In below) tracking for that IP is reset for that tenant, i.e. the next qualifying event starts building up a fresh score.
Tracked IPs are listed in the IPs section of the Admin UI, together with the events that contributed to their score. By default only IPs with a score of 100 or more are shown; use the filter to change the score range or to filter by value (prefix), status, creation and expiration date, and whether the IP is shared or trusted.
Each qualifying event adds to the IP's score for that tenant. How much an event adds depends on its type (API call, authentication or authorization) and result (pending or failed), and is configured as part of your tenant's security level.
Once an IP's score for a tenant reaches a threshold, the IP is blocked. Blocks come in tiers - some temporary (for a set duration) and some permanent - also configured as part of your tenant's security level.
While blocked, requests from that IP receive a 403 HTTP status code along with following page as body, regardless of what is being attempted (login, signup, an API call, etc) since blocking happens at the IP level, not the individual request. The page is the same for every block, temporary or permanent.
Separately from scoring, the APIs are rate limited per IP: an IP sending more than 500 requests in 5 minutes also receives a 403, with a similar page, until its rate drops again (see Management API).
Blocked by score: Login UI, Account UI, Admin UI and APIs
Rate limited: more than 500 requests in 5 minutes, APIs only
Temporary blocks are lifted automatically once their configured duration has passed. Note this does not reset the IP's accumulated score, so further suspicious activity can quickly result in the IP being blocked again.
Permanent blocks are not lifted automatically: the IP loses its expiration, so its tracking is never reset either. Contact security@quasr.io if you believe such an IP should be unblocked.
A tracked IP also remembers which of your tenant's users provably made its scored requests: users calling the APIs with an access token, and users signing up. Once the IP's score reaches the lock score of your tenant's security level, these users are locked automatically (except internal users), which signs them out of all applications and sends a notification to your tenant's security email. See Users for what locking does and how to unlock a user.
You can list an IP address as trusted for your tenant, exempting it from blocking and account locking for that tenant specifically. A trusted IP is still tracked and scored, so you can see its activity in the Admin UI, where it is marked as trusted. Instead of a single IPv4 address you can also list a full /24 network (e.g. 203.0.113.0/24), provided your organization uses the whole network. Contact support@quasr.io with your request. Your trusted IPs are listed on the Trusted tab of the IPs section in the Admin UI, where you can filter them by label, value (prefix), status, source, and creation and expiration date.
When you create a tenant, the IP address you create it from is automatically listed as trusted for that new tenant (labelled Setup IP), so testing clients, factors and logins while setting up your tenant does not get your own IP blocked. This is skipped for IPv6 addresses and for IPs that Quasr treats as shared, since trusting a shared IP would also trust everyone else behind it. The IP stays trusted until it is removed; contact support@quasr.io if you want it removed.
Some IPs are used by many unrelated people at once, for example privacy relays (such as iCloud Private Relay), offices, airports and mobile carriers. Blocking such an IP would also block everyone else behind it, so Quasr treats them as shared, platform-wide. Quasr keeps this list up to date automatically, from published privacy relay networks and from IPs it sees used consistently by many different users over time, and can add IPs on request.
Shared IPs are still tracked and scored, but need a higher score (4 times) before they are blocked, get a larger buffer (also 4 times) after a temporary block, are never blocked permanently, and never lead to users being locked. A tracked IP that is shared is marked as such in the Admin UI and in block notifications. Contact support@quasr.io if you know of an IP that should be treated as shared.
You can find the following in the Network section of your tenant in the Admin UI at https://{tenant_id}.admin.quasr.io/tenant:
config.network.level: string, read-only) - How fast and how long IPs get blocked for bad (or rewarded for desired) behavior. It follows the tenant's environment (see Tenants — Configuration): LOW for development, NORMAL for test and HIGH for production. A config.network.level passed to the Management API is ignored.| Low | Normal | High | |
|---|---|---|---|
| Environment | Development (default for new tenants) | Test | Production |
| Failed API call | +5 | +25 | +50 (+250 if unauthorized) |
| Failed authorization | +5 | +10 | +25 |
| Failed authentication | +5 | +10 | +10 |
| Pending authorization or authentication | +1 | +5 | +5 |
| Pending API call | +1 | +1 | +1 |
| Block for 5 minutes at score | 750 (buffer 50) | 500 (buffer 50) | 250 (buffer 50) |
| Block for 15 minutes at score | 1000 (buffer 25) | 750 (buffer 25) | 500 (buffer 25) |
| Block for 1 hour at score | - | 1000 (no buffer) | 750 (buffer 5) |
| Block for 5 hours at score | - | - | 1000 (no buffer) |
| Block permanently at score | 10000 | 10000 | 10000 |
| Lock user accounts at score | 10000 | 1000 | 750 |
| Tracking expires after IP's last activity | 1 hour | 3 hours | 6 hours |
config.contacts.security: string) - Email address that receives security notifications for your tenant. Optional, but when set it must be a valid email address.Whenever an IP is blocked (temporarily or permanently) for your tenant, this address receives an email from security@quasr.io like following example: